v0.2.2 release
[yandexfotkisp] / autom4te.cache / output.0
1 @%:@! /bin/sh
2 @%:@ Guess values for system-dependent variables and create Makefiles.
3 @%:@ Generated by GNU Autoconf 2.61 for yandex-fotki-sharing-plugin 0.1.
4 @%:@ 
5 @%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 @%:@ 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 @%:@ This configure script is free software; the Free Software Foundation
8 @%:@ gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359     
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
555
556 case X$ECHO in
557 X*--fallback-echo)
558   # Remove one level of quotation (which was required for Make).
559   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
560   ;;
561 esac
562
563 echo=${ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565   # Discard the --no-reexec flag, and continue.
566   shift
567 elif test "X$1" = X--fallback-echo; then
568   # Avoid inline document here, it may be left over
569   :
570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571   # Yippee, $echo works!
572   :
573 else
574   # Restart under the correct shell.
575   exec $SHELL "$0" --no-reexec ${1+"$@"}
576 fi
577
578 if test "X$1" = X--fallback-echo; then
579   # used as fallback echo
580   shift
581   cat <<EOF
582 $*
583 EOF
584   exit 0
585 fi
586
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
591 if test -z "$ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597        echo_test_string=`eval $cmd` &&
598        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
599     then
600       break
601     fi
602   done
603 fi
604
605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607    test "X$echo_testing_string" = "X$echo_test_string"; then
608   :
609 else
610   # The Solaris, AIX, and Digital Unix default echo programs unquote
611   # backslashes.  This makes it impossible to quote backslashes using
612   #   echo "$something" | sed 's/\\/\\\\/g'
613   #
614   # So, first we look for a working echo in the user's PATH.
615
616   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617   for dir in $PATH /usr/ucb; do
618     IFS="$lt_save_ifs"
619     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622        test "X$echo_testing_string" = "X$echo_test_string"; then
623       echo="$dir/echo"
624       break
625     fi
626   done
627   IFS="$lt_save_ifs"
628
629   if test "X$echo" = Xecho; then
630     # We didn't find a better echo, so look for alternatives.
631     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633        test "X$echo_testing_string" = "X$echo_test_string"; then
634       # This shell has a builtin print -r that does the trick.
635       echo='print -r'
636     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637          test "X$CONFIG_SHELL" != X/bin/ksh; then
638       # If we have ksh, try running configure again with it.
639       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640       export ORIGINAL_CONFIG_SHELL
641       CONFIG_SHELL=/bin/ksh
642       export CONFIG_SHELL
643       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644     else
645       # Try using printf.
646       echo='printf %s\n'
647       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649          test "X$echo_testing_string" = "X$echo_test_string"; then
650         # Cool, printf works
651         :
652       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653            test "X$echo_testing_string" = 'X\t' &&
654            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655            test "X$echo_testing_string" = "X$echo_test_string"; then
656         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657         export CONFIG_SHELL
658         SHELL="$CONFIG_SHELL"
659         export SHELL
660         echo="$CONFIG_SHELL $0 --fallback-echo"
661       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662            test "X$echo_testing_string" = 'X\t' &&
663            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664            test "X$echo_testing_string" = "X$echo_test_string"; then
665         echo="$CONFIG_SHELL $0 --fallback-echo"
666       else
667         # maybe with a smaller string...
668         prev=:
669
670         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
672           then
673             break
674           fi
675           prev="$cmd"
676         done
677
678         if test "$prev" != 'sed 50q "$0"'; then
679           echo_test_string=`eval $prev`
680           export echo_test_string
681           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682         else
683           # Oops.  We lost completely, so just stick with echo.
684           echo=echo
685         fi
686       fi
687     fi
688   fi
689 fi
690 fi
691
692 # Copy echo and quote the copy suitably for passing to libtool from
693 # the Makefile, instead of quoting the original, which is used later.
694 ECHO=$echo
695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
697 fi
698
699
700
701
702 tagnames=${tagnames+${tagnames},}CXX
703
704 tagnames=${tagnames+${tagnames},}F77
705
706 exec 7<&0 </dev/null 6>&1
707
708 # Name of the host.
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
712
713 #
714 # Initializations.
715 #
716 ac_default_prefix=/usr/local
717 ac_clean_files=
718 ac_config_libobj_dir=.
719 LIB@&t@OBJS=
720 cross_compiling=no
721 subdirs=
722 MFLAGS=
723 MAKEFLAGS=
724 SHELL=${CONFIG_SHELL-/bin/sh}
725
726 # Identity of this package.
727 PACKAGE_NAME='yandex-fotki-sharing-plugin'
728 PACKAGE_TARNAME='yandex-fotki-sharing-plugin'
729 PACKAGE_VERSION='0.1'
730 PACKAGE_STRING='yandex-fotki-sharing-plugin 0.1'
731 PACKAGE_BUGREPORT=''
732
733 # Factoring default headers for most tests.
734 ac_includes_default="\
735 #include <stdio.h>
736 #ifdef HAVE_SYS_TYPES_H
737 # include <sys/types.h>
738 #endif
739 #ifdef HAVE_SYS_STAT_H
740 # include <sys/stat.h>
741 #endif
742 #ifdef STDC_HEADERS
743 # include <stdlib.h>
744 # include <stddef.h>
745 #else
746 # ifdef HAVE_STDLIB_H
747 #  include <stdlib.h>
748 # endif
749 #endif
750 #ifdef HAVE_STRING_H
751 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
752 #  include <memory.h>
753 # endif
754 # include <string.h>
755 #endif
756 #ifdef HAVE_STRINGS_H
757 # include <strings.h>
758 #endif
759 #ifdef HAVE_INTTYPES_H
760 # include <inttypes.h>
761 #endif
762 #ifdef HAVE_STDINT_H
763 # include <stdint.h>
764 #endif
765 #ifdef HAVE_UNISTD_H
766 # include <unistd.h>
767 #endif"
768
769 ac_subst_vars='SHELL
770 PATH_SEPARATOR
771 PACKAGE_NAME
772 PACKAGE_TARNAME
773 PACKAGE_VERSION
774 PACKAGE_STRING
775 PACKAGE_BUGREPORT
776 exec_prefix
777 prefix
778 program_transform_name
779 bindir
780 sbindir
781 libexecdir
782 datarootdir
783 datadir
784 sysconfdir
785 sharedstatedir
786 localstatedir
787 includedir
788 oldincludedir
789 docdir
790 infodir
791 htmldir
792 dvidir
793 pdfdir
794 psdir
795 libdir
796 localedir
797 mandir
798 DEFS
799 ECHO_C
800 ECHO_N
801 ECHO_T
802 LIBS
803 build_alias
804 host_alias
805 target_alias
806 INSTALL_PROGRAM
807 INSTALL_SCRIPT
808 INSTALL_DATA
809 CYGPATH_W
810 PACKAGE
811 VERSION
812 ACLOCAL
813 AUTOCONF
814 AUTOMAKE
815 AUTOHEADER
816 MAKEINFO
817 AMTAR
818 install_sh
819 STRIP
820 INSTALL_STRIP_PROGRAM
821 mkdir_p
822 AWK
823 SET_MAKE
824 am__leading_dot
825 MAINTAINER_MODE_TRUE
826 MAINTAINER_MODE_FALSE
827 MAINT
828 CC
829 CFLAGS
830 LDFLAGS
831 CPPFLAGS
832 ac_ct_CC
833 EXEEXT
834 OBJEXT
835 DEPDIR
836 am__include
837 am__quote
838 AMDEP_TRUE
839 AMDEP_FALSE
840 AMDEPBACKSLASH
841 CCDEPMODE
842 am__fastdepCC_TRUE
843 am__fastdepCC_FALSE
844 CXX
845 CXXFLAGS
846 ac_ct_CXX
847 CXXDEPMODE
848 am__fastdepCXX_TRUE
849 am__fastdepCXX_FALSE
850 CPP
851 GREP
852 EGREP
853 LN_S
854 build
855 build_cpu
856 build_vendor
857 build_os
858 host
859 host_cpu
860 host_vendor
861 host_os
862 SED
863 ECHO
864 AR
865 RANLIB
866 DSYMUTIL
867 NMEDIT
868 CXXCPP
869 F77
870 FFLAGS
871 ac_ct_F77
872 LIBTOOL
873 PKG_CONFIG
874 PACKAGE_CFLAGS
875 PACKAGE_LIBS
876 SHARING_CFLAGS
877 SHARING_LIBS
878 XML_CFLAGS
879 XML_LIBS
880 CURL_CFLAGS
881 CURL_LIBS
882 currentdir
883 pluginsdir
884 servicesdir
885 DEBUG_CFLAGS
886 PACKAGE_LOCALE_DIR
887 LIB@&t@OBJS
888 LTLIBOBJS'
889 ac_subst_files=''
890       ac_precious_vars='build_alias
891 host_alias
892 target_alias
893 CC
894 CFLAGS
895 LDFLAGS
896 LIBS
897 CPPFLAGS
898 CXX
899 CXXFLAGS
900 CCC
901 CPP
902 CXXCPP
903 F77
904 FFLAGS
905 PKG_CONFIG
906 PACKAGE_CFLAGS
907 PACKAGE_LIBS
908 SHARING_CFLAGS
909 SHARING_LIBS
910 XML_CFLAGS
911 XML_LIBS
912 CURL_CFLAGS
913 CURL_LIBS'
914
915
916 # Initialize some variables set by options.
917 ac_init_help=
918 ac_init_version=false
919 # The variables have the same names as the options, with
920 # dashes changed to underlines.
921 cache_file=/dev/null
922 exec_prefix=NONE
923 no_create=
924 no_recursion=
925 prefix=NONE
926 program_prefix=NONE
927 program_suffix=NONE
928 program_transform_name=s,x,x,
929 silent=
930 site=
931 srcdir=
932 verbose=
933 x_includes=NONE
934 x_libraries=NONE
935
936 # Installation directory options.
937 # These are left unexpanded so users can "make install exec_prefix=/foo"
938 # and all the variables that are supposed to be based on exec_prefix
939 # by default will actually change.
940 # Use braces instead of parens because sh, perl, etc. also accept them.
941 # (The list follows the same order as the GNU Coding Standards.)
942 bindir='${exec_prefix}/bin'
943 sbindir='${exec_prefix}/sbin'
944 libexecdir='${exec_prefix}/libexec'
945 datarootdir='${prefix}/share'
946 datadir='${datarootdir}'
947 sysconfdir='${prefix}/etc'
948 sharedstatedir='${prefix}/com'
949 localstatedir='${prefix}/var'
950 includedir='${prefix}/include'
951 oldincludedir='/usr/include'
952 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
953 infodir='${datarootdir}/info'
954 htmldir='${docdir}'
955 dvidir='${docdir}'
956 pdfdir='${docdir}'
957 psdir='${docdir}'
958 libdir='${exec_prefix}/lib'
959 localedir='${datarootdir}/locale'
960 mandir='${datarootdir}/man'
961
962 ac_prev=
963 ac_dashdash=
964 for ac_option
965 do
966   # If the previous option needs an argument, assign it.
967   if test -n "$ac_prev"; then
968     eval $ac_prev=\$ac_option
969     ac_prev=
970     continue
971   fi
972
973   case $ac_option in
974   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
975   *)    ac_optarg=yes ;;
976   esac
977
978   # Accept the important Cygnus configure options, so we can diagnose typos.
979
980   case $ac_dashdash$ac_option in
981   --)
982     ac_dashdash=yes ;;
983
984   -bindir | --bindir | --bindi | --bind | --bin | --bi)
985     ac_prev=bindir ;;
986   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
987     bindir=$ac_optarg ;;
988
989   -build | --build | --buil | --bui | --bu)
990     ac_prev=build_alias ;;
991   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
992     build_alias=$ac_optarg ;;
993
994   -cache-file | --cache-file | --cache-fil | --cache-fi \
995   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
996     ac_prev=cache_file ;;
997   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
998   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
999     cache_file=$ac_optarg ;;
1000
1001   --config-cache | -C)
1002     cache_file=config.cache ;;
1003
1004   -datadir | --datadir | --datadi | --datad)
1005     ac_prev=datadir ;;
1006   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1007     datadir=$ac_optarg ;;
1008
1009   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1010   | --dataroo | --dataro | --datar)
1011     ac_prev=datarootdir ;;
1012   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1013   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1014     datarootdir=$ac_optarg ;;
1015
1016   -disable-* | --disable-*)
1017     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1018     # Reject names that are not valid shell variable names.
1019     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1020       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1021    { (exit 1); exit 1; }; }
1022     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1023     eval enable_$ac_feature=no ;;
1024
1025   -docdir | --docdir | --docdi | --doc | --do)
1026     ac_prev=docdir ;;
1027   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1028     docdir=$ac_optarg ;;
1029
1030   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1031     ac_prev=dvidir ;;
1032   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1033     dvidir=$ac_optarg ;;
1034
1035   -enable-* | --enable-*)
1036     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1037     # Reject names that are not valid shell variable names.
1038     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1039       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1040    { (exit 1); exit 1; }; }
1041     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1042     eval enable_$ac_feature=\$ac_optarg ;;
1043
1044   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1045   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1046   | --exec | --exe | --ex)
1047     ac_prev=exec_prefix ;;
1048   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1049   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1050   | --exec=* | --exe=* | --ex=*)
1051     exec_prefix=$ac_optarg ;;
1052
1053   -gas | --gas | --ga | --g)
1054     # Obsolete; use --with-gas.
1055     with_gas=yes ;;
1056
1057   -help | --help | --hel | --he | -h)
1058     ac_init_help=long ;;
1059   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1060     ac_init_help=recursive ;;
1061   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1062     ac_init_help=short ;;
1063
1064   -host | --host | --hos | --ho)
1065     ac_prev=host_alias ;;
1066   -host=* | --host=* | --hos=* | --ho=*)
1067     host_alias=$ac_optarg ;;
1068
1069   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1070     ac_prev=htmldir ;;
1071   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1072   | --ht=*)
1073     htmldir=$ac_optarg ;;
1074
1075   -includedir | --includedir | --includedi | --included | --include \
1076   | --includ | --inclu | --incl | --inc)
1077     ac_prev=includedir ;;
1078   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1079   | --includ=* | --inclu=* | --incl=* | --inc=*)
1080     includedir=$ac_optarg ;;
1081
1082   -infodir | --infodir | --infodi | --infod | --info | --inf)
1083     ac_prev=infodir ;;
1084   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1085     infodir=$ac_optarg ;;
1086
1087   -libdir | --libdir | --libdi | --libd)
1088     ac_prev=libdir ;;
1089   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1090     libdir=$ac_optarg ;;
1091
1092   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1093   | --libexe | --libex | --libe)
1094     ac_prev=libexecdir ;;
1095   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1096   | --libexe=* | --libex=* | --libe=*)
1097     libexecdir=$ac_optarg ;;
1098
1099   -localedir | --localedir | --localedi | --localed | --locale)
1100     ac_prev=localedir ;;
1101   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1102     localedir=$ac_optarg ;;
1103
1104   -localstatedir | --localstatedir | --localstatedi | --localstated \
1105   | --localstate | --localstat | --localsta | --localst | --locals)
1106     ac_prev=localstatedir ;;
1107   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1108   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1109     localstatedir=$ac_optarg ;;
1110
1111   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1112     ac_prev=mandir ;;
1113   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1114     mandir=$ac_optarg ;;
1115
1116   -nfp | --nfp | --nf)
1117     # Obsolete; use --without-fp.
1118     with_fp=no ;;
1119
1120   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1121   | --no-cr | --no-c | -n)
1122     no_create=yes ;;
1123
1124   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1125   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1126     no_recursion=yes ;;
1127
1128   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1129   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1130   | --oldin | --oldi | --old | --ol | --o)
1131     ac_prev=oldincludedir ;;
1132   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1133   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1134   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1135     oldincludedir=$ac_optarg ;;
1136
1137   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1138     ac_prev=prefix ;;
1139   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1140     prefix=$ac_optarg ;;
1141
1142   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1143   | --program-pre | --program-pr | --program-p)
1144     ac_prev=program_prefix ;;
1145   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1146   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1147     program_prefix=$ac_optarg ;;
1148
1149   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1150   | --program-suf | --program-su | --program-s)
1151     ac_prev=program_suffix ;;
1152   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1153   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1154     program_suffix=$ac_optarg ;;
1155
1156   -program-transform-name | --program-transform-name \
1157   | --program-transform-nam | --program-transform-na \
1158   | --program-transform-n | --program-transform- \
1159   | --program-transform | --program-transfor \
1160   | --program-transfo | --program-transf \
1161   | --program-trans | --program-tran \
1162   | --progr-tra | --program-tr | --program-t)
1163     ac_prev=program_transform_name ;;
1164   -program-transform-name=* | --program-transform-name=* \
1165   | --program-transform-nam=* | --program-transform-na=* \
1166   | --program-transform-n=* | --program-transform-=* \
1167   | --program-transform=* | --program-transfor=* \
1168   | --program-transfo=* | --program-transf=* \
1169   | --program-trans=* | --program-tran=* \
1170   | --progr-tra=* | --program-tr=* | --program-t=*)
1171     program_transform_name=$ac_optarg ;;
1172
1173   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1174     ac_prev=pdfdir ;;
1175   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1176     pdfdir=$ac_optarg ;;
1177
1178   -psdir | --psdir | --psdi | --psd | --ps)
1179     ac_prev=psdir ;;
1180   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1181     psdir=$ac_optarg ;;
1182
1183   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1184   | -silent | --silent | --silen | --sile | --sil)
1185     silent=yes ;;
1186
1187   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1188     ac_prev=sbindir ;;
1189   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1190   | --sbi=* | --sb=*)
1191     sbindir=$ac_optarg ;;
1192
1193   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1194   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1195   | --sharedst | --shareds | --shared | --share | --shar \
1196   | --sha | --sh)
1197     ac_prev=sharedstatedir ;;
1198   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1199   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1200   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1201   | --sha=* | --sh=*)
1202     sharedstatedir=$ac_optarg ;;
1203
1204   -site | --site | --sit)
1205     ac_prev=site ;;
1206   -site=* | --site=* | --sit=*)
1207     site=$ac_optarg ;;
1208
1209   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1210     ac_prev=srcdir ;;
1211   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1212     srcdir=$ac_optarg ;;
1213
1214   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1215   | --syscon | --sysco | --sysc | --sys | --sy)
1216     ac_prev=sysconfdir ;;
1217   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1218   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1219     sysconfdir=$ac_optarg ;;
1220
1221   -target | --target | --targe | --targ | --tar | --ta | --t)
1222     ac_prev=target_alias ;;
1223   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1224     target_alias=$ac_optarg ;;
1225
1226   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1227     verbose=yes ;;
1228
1229   -version | --version | --versio | --versi | --vers | -V)
1230     ac_init_version=: ;;
1231
1232   -with-* | --with-*)
1233     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1234     # Reject names that are not valid shell variable names.
1235     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1236       { echo "$as_me: error: invalid package name: $ac_package" >&2
1237    { (exit 1); exit 1; }; }
1238     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1239     eval with_$ac_package=\$ac_optarg ;;
1240
1241   -without-* | --without-*)
1242     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1243     # Reject names that are not valid shell variable names.
1244     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1245       { echo "$as_me: error: invalid package name: $ac_package" >&2
1246    { (exit 1); exit 1; }; }
1247     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1248     eval with_$ac_package=no ;;
1249
1250   --x)
1251     # Obsolete; use --with-x.
1252     with_x=yes ;;
1253
1254   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1255   | --x-incl | --x-inc | --x-in | --x-i)
1256     ac_prev=x_includes ;;
1257   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1258   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1259     x_includes=$ac_optarg ;;
1260
1261   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1262   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1263     ac_prev=x_libraries ;;
1264   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1265   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1266     x_libraries=$ac_optarg ;;
1267
1268   -*) { echo "$as_me: error: unrecognized option: $ac_option
1269 Try \`$0 --help' for more information." >&2
1270    { (exit 1); exit 1; }; }
1271     ;;
1272
1273   *=*)
1274     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1275     # Reject names that are not valid shell variable names.
1276     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1277       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1278    { (exit 1); exit 1; }; }
1279     eval $ac_envvar=\$ac_optarg
1280     export $ac_envvar ;;
1281
1282   *)
1283     # FIXME: should be removed in autoconf 3.0.
1284     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1285     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1286       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1287     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1288     ;;
1289
1290   esac
1291 done
1292
1293 if test -n "$ac_prev"; then
1294   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1295   { echo "$as_me: error: missing argument to $ac_option" >&2
1296    { (exit 1); exit 1; }; }
1297 fi
1298
1299 # Be sure to have absolute directory names.
1300 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1301                 datadir sysconfdir sharedstatedir localstatedir includedir \
1302                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1303                 libdir localedir mandir
1304 do
1305   eval ac_val=\$$ac_var
1306   case $ac_val in
1307     [\\/$]* | ?:[\\/]* )  continue;;
1308     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1309   esac
1310   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1311    { (exit 1); exit 1; }; }
1312 done
1313
1314 # There might be people who depend on the old broken behavior: `$host'
1315 # used to hold the argument of --host etc.
1316 # FIXME: To remove some day.
1317 build=$build_alias
1318 host=$host_alias
1319 target=$target_alias
1320
1321 # FIXME: To remove some day.
1322 if test "x$host_alias" != x; then
1323   if test "x$build_alias" = x; then
1324     cross_compiling=maybe
1325     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1326     If a cross compiler is detected then cross compile mode will be used." >&2
1327   elif test "x$build_alias" != "x$host_alias"; then
1328     cross_compiling=yes
1329   fi
1330 fi
1331
1332 ac_tool_prefix=
1333 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1334
1335 test "$silent" = yes && exec 6>/dev/null
1336
1337
1338 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1339 ac_ls_di=`ls -di .` &&
1340 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1341   { echo "$as_me: error: Working directory cannot be determined" >&2
1342    { (exit 1); exit 1; }; }
1343 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1344   { echo "$as_me: error: pwd does not report name of working directory" >&2
1345    { (exit 1); exit 1; }; }
1346
1347
1348 # Find the source files, if location was not specified.
1349 if test -z "$srcdir"; then
1350   ac_srcdir_defaulted=yes
1351   # Try the directory containing this script, then the parent directory.
1352   ac_confdir=`$as_dirname -- "$0" ||
1353 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1354          X"$0" : 'X\(//\)[^/]' \| \
1355          X"$0" : 'X\(//\)$' \| \
1356          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1357 echo X"$0" |
1358     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1359             s//\1/
1360             q
1361           }
1362           /^X\(\/\/\)[^/].*/{
1363             s//\1/
1364             q
1365           }
1366           /^X\(\/\/\)$/{
1367             s//\1/
1368             q
1369           }
1370           /^X\(\/\).*/{
1371             s//\1/
1372             q
1373           }
1374           s/.*/./; q'`
1375   srcdir=$ac_confdir
1376   if test ! -r "$srcdir/$ac_unique_file"; then
1377     srcdir=..
1378   fi
1379 else
1380   ac_srcdir_defaulted=no
1381 fi
1382 if test ! -r "$srcdir/$ac_unique_file"; then
1383   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1384   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1385    { (exit 1); exit 1; }; }
1386 fi
1387 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1388 ac_abs_confdir=`(
1389         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1390    { (exit 1); exit 1; }; }
1391         pwd)`
1392 # When building in place, set srcdir=.
1393 if test "$ac_abs_confdir" = "$ac_pwd"; then
1394   srcdir=.
1395 fi
1396 # Remove unnecessary trailing slashes from srcdir.
1397 # Double slashes in file names in object file debugging info
1398 # mess up M-x gdb in Emacs.
1399 case $srcdir in
1400 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1401 esac
1402 for ac_var in $ac_precious_vars; do
1403   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1404   eval ac_env_${ac_var}_value=\$${ac_var}
1405   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1406   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1407 done
1408
1409 #
1410 # Report the --help message.
1411 #
1412 if test "$ac_init_help" = "long"; then
1413   # Omit some internal or obsolete options to make the list less imposing.
1414   # This message is too long to be a string in the A/UX 3.1 sh.
1415   cat <<_ACEOF
1416 \`configure' configures yandex-fotki-sharing-plugin 0.1 to adapt to many kinds of systems.
1417
1418 Usage: $0 [OPTION]... [VAR=VALUE]...
1419
1420 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1421 VAR=VALUE.  See below for descriptions of some of the useful variables.
1422
1423 Defaults for the options are specified in brackets.
1424
1425 Configuration:
1426   -h, --help              display this help and exit
1427       --help=short        display options specific to this package
1428       --help=recursive    display the short help of all the included packages
1429   -V, --version           display version information and exit
1430   -q, --quiet, --silent   do not print \`checking...' messages
1431       --cache-file=FILE   cache test results in FILE [disabled]
1432   -C, --config-cache      alias for \`--cache-file=config.cache'
1433   -n, --no-create         do not create output files
1434       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1435
1436 Installation directories:
1437   --prefix=PREFIX         install architecture-independent files in PREFIX
1438                           [$ac_default_prefix]
1439   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1440                           [PREFIX]
1441
1442 By default, \`make install' will install all the files in
1443 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1444 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1445 for instance \`--prefix=\$HOME'.
1446
1447 For better control, use the options below.
1448
1449 Fine tuning of the installation directories:
1450   --bindir=DIR           user executables [EPREFIX/bin]
1451   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1452   --libexecdir=DIR       program executables [EPREFIX/libexec]
1453   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1454   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1455   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1456   --libdir=DIR           object code libraries [EPREFIX/lib]
1457   --includedir=DIR       C header files [PREFIX/include]
1458   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1459   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1460   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1461   --infodir=DIR          info documentation [DATAROOTDIR/info]
1462   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1463   --mandir=DIR           man documentation [DATAROOTDIR/man]
1464   --docdir=DIR           documentation root @<:@DATAROOTDIR/doc/yandex-fotki-sharing-plugin@:>@
1465   --htmldir=DIR          html documentation [DOCDIR]
1466   --dvidir=DIR           dvi documentation [DOCDIR]
1467   --pdfdir=DIR           pdf documentation [DOCDIR]
1468   --psdir=DIR            ps documentation [DOCDIR]
1469 _ACEOF
1470
1471   cat <<\_ACEOF
1472
1473 Program names:
1474   --program-prefix=PREFIX            prepend PREFIX to installed program names
1475   --program-suffix=SUFFIX            append SUFFIX to installed program names
1476   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1477
1478 System types:
1479   --build=BUILD     configure for building on BUILD [guessed]
1480   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1481 _ACEOF
1482 fi
1483
1484 if test -n "$ac_init_help"; then
1485   case $ac_init_help in
1486      short | recursive ) echo "Configuration of yandex-fotki-sharing-plugin 0.1:";;
1487    esac
1488   cat <<\_ACEOF
1489
1490 Optional Features:
1491   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1492   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1493   --enable-maintainer-mode  enable make rules and dependencies not useful
1494                           (and sometimes confusing) to the casual installer
1495   --enable-shared@<:@=PKGS@:>@  build shared libraries @<:@default=yes@:>@
1496   --enable-static@<:@=PKGS@:>@  build static libraries @<:@default=no@:>@
1497   --disable-dependency-tracking  speeds up one-time build
1498   --enable-dependency-tracking   do not reject slow dependency extractors
1499   --enable-fast-install@<:@=PKGS@:>@ 
1500                           optimize for fast installation @<:@default=yes@:>@
1501   --disable-libtool-lock  avoid locking (might break parallel builds)
1502   --enable-debug          Turn on debug messages
1503
1504 Optional Packages:
1505   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1506   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1507   --with-gnu-ld           assume the C compiler uses GNU ld @<:@default=no@:>@
1508   --with-pic              try to use only PIC/non-PIC objects @<:@default=use
1509                           both@:>@
1510   --with-tags@<:@=TAGS@:>@      include additional configurations @<:@automatic@:>@
1511
1512 Some influential environment variables:
1513   CC          C compiler command
1514   CFLAGS      C compiler flags
1515   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1516               nonstandard directory <lib dir>
1517   LIBS        libraries to pass to the linker, e.g. -l<library>
1518   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1519               you have headers in a nonstandard directory <include dir>
1520   CXX         C++ compiler command
1521   CXXFLAGS    C++ compiler flags
1522   CPP         C preprocessor
1523   CXXCPP      C++ preprocessor
1524   F77         Fortran 77 compiler command
1525   FFLAGS      Fortran 77 compiler flags
1526   PKG_CONFIG  path to pkg-config utility
1527   PACKAGE_CFLAGS 
1528               C compiler flags for PACKAGE, overriding pkg-config
1529   PACKAGE_LIBS 
1530               linker flags for PACKAGE, overriding pkg-config
1531   SHARING_CFLAGS 
1532               C compiler flags for SHARING, overriding pkg-config
1533   SHARING_LIBS 
1534               linker flags for SHARING, overriding pkg-config
1535   XML_CFLAGS  C compiler flags for XML, overriding pkg-config
1536   XML_LIBS    linker flags for XML, overriding pkg-config
1537   CURL_CFLAGS C compiler flags for CURL, overriding pkg-config
1538   CURL_LIBS   linker flags for CURL, overriding pkg-config
1539
1540 Use these variables to override the choices made by `configure' or to help
1541 it to find libraries and programs with nonstandard names/locations.
1542
1543 _ACEOF
1544 ac_status=$?
1545 fi
1546
1547 if test "$ac_init_help" = "recursive"; then
1548   # If there are subdirs, report their specific --help.
1549   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1550     test -d "$ac_dir" || continue
1551     ac_builddir=.
1552
1553 case "$ac_dir" in
1554 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1555 *)
1556   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1557   # A ".." for each directory in $ac_dir_suffix.
1558   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1559   case $ac_top_builddir_sub in
1560   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1561   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1562   esac ;;
1563 esac
1564 ac_abs_top_builddir=$ac_pwd
1565 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1566 # for backward compatibility:
1567 ac_top_builddir=$ac_top_build_prefix
1568
1569 case $srcdir in
1570   .)  # We are building in place.
1571     ac_srcdir=.
1572     ac_top_srcdir=$ac_top_builddir_sub
1573     ac_abs_top_srcdir=$ac_pwd ;;
1574   [\\/]* | ?:[\\/]* )  # Absolute name.
1575     ac_srcdir=$srcdir$ac_dir_suffix;
1576     ac_top_srcdir=$srcdir
1577     ac_abs_top_srcdir=$srcdir ;;
1578   *) # Relative name.
1579     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1580     ac_top_srcdir=$ac_top_build_prefix$srcdir
1581     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1582 esac
1583 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1584
1585     cd "$ac_dir" || { ac_status=$?; continue; }
1586     # Check for guested configure.
1587     if test -f "$ac_srcdir/configure.gnu"; then
1588       echo &&
1589       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1590     elif test -f "$ac_srcdir/configure"; then
1591       echo &&
1592       $SHELL "$ac_srcdir/configure" --help=recursive
1593     else
1594       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1595     fi || ac_status=$?
1596     cd "$ac_pwd" || { ac_status=$?; break; }
1597   done
1598 fi
1599
1600 test -n "$ac_init_help" && exit $ac_status
1601 if $ac_init_version; then
1602   cat <<\_ACEOF
1603 yandex-fotki-sharing-plugin configure 0.1
1604 generated by GNU Autoconf 2.61
1605
1606 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1607 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1608 This configure script is free software; the Free Software Foundation
1609 gives unlimited permission to copy, distribute and modify it.
1610 _ACEOF
1611   exit
1612 fi
1613 cat >config.log <<_ACEOF
1614 This file contains any messages produced by compilers while
1615 running configure, to aid debugging if configure makes a mistake.
1616
1617 It was created by yandex-fotki-sharing-plugin $as_me 0.1, which was
1618 generated by GNU Autoconf 2.61.  Invocation command line was
1619
1620   $ $0 $@
1621
1622 _ACEOF
1623 exec 5>>config.log
1624 {
1625 cat <<_ASUNAME
1626 @%:@@%:@ --------- @%:@@%:@
1627 @%:@@%:@ Platform. @%:@@%:@
1628 @%:@@%:@ --------- @%:@@%:@
1629
1630 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1631 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1632 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1633 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1634 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1635
1636 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1637 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1638
1639 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1640 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1641 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1642 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1643 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1644 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1645 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1646
1647 _ASUNAME
1648
1649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1650 for as_dir in $PATH
1651 do
1652   IFS=$as_save_IFS
1653   test -z "$as_dir" && as_dir=.
1654   echo "PATH: $as_dir"
1655 done
1656 IFS=$as_save_IFS
1657
1658 } >&5
1659
1660 cat >&5 <<_ACEOF
1661
1662
1663 @%:@@%:@ ----------- @%:@@%:@
1664 @%:@@%:@ Core tests. @%:@@%:@
1665 @%:@@%:@ ----------- @%:@@%:@
1666
1667 _ACEOF
1668
1669
1670 # Keep a trace of the command line.
1671 # Strip out --no-create and --no-recursion so they do not pile up.
1672 # Strip out --silent because we don't want to record it for future runs.
1673 # Also quote any args containing shell meta-characters.
1674 # Make two passes to allow for proper duplicate-argument suppression.
1675 ac_configure_args=
1676 ac_configure_args0=
1677 ac_configure_args1=
1678 ac_must_keep_next=false
1679 for ac_pass in 1 2
1680 do
1681   for ac_arg
1682   do
1683     case $ac_arg in
1684     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1685     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1686     | -silent | --silent | --silen | --sile | --sil)
1687       continue ;;
1688     *\'*)
1689       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1690     esac
1691     case $ac_pass in
1692     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1693     2)
1694       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1695       if test $ac_must_keep_next = true; then
1696         ac_must_keep_next=false # Got value, back to normal.
1697       else
1698         case $ac_arg in
1699           *=* | --config-cache | -C | -disable-* | --disable-* \
1700           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1701           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1702           | -with-* | --with-* | -without-* | --without-* | --x)
1703             case "$ac_configure_args0 " in
1704               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1705             esac
1706             ;;
1707           -* ) ac_must_keep_next=true ;;
1708         esac
1709       fi
1710       ac_configure_args="$ac_configure_args '$ac_arg'"
1711       ;;
1712     esac
1713   done
1714 done
1715 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1716 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1717
1718 # When interrupted or exit'd, cleanup temporary files, and complete
1719 # config.log.  We remove comments because anyway the quotes in there
1720 # would cause problems or look ugly.
1721 # WARNING: Use '\'' to represent an apostrophe within the trap.
1722 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1723 trap 'exit_status=$?
1724   # Save into config.log some information that might help in debugging.
1725   {
1726     echo
1727
1728     cat <<\_ASBOX
1729 @%:@@%:@ ---------------- @%:@@%:@
1730 @%:@@%:@ Cache variables. @%:@@%:@
1731 @%:@@%:@ ---------------- @%:@@%:@
1732 _ASBOX
1733     echo
1734     # The following way of writing the cache mishandles newlines in values,
1735 (
1736   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1737     eval ac_val=\$$ac_var
1738     case $ac_val in #(
1739     *${as_nl}*)
1740       case $ac_var in #(
1741       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1742 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1743       esac
1744       case $ac_var in #(
1745       _ | IFS | as_nl) ;; #(
1746       *) $as_unset $ac_var ;;
1747       esac ;;
1748     esac
1749   done
1750   (set) 2>&1 |
1751     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1752     *${as_nl}ac_space=\ *)
1753       sed -n \
1754         "s/'\''/'\''\\\\'\'''\''/g;
1755           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1756       ;; #(
1757     *)
1758       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1759       ;;
1760     esac |
1761     sort
1762 )
1763     echo
1764
1765     cat <<\_ASBOX
1766 @%:@@%:@ ----------------- @%:@@%:@
1767 @%:@@%:@ Output variables. @%:@@%:@
1768 @%:@@%:@ ----------------- @%:@@%:@
1769 _ASBOX
1770     echo
1771     for ac_var in $ac_subst_vars
1772     do
1773       eval ac_val=\$$ac_var
1774       case $ac_val in
1775       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1776       esac
1777       echo "$ac_var='\''$ac_val'\''"
1778     done | sort
1779     echo
1780
1781     if test -n "$ac_subst_files"; then
1782       cat <<\_ASBOX
1783 @%:@@%:@ ------------------- @%:@@%:@
1784 @%:@@%:@ File substitutions. @%:@@%:@
1785 @%:@@%:@ ------------------- @%:@@%:@
1786 _ASBOX
1787       echo
1788       for ac_var in $ac_subst_files
1789       do
1790         eval ac_val=\$$ac_var
1791         case $ac_val in
1792         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1793         esac
1794         echo "$ac_var='\''$ac_val'\''"
1795       done | sort
1796       echo
1797     fi
1798
1799     if test -s confdefs.h; then
1800       cat <<\_ASBOX
1801 @%:@@%:@ ----------- @%:@@%:@
1802 @%:@@%:@ confdefs.h. @%:@@%:@
1803 @%:@@%:@ ----------- @%:@@%:@
1804 _ASBOX
1805       echo
1806       cat confdefs.h
1807       echo
1808     fi
1809     test "$ac_signal" != 0 &&
1810       echo "$as_me: caught signal $ac_signal"
1811     echo "$as_me: exit $exit_status"
1812   } >&5
1813   rm -f core *.core core.conftest.* &&
1814     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1815     exit $exit_status
1816 ' 0
1817 for ac_signal in 1 2 13 15; do
1818   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1819 done
1820 ac_signal=0
1821
1822 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1823 rm -f -r conftest* confdefs.h
1824
1825 # Predefined preprocessor variables.
1826
1827 cat >>confdefs.h <<_ACEOF
1828 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
1829 _ACEOF
1830
1831
1832 cat >>confdefs.h <<_ACEOF
1833 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1834 _ACEOF
1835
1836
1837 cat >>confdefs.h <<_ACEOF
1838 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1839 _ACEOF
1840
1841
1842 cat >>confdefs.h <<_ACEOF
1843 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
1844 _ACEOF
1845
1846
1847 cat >>confdefs.h <<_ACEOF
1848 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1849 _ACEOF
1850
1851
1852 # Let the site file select an alternate cache file if it wants to.
1853 # Prefer explicitly selected file to automatically selected ones.
1854 if test -n "$CONFIG_SITE"; then
1855   set x "$CONFIG_SITE"
1856 elif test "x$prefix" != xNONE; then
1857   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1858 else
1859   set x "$ac_default_prefix/share/config.site" \
1860         "$ac_default_prefix/etc/config.site"
1861 fi
1862 shift
1863 for ac_site_file
1864 do
1865   if test -r "$ac_site_file"; then
1866     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1867 echo "$as_me: loading site script $ac_site_file" >&6;}
1868     sed 's/^/| /' "$ac_site_file" >&5
1869     . "$ac_site_file"
1870   fi
1871 done
1872
1873 if test -r "$cache_file"; then
1874   # Some versions of bash will fail to source /dev/null (special
1875   # files actually), so we avoid doing that.
1876   if test -f "$cache_file"; then
1877     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1878 echo "$as_me: loading cache $cache_file" >&6;}
1879     case $cache_file in
1880       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1881       *)                      . "./$cache_file";;
1882     esac
1883   fi
1884 else
1885   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1886 echo "$as_me: creating cache $cache_file" >&6;}
1887   >$cache_file
1888 fi
1889
1890 # Check that the precious variables saved in the cache have kept the same
1891 # value.
1892 ac_cache_corrupted=false
1893 for ac_var in $ac_precious_vars; do
1894   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1895   eval ac_new_set=\$ac_env_${ac_var}_set
1896   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1897   eval ac_new_val=\$ac_env_${ac_var}_value
1898   case $ac_old_set,$ac_new_set in
1899     set,)
1900       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1901 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1902       ac_cache_corrupted=: ;;
1903     ,set)
1904       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1905 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1906       ac_cache_corrupted=: ;;
1907     ,);;
1908     *)
1909       if test "x$ac_old_val" != "x$ac_new_val"; then
1910         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1911 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1912         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1913 echo "$as_me:   former value:  $ac_old_val" >&2;}
1914         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1915 echo "$as_me:   current value: $ac_new_val" >&2;}
1916         ac_cache_corrupted=:
1917       fi;;
1918   esac
1919   # Pass precious variables to config.status.
1920   if test "$ac_new_set" = set; then
1921     case $ac_new_val in
1922     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1923     *) ac_arg=$ac_var=$ac_new_val ;;
1924     esac
1925     case " $ac_configure_args " in
1926       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1927       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1928     esac
1929   fi
1930 done
1931 if $ac_cache_corrupted; then
1932   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1933 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1934   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1935 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1936    { (exit 1); exit 1; }; }
1937 fi
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963 ac_ext=c
1964 ac_cpp='$CPP $CPPFLAGS'
1965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1968
1969
1970 am__api_version="1.8"
1971 ac_aux_dir=
1972 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1973   if test -f "$ac_dir/install-sh"; then
1974     ac_aux_dir=$ac_dir
1975     ac_install_sh="$ac_aux_dir/install-sh -c"
1976     break
1977   elif test -f "$ac_dir/install.sh"; then
1978     ac_aux_dir=$ac_dir
1979     ac_install_sh="$ac_aux_dir/install.sh -c"
1980     break
1981   elif test -f "$ac_dir/shtool"; then
1982     ac_aux_dir=$ac_dir
1983     ac_install_sh="$ac_aux_dir/shtool install -c"
1984     break
1985   fi
1986 done
1987 if test -z "$ac_aux_dir"; then
1988   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1989 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1990    { (exit 1); exit 1; }; }
1991 fi
1992
1993 # These three variables are undocumented and unsupported,
1994 # and are intended to be withdrawn in a future Autoconf release.
1995 # They can cause serious problems if a builder's source tree is in a directory
1996 # whose full name contains unusual characters.
1997 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1998 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1999 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2000
2001
2002 # Find a good install program.  We prefer a C program (faster),
2003 # so one script is as good as another.  But avoid the broken or
2004 # incompatible versions:
2005 # SysV /etc/install, /usr/sbin/install
2006 # SunOS /usr/etc/install
2007 # IRIX /sbin/install
2008 # AIX /bin/install
2009 # AmigaOS /C/install, which installs bootblocks on floppy discs
2010 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2011 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2012 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2013 # OS/2's system install, which has a completely different semantic
2014 # ./install, which can be erroneously created by make from ./install.sh.
2015 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2016 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2017 if test -z "$INSTALL"; then
2018 if test "${ac_cv_path_install+set}" = set; then
2019   echo $ECHO_N "(cached) $ECHO_C" >&6
2020 else
2021   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2022 for as_dir in $PATH
2023 do
2024   IFS=$as_save_IFS
2025   test -z "$as_dir" && as_dir=.
2026   # Account for people who put trailing slashes in PATH elements.
2027 case $as_dir/ in
2028   ./ | .// | /cC/* | \
2029   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2030   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2031   /usr/ucb/* ) ;;
2032   *)
2033     # OSF1 and SCO ODT 3.0 have their own names for install.
2034     # Don't use installbsd from OSF since it installs stuff as root
2035     # by default.
2036     for ac_prog in ginstall scoinst install; do
2037       for ac_exec_ext in '' $ac_executable_extensions; do
2038         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2039           if test $ac_prog = install &&
2040             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2041             # AIX install.  It has an incompatible calling convention.
2042             :
2043           elif test $ac_prog = install &&
2044             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2045             # program-specific install script used by HP pwplus--don't use.
2046             :
2047           else
2048             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2049             break 3
2050           fi
2051         fi
2052       done
2053     done
2054     ;;
2055 esac
2056 done
2057 IFS=$as_save_IFS
2058
2059
2060 fi
2061   if test "${ac_cv_path_install+set}" = set; then
2062     INSTALL=$ac_cv_path_install
2063   else
2064     # As a last resort, use the slow shell script.  Don't cache a
2065     # value for INSTALL within a source directory, because that will
2066     # break other packages using the cache if that directory is
2067     # removed, or if the value is a relative name.
2068     INSTALL=$ac_install_sh
2069   fi
2070 fi
2071 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2072 echo "${ECHO_T}$INSTALL" >&6; }
2073
2074 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2075 # It thinks the first close brace ends the variable substitution.
2076 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2077
2078 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2079
2080 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2081
2082 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2083 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2084 # Just in case
2085 sleep 1
2086 echo timestamp > conftest.file
2087 # Do `set' in a subshell so we don't clobber the current shell's
2088 # arguments.  Must try -L first in case configure is actually a
2089 # symlink; some systems play weird games with the mod time of symlinks
2090 # (eg FreeBSD returns the mod time of the symlink's containing
2091 # directory).
2092 if (
2093    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2094    if test "$*" = "X"; then
2095       # -L didn't work.
2096       set X `ls -t $srcdir/configure conftest.file`
2097    fi
2098    rm -f conftest.file
2099    if test "$*" != "X $srcdir/configure conftest.file" \
2100       && test "$*" != "X conftest.file $srcdir/configure"; then
2101
2102       # If neither matched, then we have a broken ls.  This can happen
2103       # if, for instance, CONFIG_SHELL is bash and it inherits a
2104       # broken ls alias from the environment.  This has actually
2105       # happened.  Such a system could not be considered "sane".
2106       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2107 alias in your environment" >&5
2108 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2109 alias in your environment" >&2;}
2110    { (exit 1); exit 1; }; }
2111    fi
2112
2113    test "$2" = conftest.file
2114    )
2115 then
2116    # Ok.
2117    :
2118 else
2119    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2120 Check your system clock" >&5
2121 echo "$as_me: error: newly created file is older than distributed files!
2122 Check your system clock" >&2;}
2123    { (exit 1); exit 1; }; }
2124 fi
2125 { echo "$as_me:$LINENO: result: yes" >&5
2126 echo "${ECHO_T}yes" >&6; }
2127 test "$program_prefix" != NONE &&
2128   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2129 # Use a double $ so make ignores it.
2130 test "$program_suffix" != NONE &&
2131   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2132 # Double any \ or $.  echo might interpret backslashes.
2133 # By default was `s,x,x', remove it if useless.
2134 cat <<\_ACEOF >conftest.sed
2135 s/[\\$]/&&/g;s/;s,x,x,$//
2136 _ACEOF
2137 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2138 rm -f conftest.sed
2139
2140 # expand $ac_aux_dir to an absolute path
2141 am_aux_dir=`cd $ac_aux_dir && pwd`
2142
2143 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2144 # Use eval to expand $SHELL
2145 if eval "$MISSING --run true"; then
2146   am_missing_run="$MISSING --run "
2147 else
2148   am_missing_run=
2149   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2150 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2151 fi
2152
2153 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2154   # Keeping the `.' argument allows $(mkdir_p) to be used without
2155   # argument.  Indeed, we sometimes output rules like
2156   #   $(mkdir_p) $(somedir)
2157   # where $(somedir) is conditionally defined.
2158   # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
2159   # expensive solution, as it forces Make to start a sub-shell.)
2160   mkdir_p='mkdir -p -- .'
2161 else
2162   # On NextStep and OpenStep, the `mkdir' command does not
2163   # recognize any option.  It will interpret all options as
2164   # directories to create, and then abort because `.' already
2165   # exists.
2166   for d in ./-p ./--version;
2167   do
2168     test -d $d && rmdir $d
2169   done
2170   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2171   if test -f "$ac_aux_dir/mkinstalldirs"; then
2172     mkdir_p='$(mkinstalldirs)'
2173   else
2174     mkdir_p='$(install_sh) -d'
2175   fi
2176 fi
2177
2178 for ac_prog in gawk mawk nawk awk
2179 do
2180   # Extract the first word of "$ac_prog", so it can be a program name with args.
2181 set dummy $ac_prog; ac_word=$2
2182 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2184 if test "${ac_cv_prog_AWK+set}" = set; then
2185   echo $ECHO_N "(cached) $ECHO_C" >&6
2186 else
2187   if test -n "$AWK"; then
2188   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2189 else
2190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2191 for as_dir in $PATH
2192 do
2193   IFS=$as_save_IFS
2194   test -z "$as_dir" && as_dir=.
2195   for ac_exec_ext in '' $ac_executable_extensions; do
2196   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2197     ac_cv_prog_AWK="$ac_prog"
2198     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2199     break 2
2200   fi
2201 done
2202 done
2203 IFS=$as_save_IFS
2204
2205 fi
2206 fi
2207 AWK=$ac_cv_prog_AWK
2208 if test -n "$AWK"; then
2209   { echo "$as_me:$LINENO: result: $AWK" >&5
2210 echo "${ECHO_T}$AWK" >&6; }
2211 else
2212   { echo "$as_me:$LINENO: result: no" >&5
2213 echo "${ECHO_T}no" >&6; }
2214 fi
2215
2216
2217   test -n "$AWK" && break
2218 done
2219
2220 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2221 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2222 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2223 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2224   echo $ECHO_N "(cached) $ECHO_C" >&6
2225 else
2226   cat >conftest.make <<\_ACEOF
2227 SHELL = /bin/sh
2228 all:
2229         @echo '@@@%%%=$(MAKE)=@@@%%%'
2230 _ACEOF
2231 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2232 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2233   *@@@%%%=?*=@@@%%%*)
2234     eval ac_cv_prog_make_${ac_make}_set=yes;;
2235   *)
2236     eval ac_cv_prog_make_${ac_make}_set=no;;
2237 esac
2238 rm -f conftest.make
2239 fi
2240 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2241   { echo "$as_me:$LINENO: result: yes" >&5
2242 echo "${ECHO_T}yes" >&6; }
2243   SET_MAKE=
2244 else
2245   { echo "$as_me:$LINENO: result: no" >&5
2246 echo "${ECHO_T}no" >&6; }
2247   SET_MAKE="MAKE=${MAKE-make}"
2248 fi
2249
2250 rm -rf .tst 2>/dev/null
2251 mkdir .tst 2>/dev/null
2252 if test -d .tst; then
2253   am__leading_dot=.
2254 else
2255   am__leading_dot=_
2256 fi
2257 rmdir .tst 2>/dev/null
2258
2259 # test to see if srcdir already configured
2260 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2261    test -f $srcdir/config.status; then
2262   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2263 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2264    { (exit 1); exit 1; }; }
2265 fi
2266
2267 # test whether we have cygpath
2268 if test -z "$CYGPATH_W"; then
2269   if (cygpath --version) >/dev/null 2>/dev/null; then
2270     CYGPATH_W='cygpath -w'
2271   else
2272     CYGPATH_W=echo
2273   fi
2274 fi
2275
2276
2277 # Define the identity of the package.
2278  PACKAGE='yandex-fotki-sharing-plugin'
2279  VERSION='0.1'
2280
2281
2282 cat >>confdefs.h <<_ACEOF
2283 @%:@define PACKAGE "$PACKAGE"
2284 _ACEOF
2285
2286  
2287 cat >>confdefs.h <<_ACEOF
2288 @%:@define VERSION "$VERSION"
2289 _ACEOF
2290
2291 # Some tools Automake needs.
2292
2293 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2294
2295
2296 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2297
2298
2299 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2300
2301
2302 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2303
2304
2305 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2306
2307
2308 AMTAR=${AMTAR-"${am_missing_run}tar"}
2309
2310 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2311
2312 # Installed binaries are usually stripped using `strip' when the user
2313 # run `make install-strip'.  However `strip' might not be the right
2314 # tool to use in cross-compilation environments, therefore Automake
2315 # will honor the `STRIP' environment variable to overrule this program.
2316 if test "$cross_compiling" != no; then
2317   if test -n "$ac_tool_prefix"; then
2318   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2319 set dummy ${ac_tool_prefix}strip; ac_word=$2
2320 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2322 if test "${ac_cv_prog_STRIP+set}" = set; then
2323   echo $ECHO_N "(cached) $ECHO_C" >&6
2324 else
2325   if test -n "$STRIP"; then
2326   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2327 else
2328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2329 for as_dir in $PATH
2330 do
2331   IFS=$as_save_IFS
2332   test -z "$as_dir" && as_dir=.
2333   for ac_exec_ext in '' $ac_executable_extensions; do
2334   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2335     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2336     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2337     break 2
2338   fi
2339 done
2340 done
2341 IFS=$as_save_IFS
2342
2343 fi
2344 fi
2345 STRIP=$ac_cv_prog_STRIP
2346 if test -n "$STRIP"; then
2347   { echo "$as_me:$LINENO: result: $STRIP" >&5
2348 echo "${ECHO_T}$STRIP" >&6; }
2349 else
2350   { echo "$as_me:$LINENO: result: no" >&5
2351 echo "${ECHO_T}no" >&6; }
2352 fi
2353
2354
2355 fi
2356 if test -z "$ac_cv_prog_STRIP"; then
2357   ac_ct_STRIP=$STRIP
2358   # Extract the first word of "strip", so it can be a program name with args.
2359 set dummy strip; ac_word=$2
2360 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2362 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2363   echo $ECHO_N "(cached) $ECHO_C" >&6
2364 else
2365   if test -n "$ac_ct_STRIP"; then
2366   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2367 else
2368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2369 for as_dir in $PATH
2370 do
2371   IFS=$as_save_IFS
2372   test -z "$as_dir" && as_dir=.
2373   for ac_exec_ext in '' $ac_executable_extensions; do
2374   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2375     ac_cv_prog_ac_ct_STRIP="strip"
2376     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2377     break 2
2378   fi
2379 done
2380 done
2381 IFS=$as_save_IFS
2382
2383 fi
2384 fi
2385 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2386 if test -n "$ac_ct_STRIP"; then
2387   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2388 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2389 else
2390   { echo "$as_me:$LINENO: result: no" >&5
2391 echo "${ECHO_T}no" >&6; }
2392 fi
2393
2394   if test "x$ac_ct_STRIP" = x; then
2395     STRIP=":"
2396   else
2397     case $cross_compiling:$ac_tool_warned in
2398 yes:)
2399 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2400 whose name does not start with the host triplet.  If you think this
2401 configuration is useful to you, please write to autoconf@gnu.org." >&5
2402 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2403 whose name does not start with the host triplet.  If you think this
2404 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2405 ac_tool_warned=yes ;;
2406 esac
2407     STRIP=$ac_ct_STRIP
2408   fi
2409 else
2410   STRIP="$ac_cv_prog_STRIP"
2411 fi
2412
2413 fi
2414 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2415
2416 # We need awk for the "check" target.  The system "awk" is bad on
2417 # some platforms.
2418
2419
2420
2421
2422 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2423 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2424     # Check whether --enable-maintainer-mode was given.
2425 if test "${enable_maintainer_mode+set}" = set; then
2426   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2427 else
2428   USE_MAINTAINER_MODE=no
2429 fi
2430
2431   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2432 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2433    
2434
2435 if test $USE_MAINTAINER_MODE = yes; then
2436   MAINTAINER_MODE_TRUE=
2437   MAINTAINER_MODE_FALSE='#'
2438 else
2439   MAINTAINER_MODE_TRUE='#'
2440   MAINTAINER_MODE_FALSE=
2441 fi
2442
2443   MAINT=$MAINTAINER_MODE_TRUE
2444   
2445
2446 ac_config_headers="$ac_config_headers config.h"
2447
2448
2449
2450
2451 # Check whether --enable-shared was given.
2452 if test "${enable_shared+set}" = set; then
2453   enableval=$enable_shared; p=${PACKAGE-default}
2454     case $enableval in
2455     yes) enable_shared=yes ;;
2456     no) enable_shared=no ;;
2457     *)
2458       enable_shared=no
2459       # Look at the argument we got.  We use all the common list separators.
2460       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2461       for pkg in $enableval; do
2462         IFS="$lt_save_ifs"
2463         if test "X$pkg" = "X$p"; then
2464           enable_shared=yes
2465         fi
2466       done
2467       IFS="$lt_save_ifs"
2468       ;;
2469     esac
2470 else
2471   enable_shared=yes
2472 fi
2473
2474
2475 # Check whether --enable-static was given.
2476 if test "${enable_static+set}" = set; then
2477   enableval=$enable_static; p=${PACKAGE-default}
2478     case $enableval in
2479     yes) enable_static=yes ;;
2480     no) enable_static=no ;;
2481     *)
2482      enable_static=no
2483       # Look at the argument we got.  We use all the common list separators.
2484       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2485       for pkg in $enableval; do
2486         IFS="$lt_save_ifs"
2487         if test "X$pkg" = "X$p"; then
2488           enable_static=yes
2489         fi
2490       done
2491       IFS="$lt_save_ifs"
2492       ;;
2493     esac
2494 else
2495   enable_static=no
2496 fi
2497
2498
2499 DEPDIR="${am__leading_dot}deps"
2500
2501 ac_config_commands="$ac_config_commands depfiles"
2502
2503
2504 am_make=${MAKE-make}
2505 cat > confinc << 'END'
2506 am__doit:
2507         @echo done
2508 .PHONY: am__doit
2509 END
2510 # If we don't find an include directive, just comment out the code.
2511 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2512 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2513 am__include="#"
2514 am__quote=
2515 _am_result=none
2516 # First try GNU make style include.
2517 echo "include confinc" > confmf
2518 # We grep out `Entering directory' and `Leaving directory'
2519 # messages which can occur if `w' ends up in MAKEFLAGS.
2520 # In particular we don't look at `^make:' because GNU make might
2521 # be invoked under some other name (usually "gmake"), in which
2522 # case it prints its new name instead of `make'.
2523 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2524    am__include=include
2525    am__quote=
2526    _am_result=GNU
2527 fi
2528 # Now try BSD make style include.
2529 if test "$am__include" = "#"; then
2530    echo '.include "confinc"' > confmf
2531    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2532       am__include=.include
2533       am__quote="\""
2534       _am_result=BSD
2535    fi
2536 fi
2537
2538
2539 { echo "$as_me:$LINENO: result: $_am_result" >&5
2540 echo "${ECHO_T}$_am_result" >&6; }
2541 rm -f confinc confmf
2542
2543 # Check whether --enable-dependency-tracking was given.
2544 if test "${enable_dependency_tracking+set}" = set; then
2545   enableval=$enable_dependency_tracking; 
2546 fi
2547
2548 if test "x$enable_dependency_tracking" != xno; then
2549   am_depcomp="$ac_aux_dir/depcomp"
2550   AMDEPBACKSLASH='\'
2551 fi
2552  
2553
2554 if test "x$enable_dependency_tracking" != xno; then
2555   AMDEP_TRUE=
2556   AMDEP_FALSE='#'
2557 else
2558   AMDEP_TRUE='#'
2559   AMDEP_FALSE=
2560 fi
2561
2562
2563
2564 ac_ext=c
2565 ac_cpp='$CPP $CPPFLAGS'
2566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2569 if test -n "$ac_tool_prefix"; then
2570   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2571 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2574 if test "${ac_cv_prog_CC+set}" = set; then
2575   echo $ECHO_N "(cached) $ECHO_C" >&6
2576 else
2577   if test -n "$CC"; then
2578   ac_cv_prog_CC="$CC" # Let the user override the test.
2579 else
2580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2581 for as_dir in $PATH
2582 do
2583   IFS=$as_save_IFS
2584   test -z "$as_dir" && as_dir=.
2585   for ac_exec_ext in '' $ac_executable_extensions; do
2586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2587     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2588     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2589     break 2
2590   fi
2591 done
2592 done
2593 IFS=$as_save_IFS
2594
2595 fi
2596 fi
2597 CC=$ac_cv_prog_CC
2598 if test -n "$CC"; then
2599   { echo "$as_me:$LINENO: result: $CC" >&5
2600 echo "${ECHO_T}$CC" >&6; }
2601 else
2602   { echo "$as_me:$LINENO: result: no" >&5
2603 echo "${ECHO_T}no" >&6; }
2604 fi
2605
2606
2607 fi
2608 if test -z "$ac_cv_prog_CC"; then
2609   ac_ct_CC=$CC
2610   # Extract the first word of "gcc", so it can be a program name with args.
2611 set dummy gcc; ac_word=$2
2612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2614 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2615   echo $ECHO_N "(cached) $ECHO_C" >&6
2616 else
2617   if test -n "$ac_ct_CC"; then
2618   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2619 else
2620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2621 for as_dir in $PATH
2622 do
2623   IFS=$as_save_IFS
2624   test -z "$as_dir" && as_dir=.
2625   for ac_exec_ext in '' $ac_executable_extensions; do
2626   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2627     ac_cv_prog_ac_ct_CC="gcc"
2628     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2629     break 2
2630   fi
2631 done
2632 done
2633 IFS=$as_save_IFS
2634
2635 fi
2636 fi
2637 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2638 if test -n "$ac_ct_CC"; then
2639   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2640 echo "${ECHO_T}$ac_ct_CC" >&6; }
2641 else
2642   { echo "$as_me:$LINENO: result: no" >&5
2643 echo "${ECHO_T}no" >&6; }
2644 fi
2645
2646   if test "x$ac_ct_CC" = x; then
2647     CC=""
2648   else
2649     case $cross_compiling:$ac_tool_warned in
2650 yes:)
2651 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2652 whose name does not start with the host triplet.  If you think this
2653 configuration is useful to you, please write to autoconf@gnu.org." >&5
2654 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2655 whose name does not start with the host triplet.  If you think this
2656 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2657 ac_tool_warned=yes ;;
2658 esac
2659     CC=$ac_ct_CC
2660   fi
2661 else
2662   CC="$ac_cv_prog_CC"
2663 fi
2664
2665 if test -z "$CC"; then
2666           if test -n "$ac_tool_prefix"; then
2667     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2668 set dummy ${ac_tool_prefix}cc; ac_word=$2
2669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2671 if test "${ac_cv_prog_CC+set}" = set; then
2672   echo $ECHO_N "(cached) $ECHO_C" >&6
2673 else
2674   if test -n "$CC"; then
2675   ac_cv_prog_CC="$CC" # Let the user override the test.
2676 else
2677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678 for as_dir in $PATH
2679 do
2680   IFS=$as_save_IFS
2681   test -z "$as_dir" && as_dir=.
2682   for ac_exec_ext in '' $ac_executable_extensions; do
2683   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2684     ac_cv_prog_CC="${ac_tool_prefix}cc"
2685     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2686     break 2
2687   fi
2688 done
2689 done
2690 IFS=$as_save_IFS
2691
2692 fi
2693 fi
2694 CC=$ac_cv_prog_CC
2695 if test -n "$CC"; then
2696   { echo "$as_me:$LINENO: result: $CC" >&5
2697 echo "${ECHO_T}$CC" >&6; }
2698 else
2699   { echo "$as_me:$LINENO: result: no" >&5
2700 echo "${ECHO_T}no" >&6; }
2701 fi
2702
2703
2704   fi
2705 fi
2706 if test -z "$CC"; then
2707   # Extract the first word of "cc", so it can be a program name with args.
2708 set dummy cc; ac_word=$2
2709 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2711 if test "${ac_cv_prog_CC+set}" = set; then
2712   echo $ECHO_N "(cached) $ECHO_C" >&6
2713 else
2714   if test -n "$CC"; then
2715   ac_cv_prog_CC="$CC" # Let the user override the test.
2716 else
2717   ac_prog_rejected=no
2718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2719 for as_dir in $PATH
2720 do
2721   IFS=$as_save_IFS
2722   test -z "$as_dir" && as_dir=.
2723   for ac_exec_ext in '' $ac_executable_extensions; do
2724   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2725     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2726        ac_prog_rejected=yes
2727        continue
2728      fi
2729     ac_cv_prog_CC="cc"
2730     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2731     break 2
2732   fi
2733 done
2734 done
2735 IFS=$as_save_IFS
2736
2737 if test $ac_prog_rejected = yes; then
2738   # We found a bogon in the path, so make sure we never use it.
2739   set dummy $ac_cv_prog_CC
2740   shift
2741   if test $@%:@ != 0; then
2742     # We chose a different compiler from the bogus one.
2743     # However, it has the same basename, so the bogon will be chosen
2744     # first if we set CC to just the basename; use the full file name.
2745     shift
2746     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2747   fi
2748 fi
2749 fi
2750 fi
2751 CC=$ac_cv_prog_CC
2752 if test -n "$CC"; then
2753   { echo "$as_me:$LINENO: result: $CC" >&5
2754 echo "${ECHO_T}$CC" >&6; }
2755 else
2756   { echo "$as_me:$LINENO: result: no" >&5
2757 echo "${ECHO_T}no" >&6; }
2758 fi
2759
2760
2761 fi
2762 if test -z "$CC"; then
2763   if test -n "$ac_tool_prefix"; then
2764   for ac_prog in cl.exe
2765   do
2766     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2767 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2768 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2770 if test "${ac_cv_prog_CC+set}" = set; then
2771   echo $ECHO_N "(cached) $ECHO_C" >&6
2772 else
2773   if test -n "$CC"; then
2774   ac_cv_prog_CC="$CC" # Let the user override the test.
2775 else
2776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2777 for as_dir in $PATH
2778 do
2779   IFS=$as_save_IFS
2780   test -z "$as_dir" && as_dir=.
2781   for ac_exec_ext in '' $ac_executable_extensions; do
2782   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2783     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2784     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2785     break 2
2786   fi
2787 done
2788 done
2789 IFS=$as_save_IFS
2790
2791 fi
2792 fi
2793 CC=$ac_cv_prog_CC
2794 if test -n "$CC"; then
2795   { echo "$as_me:$LINENO: result: $CC" >&5
2796 echo "${ECHO_T}$CC" >&6; }
2797 else
2798   { echo "$as_me:$LINENO: result: no" >&5
2799 echo "${ECHO_T}no" >&6; }
2800 fi
2801
2802
2803     test -n "$CC" && break
2804   done
2805 fi
2806 if test -z "$CC"; then
2807   ac_ct_CC=$CC
2808   for ac_prog in cl.exe
2809 do
2810   # Extract the first word of "$ac_prog", so it can be a program name with args.
2811 set dummy $ac_prog; ac_word=$2
2812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2814 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2815   echo $ECHO_N "(cached) $ECHO_C" >&6
2816 else
2817   if test -n "$ac_ct_CC"; then
2818   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2819 else
2820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2821 for as_dir in $PATH
2822 do
2823   IFS=$as_save_IFS
2824   test -z "$as_dir" && as_dir=.
2825   for ac_exec_ext in '' $ac_executable_extensions; do
2826   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2827     ac_cv_prog_ac_ct_CC="$ac_prog"
2828     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2829     break 2
2830   fi
2831 done
2832 done
2833 IFS=$as_save_IFS
2834
2835 fi
2836 fi
2837 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2838 if test -n "$ac_ct_CC"; then
2839   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2840 echo "${ECHO_T}$ac_ct_CC" >&6; }
2841 else
2842   { echo "$as_me:$LINENO: result: no" >&5
2843 echo "${ECHO_T}no" >&6; }
2844 fi
2845
2846
2847   test -n "$ac_ct_CC" && break
2848 done
2849
2850   if test "x$ac_ct_CC" = x; then
2851     CC=""
2852   else
2853     case $cross_compiling:$ac_tool_warned in
2854 yes:)
2855 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2856 whose name does not start with the host triplet.  If you think this
2857 configuration is useful to you, please write to autoconf@gnu.org." >&5
2858 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2859 whose name does not start with the host triplet.  If you think this
2860 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2861 ac_tool_warned=yes ;;
2862 esac
2863     CC=$ac_ct_CC
2864   fi
2865 fi
2866
2867 fi
2868
2869
2870 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2871 See \`config.log' for more details." >&5
2872 echo "$as_me: error: no acceptable C compiler found in \$PATH
2873 See \`config.log' for more details." >&2;}
2874    { (exit 1); exit 1; }; }
2875
2876 # Provide some information about the compiler.
2877 echo "$as_me:$LINENO: checking for C compiler version" >&5
2878 ac_compiler=`set X $ac_compile; echo $2`
2879 { (ac_try="$ac_compiler --version >&5"
2880 case "(($ac_try" in
2881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2882   *) ac_try_echo=$ac_try;;
2883 esac
2884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2885   (eval "$ac_compiler --version >&5") 2>&5
2886   ac_status=$?
2887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888   (exit $ac_status); }
2889 { (ac_try="$ac_compiler -v >&5"
2890 case "(($ac_try" in
2891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2892   *) ac_try_echo=$ac_try;;
2893 esac
2894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2895   (eval "$ac_compiler -v >&5") 2>&5
2896   ac_status=$?
2897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898   (exit $ac_status); }
2899 { (ac_try="$ac_compiler -V >&5"
2900 case "(($ac_try" in
2901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2902   *) ac_try_echo=$ac_try;;
2903 esac
2904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2905   (eval "$ac_compiler -V >&5") 2>&5
2906   ac_status=$?
2907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908   (exit $ac_status); }
2909
2910 cat >conftest.$ac_ext <<_ACEOF
2911 /* confdefs.h.  */
2912 _ACEOF
2913 cat confdefs.h >>conftest.$ac_ext
2914 cat >>conftest.$ac_ext <<_ACEOF
2915 /* end confdefs.h.  */
2916
2917 int
2918 main ()
2919 {
2920
2921   ;
2922   return 0;
2923 }
2924 _ACEOF
2925 ac_clean_files_save=$ac_clean_files
2926 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2927 # Try to create an executable without -o first, disregard a.out.
2928 # It will help us diagnose broken compilers, and finding out an intuition
2929 # of exeext.
2930 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2931 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2932 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2933 #
2934 # List of possible output files, starting from the most likely.
2935 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2936 # only as a last resort.  b.out is created by i960 compilers.
2937 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2938 #
2939 # The IRIX 6 linker writes into existing files which may not be
2940 # executable, retaining their permissions.  Remove them first so a
2941 # subsequent execution test works.
2942 ac_rmfiles=
2943 for ac_file in $ac_files
2944 do
2945   case $ac_file in
2946     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2947     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2948   esac
2949 done
2950 rm -f $ac_rmfiles
2951
2952 if { (ac_try="$ac_link_default"
2953 case "(($ac_try" in
2954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2955   *) ac_try_echo=$ac_try;;
2956 esac
2957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2958   (eval "$ac_link_default") 2>&5
2959   ac_status=$?
2960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961   (exit $ac_status); }; then
2962   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2963 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2964 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2965 # so that the user can short-circuit this test for compilers unknown to
2966 # Autoconf.
2967 for ac_file in $ac_files ''
2968 do
2969   test -f "$ac_file" || continue
2970   case $ac_file in
2971     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2972         ;;
2973     [ab].out )
2974         # We found the default executable, but exeext='' is most
2975         # certainly right.
2976         break;;
2977     *.* )
2978         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2979         then :; else
2980            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2981         fi
2982         # We set ac_cv_exeext here because the later test for it is not
2983         # safe: cross compilers may not add the suffix if given an `-o'
2984         # argument, so we may need to know it at that point already.
2985         # Even if this section looks crufty: it has the advantage of
2986         # actually working.
2987         break;;
2988     * )
2989         break;;
2990   esac
2991 done
2992 test "$ac_cv_exeext" = no && ac_cv_exeext=
2993
2994 else
2995   ac_file=''
2996 fi
2997
2998 { echo "$as_me:$LINENO: result: $ac_file" >&5
2999 echo "${ECHO_T}$ac_file" >&6; }
3000 if test -z "$ac_file"; then
3001   echo "$as_me: failed program was:" >&5
3002 sed 's/^/| /' conftest.$ac_ext >&5
3003
3004 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3005 See \`config.log' for more details." >&5
3006 echo "$as_me: error: C compiler cannot create executables
3007 See \`config.log' for more details." >&2;}
3008    { (exit 77); exit 77; }; }
3009 fi
3010
3011 ac_exeext=$ac_cv_exeext
3012
3013 # Check that the compiler produces executables we can run.  If not, either
3014 # the compiler is broken, or we cross compile.
3015 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3016 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3017 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3018 # If not cross compiling, check that we can run a simple program.
3019 if test "$cross_compiling" != yes; then
3020   if { ac_try='./$ac_file'
3021   { (case "(($ac_try" in
3022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3023   *) ac_try_echo=$ac_try;;
3024 esac
3025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3026   (eval "$ac_try") 2>&5
3027   ac_status=$?
3028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029   (exit $ac_status); }; }; then
3030     cross_compiling=no
3031   else
3032     if test "$cross_compiling" = maybe; then
3033         cross_compiling=yes
3034     else
3035         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3036 If you meant to cross compile, use \`--host'.
3037 See \`config.log' for more details." >&5
3038 echo "$as_me: error: cannot run C compiled programs.
3039 If you meant to cross compile, use \`--host'.
3040 See \`config.log' for more details." >&2;}
3041    { (exit 1); exit 1; }; }
3042     fi
3043   fi
3044 fi
3045 { echo "$as_me:$LINENO: result: yes" >&5
3046 echo "${ECHO_T}yes" >&6; }
3047
3048 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3049 ac_clean_files=$ac_clean_files_save
3050 # Check that the compiler produces executables we can run.  If not, either
3051 # the compiler is broken, or we cross compile.
3052 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3053 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3054 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3055 echo "${ECHO_T}$cross_compiling" >&6; }
3056
3057 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3058 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3059 if { (ac_try="$ac_link"
3060 case "(($ac_try" in
3061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062   *) ac_try_echo=$ac_try;;
3063 esac
3064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3065   (eval "$ac_link") 2>&5
3066   ac_status=$?
3067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068   (exit $ac_status); }; then
3069   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3070 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3071 # work properly (i.e., refer to `conftest.exe'), while it won't with
3072 # `rm'.
3073 for ac_file in conftest.exe conftest conftest.*; do
3074   test -f "$ac_file" || continue
3075   case $ac_file in
3076     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3077     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3078           break;;
3079     * ) break;;
3080   esac
3081 done
3082 else
3083   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3084 See \`config.log' for more details." >&5
3085 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3086 See \`config.log' for more details." >&2;}
3087    { (exit 1); exit 1; }; }
3088 fi
3089
3090 rm -f conftest$ac_cv_exeext
3091 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3092 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3093
3094 rm -f conftest.$ac_ext
3095 EXEEXT=$ac_cv_exeext
3096 ac_exeext=$EXEEXT
3097 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3098 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3099 if test "${ac_cv_objext+set}" = set; then
3100   echo $ECHO_N "(cached) $ECHO_C" >&6
3101 else
3102   cat >conftest.$ac_ext <<_ACEOF
3103 /* confdefs.h.  */
3104 _ACEOF
3105 cat confdefs.h >>conftest.$ac_ext
3106 cat >>conftest.$ac_ext <<_ACEOF
3107 /* end confdefs.h.  */
3108
3109 int
3110 main ()
3111 {
3112
3113   ;
3114   return 0;
3115 }
3116 _ACEOF
3117 rm -f conftest.o conftest.obj
3118 if { (ac_try="$ac_compile"
3119 case "(($ac_try" in
3120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121   *) ac_try_echo=$ac_try;;
3122 esac
3123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3124   (eval "$ac_compile") 2>&5
3125   ac_status=$?
3126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127   (exit $ac_status); }; then
3128   for ac_file in conftest.o conftest.obj conftest.*; do
3129   test -f "$ac_file" || continue;
3130   case $ac_file in
3131     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3132     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3133        break;;
3134   esac
3135 done
3136 else
3137   echo "$as_me: failed program was:" >&5
3138 sed 's/^/| /' conftest.$ac_ext >&5
3139
3140 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3141 See \`config.log' for more details." >&5
3142 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3143 See \`config.log' for more details." >&2;}
3144    { (exit 1); exit 1; }; }
3145 fi
3146
3147 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3148 fi
3149 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3150 echo "${ECHO_T}$ac_cv_objext" >&6; }
3151 OBJEXT=$ac_cv_objext
3152 ac_objext=$OBJEXT
3153 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3154 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3155 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3156   echo $ECHO_N "(cached) $ECHO_C" >&6
3157 else
3158   cat >conftest.$ac_ext <<_ACEOF
3159 /* confdefs.h.  */
3160 _ACEOF
3161 cat confdefs.h >>conftest.$ac_ext
3162 cat >>conftest.$ac_ext <<_ACEOF
3163 /* end confdefs.h.  */
3164
3165 int
3166 main ()
3167 {
3168 #ifndef __GNUC__
3169        choke me
3170 #endif
3171
3172   ;
3173   return 0;
3174 }
3175 _ACEOF
3176 rm -f conftest.$ac_objext
3177 if { (ac_try="$ac_compile"
3178 case "(($ac_try" in
3179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180   *) ac_try_echo=$ac_try;;
3181 esac
3182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3183   (eval "$ac_compile") 2>conftest.er1
3184   ac_status=$?
3185   grep -v '^ *+' conftest.er1 >conftest.err
3186   rm -f conftest.er1
3187   cat conftest.err >&5
3188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189   (exit $ac_status); } && {
3190          test -z "$ac_c_werror_flag" ||
3191          test ! -s conftest.err
3192        } && test -s conftest.$ac_objext; then
3193   ac_compiler_gnu=yes
3194 else
3195   echo "$as_me: failed program was:" >&5
3196 sed 's/^/| /' conftest.$ac_ext >&5
3197
3198         ac_compiler_gnu=no
3199 fi
3200
3201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3202 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3203
3204 fi
3205 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3206 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3207 GCC=`test $ac_compiler_gnu = yes && echo yes`
3208 ac_test_CFLAGS=${CFLAGS+set}
3209 ac_save_CFLAGS=$CFLAGS
3210 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3211 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3212 if test "${ac_cv_prog_cc_g+set}" = set; then
3213   echo $ECHO_N "(cached) $ECHO_C" >&6
3214 else
3215   ac_save_c_werror_flag=$ac_c_werror_flag
3216    ac_c_werror_flag=yes
3217    ac_cv_prog_cc_g=no
3218    CFLAGS="-g"
3219    cat >conftest.$ac_ext <<_ACEOF
3220 /* confdefs.h.  */
3221 _ACEOF
3222 cat confdefs.h >>conftest.$ac_ext
3223 cat >>conftest.$ac_ext <<_ACEOF
3224 /* end confdefs.h.  */
3225
3226 int
3227 main ()
3228 {
3229
3230   ;
3231   return 0;
3232 }
3233 _ACEOF
3234 rm -f conftest.$ac_objext
3235 if { (ac_try="$ac_compile"
3236 case "(($ac_try" in
3237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238   *) ac_try_echo=$ac_try;;
3239 esac
3240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3241   (eval "$ac_compile") 2>conftest.er1
3242   ac_status=$?
3243   grep -v '^ *+' conftest.er1 >conftest.err
3244   rm -f conftest.er1
3245   cat conftest.err >&5
3246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247   (exit $ac_status); } && {
3248          test -z "$ac_c_werror_flag" ||
3249          test ! -s conftest.err
3250        } && test -s conftest.$ac_objext; then
3251   ac_cv_prog_cc_g=yes
3252 else
3253   echo "$as_me: failed program was:" >&5
3254 sed 's/^/| /' conftest.$ac_ext >&5
3255
3256         CFLAGS=""
3257       cat >conftest.$ac_ext <<_ACEOF
3258 /* confdefs.h.  */
3259 _ACEOF
3260 cat confdefs.h >>conftest.$ac_ext
3261 cat >>conftest.$ac_ext <<_ACEOF
3262 /* end confdefs.h.  */
3263
3264 int
3265 main ()
3266 {
3267
3268   ;
3269   return 0;
3270 }
3271 _ACEOF
3272 rm -f conftest.$ac_objext
3273 if { (ac_try="$ac_compile"
3274 case "(($ac_try" in
3275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3276   *) ac_try_echo=$ac_try;;
3277 esac
3278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3279   (eval "$ac_compile") 2>conftest.er1
3280   ac_status=$?
3281   grep -v '^ *+' conftest.er1 >conftest.err
3282   rm -f conftest.er1
3283   cat conftest.err >&5
3284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285   (exit $ac_status); } && {
3286          test -z "$ac_c_werror_flag" ||
3287          test ! -s conftest.err
3288        } && test -s conftest.$ac_objext; then
3289   :
3290 else
3291   echo "$as_me: failed program was:" >&5
3292 sed 's/^/| /' conftest.$ac_ext >&5
3293
3294         ac_c_werror_flag=$ac_save_c_werror_flag
3295          CFLAGS="-g"
3296          cat >conftest.$ac_ext <<_ACEOF
3297 /* confdefs.h.  */
3298 _ACEOF
3299 cat confdefs.h >>conftest.$ac_ext
3300 cat >>conftest.$ac_ext <<_ACEOF
3301 /* end confdefs.h.  */
3302
3303 int
3304 main ()
3305 {
3306
3307   ;
3308   return 0;
3309 }
3310 _ACEOF
3311 rm -f conftest.$ac_objext
3312 if { (ac_try="$ac_compile"
3313 case "(($ac_try" in
3314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3315   *) ac_try_echo=$ac_try;;
3316 esac
3317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3318   (eval "$ac_compile") 2>conftest.er1
3319   ac_status=$?
3320   grep -v '^ *+' conftest.er1 >conftest.err
3321   rm -f conftest.er1
3322   cat conftest.err >&5
3323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324   (exit $ac_status); } && {
3325          test -z "$ac_c_werror_flag" ||
3326          test ! -s conftest.err
3327        } && test -s conftest.$ac_objext; then
3328   ac_cv_prog_cc_g=yes
3329 else
3330   echo "$as_me: failed program was:" >&5
3331 sed 's/^/| /' conftest.$ac_ext >&5
3332
3333         
3334 fi
3335
3336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3337 fi
3338
3339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3340 fi
3341
3342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3343    ac_c_werror_flag=$ac_save_c_werror_flag
3344 fi
3345 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3346 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3347 if test "$ac_test_CFLAGS" = set; then
3348   CFLAGS=$ac_save_CFLAGS
3349 elif test $ac_cv_prog_cc_g = yes; then
3350   if test "$GCC" = yes; then
3351     CFLAGS="-g -O2"
3352   else
3353     CFLAGS="-g"
3354   fi
3355 else
3356   if test "$GCC" = yes; then
3357     CFLAGS="-O2"
3358   else
3359     CFLAGS=
3360   fi
3361 fi
3362 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3363 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3364 if test "${ac_cv_prog_cc_c89+set}" = set; then
3365   echo $ECHO_N "(cached) $ECHO_C" >&6
3366 else
3367   ac_cv_prog_cc_c89=no
3368 ac_save_CC=$CC
3369 cat >conftest.$ac_ext <<_ACEOF
3370 /* confdefs.h.  */
3371 _ACEOF
3372 cat confdefs.h >>conftest.$ac_ext
3373 cat >>conftest.$ac_ext <<_ACEOF
3374 /* end confdefs.h.  */
3375 #include <stdarg.h>
3376 #include <stdio.h>
3377 #include <sys/types.h>
3378 #include <sys/stat.h>
3379 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3380 struct buf { int x; };
3381 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3382 static char *e (p, i)
3383      char **p;
3384      int i;
3385 {
3386   return p[i];
3387 }
3388 static char *f (char * (*g) (char **, int), char **p, ...)
3389 {
3390   char *s;
3391   va_list v;
3392   va_start (v,p);
3393   s = g (p, va_arg (v,int));
3394   va_end (v);
3395   return s;
3396 }
3397
3398 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3399    function prototypes and stuff, but not '\xHH' hex character constants.
3400    These don't provoke an error unfortunately, instead are silently treated
3401    as 'x'.  The following induces an error, until -std is added to get
3402    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3403    array size at least.  It's necessary to write '\x00'==0 to get something
3404    that's true only with -std.  */
3405 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3406
3407 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3408    inside strings and character constants.  */
3409 #define FOO(x) 'x'
3410 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3411
3412 int test (int i, double x);
3413 struct s1 {int (*f) (int a);};
3414 struct s2 {int (*f) (double a);};
3415 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3416 int argc;
3417 char **argv;
3418 int
3419 main ()
3420 {
3421 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3422   ;
3423   return 0;
3424 }
3425 _ACEOF
3426 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3427         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3428 do
3429   CC="$ac_save_CC $ac_arg"
3430   rm -f conftest.$ac_objext
3431 if { (ac_try="$ac_compile"
3432 case "(($ac_try" in
3433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3434   *) ac_try_echo=$ac_try;;
3435 esac
3436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3437   (eval "$ac_compile") 2>conftest.er1
3438   ac_status=$?
3439   grep -v '^ *+' conftest.er1 >conftest.err
3440   rm -f conftest.er1
3441   cat conftest.err >&5
3442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443   (exit $ac_status); } && {
3444          test -z "$ac_c_werror_flag" ||
3445          test ! -s conftest.err
3446        } && test -s conftest.$ac_objext; then
3447   ac_cv_prog_cc_c89=$ac_arg
3448 else
3449   echo "$as_me: failed program was:" >&5
3450 sed 's/^/| /' conftest.$ac_ext >&5
3451
3452         
3453 fi
3454
3455 rm -f core conftest.err conftest.$ac_objext 
3456   test "x$ac_cv_prog_cc_c89" != "xno" && break
3457 done
3458 rm -f conftest.$ac_ext
3459 CC=$ac_save_CC
3460
3461 fi
3462 # AC_CACHE_VAL
3463 case "x$ac_cv_prog_cc_c89" in
3464   x)
3465     { echo "$as_me:$LINENO: result: none needed" >&5
3466 echo "${ECHO_T}none needed" >&6; } ;;
3467   xno)
3468     { echo "$as_me:$LINENO: result: unsupported" >&5
3469 echo "${ECHO_T}unsupported" >&6; } ;;
3470   *)
3471     CC="$CC $ac_cv_prog_cc_c89"
3472     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3473 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3474 esac
3475
3476
3477 ac_ext=c
3478 ac_cpp='$CPP $CPPFLAGS'
3479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3482
3483 depcc="$CC"   am_compiler_list=
3484
3485 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3486 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3487 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3488   echo $ECHO_N "(cached) $ECHO_C" >&6
3489 else
3490   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3491   # We make a subdir and do the tests there.  Otherwise we can end up
3492   # making bogus files that we don't know about and never remove.  For
3493   # instance it was reported that on HP-UX the gcc test will end up
3494   # making a dummy file named `D' -- because `-MD' means `put the output
3495   # in D'.
3496   mkdir conftest.dir
3497   # Copy depcomp to subdir because otherwise we won't find it if we're
3498   # using a relative directory.
3499   cp "$am_depcomp" conftest.dir
3500   cd conftest.dir
3501   # We will build objects and dependencies in a subdirectory because
3502   # it helps to detect inapplicable dependency modes.  For instance
3503   # both Tru64's cc and ICC support -MD to output dependencies as a
3504   # side effect of compilation, but ICC will put the dependencies in
3505   # the current directory while Tru64 will put them in the object
3506   # directory.
3507   mkdir sub
3508
3509   am_cv_CC_dependencies_compiler_type=none
3510   if test "$am_compiler_list" = ""; then
3511      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3512   fi
3513   for depmode in $am_compiler_list; do
3514     # Setup a source with many dependencies, because some compilers
3515     # like to wrap large dependency lists on column 80 (with \), and
3516     # we should not choose a depcomp mode which is confused by this.
3517     #
3518     # We need to recreate these files for each test, as the compiler may
3519     # overwrite some of them when testing with obscure command lines.
3520     # This happens at least with the AIX C compiler.
3521     : > sub/conftest.c
3522     for i in 1 2 3 4 5 6; do
3523       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3524       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3525       # Solaris 8's {/usr,}/bin/sh.
3526       touch sub/conftst$i.h
3527     done
3528     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3529
3530     case $depmode in
3531     nosideeffect)
3532       # after this tag, mechanisms are not by side-effect, so they'll
3533       # only be used when explicitly requested
3534       if test "x$enable_dependency_tracking" = xyes; then
3535         continue
3536       else
3537         break
3538       fi
3539       ;;
3540     none) break ;;
3541     esac
3542     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3543     # mode.  It turns out that the SunPro C++ compiler does not properly
3544     # handle `-M -o', and we need to detect this.
3545     if depmode=$depmode \
3546        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3547        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3548        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3549          >/dev/null 2>conftest.err &&
3550        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3551        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3552        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3553       # icc doesn't choke on unknown options, it will just issue warnings
3554       # or remarks (even with -Werror).  So we grep stderr for any message
3555       # that says an option was ignored or not supported.
3556       # When given -MP, icc 7.0 and 7.1 complain thusly:
3557       #   icc: Command line warning: ignoring option '-M'; no argument required
3558       # The diagnosis changed in icc 8.0:
3559       #   icc: Command line remark: option '-MP' not supported
3560       if (grep 'ignoring option' conftest.err ||
3561           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3562         am_cv_CC_dependencies_compiler_type=$depmode
3563         break
3564       fi
3565     fi
3566   done
3567
3568   cd ..
3569   rm -rf conftest.dir
3570 else
3571   am_cv_CC_dependencies_compiler_type=none
3572 fi
3573
3574 fi
3575 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3576 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3577 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3578
3579  
3580
3581 if 
3582   test "x$enable_dependency_tracking" != xno \
3583   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3584   am__fastdepCC_TRUE=
3585   am__fastdepCC_FALSE='#'
3586 else
3587   am__fastdepCC_TRUE='#'
3588   am__fastdepCC_FALSE=
3589 fi
3590
3591
3592
3593 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
3594 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3595 if test "${ac_cv_search_strerror+set}" = set; then
3596   echo $ECHO_N "(cached) $ECHO_C" >&6
3597 else
3598   ac_func_search_save_LIBS=$LIBS
3599 cat >conftest.$ac_ext <<_ACEOF
3600 /* confdefs.h.  */
3601 _ACEOF
3602 cat confdefs.h >>conftest.$ac_ext
3603 cat >>conftest.$ac_ext <<_ACEOF
3604 /* end confdefs.h.  */
3605
3606 /* Override any GCC internal prototype to avoid an error.
3607    Use char because int might match the return type of a GCC
3608    builtin and then its argument prototype would still apply.  */
3609 #ifdef __cplusplus
3610 extern "C"
3611 #endif
3612 char strerror ();
3613 int
3614 main ()
3615 {
3616 return strerror ();
3617   ;
3618   return 0;
3619 }
3620 _ACEOF
3621 for ac_lib in '' cposix; do
3622   if test -z "$ac_lib"; then
3623     ac_res="none required"
3624   else
3625     ac_res=-l$ac_lib
3626     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3627   fi
3628   rm -f conftest.$ac_objext conftest$ac_exeext
3629 if { (ac_try="$ac_link"
3630 case "(($ac_try" in
3631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3632   *) ac_try_echo=$ac_try;;
3633 esac
3634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3635   (eval "$ac_link") 2>conftest.er1
3636   ac_status=$?
3637   grep -v '^ *+' conftest.er1 >conftest.err
3638   rm -f conftest.er1
3639   cat conftest.err >&5
3640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641   (exit $ac_status); } && {
3642          test -z "$ac_c_werror_flag" ||
3643          test ! -s conftest.err
3644        } && test -s conftest$ac_exeext &&
3645        $as_test_x conftest$ac_exeext; then
3646   ac_cv_search_strerror=$ac_res
3647 else
3648   echo "$as_me: failed program was:" >&5
3649 sed 's/^/| /' conftest.$ac_ext >&5
3650
3651         
3652 fi
3653
3654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3655       conftest$ac_exeext 
3656   if test "${ac_cv_search_strerror+set}" = set; then
3657   break
3658 fi
3659 done
3660 if test "${ac_cv_search_strerror+set}" = set; then
3661   :
3662 else
3663   ac_cv_search_strerror=no
3664 fi
3665 rm conftest.$ac_ext
3666 LIBS=$ac_func_search_save_LIBS
3667 fi
3668 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3669 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3670 ac_res=$ac_cv_search_strerror
3671 if test "$ac_res" != no; then
3672   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3673   
3674 fi
3675
3676 ac_ext=cpp
3677 ac_cpp='$CXXCPP $CPPFLAGS'
3678 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3679 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3680 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3681 if test -z "$CXX"; then
3682   if test -n "$CCC"; then
3683     CXX=$CCC
3684   else
3685     if test -n "$ac_tool_prefix"; then
3686   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3687   do
3688     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3689 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3690 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3692 if test "${ac_cv_prog_CXX+set}" = set; then
3693   echo $ECHO_N "(cached) $ECHO_C" >&6
3694 else
3695   if test -n "$CXX"; then
3696   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3697 else
3698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3699 for as_dir in $PATH
3700 do
3701   IFS=$as_save_IFS
3702   test -z "$as_dir" && as_dir=.
3703   for ac_exec_ext in '' $ac_executable_extensions; do
3704   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3705     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3706     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3707     break 2
3708   fi
3709 done
3710 done
3711 IFS=$as_save_IFS
3712
3713 fi
3714 fi
3715 CXX=$ac_cv_prog_CXX
3716 if test -n "$CXX"; then
3717   { echo "$as_me:$LINENO: result: $CXX" >&5
3718 echo "${ECHO_T}$CXX" >&6; }
3719 else
3720   { echo "$as_me:$LINENO: result: no" >&5
3721 echo "${ECHO_T}no" >&6; }
3722 fi
3723
3724
3725     test -n "$CXX" && break
3726   done
3727 fi
3728 if test -z "$CXX"; then
3729   ac_ct_CXX=$CXX
3730   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3731 do
3732   # Extract the first word of "$ac_prog", so it can be a program name with args.
3733 set dummy $ac_prog; ac_word=$2
3734 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3736 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3737   echo $ECHO_N "(cached) $ECHO_C" >&6
3738 else
3739   if test -n "$ac_ct_CXX"; then
3740   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3741 else
3742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3743 for as_dir in $PATH
3744 do
3745   IFS=$as_save_IFS
3746   test -z "$as_dir" && as_dir=.
3747   for ac_exec_ext in '' $ac_executable_extensions; do
3748   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3749     ac_cv_prog_ac_ct_CXX="$ac_prog"
3750     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3751     break 2
3752   fi
3753 done
3754 done
3755 IFS=$as_save_IFS
3756
3757 fi
3758 fi
3759 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3760 if test -n "$ac_ct_CXX"; then
3761   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3762 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3763 else
3764   { echo "$as_me:$LINENO: result: no" >&5
3765 echo "${ECHO_T}no" >&6; }
3766 fi
3767
3768
3769   test -n "$ac_ct_CXX" && break
3770 done
3771
3772   if test "x$ac_ct_CXX" = x; then
3773     CXX="g++"
3774   else
3775     case $cross_compiling:$ac_tool_warned in
3776 yes:)
3777 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3778 whose name does not start with the host triplet.  If you think this
3779 configuration is useful to you, please write to autoconf@gnu.org." >&5
3780 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3781 whose name does not start with the host triplet.  If you think this
3782 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3783 ac_tool_warned=yes ;;
3784 esac
3785     CXX=$ac_ct_CXX
3786   fi
3787 fi
3788
3789   fi
3790 fi
3791 # Provide some information about the compiler.
3792 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3793 ac_compiler=`set X $ac_compile; echo $2`
3794 { (ac_try="$ac_compiler --version >&5"
3795 case "(($ac_try" in
3796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3797   *) ac_try_echo=$ac_try;;
3798 esac
3799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3800   (eval "$ac_compiler --version >&5") 2>&5
3801   ac_status=$?
3802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803   (exit $ac_status); }
3804 { (ac_try="$ac_compiler -v >&5"
3805 case "(($ac_try" in
3806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3807   *) ac_try_echo=$ac_try;;
3808 esac
3809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3810   (eval "$ac_compiler -v >&5") 2>&5
3811   ac_status=$?
3812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813   (exit $ac_status); }
3814 { (ac_try="$ac_compiler -V >&5"
3815 case "(($ac_try" in
3816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3817   *) ac_try_echo=$ac_try;;
3818 esac
3819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3820   (eval "$ac_compiler -V >&5") 2>&5
3821   ac_status=$?
3822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823   (exit $ac_status); }
3824
3825 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3826 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3827 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3828   echo $ECHO_N "(cached) $ECHO_C" >&6
3829 else
3830   cat >conftest.$ac_ext <<_ACEOF
3831 /* confdefs.h.  */
3832 _ACEOF
3833 cat confdefs.h >>conftest.$ac_ext
3834 cat >>conftest.$ac_ext <<_ACEOF
3835 /* end confdefs.h.  */
3836
3837 int
3838 main ()
3839 {
3840 #ifndef __GNUC__
3841        choke me
3842 #endif
3843
3844   ;
3845   return 0;
3846 }
3847 _ACEOF
3848 rm -f conftest.$ac_objext
3849 if { (ac_try="$ac_compile"
3850 case "(($ac_try" in
3851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3852   *) ac_try_echo=$ac_try;;
3853 esac
3854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3855   (eval "$ac_compile") 2>conftest.er1
3856   ac_status=$?
3857   grep -v '^ *+' conftest.er1 >conftest.err
3858   rm -f conftest.er1
3859   cat conftest.err >&5
3860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861   (exit $ac_status); } && {
3862          test -z "$ac_cxx_werror_flag" ||
3863          test ! -s conftest.err
3864        } && test -s conftest.$ac_objext; then
3865   ac_compiler_gnu=yes
3866 else
3867   echo "$as_me: failed program was:" >&5
3868 sed 's/^/| /' conftest.$ac_ext >&5
3869
3870         ac_compiler_gnu=no
3871 fi
3872
3873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3874 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3875
3876 fi
3877 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3878 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3879 GXX=`test $ac_compiler_gnu = yes && echo yes`
3880 ac_test_CXXFLAGS=${CXXFLAGS+set}
3881 ac_save_CXXFLAGS=$CXXFLAGS
3882 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3883 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3884 if test "${ac_cv_prog_cxx_g+set}" = set; then
3885   echo $ECHO_N "(cached) $ECHO_C" >&6
3886 else
3887   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3888    ac_cxx_werror_flag=yes
3889    ac_cv_prog_cxx_g=no
3890    CXXFLAGS="-g"
3891    cat >conftest.$ac_ext <<_ACEOF
3892 /* confdefs.h.  */
3893 _ACEOF
3894 cat confdefs.h >>conftest.$ac_ext
3895 cat >>conftest.$ac_ext <<_ACEOF
3896 /* end confdefs.h.  */
3897
3898 int
3899 main ()
3900 {
3901
3902   ;
3903   return 0;
3904 }
3905 _ACEOF
3906 rm -f conftest.$ac_objext
3907 if { (ac_try="$ac_compile"
3908 case "(($ac_try" in
3909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3910   *) ac_try_echo=$ac_try;;
3911 esac
3912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3913   (eval "$ac_compile") 2>conftest.er1
3914   ac_status=$?
3915   grep -v '^ *+' conftest.er1 >conftest.err
3916   rm -f conftest.er1
3917   cat conftest.err >&5
3918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919   (exit $ac_status); } && {
3920          test -z "$ac_cxx_werror_flag" ||
3921          test ! -s conftest.err
3922        } && test -s conftest.$ac_objext; then
3923   ac_cv_prog_cxx_g=yes
3924 else
3925   echo "$as_me: failed program was:" >&5
3926 sed 's/^/| /' conftest.$ac_ext >&5
3927
3928         CXXFLAGS=""
3929       cat >conftest.$ac_ext <<_ACEOF
3930 /* confdefs.h.  */
3931 _ACEOF
3932 cat confdefs.h >>conftest.$ac_ext
3933 cat >>conftest.$ac_ext <<_ACEOF
3934 /* end confdefs.h.  */
3935
3936 int
3937 main ()
3938 {
3939
3940   ;
3941   return 0;
3942 }
3943 _ACEOF
3944 rm -f conftest.$ac_objext
3945 if { (ac_try="$ac_compile"
3946 case "(($ac_try" in
3947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3948   *) ac_try_echo=$ac_try;;
3949 esac
3950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3951   (eval "$ac_compile") 2>conftest.er1
3952   ac_status=$?
3953   grep -v '^ *+' conftest.er1 >conftest.err
3954   rm -f conftest.er1
3955   cat conftest.err >&5
3956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957   (exit $ac_status); } && {
3958          test -z "$ac_cxx_werror_flag" ||
3959          test ! -s conftest.err
3960        } && test -s conftest.$ac_objext; then
3961   :
3962 else
3963   echo "$as_me: failed program was:" >&5
3964 sed 's/^/| /' conftest.$ac_ext >&5
3965
3966         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3967          CXXFLAGS="-g"
3968          cat >conftest.$ac_ext <<_ACEOF
3969 /* confdefs.h.  */
3970 _ACEOF
3971 cat confdefs.h >>conftest.$ac_ext
3972 cat >>conftest.$ac_ext <<_ACEOF
3973 /* end confdefs.h.  */
3974
3975 int
3976 main ()
3977 {
3978
3979   ;
3980   return 0;
3981 }
3982 _ACEOF
3983 rm -f conftest.$ac_objext
3984 if { (ac_try="$ac_compile"
3985 case "(($ac_try" in
3986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3987   *) ac_try_echo=$ac_try;;
3988 esac
3989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3990   (eval "$ac_compile") 2>conftest.er1
3991   ac_status=$?
3992   grep -v '^ *+' conftest.er1 >conftest.err
3993   rm -f conftest.er1
3994   cat conftest.err >&5
3995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996   (exit $ac_status); } && {
3997          test -z "$ac_cxx_werror_flag" ||
3998          test ! -s conftest.err
3999        } && test -s conftest.$ac_objext; then
4000   ac_cv_prog_cxx_g=yes
4001 else
4002   echo "$as_me: failed program was:" >&5
4003 sed 's/^/| /' conftest.$ac_ext >&5
4004
4005         
4006 fi
4007
4008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4009 fi
4010
4011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4012 fi
4013
4014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4015    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4016 fi
4017 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4018 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4019 if test "$ac_test_CXXFLAGS" = set; then
4020   CXXFLAGS=$ac_save_CXXFLAGS
4021 elif test $ac_cv_prog_cxx_g = yes; then
4022   if test "$GXX" = yes; then
4023     CXXFLAGS="-g -O2"
4024   else
4025     CXXFLAGS="-g"
4026   fi
4027 else
4028   if test "$GXX" = yes; then
4029     CXXFLAGS="-O2"
4030   else
4031     CXXFLAGS=
4032   fi
4033 fi
4034 ac_ext=c
4035 ac_cpp='$CPP $CPPFLAGS'
4036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4039
4040 depcc="$CXX"  am_compiler_list=
4041
4042 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4043 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4044 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4045   echo $ECHO_N "(cached) $ECHO_C" >&6
4046 else
4047   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4048   # We make a subdir and do the tests there.  Otherwise we can end up
4049   # making bogus files that we don't know about and never remove.  For
4050   # instance it was reported that on HP-UX the gcc test will end up
4051   # making a dummy file named `D' -- because `-MD' means `put the output
4052   # in D'.
4053   mkdir conftest.dir
4054   # Copy depcomp to subdir because otherwise we won't find it if we're
4055   # using a relative directory.
4056   cp "$am_depcomp" conftest.dir
4057   cd conftest.dir
4058   # We will build objects and dependencies in a subdirectory because
4059   # it helps to detect inapplicable dependency modes.  For instance
4060   # both Tru64's cc and ICC support -MD to output dependencies as a
4061   # side effect of compilation, but ICC will put the dependencies in
4062   # the current directory while Tru64 will put them in the object
4063   # directory.
4064   mkdir sub
4065
4066   am_cv_CXX_dependencies_compiler_type=none
4067   if test "$am_compiler_list" = ""; then
4068      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4069   fi
4070   for depmode in $am_compiler_list; do
4071     # Setup a source with many dependencies, because some compilers
4072     # like to wrap large dependency lists on column 80 (with \), and
4073     # we should not choose a depcomp mode which is confused by this.
4074     #
4075     # We need to recreate these files for each test, as the compiler may
4076     # overwrite some of them when testing with obscure command lines.
4077     # This happens at least with the AIX C compiler.
4078     : > sub/conftest.c
4079     for i in 1 2 3 4 5 6; do
4080       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4081       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4082       # Solaris 8's {/usr,}/bin/sh.
4083       touch sub/conftst$i.h
4084     done
4085     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4086
4087     case $depmode in
4088     nosideeffect)
4089       # after this tag, mechanisms are not by side-effect, so they'll
4090       # only be used when explicitly requested
4091       if test "x$enable_dependency_tracking" = xyes; then
4092         continue
4093       else
4094         break
4095       fi
4096       ;;
4097     none) break ;;
4098     esac
4099     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4100     # mode.  It turns out that the SunPro C++ compiler does not properly
4101     # handle `-M -o', and we need to detect this.
4102     if depmode=$depmode \
4103        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4104        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4105        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4106          >/dev/null 2>conftest.err &&
4107        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4108        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4109        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4110       # icc doesn't choke on unknown options, it will just issue warnings
4111       # or remarks (even with -Werror).  So we grep stderr for any message
4112       # that says an option was ignored or not supported.
4113       # When given -MP, icc 7.0 and 7.1 complain thusly:
4114       #   icc: Command line warning: ignoring option '-M'; no argument required
4115       # The diagnosis changed in icc 8.0:
4116       #   icc: Command line remark: option '-MP' not supported
4117       if (grep 'ignoring option' conftest.err ||
4118           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4119         am_cv_CXX_dependencies_compiler_type=$depmode
4120         break
4121       fi
4122     fi
4123   done
4124
4125   cd ..
4126   rm -rf conftest.dir
4127 else
4128   am_cv_CXX_dependencies_compiler_type=none
4129 fi
4130
4131 fi
4132 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4133 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4134 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4135
4136  
4137
4138 if 
4139   test "x$enable_dependency_tracking" != xno \
4140   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4141   am__fastdepCXX_TRUE=
4142   am__fastdepCXX_FALSE='#'
4143 else
4144   am__fastdepCXX_TRUE='#'
4145   am__fastdepCXX_FALSE=
4146 fi
4147
4148
4149 ac_ext=c
4150 ac_cpp='$CPP $CPPFLAGS'
4151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4154 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4155 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4156 # On Suns, sometimes $CPP names a directory.
4157 if test -n "$CPP" && test -d "$CPP"; then
4158   CPP=
4159 fi
4160 if test -z "$CPP"; then
4161   if test "${ac_cv_prog_CPP+set}" = set; then
4162   echo $ECHO_N "(cached) $ECHO_C" >&6
4163 else
4164       # Double quotes because CPP needs to be expanded
4165     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4166     do
4167       ac_preproc_ok=false
4168 for ac_c_preproc_warn_flag in '' yes
4169 do
4170   # Use a header file that comes with gcc, so configuring glibc
4171   # with a fresh cross-compiler works.
4172   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4173   # <limits.h> exists even on freestanding compilers.
4174   # On the NeXT, cc -E runs the code through the compiler's parser,
4175   # not just through cpp. "Syntax error" is here to catch this case.
4176   cat >conftest.$ac_ext <<_ACEOF
4177 /* confdefs.h.  */
4178 _ACEOF
4179 cat confdefs.h >>conftest.$ac_ext
4180 cat >>conftest.$ac_ext <<_ACEOF
4181 /* end confdefs.h.  */
4182 @%:@ifdef __STDC__
4183 @%:@ include <limits.h>
4184 @%:@else
4185 @%:@ include <assert.h>
4186 @%:@endif
4187                      Syntax error
4188 _ACEOF
4189 if { (ac_try="$ac_cpp conftest.$ac_ext"
4190 case "(($ac_try" in
4191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4192   *) ac_try_echo=$ac_try;;
4193 esac
4194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4195   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4196   ac_status=$?
4197   grep -v '^ *+' conftest.er1 >conftest.err
4198   rm -f conftest.er1
4199   cat conftest.err >&5
4200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201   (exit $ac_status); } >/dev/null && {
4202          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4203          test ! -s conftest.err
4204        }; then
4205   :
4206 else
4207   echo "$as_me: failed program was:" >&5
4208 sed 's/^/| /' conftest.$ac_ext >&5
4209
4210   # Broken: fails on valid input.
4211 continue
4212 fi
4213
4214 rm -f conftest.err conftest.$ac_ext
4215
4216   # OK, works on sane cases.  Now check whether nonexistent headers
4217   # can be detected and how.
4218   cat >conftest.$ac_ext <<_ACEOF
4219 /* confdefs.h.  */
4220 _ACEOF
4221 cat confdefs.h >>conftest.$ac_ext
4222 cat >>conftest.$ac_ext <<_ACEOF
4223 /* end confdefs.h.  */
4224 @%:@include <ac_nonexistent.h>
4225 _ACEOF
4226 if { (ac_try="$ac_cpp conftest.$ac_ext"
4227 case "(($ac_try" in
4228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4229   *) ac_try_echo=$ac_try;;
4230 esac
4231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4232   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4233   ac_status=$?
4234   grep -v '^ *+' conftest.er1 >conftest.err
4235   rm -f conftest.er1
4236   cat conftest.err >&5
4237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238   (exit $ac_status); } >/dev/null && {
4239          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4240          test ! -s conftest.err
4241        }; then
4242   # Broken: success on invalid input.
4243 continue
4244 else
4245   echo "$as_me: failed program was:" >&5
4246 sed 's/^/| /' conftest.$ac_ext >&5
4247
4248   # Passes both tests.
4249 ac_preproc_ok=:
4250 break
4251 fi
4252
4253 rm -f conftest.err conftest.$ac_ext
4254
4255 done
4256 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4257 rm -f conftest.err conftest.$ac_ext
4258 if $ac_preproc_ok; then
4259   break
4260 fi
4261
4262     done
4263     ac_cv_prog_CPP=$CPP
4264   
4265 fi
4266   CPP=$ac_cv_prog_CPP
4267 else
4268   ac_cv_prog_CPP=$CPP
4269 fi
4270 { echo "$as_me:$LINENO: result: $CPP" >&5
4271 echo "${ECHO_T}$CPP" >&6; }
4272 ac_preproc_ok=false
4273 for ac_c_preproc_warn_flag in '' yes
4274 do
4275   # Use a header file that comes with gcc, so configuring glibc
4276   # with a fresh cross-compiler works.
4277   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4278   # <limits.h> exists even on freestanding compilers.
4279   # On the NeXT, cc -E runs the code through the compiler's parser,
4280   # not just through cpp. "Syntax error" is here to catch this case.
4281   cat >conftest.$ac_ext <<_ACEOF
4282 /* confdefs.h.  */
4283 _ACEOF
4284 cat confdefs.h >>conftest.$ac_ext
4285 cat >>conftest.$ac_ext <<_ACEOF
4286 /* end confdefs.h.  */
4287 @%:@ifdef __STDC__
4288 @%:@ include <limits.h>
4289 @%:@else
4290 @%:@ include <assert.h>
4291 @%:@endif
4292                      Syntax error
4293 _ACEOF
4294 if { (ac_try="$ac_cpp conftest.$ac_ext"
4295 case "(($ac_try" in
4296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4297   *) ac_try_echo=$ac_try;;
4298 esac
4299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4300   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4301   ac_status=$?
4302   grep -v '^ *+' conftest.er1 >conftest.err
4303   rm -f conftest.er1
4304   cat conftest.err >&5
4305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306   (exit $ac_status); } >/dev/null && {
4307          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4308          test ! -s conftest.err
4309        }; then
4310   :
4311 else
4312   echo "$as_me: failed program was:" >&5
4313 sed 's/^/| /' conftest.$ac_ext >&5
4314
4315   # Broken: fails on valid input.
4316 continue
4317 fi
4318
4319 rm -f conftest.err conftest.$ac_ext
4320
4321   # OK, works on sane cases.  Now check whether nonexistent headers
4322   # can be detected and how.
4323   cat >conftest.$ac_ext <<_ACEOF
4324 /* confdefs.h.  */
4325 _ACEOF
4326 cat confdefs.h >>conftest.$ac_ext
4327 cat >>conftest.$ac_ext <<_ACEOF
4328 /* end confdefs.h.  */
4329 @%:@include <ac_nonexistent.h>
4330 _ACEOF
4331 if { (ac_try="$ac_cpp conftest.$ac_ext"
4332 case "(($ac_try" in
4333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4334   *) ac_try_echo=$ac_try;;
4335 esac
4336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4337   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4338   ac_status=$?
4339   grep -v '^ *+' conftest.er1 >conftest.err
4340   rm -f conftest.er1
4341   cat conftest.err >&5
4342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343   (exit $ac_status); } >/dev/null && {
4344          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4345          test ! -s conftest.err
4346        }; then
4347   # Broken: success on invalid input.
4348 continue
4349 else
4350   echo "$as_me: failed program was:" >&5
4351 sed 's/^/| /' conftest.$ac_ext >&5
4352
4353   # Passes both tests.
4354 ac_preproc_ok=:
4355 break
4356 fi
4357
4358 rm -f conftest.err conftest.$ac_ext
4359
4360 done
4361 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4362 rm -f conftest.err conftest.$ac_ext
4363 if $ac_preproc_ok; then
4364   :
4365 else
4366   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4367 See \`config.log' for more details." >&5
4368 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4369 See \`config.log' for more details." >&2;}
4370    { (exit 1); exit 1; }; }
4371 fi
4372
4373 ac_ext=c
4374 ac_cpp='$CPP $CPPFLAGS'
4375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4378
4379 ac_ext=c
4380 ac_cpp='$CPP $CPPFLAGS'
4381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4384 if test -n "$ac_tool_prefix"; then
4385   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4386 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4389 if test "${ac_cv_prog_CC+set}" = set; then
4390   echo $ECHO_N "(cached) $ECHO_C" >&6
4391 else
4392   if test -n "$CC"; then
4393   ac_cv_prog_CC="$CC" # Let the user override the test.
4394 else
4395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396 for as_dir in $PATH
4397 do
4398   IFS=$as_save_IFS
4399   test -z "$as_dir" && as_dir=.
4400   for ac_exec_ext in '' $ac_executable_extensions; do
4401   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4402     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4403     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4404     break 2
4405   fi
4406 done
4407 done
4408 IFS=$as_save_IFS
4409
4410 fi
4411 fi
4412 CC=$ac_cv_prog_CC
4413 if test -n "$CC"; then
4414   { echo "$as_me:$LINENO: result: $CC" >&5
4415 echo "${ECHO_T}$CC" >&6; }
4416 else
4417   { echo "$as_me:$LINENO: result: no" >&5
4418 echo "${ECHO_T}no" >&6; }
4419 fi
4420
4421
4422 fi
4423 if test -z "$ac_cv_prog_CC"; then
4424   ac_ct_CC=$CC
4425   # Extract the first word of "gcc", so it can be a program name with args.
4426 set dummy gcc; ac_word=$2
4427 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4429 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4430   echo $ECHO_N "(cached) $ECHO_C" >&6
4431 else
4432   if test -n "$ac_ct_CC"; then
4433   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4434 else
4435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4436 for as_dir in $PATH
4437 do
4438   IFS=$as_save_IFS
4439   test -z "$as_dir" && as_dir=.
4440   for ac_exec_ext in '' $ac_executable_extensions; do
4441   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4442     ac_cv_prog_ac_ct_CC="gcc"
4443     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4444     break 2
4445   fi
4446 done
4447 done
4448 IFS=$as_save_IFS
4449
4450 fi
4451 fi
4452 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4453 if test -n "$ac_ct_CC"; then
4454   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4455 echo "${ECHO_T}$ac_ct_CC" >&6; }
4456 else
4457   { echo "$as_me:$LINENO: result: no" >&5
4458 echo "${ECHO_T}no" >&6; }
4459 fi
4460
4461   if test "x$ac_ct_CC" = x; then
4462     CC=""
4463   else
4464     case $cross_compiling:$ac_tool_warned in
4465 yes:)
4466 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4467 whose name does not start with the host triplet.  If you think this
4468 configuration is useful to you, please write to autoconf@gnu.org." >&5
4469 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4470 whose name does not start with the host triplet.  If you think this
4471 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4472 ac_tool_warned=yes ;;
4473 esac
4474     CC=$ac_ct_CC
4475   fi
4476 else
4477   CC="$ac_cv_prog_CC"
4478 fi
4479
4480 if test -z "$CC"; then
4481           if test -n "$ac_tool_prefix"; then
4482     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4483 set dummy ${ac_tool_prefix}cc; ac_word=$2
4484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4486 if test "${ac_cv_prog_CC+set}" = set; then
4487   echo $ECHO_N "(cached) $ECHO_C" >&6
4488 else
4489   if test -n "$CC"; then
4490   ac_cv_prog_CC="$CC" # Let the user override the test.
4491 else
4492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4493 for as_dir in $PATH
4494 do
4495   IFS=$as_save_IFS
4496   test -z "$as_dir" && as_dir=.
4497   for ac_exec_ext in '' $ac_executable_extensions; do
4498   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4499     ac_cv_prog_CC="${ac_tool_prefix}cc"
4500     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4501     break 2
4502   fi
4503 done
4504 done
4505 IFS=$as_save_IFS
4506
4507 fi
4508 fi
4509 CC=$ac_cv_prog_CC
4510 if test -n "$CC"; then
4511   { echo "$as_me:$LINENO: result: $CC" >&5
4512 echo "${ECHO_T}$CC" >&6; }
4513 else
4514   { echo "$as_me:$LINENO: result: no" >&5
4515 echo "${ECHO_T}no" >&6; }
4516 fi
4517
4518
4519   fi
4520 fi
4521 if test -z "$CC"; then
4522   # Extract the first word of "cc", so it can be a program name with args.
4523 set dummy cc; ac_word=$2
4524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4526 if test "${ac_cv_prog_CC+set}" = set; then
4527   echo $ECHO_N "(cached) $ECHO_C" >&6
4528 else
4529   if test -n "$CC"; then
4530   ac_cv_prog_CC="$CC" # Let the user override the test.
4531 else
4532   ac_prog_rejected=no
4533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4534 for as_dir in $PATH
4535 do
4536   IFS=$as_save_IFS
4537   test -z "$as_dir" && as_dir=.
4538   for ac_exec_ext in '' $ac_executable_extensions; do
4539   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4540     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4541        ac_prog_rejected=yes
4542        continue
4543      fi
4544     ac_cv_prog_CC="cc"
4545     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4546     break 2
4547   fi
4548 done
4549 done
4550 IFS=$as_save_IFS
4551
4552 if test $ac_prog_rejected = yes; then
4553   # We found a bogon in the path, so make sure we never use it.
4554   set dummy $ac_cv_prog_CC
4555   shift
4556   if test $@%:@ != 0; then
4557     # We chose a different compiler from the bogus one.
4558     # However, it has the same basename, so the bogon will be chosen
4559     # first if we set CC to just the basename; use the full file name.
4560     shift
4561     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4562   fi
4563 fi
4564 fi
4565 fi
4566 CC=$ac_cv_prog_CC
4567 if test -n "$CC"; then
4568   { echo "$as_me:$LINENO: result: $CC" >&5
4569 echo "${ECHO_T}$CC" >&6; }
4570 else
4571   { echo "$as_me:$LINENO: result: no" >&5
4572 echo "${ECHO_T}no" >&6; }
4573 fi
4574
4575
4576 fi
4577 if test -z "$CC"; then
4578   if test -n "$ac_tool_prefix"; then
4579   for ac_prog in cl.exe
4580   do
4581     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4582 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4585 if test "${ac_cv_prog_CC+set}" = set; then
4586   echo $ECHO_N "(cached) $ECHO_C" >&6
4587 else
4588   if test -n "$CC"; then
4589   ac_cv_prog_CC="$CC" # Let the user override the test.
4590 else
4591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4592 for as_dir in $PATH
4593 do
4594   IFS=$as_save_IFS
4595   test -z "$as_dir" && as_dir=.
4596   for ac_exec_ext in '' $ac_executable_extensions; do
4597   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4598     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4599     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4600     break 2
4601   fi
4602 done
4603 done
4604 IFS=$as_save_IFS
4605
4606 fi
4607 fi
4608 CC=$ac_cv_prog_CC
4609 if test -n "$CC"; then
4610   { echo "$as_me:$LINENO: result: $CC" >&5
4611 echo "${ECHO_T}$CC" >&6; }
4612 else
4613   { echo "$as_me:$LINENO: result: no" >&5
4614 echo "${ECHO_T}no" >&6; }
4615 fi
4616
4617
4618     test -n "$CC" && break
4619   done
4620 fi
4621 if test -z "$CC"; then
4622   ac_ct_CC=$CC
4623   for ac_prog in cl.exe
4624 do
4625   # Extract the first word of "$ac_prog", so it can be a program name with args.
4626 set dummy $ac_prog; ac_word=$2
4627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4629 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4630   echo $ECHO_N "(cached) $ECHO_C" >&6
4631 else
4632   if test -n "$ac_ct_CC"; then
4633   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4634 else
4635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4636 for as_dir in $PATH
4637 do
4638   IFS=$as_save_IFS
4639   test -z "$as_dir" && as_dir=.
4640   for ac_exec_ext in '' $ac_executable_extensions; do
4641   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4642     ac_cv_prog_ac_ct_CC="$ac_prog"
4643     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4644     break 2
4645   fi
4646 done
4647 done
4648 IFS=$as_save_IFS
4649
4650 fi
4651 fi
4652 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4653 if test -n "$ac_ct_CC"; then
4654   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4655 echo "${ECHO_T}$ac_ct_CC" >&6; }
4656 else
4657   { echo "$as_me:$LINENO: result: no" >&5
4658 echo "${ECHO_T}no" >&6; }
4659 fi
4660
4661
4662   test -n "$ac_ct_CC" && break
4663 done
4664
4665   if test "x$ac_ct_CC" = x; then
4666     CC=""
4667   else
4668     case $cross_compiling:$ac_tool_warned in
4669 yes:)
4670 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4671 whose name does not start with the host triplet.  If you think this
4672 configuration is useful to you, please write to autoconf@gnu.org." >&5
4673 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4674 whose name does not start with the host triplet.  If you think this
4675 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4676 ac_tool_warned=yes ;;
4677 esac
4678     CC=$ac_ct_CC
4679   fi
4680 fi
4681
4682 fi
4683
4684
4685 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4686 See \`config.log' for more details." >&5
4687 echo "$as_me: error: no acceptable C compiler found in \$PATH
4688 See \`config.log' for more details." >&2;}
4689    { (exit 1); exit 1; }; }
4690
4691 # Provide some information about the compiler.
4692 echo "$as_me:$LINENO: checking for C compiler version" >&5
4693 ac_compiler=`set X $ac_compile; echo $2`
4694 { (ac_try="$ac_compiler --version >&5"
4695 case "(($ac_try" in
4696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4697   *) ac_try_echo=$ac_try;;
4698 esac
4699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4700   (eval "$ac_compiler --version >&5") 2>&5
4701   ac_status=$?
4702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703   (exit $ac_status); }
4704 { (ac_try="$ac_compiler -v >&5"
4705 case "(($ac_try" in
4706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4707   *) ac_try_echo=$ac_try;;
4708 esac
4709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4710   (eval "$ac_compiler -v >&5") 2>&5
4711   ac_status=$?
4712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713   (exit $ac_status); }
4714 { (ac_try="$ac_compiler -V >&5"
4715 case "(($ac_try" in
4716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4717   *) ac_try_echo=$ac_try;;
4718 esac
4719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4720   (eval "$ac_compiler -V >&5") 2>&5
4721   ac_status=$?
4722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723   (exit $ac_status); }
4724
4725 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4726 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4727 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4728   echo $ECHO_N "(cached) $ECHO_C" >&6
4729 else
4730   cat >conftest.$ac_ext <<_ACEOF
4731 /* confdefs.h.  */
4732 _ACEOF
4733 cat confdefs.h >>conftest.$ac_ext
4734 cat >>conftest.$ac_ext <<_ACEOF
4735 /* end confdefs.h.  */
4736
4737 int
4738 main ()
4739 {
4740 #ifndef __GNUC__
4741        choke me
4742 #endif
4743
4744   ;
4745   return 0;
4746 }
4747 _ACEOF
4748 rm -f conftest.$ac_objext
4749 if { (ac_try="$ac_compile"
4750 case "(($ac_try" in
4751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4752   *) ac_try_echo=$ac_try;;
4753 esac
4754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4755   (eval "$ac_compile") 2>conftest.er1
4756   ac_status=$?
4757   grep -v '^ *+' conftest.er1 >conftest.err
4758   rm -f conftest.er1
4759   cat conftest.err >&5
4760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761   (exit $ac_status); } && {
4762          test -z "$ac_c_werror_flag" ||
4763          test ! -s conftest.err
4764        } && test -s conftest.$ac_objext; then
4765   ac_compiler_gnu=yes
4766 else
4767   echo "$as_me: failed program was:" >&5
4768 sed 's/^/| /' conftest.$ac_ext >&5
4769
4770         ac_compiler_gnu=no
4771 fi
4772
4773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4774 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4775
4776 fi
4777 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4778 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4779 GCC=`test $ac_compiler_gnu = yes && echo yes`
4780 ac_test_CFLAGS=${CFLAGS+set}
4781 ac_save_CFLAGS=$CFLAGS
4782 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4783 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4784 if test "${ac_cv_prog_cc_g+set}" = set; then
4785   echo $ECHO_N "(cached) $ECHO_C" >&6
4786 else
4787   ac_save_c_werror_flag=$ac_c_werror_flag
4788    ac_c_werror_flag=yes
4789    ac_cv_prog_cc_g=no
4790    CFLAGS="-g"
4791    cat >conftest.$ac_ext <<_ACEOF
4792 /* confdefs.h.  */
4793 _ACEOF
4794 cat confdefs.h >>conftest.$ac_ext
4795 cat >>conftest.$ac_ext <<_ACEOF
4796 /* end confdefs.h.  */
4797
4798 int
4799 main ()
4800 {
4801
4802   ;
4803   return 0;
4804 }
4805 _ACEOF
4806 rm -f conftest.$ac_objext
4807 if { (ac_try="$ac_compile"
4808 case "(($ac_try" in
4809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4810   *) ac_try_echo=$ac_try;;
4811 esac
4812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4813   (eval "$ac_compile") 2>conftest.er1
4814   ac_status=$?
4815   grep -v '^ *+' conftest.er1 >conftest.err
4816   rm -f conftest.er1
4817   cat conftest.err >&5
4818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819   (exit $ac_status); } && {
4820          test -z "$ac_c_werror_flag" ||
4821          test ! -s conftest.err
4822        } && test -s conftest.$ac_objext; then
4823   ac_cv_prog_cc_g=yes
4824 else
4825   echo "$as_me: failed program was:" >&5
4826 sed 's/^/| /' conftest.$ac_ext >&5
4827
4828         CFLAGS=""
4829       cat >conftest.$ac_ext <<_ACEOF
4830 /* confdefs.h.  */
4831 _ACEOF
4832 cat confdefs.h >>conftest.$ac_ext
4833 cat >>conftest.$ac_ext <<_ACEOF
4834 /* end confdefs.h.  */
4835
4836 int
4837 main ()
4838 {
4839
4840   ;
4841   return 0;
4842 }
4843 _ACEOF
4844 rm -f conftest.$ac_objext
4845 if { (ac_try="$ac_compile"
4846 case "(($ac_try" in
4847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4848   *) ac_try_echo=$ac_try;;
4849 esac
4850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4851   (eval "$ac_compile") 2>conftest.er1
4852   ac_status=$?
4853   grep -v '^ *+' conftest.er1 >conftest.err
4854   rm -f conftest.er1
4855   cat conftest.err >&5
4856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857   (exit $ac_status); } && {
4858          test -z "$ac_c_werror_flag" ||
4859          test ! -s conftest.err
4860        } && test -s conftest.$ac_objext; then
4861   :
4862 else
4863   echo "$as_me: failed program was:" >&5
4864 sed 's/^/| /' conftest.$ac_ext >&5
4865
4866         ac_c_werror_flag=$ac_save_c_werror_flag
4867          CFLAGS="-g"
4868          cat >conftest.$ac_ext <<_ACEOF
4869 /* confdefs.h.  */
4870 _ACEOF
4871 cat confdefs.h >>conftest.$ac_ext
4872 cat >>conftest.$ac_ext <<_ACEOF
4873 /* end confdefs.h.  */
4874
4875 int
4876 main ()
4877 {
4878
4879   ;
4880   return 0;
4881 }
4882 _ACEOF
4883 rm -f conftest.$ac_objext
4884 if { (ac_try="$ac_compile"
4885 case "(($ac_try" in
4886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4887   *) ac_try_echo=$ac_try;;
4888 esac
4889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4890   (eval "$ac_compile") 2>conftest.er1
4891   ac_status=$?
4892   grep -v '^ *+' conftest.er1 >conftest.err
4893   rm -f conftest.er1
4894   cat conftest.err >&5
4895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896   (exit $ac_status); } && {
4897          test -z "$ac_c_werror_flag" ||
4898          test ! -s conftest.err
4899        } && test -s conftest.$ac_objext; then
4900   ac_cv_prog_cc_g=yes
4901 else
4902   echo "$as_me: failed program was:" >&5
4903 sed 's/^/| /' conftest.$ac_ext >&5
4904
4905         
4906 fi
4907
4908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4909 fi
4910
4911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4912 fi
4913
4914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4915    ac_c_werror_flag=$ac_save_c_werror_flag
4916 fi
4917 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4918 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4919 if test "$ac_test_CFLAGS" = set; then
4920   CFLAGS=$ac_save_CFLAGS
4921 elif test $ac_cv_prog_cc_g = yes; then
4922   if test "$GCC" = yes; then
4923     CFLAGS="-g -O2"
4924   else
4925     CFLAGS="-g"
4926   fi
4927 else
4928   if test "$GCC" = yes; then
4929     CFLAGS="-O2"
4930   else
4931     CFLAGS=
4932   fi
4933 fi
4934 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4935 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4936 if test "${ac_cv_prog_cc_c89+set}" = set; then
4937   echo $ECHO_N "(cached) $ECHO_C" >&6
4938 else
4939   ac_cv_prog_cc_c89=no
4940 ac_save_CC=$CC
4941 cat >conftest.$ac_ext <<_ACEOF
4942 /* confdefs.h.  */
4943 _ACEOF
4944 cat confdefs.h >>conftest.$ac_ext
4945 cat >>conftest.$ac_ext <<_ACEOF
4946 /* end confdefs.h.  */
4947 #include <stdarg.h>
4948 #include <stdio.h>
4949 #include <sys/types.h>
4950 #include <sys/stat.h>
4951 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4952 struct buf { int x; };
4953 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4954 static char *e (p, i)
4955      char **p;
4956      int i;
4957 {
4958   return p[i];
4959 }
4960 static char *f (char * (*g) (char **, int), char **p, ...)
4961 {
4962   char *s;
4963   va_list v;
4964   va_start (v,p);
4965   s = g (p, va_arg (v,int));
4966   va_end (v);
4967   return s;
4968 }
4969
4970 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4971    function prototypes and stuff, but not '\xHH' hex character constants.
4972    These don't provoke an error unfortunately, instead are silently treated
4973    as 'x'.  The following induces an error, until -std is added to get
4974    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4975    array size at least.  It's necessary to write '\x00'==0 to get something
4976    that's true only with -std.  */
4977 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4978
4979 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4980    inside strings and character constants.  */
4981 #define FOO(x) 'x'
4982 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4983
4984 int test (int i, double x);
4985 struct s1 {int (*f) (int a);};
4986 struct s2 {int (*f) (double a);};
4987 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4988 int argc;
4989 char **argv;
4990 int
4991 main ()
4992 {
4993 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4994   ;
4995   return 0;
4996 }
4997 _ACEOF
4998 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4999         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5000 do
5001   CC="$ac_save_CC $ac_arg"
5002   rm -f conftest.$ac_objext
5003 if { (ac_try="$ac_compile"
5004 case "(($ac_try" in
5005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5006   *) ac_try_echo=$ac_try;;
5007 esac
5008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5009   (eval "$ac_compile") 2>conftest.er1
5010   ac_status=$?
5011   grep -v '^ *+' conftest.er1 >conftest.err
5012   rm -f conftest.er1
5013   cat conftest.err >&5
5014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015   (exit $ac_status); } && {
5016          test -z "$ac_c_werror_flag" ||
5017          test ! -s conftest.err
5018        } && test -s conftest.$ac_objext; then
5019   ac_cv_prog_cc_c89=$ac_arg
5020 else
5021   echo "$as_me: failed program was:" >&5
5022 sed 's/^/| /' conftest.$ac_ext >&5
5023
5024         
5025 fi
5026
5027 rm -f core conftest.err conftest.$ac_objext 
5028   test "x$ac_cv_prog_cc_c89" != "xno" && break
5029 done
5030 rm -f conftest.$ac_ext
5031 CC=$ac_save_CC
5032
5033 fi
5034 # AC_CACHE_VAL
5035 case "x$ac_cv_prog_cc_c89" in
5036   x)
5037     { echo "$as_me:$LINENO: result: none needed" >&5
5038 echo "${ECHO_T}none needed" >&6; } ;;
5039   xno)
5040     { echo "$as_me:$LINENO: result: unsupported" >&5
5041 echo "${ECHO_T}unsupported" >&6; } ;;
5042   *)
5043     CC="$CC $ac_cv_prog_cc_c89"
5044     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5045 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5046 esac
5047
5048
5049 ac_ext=c
5050 ac_cpp='$CPP $CPPFLAGS'
5051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5054
5055 depcc="$CC"   am_compiler_list=
5056
5057 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5058 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5059 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5060   echo $ECHO_N "(cached) $ECHO_C" >&6
5061 else
5062   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5063   # We make a subdir and do the tests there.  Otherwise we can end up
5064   # making bogus files that we don't know about and never remove.  For
5065   # instance it was reported that on HP-UX the gcc test will end up
5066   # making a dummy file named `D' -- because `-MD' means `put the output
5067   # in D'.
5068   mkdir conftest.dir
5069   # Copy depcomp to subdir because otherwise we won't find it if we're
5070   # using a relative directory.
5071   cp "$am_depcomp" conftest.dir
5072   cd conftest.dir
5073   # We will build objects and dependencies in a subdirectory because
5074   # it helps to detect inapplicable dependency modes.  For instance
5075   # both Tru64's cc and ICC support -MD to output dependencies as a
5076   # side effect of compilation, but ICC will put the dependencies in
5077   # the current directory while Tru64 will put them in the object
5078   # directory.
5079   mkdir sub
5080
5081   am_cv_CC_dependencies_compiler_type=none
5082   if test "$am_compiler_list" = ""; then
5083      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5084   fi
5085   for depmode in $am_compiler_list; do
5086     # Setup a source with many dependencies, because some compilers
5087     # like to wrap large dependency lists on column 80 (with \), and
5088     # we should not choose a depcomp mode which is confused by this.
5089     #
5090     # We need to recreate these files for each test, as the compiler may
5091     # overwrite some of them when testing with obscure command lines.
5092     # This happens at least with the AIX C compiler.
5093     : > sub/conftest.c
5094     for i in 1 2 3 4 5 6; do
5095       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5096       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5097       # Solaris 8's {/usr,}/bin/sh.
5098       touch sub/conftst$i.h
5099     done
5100     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5101
5102     case $depmode in
5103     nosideeffect)
5104       # after this tag, mechanisms are not by side-effect, so they'll
5105       # only be used when explicitly requested
5106       if test "x$enable_dependency_tracking" = xyes; then
5107         continue
5108       else
5109         break
5110       fi
5111       ;;
5112     none) break ;;
5113     esac
5114     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5115     # mode.  It turns out that the SunPro C++ compiler does not properly
5116     # handle `-M -o', and we need to detect this.
5117     if depmode=$depmode \
5118        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5119        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5120        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5121          >/dev/null 2>conftest.err &&
5122        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5123        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5124        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5125       # icc doesn't choke on unknown options, it will just issue warnings
5126       # or remarks (even with -Werror).  So we grep stderr for any message
5127       # that says an option was ignored or not supported.
5128       # When given -MP, icc 7.0 and 7.1 complain thusly:
5129       #   icc: Command line warning: ignoring option '-M'; no argument required
5130       # The diagnosis changed in icc 8.0:
5131       #   icc: Command line remark: option '-MP' not supported
5132       if (grep 'ignoring option' conftest.err ||
5133           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5134         am_cv_CC_dependencies_compiler_type=$depmode
5135         break
5136       fi
5137     fi
5138   done
5139
5140   cd ..
5141   rm -rf conftest.dir
5142 else
5143   am_cv_CC_dependencies_compiler_type=none
5144 fi
5145
5146 fi
5147 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5148 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5149 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5150
5151  
5152
5153 if 
5154   test "x$enable_dependency_tracking" != xno \
5155   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5156   am__fastdepCC_TRUE=
5157   am__fastdepCC_FALSE='#'
5158 else
5159   am__fastdepCC_TRUE='#'
5160   am__fastdepCC_FALSE=
5161 fi
5162
5163
5164 ac_ext=c
5165 ac_cpp='$CPP $CPPFLAGS'
5166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5169 if test -n "$ac_tool_prefix"; then
5170   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5171 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5174 if test "${ac_cv_prog_CC+set}" = set; then
5175   echo $ECHO_N "(cached) $ECHO_C" >&6
5176 else
5177   if test -n "$CC"; then
5178   ac_cv_prog_CC="$CC" # Let the user override the test.
5179 else
5180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181 for as_dir in $PATH
5182 do
5183   IFS=$as_save_IFS
5184   test -z "$as_dir" && as_dir=.
5185   for ac_exec_ext in '' $ac_executable_extensions; do
5186   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5187     ac_cv_prog_CC="${ac_tool_prefix}gcc"
5188     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5189     break 2
5190   fi
5191 done
5192 done
5193 IFS=$as_save_IFS
5194
5195 fi
5196 fi
5197 CC=$ac_cv_prog_CC
5198 if test -n "$CC"; then
5199   { echo "$as_me:$LINENO: result: $CC" >&5
5200 echo "${ECHO_T}$CC" >&6; }
5201 else
5202   { echo "$as_me:$LINENO: result: no" >&5
5203 echo "${ECHO_T}no" >&6; }
5204 fi
5205
5206
5207 fi
5208 if test -z "$ac_cv_prog_CC"; then
5209   ac_ct_CC=$CC
5210   # Extract the first word of "gcc", so it can be a program name with args.
5211 set dummy gcc; ac_word=$2
5212 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5214 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5215   echo $ECHO_N "(cached) $ECHO_C" >&6
5216 else
5217   if test -n "$ac_ct_CC"; then
5218   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5219 else
5220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5221 for as_dir in $PATH
5222 do
5223   IFS=$as_save_IFS
5224   test -z "$as_dir" && as_dir=.
5225   for ac_exec_ext in '' $ac_executable_extensions; do
5226   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5227     ac_cv_prog_ac_ct_CC="gcc"
5228     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5229     break 2
5230   fi
5231 done
5232 done
5233 IFS=$as_save_IFS
5234
5235 fi
5236 fi
5237 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5238 if test -n "$ac_ct_CC"; then
5239   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5240 echo "${ECHO_T}$ac_ct_CC" >&6; }
5241 else
5242   { echo "$as_me:$LINENO: result: no" >&5
5243 echo "${ECHO_T}no" >&6; }
5244 fi
5245
5246   if test "x$ac_ct_CC" = x; then
5247     CC=""
5248   else
5249     case $cross_compiling:$ac_tool_warned in
5250 yes:)
5251 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5252 whose name does not start with the host triplet.  If you think this
5253 configuration is useful to you, please write to autoconf@gnu.org." >&5
5254 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5255 whose name does not start with the host triplet.  If you think this
5256 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5257 ac_tool_warned=yes ;;
5258 esac
5259     CC=$ac_ct_CC
5260   fi
5261 else
5262   CC="$ac_cv_prog_CC"
5263 fi
5264
5265 if test -z "$CC"; then
5266           if test -n "$ac_tool_prefix"; then
5267     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5268 set dummy ${ac_tool_prefix}cc; ac_word=$2
5269 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5271 if test "${ac_cv_prog_CC+set}" = set; then
5272   echo $ECHO_N "(cached) $ECHO_C" >&6
5273 else
5274   if test -n "$CC"; then
5275   ac_cv_prog_CC="$CC" # Let the user override the test.
5276 else
5277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5278 for as_dir in $PATH
5279 do
5280   IFS=$as_save_IFS
5281   test -z "$as_dir" && as_dir=.
5282   for ac_exec_ext in '' $ac_executable_extensions; do
5283   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5284     ac_cv_prog_CC="${ac_tool_prefix}cc"
5285     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5286     break 2
5287   fi
5288 done
5289 done
5290 IFS=$as_save_IFS
5291
5292 fi
5293 fi
5294 CC=$ac_cv_prog_CC
5295 if test -n "$CC"; then
5296   { echo "$as_me:$LINENO: result: $CC" >&5
5297 echo "${ECHO_T}$CC" >&6; }
5298 else
5299   { echo "$as_me:$LINENO: result: no" >&5
5300 echo "${ECHO_T}no" >&6; }
5301 fi
5302
5303
5304   fi
5305 fi
5306 if test -z "$CC"; then
5307   # Extract the first word of "cc", so it can be a program name with args.
5308 set dummy cc; ac_word=$2
5309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5311 if test "${ac_cv_prog_CC+set}" = set; then
5312   echo $ECHO_N "(cached) $ECHO_C" >&6
5313 else
5314   if test -n "$CC"; then
5315   ac_cv_prog_CC="$CC" # Let the user override the test.
5316 else
5317   ac_prog_rejected=no
5318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5319 for as_dir in $PATH
5320 do
5321   IFS=$as_save_IFS
5322   test -z "$as_dir" && as_dir=.
5323   for ac_exec_ext in '' $ac_executable_extensions; do
5324   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5325     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5326        ac_prog_rejected=yes
5327        continue
5328      fi
5329     ac_cv_prog_CC="cc"
5330     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5331     break 2
5332   fi
5333 done
5334 done
5335 IFS=$as_save_IFS
5336
5337 if test $ac_prog_rejected = yes; then
5338   # We found a bogon in the path, so make sure we never use it.
5339   set dummy $ac_cv_prog_CC
5340   shift
5341   if test $@%:@ != 0; then
5342     # We chose a different compiler from the bogus one.
5343     # However, it has the same basename, so the bogon will be chosen
5344     # first if we set CC to just the basename; use the full file name.
5345     shift
5346     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5347   fi
5348 fi
5349 fi
5350 fi
5351 CC=$ac_cv_prog_CC
5352 if test -n "$CC"; then
5353   { echo "$as_me:$LINENO: result: $CC" >&5
5354 echo "${ECHO_T}$CC" >&6; }
5355 else
5356   { echo "$as_me:$LINENO: result: no" >&5
5357 echo "${ECHO_T}no" >&6; }
5358 fi
5359
5360
5361 fi
5362 if test -z "$CC"; then
5363   if test -n "$ac_tool_prefix"; then
5364   for ac_prog in cl.exe
5365   do
5366     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5367 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5368 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5370 if test "${ac_cv_prog_CC+set}" = set; then
5371   echo $ECHO_N "(cached) $ECHO_C" >&6
5372 else
5373   if test -n "$CC"; then
5374   ac_cv_prog_CC="$CC" # Let the user override the test.
5375 else
5376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5377 for as_dir in $PATH
5378 do
5379   IFS=$as_save_IFS
5380   test -z "$as_dir" && as_dir=.
5381   for ac_exec_ext in '' $ac_executable_extensions; do
5382   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5383     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5384     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5385     break 2
5386   fi
5387 done
5388 done
5389 IFS=$as_save_IFS
5390
5391 fi
5392 fi
5393 CC=$ac_cv_prog_CC
5394 if test -n "$CC"; then
5395   { echo "$as_me:$LINENO: result: $CC" >&5
5396 echo "${ECHO_T}$CC" >&6; }
5397 else
5398   { echo "$as_me:$LINENO: result: no" >&5
5399 echo "${ECHO_T}no" >&6; }
5400 fi
5401
5402
5403     test -n "$CC" && break
5404   done
5405 fi
5406 if test -z "$CC"; then
5407   ac_ct_CC=$CC
5408   for ac_prog in cl.exe
5409 do
5410   # Extract the first word of "$ac_prog", so it can be a program name with args.
5411 set dummy $ac_prog; ac_word=$2
5412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5414 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5415   echo $ECHO_N "(cached) $ECHO_C" >&6
5416 else
5417   if test -n "$ac_ct_CC"; then
5418   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5419 else
5420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5421 for as_dir in $PATH
5422 do
5423   IFS=$as_save_IFS
5424   test -z "$as_dir" && as_dir=.
5425   for ac_exec_ext in '' $ac_executable_extensions; do
5426   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5427     ac_cv_prog_ac_ct_CC="$ac_prog"
5428     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5429     break 2
5430   fi
5431 done
5432 done
5433 IFS=$as_save_IFS
5434
5435 fi
5436 fi
5437 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5438 if test -n "$ac_ct_CC"; then
5439   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5440 echo "${ECHO_T}$ac_ct_CC" >&6; }
5441 else
5442   { echo "$as_me:$LINENO: result: no" >&5
5443 echo "${ECHO_T}no" >&6; }
5444 fi
5445
5446
5447   test -n "$ac_ct_CC" && break
5448 done
5449
5450   if test "x$ac_ct_CC" = x; then
5451     CC=""
5452   else
5453     case $cross_compiling:$ac_tool_warned in
5454 yes:)
5455 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5456 whose name does not start with the host triplet.  If you think this
5457 configuration is useful to you, please write to autoconf@gnu.org." >&5
5458 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5459 whose name does not start with the host triplet.  If you think this
5460 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5461 ac_tool_warned=yes ;;
5462 esac
5463     CC=$ac_ct_CC
5464   fi
5465 fi
5466
5467 fi
5468
5469
5470 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5471 See \`config.log' for more details." >&5
5472 echo "$as_me: error: no acceptable C compiler found in \$PATH
5473 See \`config.log' for more details." >&2;}
5474    { (exit 1); exit 1; }; }
5475
5476 # Provide some information about the compiler.
5477 echo "$as_me:$LINENO: checking for C compiler version" >&5
5478 ac_compiler=`set X $ac_compile; echo $2`
5479 { (ac_try="$ac_compiler --version >&5"
5480 case "(($ac_try" in
5481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5482   *) ac_try_echo=$ac_try;;
5483 esac
5484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5485   (eval "$ac_compiler --version >&5") 2>&5
5486   ac_status=$?
5487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488   (exit $ac_status); }
5489 { (ac_try="$ac_compiler -v >&5"
5490 case "(($ac_try" in
5491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5492   *) ac_try_echo=$ac_try;;
5493 esac
5494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5495   (eval "$ac_compiler -v >&5") 2>&5
5496   ac_status=$?
5497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498   (exit $ac_status); }
5499 { (ac_try="$ac_compiler -V >&5"
5500 case "(($ac_try" in
5501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5502   *) ac_try_echo=$ac_try;;
5503 esac
5504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5505   (eval "$ac_compiler -V >&5") 2>&5
5506   ac_status=$?
5507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508   (exit $ac_status); }
5509
5510 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5511 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5512 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5513   echo $ECHO_N "(cached) $ECHO_C" >&6
5514 else
5515   cat >conftest.$ac_ext <<_ACEOF
5516 /* confdefs.h.  */
5517 _ACEOF
5518 cat confdefs.h >>conftest.$ac_ext
5519 cat >>conftest.$ac_ext <<_ACEOF
5520 /* end confdefs.h.  */
5521
5522 int
5523 main ()
5524 {
5525 #ifndef __GNUC__
5526        choke me
5527 #endif
5528
5529   ;
5530   return 0;
5531 }
5532 _ACEOF
5533 rm -f conftest.$ac_objext
5534 if { (ac_try="$ac_compile"
5535 case "(($ac_try" in
5536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5537   *) ac_try_echo=$ac_try;;
5538 esac
5539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5540   (eval "$ac_compile") 2>conftest.er1
5541   ac_status=$?
5542   grep -v '^ *+' conftest.er1 >conftest.err
5543   rm -f conftest.er1
5544   cat conftest.err >&5
5545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546   (exit $ac_status); } && {
5547          test -z "$ac_c_werror_flag" ||
5548          test ! -s conftest.err
5549        } && test -s conftest.$ac_objext; then
5550   ac_compiler_gnu=yes
5551 else
5552   echo "$as_me: failed program was:" >&5
5553 sed 's/^/| /' conftest.$ac_ext >&5
5554
5555         ac_compiler_gnu=no
5556 fi
5557
5558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5559 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5560
5561 fi
5562 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5563 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5564 GCC=`test $ac_compiler_gnu = yes && echo yes`
5565 ac_test_CFLAGS=${CFLAGS+set}
5566 ac_save_CFLAGS=$CFLAGS
5567 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5568 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5569 if test "${ac_cv_prog_cc_g+set}" = set; then
5570   echo $ECHO_N "(cached) $ECHO_C" >&6
5571 else
5572   ac_save_c_werror_flag=$ac_c_werror_flag
5573    ac_c_werror_flag=yes
5574    ac_cv_prog_cc_g=no
5575    CFLAGS="-g"
5576    cat >conftest.$ac_ext <<_ACEOF
5577 /* confdefs.h.  */
5578 _ACEOF
5579 cat confdefs.h >>conftest.$ac_ext
5580 cat >>conftest.$ac_ext <<_ACEOF
5581 /* end confdefs.h.  */
5582
5583 int
5584 main ()
5585 {
5586
5587   ;
5588   return 0;
5589 }
5590 _ACEOF
5591 rm -f conftest.$ac_objext
5592 if { (ac_try="$ac_compile"
5593 case "(($ac_try" in
5594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5595   *) ac_try_echo=$ac_try;;
5596 esac
5597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5598   (eval "$ac_compile") 2>conftest.er1
5599   ac_status=$?
5600   grep -v '^ *+' conftest.er1 >conftest.err
5601   rm -f conftest.er1
5602   cat conftest.err >&5
5603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604   (exit $ac_status); } && {
5605          test -z "$ac_c_werror_flag" ||
5606          test ! -s conftest.err
5607        } && test -s conftest.$ac_objext; then
5608   ac_cv_prog_cc_g=yes
5609 else
5610   echo "$as_me: failed program was:" >&5
5611 sed 's/^/| /' conftest.$ac_ext >&5
5612
5613         CFLAGS=""
5614       cat >conftest.$ac_ext <<_ACEOF
5615 /* confdefs.h.  */
5616 _ACEOF
5617 cat confdefs.h >>conftest.$ac_ext
5618 cat >>conftest.$ac_ext <<_ACEOF
5619 /* end confdefs.h.  */
5620
5621 int
5622 main ()
5623 {
5624
5625   ;
5626   return 0;
5627 }
5628 _ACEOF
5629 rm -f conftest.$ac_objext
5630 if { (ac_try="$ac_compile"
5631 case "(($ac_try" in
5632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5633   *) ac_try_echo=$ac_try;;
5634 esac
5635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5636   (eval "$ac_compile") 2>conftest.er1
5637   ac_status=$?
5638   grep -v '^ *+' conftest.er1 >conftest.err
5639   rm -f conftest.er1
5640   cat conftest.err >&5
5641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642   (exit $ac_status); } && {
5643          test -z "$ac_c_werror_flag" ||
5644          test ! -s conftest.err
5645        } && test -s conftest.$ac_objext; then
5646   :
5647 else
5648   echo "$as_me: failed program was:" >&5
5649 sed 's/^/| /' conftest.$ac_ext >&5
5650
5651         ac_c_werror_flag=$ac_save_c_werror_flag
5652          CFLAGS="-g"
5653          cat >conftest.$ac_ext <<_ACEOF
5654 /* confdefs.h.  */
5655 _ACEOF
5656 cat confdefs.h >>conftest.$ac_ext
5657 cat >>conftest.$ac_ext <<_ACEOF
5658 /* end confdefs.h.  */
5659
5660 int
5661 main ()
5662 {
5663
5664   ;
5665   return 0;
5666 }
5667 _ACEOF
5668 rm -f conftest.$ac_objext
5669 if { (ac_try="$ac_compile"
5670 case "(($ac_try" in
5671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5672   *) ac_try_echo=$ac_try;;
5673 esac
5674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5675   (eval "$ac_compile") 2>conftest.er1
5676   ac_status=$?
5677   grep -v '^ *+' conftest.er1 >conftest.err
5678   rm -f conftest.er1
5679   cat conftest.err >&5
5680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681   (exit $ac_status); } && {
5682          test -z "$ac_c_werror_flag" ||
5683          test ! -s conftest.err
5684        } && test -s conftest.$ac_objext; then
5685   ac_cv_prog_cc_g=yes
5686 else
5687   echo "$as_me: failed program was:" >&5
5688 sed 's/^/| /' conftest.$ac_ext >&5
5689
5690         
5691 fi
5692
5693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5694 fi
5695
5696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5697 fi
5698
5699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5700    ac_c_werror_flag=$ac_save_c_werror_flag
5701 fi
5702 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5703 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5704 if test "$ac_test_CFLAGS" = set; then
5705   CFLAGS=$ac_save_CFLAGS
5706 elif test $ac_cv_prog_cc_g = yes; then
5707   if test "$GCC" = yes; then
5708     CFLAGS="-g -O2"
5709   else
5710     CFLAGS="-g"
5711   fi
5712 else
5713   if test "$GCC" = yes; then
5714     CFLAGS="-O2"
5715   else
5716     CFLAGS=
5717   fi
5718 fi
5719 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5720 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5721 if test "${ac_cv_prog_cc_c89+set}" = set; then
5722   echo $ECHO_N "(cached) $ECHO_C" >&6
5723 else
5724   ac_cv_prog_cc_c89=no
5725 ac_save_CC=$CC
5726 cat >conftest.$ac_ext <<_ACEOF
5727 /* confdefs.h.  */
5728 _ACEOF
5729 cat confdefs.h >>conftest.$ac_ext
5730 cat >>conftest.$ac_ext <<_ACEOF
5731 /* end confdefs.h.  */
5732 #include <stdarg.h>
5733 #include <stdio.h>
5734 #include <sys/types.h>
5735 #include <sys/stat.h>
5736 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5737 struct buf { int x; };
5738 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5739 static char *e (p, i)
5740      char **p;
5741      int i;
5742 {
5743   return p[i];
5744 }
5745 static char *f (char * (*g) (char **, int), char **p, ...)
5746 {
5747   char *s;
5748   va_list v;
5749   va_start (v,p);
5750   s = g (p, va_arg (v,int));
5751   va_end (v);
5752   return s;
5753 }
5754
5755 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5756    function prototypes and stuff, but not '\xHH' hex character constants.
5757    These don't provoke an error unfortunately, instead are silently treated
5758    as 'x'.  The following induces an error, until -std is added to get
5759    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5760    array size at least.  It's necessary to write '\x00'==0 to get something
5761    that's true only with -std.  */
5762 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5763
5764 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5765    inside strings and character constants.  */
5766 #define FOO(x) 'x'
5767 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5768
5769 int test (int i, double x);
5770 struct s1 {int (*f) (int a);};
5771 struct s2 {int (*f) (double a);};
5772 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5773 int argc;
5774 char **argv;
5775 int
5776 main ()
5777 {
5778 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5779   ;
5780   return 0;
5781 }
5782 _ACEOF
5783 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5784         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5785 do
5786   CC="$ac_save_CC $ac_arg"
5787   rm -f conftest.$ac_objext
5788 if { (ac_try="$ac_compile"
5789 case "(($ac_try" in
5790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5791   *) ac_try_echo=$ac_try;;
5792 esac
5793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5794   (eval "$ac_compile") 2>conftest.er1
5795   ac_status=$?
5796   grep -v '^ *+' conftest.er1 >conftest.err
5797   rm -f conftest.er1
5798   cat conftest.err >&5
5799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800   (exit $ac_status); } && {
5801          test -z "$ac_c_werror_flag" ||
5802          test ! -s conftest.err
5803        } && test -s conftest.$ac_objext; then
5804   ac_cv_prog_cc_c89=$ac_arg
5805 else
5806   echo "$as_me: failed program was:" >&5
5807 sed 's/^/| /' conftest.$ac_ext >&5
5808
5809         
5810 fi
5811
5812 rm -f core conftest.err conftest.$ac_objext 
5813   test "x$ac_cv_prog_cc_c89" != "xno" && break
5814 done
5815 rm -f conftest.$ac_ext
5816 CC=$ac_save_CC
5817
5818 fi
5819 # AC_CACHE_VAL
5820 case "x$ac_cv_prog_cc_c89" in
5821   x)
5822     { echo "$as_me:$LINENO: result: none needed" >&5
5823 echo "${ECHO_T}none needed" >&6; } ;;
5824   xno)
5825     { echo "$as_me:$LINENO: result: unsupported" >&5
5826 echo "${ECHO_T}unsupported" >&6; } ;;
5827   *)
5828     CC="$CC $ac_cv_prog_cc_c89"
5829     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5830 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5831 esac
5832
5833
5834 ac_ext=c
5835 ac_cpp='$CPP $CPPFLAGS'
5836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5839
5840 depcc="$CC"   am_compiler_list=
5841
5842 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5843 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5844 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5845   echo $ECHO_N "(cached) $ECHO_C" >&6
5846 else
5847   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5848   # We make a subdir and do the tests there.  Otherwise we can end up
5849   # making bogus files that we don't know about and never remove.  For
5850   # instance it was reported that on HP-UX the gcc test will end up
5851   # making a dummy file named `D' -- because `-MD' means `put the output
5852   # in D'.
5853   mkdir conftest.dir
5854   # Copy depcomp to subdir because otherwise we won't find it if we're
5855   # using a relative directory.
5856   cp "$am_depcomp" conftest.dir
5857   cd conftest.dir
5858   # We will build objects and dependencies in a subdirectory because
5859   # it helps to detect inapplicable dependency modes.  For instance
5860   # both Tru64's cc and ICC support -MD to output dependencies as a
5861   # side effect of compilation, but ICC will put the dependencies in
5862   # the current directory while Tru64 will put them in the object
5863   # directory.
5864   mkdir sub
5865
5866   am_cv_CC_dependencies_compiler_type=none
5867   if test "$am_compiler_list" = ""; then
5868      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5869   fi
5870   for depmode in $am_compiler_list; do
5871     # Setup a source with many dependencies, because some compilers
5872     # like to wrap large dependency lists on column 80 (with \), and
5873     # we should not choose a depcomp mode which is confused by this.
5874     #
5875     # We need to recreate these files for each test, as the compiler may
5876     # overwrite some of them when testing with obscure command lines.
5877     # This happens at least with the AIX C compiler.
5878     : > sub/conftest.c
5879     for i in 1 2 3 4 5 6; do
5880       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5881       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5882       # Solaris 8's {/usr,}/bin/sh.
5883       touch sub/conftst$i.h
5884     done
5885     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5886
5887     case $depmode in
5888     nosideeffect)
5889       # after this tag, mechanisms are not by side-effect, so they'll
5890       # only be used when explicitly requested
5891       if test "x$enable_dependency_tracking" = xyes; then
5892         continue
5893       else
5894         break
5895       fi
5896       ;;
5897     none) break ;;
5898     esac
5899     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5900     # mode.  It turns out that the SunPro C++ compiler does not properly
5901     # handle `-M -o', and we need to detect this.
5902     if depmode=$depmode \
5903        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5904        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5905        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5906          >/dev/null 2>conftest.err &&
5907        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5908        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5909        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5910       # icc doesn't choke on unknown options, it will just issue warnings
5911       # or remarks (even with -Werror).  So we grep stderr for any message
5912       # that says an option was ignored or not supported.
5913       # When given -MP, icc 7.0 and 7.1 complain thusly:
5914       #   icc: Command line warning: ignoring option '-M'; no argument required
5915       # The diagnosis changed in icc 8.0:
5916       #   icc: Command line remark: option '-MP' not supported
5917       if (grep 'ignoring option' conftest.err ||
5918           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5919         am_cv_CC_dependencies_compiler_type=$depmode
5920         break
5921       fi
5922     fi
5923   done
5924
5925   cd ..
5926   rm -rf conftest.dir
5927 else
5928   am_cv_CC_dependencies_compiler_type=none
5929 fi
5930
5931 fi
5932 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5933 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5934 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5935
5936  
5937
5938 if 
5939   test "x$enable_dependency_tracking" != xno \
5940   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5941   am__fastdepCC_TRUE=
5942   am__fastdepCC_FALSE='#'
5943 else
5944   am__fastdepCC_TRUE='#'
5945   am__fastdepCC_FALSE=
5946 fi
5947
5948
5949
5950 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5951
5952
5953 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5954 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5955 if test "${ac_cv_path_GREP+set}" = set; then
5956   echo $ECHO_N "(cached) $ECHO_C" >&6
5957 else
5958   # Extract the first word of "grep ggrep" to use in msg output
5959 if test -z "$GREP"; then
5960 set dummy grep ggrep; ac_prog_name=$2
5961 if test "${ac_cv_path_GREP+set}" = set; then
5962   echo $ECHO_N "(cached) $ECHO_C" >&6
5963 else
5964   ac_path_GREP_found=false
5965 # Loop through the user's path and test for each of PROGNAME-LIST
5966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5967 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5968 do
5969   IFS=$as_save_IFS
5970   test -z "$as_dir" && as_dir=.
5971   for ac_prog in grep ggrep; do
5972   for ac_exec_ext in '' $ac_executable_extensions; do
5973     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5974     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5975     # Check for GNU ac_path_GREP and select it if it is found.
5976   # Check for GNU $ac_path_GREP
5977 case `"$ac_path_GREP" --version 2>&1` in
5978 *GNU*)
5979   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5980 *)
5981   ac_count=0
5982   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5983   while :
5984   do
5985     cat "conftest.in" "conftest.in" >"conftest.tmp"
5986     mv "conftest.tmp" "conftest.in"
5987     cp "conftest.in" "conftest.nl"
5988     echo 'GREP' >> "conftest.nl"
5989     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5990     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5991     ac_count=`expr $ac_count + 1`
5992     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5993       # Best one so far, save it but keep looking for a better one
5994       ac_cv_path_GREP="$ac_path_GREP"
5995       ac_path_GREP_max=$ac_count
5996     fi
5997     # 10*(2^10) chars as input seems more than enough
5998     test $ac_count -gt 10 && break
5999   done
6000   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6001 esac
6002
6003
6004     $ac_path_GREP_found && break 3
6005   done
6006 done
6007
6008 done
6009 IFS=$as_save_IFS
6010
6011
6012 fi
6013
6014 GREP="$ac_cv_path_GREP"
6015 if test -z "$GREP"; then
6016   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6017 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6018    { (exit 1); exit 1; }; }
6019 fi
6020
6021 else
6022   ac_cv_path_GREP=$GREP
6023 fi
6024
6025
6026 fi
6027 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6028 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
6029  GREP="$ac_cv_path_GREP"
6030  
6031
6032 { echo "$as_me:$LINENO: checking for egrep" >&5
6033 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6034 if test "${ac_cv_path_EGREP+set}" = set; then
6035   echo $ECHO_N "(cached) $ECHO_C" >&6
6036 else
6037   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6038    then ac_cv_path_EGREP="$GREP -E"
6039    else
6040      # Extract the first word of "egrep" to use in msg output
6041 if test -z "$EGREP"; then
6042 set dummy egrep; ac_prog_name=$2
6043 if test "${ac_cv_path_EGREP+set}" = set; then
6044   echo $ECHO_N "(cached) $ECHO_C" >&6
6045 else
6046   ac_path_EGREP_found=false
6047 # Loop through the user's path and test for each of PROGNAME-LIST
6048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6049 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6050 do
6051   IFS=$as_save_IFS
6052   test -z "$as_dir" && as_dir=.
6053   for ac_prog in egrep; do
6054   for ac_exec_ext in '' $ac_executable_extensions; do
6055     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6056     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6057     # Check for GNU ac_path_EGREP and select it if it is found.
6058   # Check for GNU $ac_path_EGREP
6059 case `"$ac_path_EGREP" --version 2>&1` in
6060 *GNU*)
6061   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6062 *)
6063   ac_count=0
6064   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6065   while :
6066   do
6067     cat "conftest.in" "conftest.in" >"conftest.tmp"
6068     mv "conftest.tmp" "conftest.in"
6069     cp "conftest.in" "conftest.nl"
6070     echo 'EGREP' >> "conftest.nl"
6071     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6072     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6073     ac_count=`expr $ac_count + 1`
6074     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6075       # Best one so far, save it but keep looking for a better one
6076       ac_cv_path_EGREP="$ac_path_EGREP"
6077       ac_path_EGREP_max=$ac_count
6078     fi
6079     # 10*(2^10) chars as input seems more than enough
6080     test $ac_count -gt 10 && break
6081   done
6082   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6083 esac
6084
6085
6086     $ac_path_EGREP_found && break 3
6087   done
6088 done
6089
6090 done
6091 IFS=$as_save_IFS
6092
6093
6094 fi
6095
6096 EGREP="$ac_cv_path_EGREP"
6097 if test -z "$EGREP"; then
6098   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6099 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6100    { (exit 1); exit 1; }; }
6101 fi
6102
6103 else
6104   ac_cv_path_EGREP=$EGREP
6105 fi
6106
6107
6108    fi
6109 fi
6110 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6111 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6112  EGREP="$ac_cv_path_EGREP"
6113  
6114
6115 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6116 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6117 if test "${ac_cv_header_stdc+set}" = set; then
6118   echo $ECHO_N "(cached) $ECHO_C" >&6
6119 else
6120   cat >conftest.$ac_ext <<_ACEOF
6121 /* confdefs.h.  */
6122 _ACEOF
6123 cat confdefs.h >>conftest.$ac_ext
6124 cat >>conftest.$ac_ext <<_ACEOF
6125 /* end confdefs.h.  */
6126 #include <stdlib.h>
6127 #include <stdarg.h>
6128 #include <string.h>
6129 #include <float.h>
6130
6131 int
6132 main ()
6133 {
6134
6135   ;
6136   return 0;
6137 }
6138 _ACEOF
6139 rm -f conftest.$ac_objext
6140 if { (ac_try="$ac_compile"
6141 case "(($ac_try" in
6142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6143   *) ac_try_echo=$ac_try;;
6144 esac
6145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6146   (eval "$ac_compile") 2>conftest.er1
6147   ac_status=$?
6148   grep -v '^ *+' conftest.er1 >conftest.err
6149   rm -f conftest.er1
6150   cat conftest.err >&5
6151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152   (exit $ac_status); } && {
6153          test -z "$ac_c_werror_flag" ||
6154          test ! -s conftest.err
6155        } && test -s conftest.$ac_objext; then
6156   ac_cv_header_stdc=yes
6157 else
6158   echo "$as_me: failed program was:" >&5
6159 sed 's/^/| /' conftest.$ac_ext >&5
6160
6161         ac_cv_header_stdc=no
6162 fi
6163
6164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6165
6166 if test $ac_cv_header_stdc = yes; then
6167   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6168   cat >conftest.$ac_ext <<_ACEOF
6169 /* confdefs.h.  */
6170 _ACEOF
6171 cat confdefs.h >>conftest.$ac_ext
6172 cat >>conftest.$ac_ext <<_ACEOF
6173 /* end confdefs.h.  */
6174 #include <string.h>
6175
6176 _ACEOF
6177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6178   $EGREP "memchr" >/dev/null 2>&1; then
6179   :
6180 else
6181   ac_cv_header_stdc=no
6182 fi
6183 rm -f conftest*
6184
6185 fi
6186
6187 if test $ac_cv_header_stdc = yes; then
6188   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6189   cat >conftest.$ac_ext <<_ACEOF
6190 /* confdefs.h.  */
6191 _ACEOF
6192 cat confdefs.h >>conftest.$ac_ext
6193 cat >>conftest.$ac_ext <<_ACEOF
6194 /* end confdefs.h.  */
6195 #include <stdlib.h>
6196
6197 _ACEOF
6198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6199   $EGREP "free" >/dev/null 2>&1; then
6200   :
6201 else
6202   ac_cv_header_stdc=no
6203 fi
6204 rm -f conftest*
6205
6206 fi
6207
6208 if test $ac_cv_header_stdc = yes; then
6209   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6210   if test "$cross_compiling" = yes; then
6211   :
6212 else
6213   cat >conftest.$ac_ext <<_ACEOF
6214 /* confdefs.h.  */
6215 _ACEOF
6216 cat confdefs.h >>conftest.$ac_ext
6217 cat >>conftest.$ac_ext <<_ACEOF
6218 /* end confdefs.h.  */
6219 #include <ctype.h>
6220 #include <stdlib.h>
6221 #if ((' ' & 0x0FF) == 0x020)
6222 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6223 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6224 #else
6225 # define ISLOWER(c) \
6226                    (('a' <= (c) && (c) <= 'i') \
6227                      || ('j' <= (c) && (c) <= 'r') \
6228                      || ('s' <= (c) && (c) <= 'z'))
6229 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6230 #endif
6231
6232 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6233 int
6234 main ()
6235 {
6236   int i;
6237   for (i = 0; i < 256; i++)
6238     if (XOR (islower (i), ISLOWER (i))
6239         || toupper (i) != TOUPPER (i))
6240       return 2;
6241   return 0;
6242 }
6243 _ACEOF
6244 rm -f conftest$ac_exeext
6245 if { (ac_try="$ac_link"
6246 case "(($ac_try" in
6247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6248   *) ac_try_echo=$ac_try;;
6249 esac
6250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6251   (eval "$ac_link") 2>&5
6252   ac_status=$?
6253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6255   { (case "(($ac_try" in
6256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6257   *) ac_try_echo=$ac_try;;
6258 esac
6259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6260   (eval "$ac_try") 2>&5
6261   ac_status=$?
6262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263   (exit $ac_status); }; }; then
6264   :
6265 else
6266   echo "$as_me: program exited with status $ac_status" >&5
6267 echo "$as_me: failed program was:" >&5
6268 sed 's/^/| /' conftest.$ac_ext >&5
6269
6270 ( exit $ac_status )
6271 ac_cv_header_stdc=no
6272 fi
6273 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6274 fi
6275
6276
6277 fi
6278 fi
6279 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6280 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6281 if test $ac_cv_header_stdc = yes; then
6282   
6283 cat >>confdefs.h <<\_ACEOF
6284 @%:@define STDC_HEADERS 1
6285 _ACEOF
6286
6287 fi
6288
6289 # Find a good install program.  We prefer a C program (faster),
6290 # so one script is as good as another.  But avoid the broken or
6291 # incompatible versions:
6292 # SysV /etc/install, /usr/sbin/install
6293 # SunOS /usr/etc/install
6294 # IRIX /sbin/install
6295 # AIX /bin/install
6296 # AmigaOS /C/install, which installs bootblocks on floppy discs
6297 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6298 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6299 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6300 # OS/2's system install, which has a completely different semantic
6301 # ./install, which can be erroneously created by make from ./install.sh.
6302 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6303 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6304 if test -z "$INSTALL"; then
6305 if test "${ac_cv_path_install+set}" = set; then
6306   echo $ECHO_N "(cached) $ECHO_C" >&6
6307 else
6308   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6309 for as_dir in $PATH
6310 do
6311   IFS=$as_save_IFS
6312   test -z "$as_dir" && as_dir=.
6313   # Account for people who put trailing slashes in PATH elements.
6314 case $as_dir/ in
6315   ./ | .// | /cC/* | \
6316   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6317   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6318   /usr/ucb/* ) ;;
6319   *)
6320     # OSF1 and SCO ODT 3.0 have their own names for install.
6321     # Don't use installbsd from OSF since it installs stuff as root
6322     # by default.
6323     for ac_prog in ginstall scoinst install; do
6324       for ac_exec_ext in '' $ac_executable_extensions; do
6325         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6326           if test $ac_prog = install &&
6327             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6328             # AIX install.  It has an incompatible calling convention.
6329             :
6330           elif test $ac_prog = install &&
6331             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6332             # program-specific install script used by HP pwplus--don't use.
6333             :
6334           else
6335             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6336             break 3
6337           fi
6338         fi
6339       done
6340     done
6341     ;;
6342 esac
6343 done
6344 IFS=$as_save_IFS
6345
6346
6347 fi
6348   if test "${ac_cv_path_install+set}" = set; then
6349     INSTALL=$ac_cv_path_install
6350   else
6351     # As a last resort, use the slow shell script.  Don't cache a
6352     # value for INSTALL within a source directory, because that will
6353     # break other packages using the cache if that directory is
6354     # removed, or if the value is a relative name.
6355     INSTALL=$ac_install_sh
6356   fi
6357 fi
6358 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6359 echo "${ECHO_T}$INSTALL" >&6; }
6360
6361 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6362 # It thinks the first close brace ends the variable substitution.
6363 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6364
6365 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6366
6367 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6368
6369 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6370 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6371 LN_S=$as_ln_s
6372 if test "$LN_S" = "ln -s"; then
6373   { echo "$as_me:$LINENO: result: yes" >&5
6374 echo "${ECHO_T}yes" >&6; }
6375 else
6376   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6377 echo "${ECHO_T}no, using $LN_S" >&6; }
6378 fi
6379
6380 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6381 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
6382 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6383 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
6384   echo $ECHO_N "(cached) $ECHO_C" >&6
6385 else
6386   cat >conftest.make <<\_ACEOF
6387 SHELL = /bin/sh
6388 all:
6389         @echo '@@@%%%=$(MAKE)=@@@%%%'
6390 _ACEOF
6391 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6392 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6393   *@@@%%%=?*=@@@%%%*)
6394     eval ac_cv_prog_make_${ac_make}_set=yes;;
6395   *)
6396     eval ac_cv_prog_make_${ac_make}_set=no;;
6397 esac
6398 rm -f conftest.make
6399 fi
6400 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6401   { echo "$as_me:$LINENO: result: yes" >&5
6402 echo "${ECHO_T}yes" >&6; }
6403   SET_MAKE=
6404 else
6405   { echo "$as_me:$LINENO: result: no" >&5
6406 echo "${ECHO_T}no" >&6; }
6407   SET_MAKE="MAKE=${MAKE-make}"
6408 fi
6409
6410 # Check whether --enable-fast-install was given.
6411 if test "${enable_fast_install+set}" = set; then
6412   enableval=$enable_fast_install; p=${PACKAGE-default}
6413     case $enableval in
6414     yes) enable_fast_install=yes ;;
6415     no) enable_fast_install=no ;;
6416     *)
6417       enable_fast_install=no
6418       # Look at the argument we got.  We use all the common list separators.
6419       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6420       for pkg in $enableval; do
6421         IFS="$lt_save_ifs"
6422         if test "X$pkg" = "X$p"; then
6423           enable_fast_install=yes
6424         fi
6425       done
6426       IFS="$lt_save_ifs"
6427       ;;
6428     esac
6429 else
6430   enable_fast_install=yes
6431 fi
6432
6433
6434 # Make sure we can run config.sub.
6435 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6436   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
6437 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
6438    { (exit 1); exit 1; }; }
6439
6440 { echo "$as_me:$LINENO: checking build system type" >&5
6441 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
6442 if test "${ac_cv_build+set}" = set; then
6443   echo $ECHO_N "(cached) $ECHO_C" >&6
6444 else
6445   ac_build_alias=$build_alias
6446 test "x$ac_build_alias" = x &&
6447   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6448 test "x$ac_build_alias" = x &&
6449   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6450 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6451    { (exit 1); exit 1; }; }
6452 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6453   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
6454 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
6455    { (exit 1); exit 1; }; }
6456
6457 fi
6458 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6459 echo "${ECHO_T}$ac_cv_build" >&6; }
6460 case $ac_cv_build in
6461 *-*-*) ;;
6462 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
6463 echo "$as_me: error: invalid value of canonical build" >&2;}
6464    { (exit 1); exit 1; }; };;
6465 esac
6466 build=$ac_cv_build
6467 ac_save_IFS=$IFS; IFS='-'
6468 set x $ac_cv_build
6469 shift
6470 build_cpu=$1
6471 build_vendor=$2
6472 shift; shift
6473 # Remember, the first character of IFS is used to create $*,
6474 # except with old shells:
6475 build_os=$*
6476 IFS=$ac_save_IFS
6477 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6478
6479
6480 { echo "$as_me:$LINENO: checking host system type" >&5
6481 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
6482 if test "${ac_cv_host+set}" = set; then
6483   echo $ECHO_N "(cached) $ECHO_C" >&6
6484 else
6485   if test "x$host_alias" = x; then
6486   ac_cv_host=$ac_cv_build
6487 else
6488   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6489     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
6490 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
6491    { (exit 1); exit 1; }; }
6492 fi
6493
6494 fi
6495 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6496 echo "${ECHO_T}$ac_cv_host" >&6; }
6497 case $ac_cv_host in
6498 *-*-*) ;;
6499 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
6500 echo "$as_me: error: invalid value of canonical host" >&2;}
6501    { (exit 1); exit 1; }; };;
6502 esac
6503 host=$ac_cv_host
6504 ac_save_IFS=$IFS; IFS='-'
6505 set x $ac_cv_host
6506 shift
6507 host_cpu=$1
6508 host_vendor=$2
6509 shift; shift
6510 # Remember, the first character of IFS is used to create $*,
6511 # except with old shells:
6512 host_os=$*
6513 IFS=$ac_save_IFS
6514 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6515
6516
6517 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6518 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6519 if test "${lt_cv_path_SED+set}" = set; then
6520   echo $ECHO_N "(cached) $ECHO_C" >&6
6521 else
6522   # Loop through the user's path and test for sed and gsed.
6523 # Then use that list of sed's as ones to test for truncation.
6524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6525 for as_dir in $PATH
6526 do
6527   IFS=$as_save_IFS
6528   test -z "$as_dir" && as_dir=.
6529   for lt_ac_prog in sed gsed; do
6530     for ac_exec_ext in '' $ac_executable_extensions; do
6531       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
6532         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6533       fi
6534     done
6535   done
6536 done
6537 IFS=$as_save_IFS
6538 lt_ac_max=0
6539 lt_ac_count=0
6540 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
6541 # along with /bin/sed that truncates output.
6542 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6543   test ! -f $lt_ac_sed && continue
6544   cat /dev/null > conftest.in
6545   lt_ac_count=0
6546   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6547   # Check for GNU sed and select it if it is found.
6548   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6549     lt_cv_path_SED=$lt_ac_sed
6550     break
6551   fi
6552   while true; do
6553     cat conftest.in conftest.in >conftest.tmp
6554     mv conftest.tmp conftest.in
6555     cp conftest.in conftest.nl
6556     echo >>conftest.nl
6557     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6558     cmp -s conftest.out conftest.nl || break
6559     # 10000 chars as input seems more than enough
6560     test $lt_ac_count -gt 10 && break
6561     lt_ac_count=`expr $lt_ac_count + 1`
6562     if test $lt_ac_count -gt $lt_ac_max; then
6563       lt_ac_max=$lt_ac_count
6564       lt_cv_path_SED=$lt_ac_sed
6565     fi
6566   done
6567 done
6568
6569 fi
6570
6571 SED=$lt_cv_path_SED
6572
6573 { echo "$as_me:$LINENO: result: $SED" >&5
6574 echo "${ECHO_T}$SED" >&6; }
6575
6576
6577 # Check whether --with-gnu-ld was given.
6578 if test "${with_gnu_ld+set}" = set; then
6579   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6580 else
6581   with_gnu_ld=no
6582 fi
6583
6584 ac_prog=ld
6585 if test "$GCC" = yes; then
6586   # Check if gcc -print-prog-name=ld gives a path.
6587   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6588 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6589   case $host in
6590   *-*-mingw*)
6591     # gcc leaves a trailing carriage return which upsets mingw
6592     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6593   *)
6594     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6595   esac
6596   case $ac_prog in
6597     # Accept absolute paths.
6598     [\\/]* | ?:[\\/]*)
6599       re_direlt='/[^/][^/]*/\.\./'
6600       # Canonicalize the pathname of ld
6601       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6602       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6603         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6604       done
6605       test -z "$LD" && LD="$ac_prog"
6606       ;;
6607   "")
6608     # If it fails, then pretend we aren't using GCC.
6609     ac_prog=ld
6610     ;;
6611   *)
6612     # If it is relative, then search for the first ld in PATH.
6613     with_gnu_ld=unknown
6614     ;;
6615   esac
6616 elif test "$with_gnu_ld" = yes; then
6617   { echo "$as_me:$LINENO: checking for GNU ld" >&5
6618 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6619 else
6620   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6621 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6622 fi
6623 if test "${lt_cv_path_LD+set}" = set; then
6624   echo $ECHO_N "(cached) $ECHO_C" >&6
6625 else
6626   if test -z "$LD"; then
6627   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6628   for ac_dir in $PATH; do
6629     IFS="$lt_save_ifs"
6630     test -z "$ac_dir" && ac_dir=.
6631     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6632       lt_cv_path_LD="$ac_dir/$ac_prog"
6633       # Check to see if the program is GNU ld.  I'd rather use --version,
6634       # but apparently some variants of GNU ld only accept -v.
6635       # Break only if it was the GNU/non-GNU ld that we prefer.
6636       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6637       *GNU* | *'with BFD'*)
6638         test "$with_gnu_ld" != no && break
6639         ;;
6640       *)
6641         test "$with_gnu_ld" != yes && break
6642         ;;
6643       esac
6644     fi
6645   done
6646   IFS="$lt_save_ifs"
6647 else
6648   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6649 fi
6650 fi
6651
6652 LD="$lt_cv_path_LD"
6653 if test -n "$LD"; then
6654   { echo "$as_me:$LINENO: result: $LD" >&5
6655 echo "${ECHO_T}$LD" >&6; }
6656 else
6657   { echo "$as_me:$LINENO: result: no" >&5
6658 echo "${ECHO_T}no" >&6; }
6659 fi
6660 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6661 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6662    { (exit 1); exit 1; }; }
6663 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6664 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6665 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6666   echo $ECHO_N "(cached) $ECHO_C" >&6
6667 else
6668   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6669 case `$LD -v 2>&1 </dev/null` in
6670 *GNU* | *'with BFD'*)
6671   lt_cv_prog_gnu_ld=yes
6672   ;;
6673 *)
6674   lt_cv_prog_gnu_ld=no
6675   ;;
6676 esac
6677 fi
6678 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6679 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6680 with_gnu_ld=$lt_cv_prog_gnu_ld
6681
6682
6683 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6684 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6685 if test "${lt_cv_ld_reload_flag+set}" = set; then
6686   echo $ECHO_N "(cached) $ECHO_C" >&6
6687 else
6688   lt_cv_ld_reload_flag='-r'
6689 fi
6690 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6691 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6692 reload_flag=$lt_cv_ld_reload_flag
6693 case $reload_flag in
6694 "" | " "*) ;;
6695 *) reload_flag=" $reload_flag" ;;
6696 esac
6697 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6698 case $host_os in
6699   darwin*)
6700     if test "$GCC" = yes; then
6701       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6702     else
6703       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6704     fi
6705     ;;
6706 esac
6707
6708 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6709 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6710 if test "${lt_cv_path_NM+set}" = set; then
6711   echo $ECHO_N "(cached) $ECHO_C" >&6
6712 else
6713   if test -n "$NM"; then
6714   # Let the user override the test.
6715   lt_cv_path_NM="$NM"
6716 else
6717   lt_nm_to_check="${ac_tool_prefix}nm"
6718   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6719     lt_nm_to_check="$lt_nm_to_check nm"
6720   fi
6721   for lt_tmp_nm in $lt_nm_to_check; do
6722     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6723     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6724       IFS="$lt_save_ifs"
6725       test -z "$ac_dir" && ac_dir=.
6726       tmp_nm="$ac_dir/$lt_tmp_nm"
6727       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6728         # Check to see if the nm accepts a BSD-compat flag.
6729         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6730         #   nm: unknown option "B" ignored
6731         # Tru64's nm complains that /dev/null is an invalid object file
6732         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6733         */dev/null* | *'Invalid file or object type'*)
6734           lt_cv_path_NM="$tmp_nm -B"
6735           break
6736           ;;
6737         *)
6738           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6739           */dev/null*)
6740             lt_cv_path_NM="$tmp_nm -p"
6741             break
6742             ;;
6743           *)
6744             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6745             continue # so that we can try to find one that supports BSD flags
6746             ;;
6747           esac
6748           ;;
6749         esac
6750       fi
6751     done
6752     IFS="$lt_save_ifs"
6753   done
6754   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6755 fi
6756 fi
6757 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6758 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6759 NM="$lt_cv_path_NM"
6760
6761 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6762 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6763 if test "${lt_cv_deplibs_check_method+set}" = set; then
6764   echo $ECHO_N "(cached) $ECHO_C" >&6
6765 else
6766   lt_cv_file_magic_cmd='$MAGIC_CMD'
6767 lt_cv_file_magic_test_file=
6768 lt_cv_deplibs_check_method='unknown'
6769 # Need to set the preceding variable on all platforms that support
6770 # interlibrary dependencies.
6771 # 'none' -- dependencies not supported.
6772 # `unknown' -- same as none, but documents that we really don't know.
6773 # 'pass_all' -- all dependencies passed with no checks.
6774 # 'test_compile' -- check by making test program.
6775 # 'file_magic [[regex]]' -- check by looking for files in library path
6776 # which responds to the $file_magic_cmd with a given extended regex.
6777 # If you have `file' or equivalent on your system and you're not sure
6778 # whether `pass_all' will *always* work, you probably want this one.
6779
6780 case $host_os in
6781 aix[4-9]*)
6782   lt_cv_deplibs_check_method=pass_all
6783   ;;
6784
6785 beos*)
6786   lt_cv_deplibs_check_method=pass_all
6787   ;;
6788
6789 bsdi[45]*)
6790   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6791   lt_cv_file_magic_cmd='/usr/bin/file -L'
6792   lt_cv_file_magic_test_file=/shlib/libc.so
6793   ;;
6794
6795 cygwin*)
6796   # func_win32_libid is a shell function defined in ltmain.sh
6797   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6798   lt_cv_file_magic_cmd='func_win32_libid'
6799   ;;
6800
6801 mingw* | pw32*)
6802   # Base MSYS/MinGW do not provide the 'file' command needed by
6803   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6804   # unless we find 'file', for example because we are cross-compiling.
6805   if ( file / ) >/dev/null 2>&1; then
6806     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6807     lt_cv_file_magic_cmd='func_win32_libid'
6808   else
6809     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6810     lt_cv_file_magic_cmd='$OBJDUMP -f'
6811   fi
6812   ;;
6813
6814 darwin* | rhapsody*)
6815   lt_cv_deplibs_check_method=pass_all
6816   ;;
6817
6818 freebsd* | dragonfly*)
6819   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6820     case $host_cpu in
6821     i*86 )
6822       # Not sure whether the presence of OpenBSD here was a mistake.
6823       # Let's accept both of them until this is cleared up.
6824       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6825       lt_cv_file_magic_cmd=/usr/bin/file
6826       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6827       ;;
6828     esac
6829   else
6830     lt_cv_deplibs_check_method=pass_all
6831   fi
6832   ;;
6833
6834 gnu*)
6835   lt_cv_deplibs_check_method=pass_all
6836   ;;
6837
6838 hpux10.20* | hpux11*)
6839   lt_cv_file_magic_cmd=/usr/bin/file
6840   case $host_cpu in
6841   ia64*)
6842     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6843     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6844     ;;
6845   hppa*64*)
6846     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6847     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6848     ;;
6849   *)
6850     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6851     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6852     ;;
6853   esac
6854   ;;
6855
6856 interix[3-9]*)
6857   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6858   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6859   ;;
6860
6861 irix5* | irix6* | nonstopux*)
6862   case $LD in
6863   *-32|*"-32 ") libmagic=32-bit;;
6864   *-n32|*"-n32 ") libmagic=N32;;
6865   *-64|*"-64 ") libmagic=64-bit;;
6866   *) libmagic=never-match;;
6867   esac
6868   lt_cv_deplibs_check_method=pass_all
6869   ;;
6870
6871 # This must be Linux ELF.
6872 linux* | k*bsd*-gnu)
6873   lt_cv_deplibs_check_method=pass_all
6874   ;;
6875
6876 netbsd*)
6877   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6878     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6879   else
6880     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6881   fi
6882   ;;
6883
6884 newos6*)
6885   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6886   lt_cv_file_magic_cmd=/usr/bin/file
6887   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6888   ;;
6889
6890 nto-qnx*)
6891   lt_cv_deplibs_check_method=unknown
6892   ;;
6893
6894 openbsd*)
6895   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6896     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6897   else
6898     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6899   fi
6900   ;;
6901
6902 osf3* | osf4* | osf5*)
6903   lt_cv_deplibs_check_method=pass_all
6904   ;;
6905
6906 rdos*)
6907   lt_cv_deplibs_check_method=pass_all
6908   ;;
6909
6910 solaris*)
6911   lt_cv_deplibs_check_method=pass_all
6912   ;;
6913
6914 sysv4 | sysv4.3*)
6915   case $host_vendor in
6916   motorola)
6917     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
6918     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6919     ;;
6920   ncr)
6921     lt_cv_deplibs_check_method=pass_all
6922     ;;
6923   sequent)
6924     lt_cv_file_magic_cmd='/bin/file'
6925     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6926     ;;
6927   sni)
6928     lt_cv_file_magic_cmd='/bin/file'
6929     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6930     lt_cv_file_magic_test_file=/lib/libc.so
6931     ;;
6932   siemens)
6933     lt_cv_deplibs_check_method=pass_all
6934     ;;
6935   pc)
6936     lt_cv_deplibs_check_method=pass_all
6937     ;;
6938   esac
6939   ;;
6940
6941 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6942   lt_cv_deplibs_check_method=pass_all
6943   ;;
6944 esac
6945
6946 fi
6947 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6948 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6949 file_magic_cmd=$lt_cv_file_magic_cmd
6950 deplibs_check_method=$lt_cv_deplibs_check_method
6951 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6952
6953
6954
6955
6956 # If no C compiler was specified, use CC.
6957 LTCC=${LTCC-"$CC"}
6958
6959 # If no C compiler flags were specified, use CFLAGS.
6960 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6961
6962 # Allow CC to be a program name with arguments.
6963 compiler=$CC
6964
6965 # Check whether --enable-libtool-lock was given.
6966 if test "${enable_libtool_lock+set}" = set; then
6967   enableval=$enable_libtool_lock; 
6968 fi
6969
6970 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6971
6972 # Some flags need to be propagated to the compiler or linker for good
6973 # libtool support.
6974 case $host in
6975 ia64-*-hpux*)
6976   # Find out which ABI we are using.
6977   echo 'int i;' > conftest.$ac_ext
6978   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6979   (eval $ac_compile) 2>&5
6980   ac_status=$?
6981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982   (exit $ac_status); }; then
6983     case `/usr/bin/file conftest.$ac_objext` in
6984     *ELF-32*)
6985       HPUX_IA64_MODE="32"
6986       ;;
6987     *ELF-64*)
6988       HPUX_IA64_MODE="64"
6989       ;;
6990     esac
6991   fi
6992   rm -rf conftest*
6993   ;;
6994 *-*-irix6*)
6995   # Find out which ABI we are using.
6996   echo '#line __oline__ "configure"' > conftest.$ac_ext
6997   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6998   (eval $ac_compile) 2>&5
6999   ac_status=$?
7000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001   (exit $ac_status); }; then
7002    if test "$lt_cv_prog_gnu_ld" = yes; then
7003     case `/usr/bin/file conftest.$ac_objext` in
7004     *32-bit*)
7005       LD="${LD-ld} -melf32bsmip"
7006       ;;
7007     *N32*)
7008       LD="${LD-ld} -melf32bmipn32"
7009       ;;
7010     *64-bit*)
7011       LD="${LD-ld} -melf64bmip"
7012       ;;
7013     esac
7014    else
7015     case `/usr/bin/file conftest.$ac_objext` in
7016     *32-bit*)
7017       LD="${LD-ld} -32"
7018       ;;
7019     *N32*)
7020       LD="${LD-ld} -n32"
7021       ;;
7022     *64-bit*)
7023       LD="${LD-ld} -64"
7024       ;;
7025     esac
7026    fi
7027   fi
7028   rm -rf conftest*
7029   ;;
7030
7031 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7032 s390*-*linux*|sparc*-*linux*)
7033   # Find out which ABI we are using.
7034   echo 'int i;' > conftest.$ac_ext
7035   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7036   (eval $ac_compile) 2>&5
7037   ac_status=$?
7038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7039   (exit $ac_status); }; then
7040     case `/usr/bin/file conftest.o` in
7041     *32-bit*)
7042       case $host in
7043         x86_64-*kfreebsd*-gnu)
7044           LD="${LD-ld} -m elf_i386_fbsd"
7045           ;;
7046         x86_64-*linux*)
7047           LD="${LD-ld} -m elf_i386"
7048           ;;
7049         ppc64-*linux*|powerpc64-*linux*)
7050           LD="${LD-ld} -m elf32ppclinux"
7051           ;;
7052         s390x-*linux*)
7053           LD="${LD-ld} -m elf_s390"
7054           ;;
7055         sparc64-*linux*)
7056           LD="${LD-ld} -m elf32_sparc"
7057           ;;
7058       esac
7059       ;;
7060     *64-bit*)
7061       case $host in
7062         x86_64-*kfreebsd*-gnu)
7063           LD="${LD-ld} -m elf_x86_64_fbsd"
7064           ;;
7065         x86_64-*linux*)
7066           LD="${LD-ld} -m elf_x86_64"
7067           ;;
7068         ppc*-*linux*|powerpc*-*linux*)
7069           LD="${LD-ld} -m elf64ppc"
7070           ;;
7071         s390*-*linux*)
7072           LD="${LD-ld} -m elf64_s390"
7073           ;;
7074         sparc*-*linux*)
7075           LD="${LD-ld} -m elf64_sparc"
7076           ;;
7077       esac
7078       ;;
7079     esac
7080   fi
7081   rm -rf conftest*
7082   ;;
7083
7084 *-*-sco3.2v5*)
7085   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7086   SAVE_CFLAGS="$CFLAGS"
7087   CFLAGS="$CFLAGS -belf"
7088   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7089 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7090 if test "${lt_cv_cc_needs_belf+set}" = set; then
7091   echo $ECHO_N "(cached) $ECHO_C" >&6
7092 else
7093   ac_ext=c
7094 ac_cpp='$CPP $CPPFLAGS'
7095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7098
7099      cat >conftest.$ac_ext <<_ACEOF
7100 /* confdefs.h.  */
7101 _ACEOF
7102 cat confdefs.h >>conftest.$ac_ext
7103 cat >>conftest.$ac_ext <<_ACEOF
7104 /* end confdefs.h.  */
7105
7106 int
7107 main ()
7108 {
7109
7110   ;
7111   return 0;
7112 }
7113 _ACEOF
7114 rm -f conftest.$ac_objext conftest$ac_exeext
7115 if { (ac_try="$ac_link"
7116 case "(($ac_try" in
7117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7118   *) ac_try_echo=$ac_try;;
7119 esac
7120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7121   (eval "$ac_link") 2>conftest.er1
7122   ac_status=$?
7123   grep -v '^ *+' conftest.er1 >conftest.err
7124   rm -f conftest.er1
7125   cat conftest.err >&5
7126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127   (exit $ac_status); } && {
7128          test -z "$ac_c_werror_flag" ||
7129          test ! -s conftest.err
7130        } && test -s conftest$ac_exeext &&
7131        $as_test_x conftest$ac_exeext; then
7132   lt_cv_cc_needs_belf=yes
7133 else
7134   echo "$as_me: failed program was:" >&5
7135 sed 's/^/| /' conftest.$ac_ext >&5
7136
7137         lt_cv_cc_needs_belf=no
7138 fi
7139
7140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7141       conftest$ac_exeext conftest.$ac_ext
7142      ac_ext=c
7143 ac_cpp='$CPP $CPPFLAGS'
7144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7147
7148 fi
7149 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7150 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7151   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7152     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7153     CFLAGS="$SAVE_CFLAGS"
7154   fi
7155   ;;
7156 sparc*-*solaris*)
7157   # Find out which ABI we are using.
7158   echo 'int i;' > conftest.$ac_ext
7159   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7160   (eval $ac_compile) 2>&5
7161   ac_status=$?
7162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163   (exit $ac_status); }; then
7164     case `/usr/bin/file conftest.o` in
7165     *64-bit*)
7166       case $lt_cv_prog_gnu_ld in
7167       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7168       *)
7169         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7170           LD="${LD-ld} -64"
7171         fi
7172         ;;
7173       esac
7174       ;;
7175     esac
7176   fi
7177   rm -rf conftest*
7178   ;;
7179
7180
7181 esac
7182
7183 need_locks="$enable_libtool_lock"
7184
7185
7186 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7197                   inttypes.h stdint.h unistd.h
7198 do
7199 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7200 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7201 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7202 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7203   echo $ECHO_N "(cached) $ECHO_C" >&6
7204 else
7205   cat >conftest.$ac_ext <<_ACEOF
7206 /* confdefs.h.  */
7207 _ACEOF
7208 cat confdefs.h >>conftest.$ac_ext
7209 cat >>conftest.$ac_ext <<_ACEOF
7210 /* end confdefs.h.  */
7211 $ac_includes_default
7212
7213 @%:@include <$ac_header>
7214 _ACEOF
7215 rm -f conftest.$ac_objext
7216 if { (ac_try="$ac_compile"
7217 case "(($ac_try" in
7218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7219   *) ac_try_echo=$ac_try;;
7220 esac
7221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7222   (eval "$ac_compile") 2>conftest.er1
7223   ac_status=$?
7224   grep -v '^ *+' conftest.er1 >conftest.err
7225   rm -f conftest.er1
7226   cat conftest.err >&5
7227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228   (exit $ac_status); } && {
7229          test -z "$ac_c_werror_flag" ||
7230          test ! -s conftest.err
7231        } && test -s conftest.$ac_objext; then
7232   eval "$as_ac_Header=yes"
7233 else
7234   echo "$as_me: failed program was:" >&5
7235 sed 's/^/| /' conftest.$ac_ext >&5
7236
7237         eval "$as_ac_Header=no"
7238 fi
7239
7240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7241 fi
7242 ac_res=`eval echo '${'$as_ac_Header'}'`
7243                { echo "$as_me:$LINENO: result: $ac_res" >&5
7244 echo "${ECHO_T}$ac_res" >&6; }
7245 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7246   cat >>confdefs.h <<_ACEOF
7247 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7248 _ACEOF
7249  
7250 fi
7251
7252 done
7253
7254
7255
7256 for ac_header in dlfcn.h
7257 do
7258 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7259 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7260   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7262 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7263   echo $ECHO_N "(cached) $ECHO_C" >&6
7264 fi
7265 ac_res=`eval echo '${'$as_ac_Header'}'`
7266                { echo "$as_me:$LINENO: result: $ac_res" >&5
7267 echo "${ECHO_T}$ac_res" >&6; }
7268 else
7269   # Is the header compilable?
7270 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7271 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7272 cat >conftest.$ac_ext <<_ACEOF
7273 /* confdefs.h.  */
7274 _ACEOF
7275 cat confdefs.h >>conftest.$ac_ext
7276 cat >>conftest.$ac_ext <<_ACEOF
7277 /* end confdefs.h.  */
7278 $ac_includes_default
7279 @%:@include <$ac_header>
7280 _ACEOF
7281 rm -f conftest.$ac_objext
7282 if { (ac_try="$ac_compile"
7283 case "(($ac_try" in
7284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7285   *) ac_try_echo=$ac_try;;
7286 esac
7287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7288   (eval "$ac_compile") 2>conftest.er1
7289   ac_status=$?
7290   grep -v '^ *+' conftest.er1 >conftest.err
7291   rm -f conftest.er1
7292   cat conftest.err >&5
7293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294   (exit $ac_status); } && {
7295          test -z "$ac_c_werror_flag" ||
7296          test ! -s conftest.err
7297        } && test -s conftest.$ac_objext; then
7298   ac_header_compiler=yes
7299 else
7300   echo "$as_me: failed program was:" >&5
7301 sed 's/^/| /' conftest.$ac_ext >&5
7302
7303         ac_header_compiler=no
7304 fi
7305
7306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7307 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7308 echo "${ECHO_T}$ac_header_compiler" >&6; }
7309
7310 # Is the header present?
7311 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7312 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7313 cat >conftest.$ac_ext <<_ACEOF
7314 /* confdefs.h.  */
7315 _ACEOF
7316 cat confdefs.h >>conftest.$ac_ext
7317 cat >>conftest.$ac_ext <<_ACEOF
7318 /* end confdefs.h.  */
7319 @%:@include <$ac_header>
7320 _ACEOF
7321 if { (ac_try="$ac_cpp conftest.$ac_ext"
7322 case "(($ac_try" in
7323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7324   *) ac_try_echo=$ac_try;;
7325 esac
7326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7327   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7328   ac_status=$?
7329   grep -v '^ *+' conftest.er1 >conftest.err
7330   rm -f conftest.er1
7331   cat conftest.err >&5
7332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333   (exit $ac_status); } >/dev/null && {
7334          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7335          test ! -s conftest.err
7336        }; then
7337   ac_header_preproc=yes
7338 else
7339   echo "$as_me: failed program was:" >&5
7340 sed 's/^/| /' conftest.$ac_ext >&5
7341
7342   ac_header_preproc=no
7343 fi
7344
7345 rm -f conftest.err conftest.$ac_ext
7346 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7347 echo "${ECHO_T}$ac_header_preproc" >&6; }
7348
7349 # So?  What about this header?
7350 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7351   yes:no: )
7352     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7353 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7354     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7355 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7356     ac_header_preproc=yes
7357     ;;
7358   no:yes:* )
7359     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7360 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7361     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7362 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7363     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7364 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7365     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7366 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7367     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7368 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7369     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7370 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7371     
7372     ;;
7373 esac
7374 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7377   echo $ECHO_N "(cached) $ECHO_C" >&6
7378 else
7379   eval "$as_ac_Header=\$ac_header_preproc"
7380 fi
7381 ac_res=`eval echo '${'$as_ac_Header'}'`
7382                { echo "$as_me:$LINENO: result: $ac_res" >&5
7383 echo "${ECHO_T}$ac_res" >&6; }
7384
7385 fi
7386 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7387   cat >>confdefs.h <<_ACEOF
7388 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7389 _ACEOF
7390  
7391 fi
7392
7393 done
7394
7395
7396
7397 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7398     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7399     (test "X$CXX" != "Xg++"))) ; then
7400   ac_ext=cpp
7401 ac_cpp='$CXXCPP $CPPFLAGS'
7402 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7403 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7404 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7405 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7406 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
7407 if test -z "$CXXCPP"; then
7408   if test "${ac_cv_prog_CXXCPP+set}" = set; then
7409   echo $ECHO_N "(cached) $ECHO_C" >&6
7410 else
7411       # Double quotes because CXXCPP needs to be expanded
7412     for CXXCPP in "$CXX -E" "/lib/cpp"
7413     do
7414       ac_preproc_ok=false
7415 for ac_cxx_preproc_warn_flag in '' yes
7416 do
7417   # Use a header file that comes with gcc, so configuring glibc
7418   # with a fresh cross-compiler works.
7419   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7420   # <limits.h> exists even on freestanding compilers.
7421   # On the NeXT, cc -E runs the code through the compiler's parser,
7422   # not just through cpp. "Syntax error" is here to catch this case.
7423   cat >conftest.$ac_ext <<_ACEOF
7424 /* confdefs.h.  */
7425 _ACEOF
7426 cat confdefs.h >>conftest.$ac_ext
7427 cat >>conftest.$ac_ext <<_ACEOF
7428 /* end confdefs.h.  */
7429 @%:@ifdef __STDC__
7430 @%:@ include <limits.h>
7431 @%:@else
7432 @%:@ include <assert.h>
7433 @%:@endif
7434                      Syntax error
7435 _ACEOF
7436 if { (ac_try="$ac_cpp conftest.$ac_ext"
7437 case "(($ac_try" in
7438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7439   *) ac_try_echo=$ac_try;;
7440 esac
7441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7442   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7443   ac_status=$?
7444   grep -v '^ *+' conftest.er1 >conftest.err
7445   rm -f conftest.er1
7446   cat conftest.err >&5
7447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448   (exit $ac_status); } >/dev/null && {
7449          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7450          test ! -s conftest.err
7451        }; then
7452   :
7453 else
7454   echo "$as_me: failed program was:" >&5
7455 sed 's/^/| /' conftest.$ac_ext >&5
7456
7457   # Broken: fails on valid input.
7458 continue
7459 fi
7460
7461 rm -f conftest.err conftest.$ac_ext
7462
7463   # OK, works on sane cases.  Now check whether nonexistent headers
7464   # can be detected and how.
7465   cat >conftest.$ac_ext <<_ACEOF
7466 /* confdefs.h.  */
7467 _ACEOF
7468 cat confdefs.h >>conftest.$ac_ext
7469 cat >>conftest.$ac_ext <<_ACEOF
7470 /* end confdefs.h.  */
7471 @%:@include <ac_nonexistent.h>
7472 _ACEOF
7473 if { (ac_try="$ac_cpp conftest.$ac_ext"
7474 case "(($ac_try" in
7475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7476   *) ac_try_echo=$ac_try;;
7477 esac
7478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7479   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7480   ac_status=$?
7481   grep -v '^ *+' conftest.er1 >conftest.err
7482   rm -f conftest.er1
7483   cat conftest.err >&5
7484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7485   (exit $ac_status); } >/dev/null && {
7486          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7487          test ! -s conftest.err
7488        }; then
7489   # Broken: success on invalid input.
7490 continue
7491 else
7492   echo "$as_me: failed program was:" >&5
7493 sed 's/^/| /' conftest.$ac_ext >&5
7494
7495   # Passes both tests.
7496 ac_preproc_ok=:
7497 break
7498 fi
7499
7500 rm -f conftest.err conftest.$ac_ext
7501
7502 done
7503 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7504 rm -f conftest.err conftest.$ac_ext
7505 if $ac_preproc_ok; then
7506   break
7507 fi
7508
7509     done
7510     ac_cv_prog_CXXCPP=$CXXCPP
7511   
7512 fi
7513   CXXCPP=$ac_cv_prog_CXXCPP
7514 else
7515   ac_cv_prog_CXXCPP=$CXXCPP
7516 fi
7517 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
7518 echo "${ECHO_T}$CXXCPP" >&6; }
7519 ac_preproc_ok=false
7520 for ac_cxx_preproc_warn_flag in '' yes
7521 do
7522   # Use a header file that comes with gcc, so configuring glibc
7523   # with a fresh cross-compiler works.
7524   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7525   # <limits.h> exists even on freestanding compilers.
7526   # On the NeXT, cc -E runs the code through the compiler's parser,
7527   # not just through cpp. "Syntax error" is here to catch this case.
7528   cat >conftest.$ac_ext <<_ACEOF
7529 /* confdefs.h.  */
7530 _ACEOF
7531 cat confdefs.h >>conftest.$ac_ext
7532 cat >>conftest.$ac_ext <<_ACEOF
7533 /* end confdefs.h.  */
7534 @%:@ifdef __STDC__
7535 @%:@ include <limits.h>
7536 @%:@else
7537 @%:@ include <assert.h>
7538 @%:@endif
7539                      Syntax error
7540 _ACEOF
7541 if { (ac_try="$ac_cpp conftest.$ac_ext"
7542 case "(($ac_try" in
7543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7544   *) ac_try_echo=$ac_try;;
7545 esac
7546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7547   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7548   ac_status=$?
7549   grep -v '^ *+' conftest.er1 >conftest.err
7550   rm -f conftest.er1
7551   cat conftest.err >&5
7552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553   (exit $ac_status); } >/dev/null && {
7554          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7555          test ! -s conftest.err
7556        }; then
7557   :
7558 else
7559   echo "$as_me: failed program was:" >&5
7560 sed 's/^/| /' conftest.$ac_ext >&5
7561
7562   # Broken: fails on valid input.
7563 continue
7564 fi
7565
7566 rm -f conftest.err conftest.$ac_ext
7567
7568   # OK, works on sane cases.  Now check whether nonexistent headers
7569   # can be detected and how.
7570   cat >conftest.$ac_ext <<_ACEOF
7571 /* confdefs.h.  */
7572 _ACEOF
7573 cat confdefs.h >>conftest.$ac_ext
7574 cat >>conftest.$ac_ext <<_ACEOF
7575 /* end confdefs.h.  */
7576 @%:@include <ac_nonexistent.h>
7577 _ACEOF
7578 if { (ac_try="$ac_cpp conftest.$ac_ext"
7579 case "(($ac_try" in
7580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7581   *) ac_try_echo=$ac_try;;
7582 esac
7583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7584   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7585   ac_status=$?
7586   grep -v '^ *+' conftest.er1 >conftest.err
7587   rm -f conftest.er1
7588   cat conftest.err >&5
7589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7590   (exit $ac_status); } >/dev/null && {
7591          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7592          test ! -s conftest.err
7593        }; then
7594   # Broken: success on invalid input.
7595 continue
7596 else
7597   echo "$as_me: failed program was:" >&5
7598 sed 's/^/| /' conftest.$ac_ext >&5
7599
7600   # Passes both tests.
7601 ac_preproc_ok=:
7602 break
7603 fi
7604
7605 rm -f conftest.err conftest.$ac_ext
7606
7607 done
7608 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7609 rm -f conftest.err conftest.$ac_ext
7610 if $ac_preproc_ok; then
7611   :
7612 else
7613   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7614 See \`config.log' for more details." >&5
7615 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7616 See \`config.log' for more details." >&2;}
7617    { (exit 1); exit 1; }; }
7618 fi
7619
7620 ac_ext=cpp
7621 ac_cpp='$CXXCPP $CPPFLAGS'
7622 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7623 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7624 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7625
7626 fi
7627
7628
7629 ac_ext=f
7630 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7631 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7632 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7633 if test -n "$ac_tool_prefix"; then
7634   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
7635   do
7636     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7637 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7638 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7640 if test "${ac_cv_prog_F77+set}" = set; then
7641   echo $ECHO_N "(cached) $ECHO_C" >&6
7642 else
7643   if test -n "$F77"; then
7644   ac_cv_prog_F77="$F77" # Let the user override the test.
7645 else
7646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7647 for as_dir in $PATH
7648 do
7649   IFS=$as_save_IFS
7650   test -z "$as_dir" && as_dir=.
7651   for ac_exec_ext in '' $ac_executable_extensions; do
7652   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7653     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7654     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7655     break 2
7656   fi
7657 done
7658 done
7659 IFS=$as_save_IFS
7660
7661 fi
7662 fi
7663 F77=$ac_cv_prog_F77
7664 if test -n "$F77"; then
7665   { echo "$as_me:$LINENO: result: $F77" >&5
7666 echo "${ECHO_T}$F77" >&6; }
7667 else
7668   { echo "$as_me:$LINENO: result: no" >&5
7669 echo "${ECHO_T}no" >&6; }
7670 fi
7671
7672
7673     test -n "$F77" && break
7674   done
7675 fi
7676 if test -z "$F77"; then
7677   ac_ct_F77=$F77
7678   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
7679 do
7680   # Extract the first word of "$ac_prog", so it can be a program name with args.
7681 set dummy $ac_prog; ac_word=$2
7682 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7684 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7685   echo $ECHO_N "(cached) $ECHO_C" >&6
7686 else
7687   if test -n "$ac_ct_F77"; then
7688   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7689 else
7690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7691 for as_dir in $PATH
7692 do
7693   IFS=$as_save_IFS
7694   test -z "$as_dir" && as_dir=.
7695   for ac_exec_ext in '' $ac_executable_extensions; do
7696   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7697     ac_cv_prog_ac_ct_F77="$ac_prog"
7698     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7699     break 2
7700   fi
7701 done
7702 done
7703 IFS=$as_save_IFS
7704
7705 fi
7706 fi
7707 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7708 if test -n "$ac_ct_F77"; then
7709   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7710 echo "${ECHO_T}$ac_ct_F77" >&6; }
7711 else
7712   { echo "$as_me:$LINENO: result: no" >&5
7713 echo "${ECHO_T}no" >&6; }
7714 fi
7715
7716
7717   test -n "$ac_ct_F77" && break
7718 done
7719
7720   if test "x$ac_ct_F77" = x; then
7721     F77=""
7722   else
7723     case $cross_compiling:$ac_tool_warned in
7724 yes:)
7725 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7726 whose name does not start with the host triplet.  If you think this
7727 configuration is useful to you, please write to autoconf@gnu.org." >&5
7728 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7729 whose name does not start with the host triplet.  If you think this
7730 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7731 ac_tool_warned=yes ;;
7732 esac
7733     F77=$ac_ct_F77
7734   fi
7735 fi
7736
7737
7738 # Provide some information about the compiler.
7739 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7740 ac_compiler=`set X $ac_compile; echo $2`
7741 { (ac_try="$ac_compiler --version >&5"
7742 case "(($ac_try" in
7743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7744   *) ac_try_echo=$ac_try;;
7745 esac
7746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7747   (eval "$ac_compiler --version >&5") 2>&5
7748   ac_status=$?
7749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750   (exit $ac_status); }
7751 { (ac_try="$ac_compiler -v >&5"
7752 case "(($ac_try" in
7753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7754   *) ac_try_echo=$ac_try;;
7755 esac
7756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7757   (eval "$ac_compiler -v >&5") 2>&5
7758   ac_status=$?
7759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760   (exit $ac_status); }
7761 { (ac_try="$ac_compiler -V >&5"
7762 case "(($ac_try" in
7763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7764   *) ac_try_echo=$ac_try;;
7765 esac
7766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7767   (eval "$ac_compiler -V >&5") 2>&5
7768   ac_status=$?
7769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770   (exit $ac_status); }
7771 rm -f a.out
7772
7773 # If we don't use `.F' as extension, the preprocessor is not run on the
7774 # input file.  (Note that this only needs to work for GNU compilers.)
7775 ac_save_ext=$ac_ext
7776 ac_ext=F
7777 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7778 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7779 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7780   echo $ECHO_N "(cached) $ECHO_C" >&6
7781 else
7782   cat >conftest.$ac_ext <<_ACEOF
7783       program main
7784 #ifndef __GNUC__
7785        choke me
7786 #endif
7787
7788       end
7789 _ACEOF
7790 rm -f conftest.$ac_objext
7791 if { (ac_try="$ac_compile"
7792 case "(($ac_try" in
7793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7794   *) ac_try_echo=$ac_try;;
7795 esac
7796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7797   (eval "$ac_compile") 2>conftest.er1
7798   ac_status=$?
7799   grep -v '^ *+' conftest.er1 >conftest.err
7800   rm -f conftest.er1
7801   cat conftest.err >&5
7802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803   (exit $ac_status); } && {
7804          test -z "$ac_f77_werror_flag" ||
7805          test ! -s conftest.err
7806        } && test -s conftest.$ac_objext; then
7807   ac_compiler_gnu=yes
7808 else
7809   echo "$as_me: failed program was:" >&5
7810 sed 's/^/| /' conftest.$ac_ext >&5
7811
7812         ac_compiler_gnu=no
7813 fi
7814
7815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7816 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7817
7818 fi
7819 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7820 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7821 ac_ext=$ac_save_ext
7822 ac_test_FFLAGS=${FFLAGS+set}
7823 ac_save_FFLAGS=$FFLAGS
7824 FFLAGS=
7825 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7826 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7827 if test "${ac_cv_prog_f77_g+set}" = set; then
7828   echo $ECHO_N "(cached) $ECHO_C" >&6
7829 else
7830   FFLAGS=-g
7831 cat >conftest.$ac_ext <<_ACEOF
7832       program main
7833
7834       end
7835 _ACEOF
7836 rm -f conftest.$ac_objext
7837 if { (ac_try="$ac_compile"
7838 case "(($ac_try" in
7839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7840   *) ac_try_echo=$ac_try;;
7841 esac
7842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7843   (eval "$ac_compile") 2>conftest.er1
7844   ac_status=$?
7845   grep -v '^ *+' conftest.er1 >conftest.err
7846   rm -f conftest.er1
7847   cat conftest.err >&5
7848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849   (exit $ac_status); } && {
7850          test -z "$ac_f77_werror_flag" ||
7851          test ! -s conftest.err
7852        } && test -s conftest.$ac_objext; then
7853   ac_cv_prog_f77_g=yes
7854 else
7855   echo "$as_me: failed program was:" >&5
7856 sed 's/^/| /' conftest.$ac_ext >&5
7857
7858         ac_cv_prog_f77_g=no
7859 fi
7860
7861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7862
7863 fi
7864 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7865 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7866 if test "$ac_test_FFLAGS" = set; then
7867   FFLAGS=$ac_save_FFLAGS
7868 elif test $ac_cv_prog_f77_g = yes; then
7869   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7870     FFLAGS="-g -O2"
7871   else
7872     FFLAGS="-g"
7873   fi
7874 else
7875   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7876     FFLAGS="-O2"
7877   else
7878     FFLAGS=
7879   fi
7880 fi
7881
7882 G77=`test $ac_compiler_gnu = yes && echo yes`
7883 ac_ext=c
7884 ac_cpp='$CPP $CPPFLAGS'
7885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7888
7889
7890
7891 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7892 # find the maximum length of command line arguments
7893 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7894 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7895 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7896   echo $ECHO_N "(cached) $ECHO_C" >&6
7897 else
7898     i=0
7899   teststring="ABCD"
7900
7901   case $build_os in
7902   msdosdjgpp*)
7903     # On DJGPP, this test can blow up pretty badly due to problems in libc
7904     # (any single argument exceeding 2000 bytes causes a buffer overrun
7905     # during glob expansion).  Even if it were fixed, the result of this
7906     # check would be larger than it should be.
7907     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7908     ;;
7909
7910   gnu*)
7911     # Under GNU Hurd, this test is not required because there is
7912     # no limit to the length of command line arguments.
7913     # Libtool will interpret -1 as no limit whatsoever
7914     lt_cv_sys_max_cmd_len=-1;
7915     ;;
7916
7917   cygwin* | mingw*)
7918     # On Win9x/ME, this test blows up -- it succeeds, but takes
7919     # about 5 minutes as the teststring grows exponentially.
7920     # Worse, since 9x/ME are not pre-emptively multitasking,
7921     # you end up with a "frozen" computer, even though with patience
7922     # the test eventually succeeds (with a max line length of 256k).
7923     # Instead, let's just punt: use the minimum linelength reported by
7924     # all of the supported platforms: 8192 (on NT/2K/XP).
7925     lt_cv_sys_max_cmd_len=8192;
7926     ;;
7927
7928   amigaos*)
7929     # On AmigaOS with pdksh, this test takes hours, literally.
7930     # So we just punt and use a minimum line length of 8192.
7931     lt_cv_sys_max_cmd_len=8192;
7932     ;;
7933
7934   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7935     # This has been around since 386BSD, at least.  Likely further.
7936     if test -x /sbin/sysctl; then
7937       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7938     elif test -x /usr/sbin/sysctl; then
7939       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7940     else
7941       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7942     fi
7943     # And add a safety zone
7944     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7945     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7946     ;;
7947
7948   interix*)
7949     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7950     lt_cv_sys_max_cmd_len=196608
7951     ;;
7952
7953   osf*)
7954     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7955     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7956     # nice to cause kernel panics so lets avoid the loop below.
7957     # First set a reasonable default.
7958     lt_cv_sys_max_cmd_len=16384
7959     #
7960     if test -x /sbin/sysconfig; then
7961       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7962         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7963       esac
7964     fi
7965     ;;
7966   sco3.2v5*)
7967     lt_cv_sys_max_cmd_len=102400
7968     ;;
7969   sysv5* | sco5v6* | sysv4.2uw2*)
7970     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7971     if test -n "$kargmax"; then
7972       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7973     else
7974       lt_cv_sys_max_cmd_len=32768
7975     fi
7976     ;;
7977   *)
7978     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7979     if test -n "$lt_cv_sys_max_cmd_len"; then
7980       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7981       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7982     else
7983       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7984       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7985                = "XX$teststring") >/dev/null 2>&1 &&
7986               new_result=`expr "X$teststring" : ".*" 2>&1` &&
7987               lt_cv_sys_max_cmd_len=$new_result &&
7988               test $i != 17 # 1/2 MB should be enough
7989       do
7990         i=`expr $i + 1`
7991         teststring=$teststring$teststring
7992       done
7993       teststring=
7994       # Add a significant safety factor because C++ compilers can tack on massive
7995       # amounts of additional arguments before passing them to the linker.
7996       # It appears as though 1/2 is a usable value.
7997       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7998     fi
7999     ;;
8000   esac
8001
8002 fi
8003
8004 if test -n $lt_cv_sys_max_cmd_len ; then
8005   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8006 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
8007 else
8008   { echo "$as_me:$LINENO: result: none" >&5
8009 echo "${ECHO_T}none" >&6; }
8010 fi
8011
8012
8013
8014
8015
8016 # Check for command to grab the raw symbol name followed by C symbol from nm.
8017 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8018 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
8019 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8020   echo $ECHO_N "(cached) $ECHO_C" >&6
8021 else
8022   
8023 # These are sane defaults that work on at least a few old systems.
8024 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8025
8026 # Character class describing NM global symbol codes.
8027 symcode='[BCDEGRST]'
8028
8029 # Regexp to match symbols that can be accessed directly from C.
8030 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8031
8032 # Transform an extracted symbol line into a proper C declaration
8033 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8034
8035 # Transform an extracted symbol line into symbol name and symbol address
8036 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
8037
8038 # Define system-specific variables.
8039 case $host_os in
8040 aix*)
8041   symcode='[BCDT]'
8042   ;;
8043 cygwin* | mingw* | pw32*)
8044   symcode='[ABCDGISTW]'
8045   ;;
8046 hpux*) # Its linker distinguishes data from code symbols
8047   if test "$host_cpu" = ia64; then
8048     symcode='[ABCDEGRST]'
8049   fi
8050   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8051   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
8052   ;;
8053 linux* | k*bsd*-gnu)
8054   if test "$host_cpu" = ia64; then
8055     symcode='[ABCDGIRSTW]'
8056     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8057     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
8058   fi
8059   ;;
8060 irix* | nonstopux*)
8061   symcode='[BCDEGRST]'
8062   ;;
8063 osf*)
8064   symcode='[BCDEGQRST]'
8065   ;;
8066 solaris*)
8067   symcode='[BDRT]'
8068   ;;
8069 sco3.2v5*)
8070   symcode='[DT]'
8071   ;;
8072 sysv4.2uw2*)
8073   symcode='[DT]'
8074   ;;
8075 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8076   symcode='[ABDT]'
8077   ;;
8078 sysv4)
8079   symcode='[DFNSTU]'
8080   ;;
8081 esac
8082
8083 # Handle CRLF in mingw tool chain
8084 opt_cr=
8085 case $build_os in
8086 mingw*)
8087   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8088   ;;
8089 esac
8090
8091 # If we're using GNU nm, then use its standard symbol codes.
8092 case `$NM -V 2>&1` in
8093 *GNU* | *'with BFD'*)
8094   symcode='[ABCDGIRSTW]' ;;
8095 esac
8096
8097 # Try without a prefix undercore, then with it.
8098 for ac_symprfx in "" "_"; do
8099
8100   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8101   symxfrm="\\1 $ac_symprfx\\2 \\2"
8102
8103   # Write the raw and C identifiers.
8104   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8105
8106   # Check to see that the pipe works correctly.
8107   pipe_works=no
8108
8109   rm -f conftest*
8110   cat > conftest.$ac_ext <<EOF
8111 #ifdef __cplusplus
8112 extern "C" {
8113 #endif
8114 char nm_test_var;
8115 void nm_test_func(){}
8116 #ifdef __cplusplus
8117 }
8118 #endif
8119 int main(){nm_test_var='a';nm_test_func();return(0);}
8120 EOF
8121
8122   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8123   (eval $ac_compile) 2>&5
8124   ac_status=$?
8125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126   (exit $ac_status); }; then
8127     # Now try to grab the symbols.
8128     nlist=conftest.nm
8129     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8130   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8131   ac_status=$?
8132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133   (exit $ac_status); } && test -s "$nlist"; then
8134       # Try sorting and uniquifying the output.
8135       if sort "$nlist" | uniq > "$nlist"T; then
8136         mv -f "$nlist"T "$nlist"
8137       else
8138         rm -f "$nlist"T
8139       fi
8140
8141       # Make sure that we snagged all the symbols we need.
8142       if grep ' nm_test_var$' "$nlist" >/dev/null; then
8143         if grep ' nm_test_func$' "$nlist" >/dev/null; then
8144           cat <<EOF > conftest.$ac_ext
8145 #ifdef __cplusplus
8146 extern "C" {
8147 #endif
8148
8149 EOF
8150           # Now generate the symbol file.
8151           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8152
8153           cat <<EOF >> conftest.$ac_ext
8154 #if defined (__STDC__) && __STDC__
8155 # define lt_ptr_t void *
8156 #else
8157 # define lt_ptr_t char *
8158 # define const
8159 #endif
8160
8161 /* The mapping between symbol names and symbols. */
8162 const struct {
8163   const char *name;
8164   lt_ptr_t address;
8165 }
8166 lt_preloaded_symbols[] =
8167 {
8168 EOF
8169           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8170           cat <<\EOF >> conftest.$ac_ext
8171   {0, (lt_ptr_t) 0}
8172 };
8173
8174 #ifdef __cplusplus
8175 }
8176 #endif
8177 EOF
8178           # Now try linking the two files.
8179           mv conftest.$ac_objext conftstm.$ac_objext
8180           lt_save_LIBS="$LIBS"
8181           lt_save_CFLAGS="$CFLAGS"
8182           LIBS="conftstm.$ac_objext"
8183           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8184           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8185   (eval $ac_link) 2>&5
8186   ac_status=$?
8187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188   (exit $ac_status); } && test -s conftest${ac_exeext}; then
8189             pipe_works=yes
8190           fi
8191           LIBS="$lt_save_LIBS"
8192           CFLAGS="$lt_save_CFLAGS"
8193         else
8194           echo "cannot find nm_test_func in $nlist" >&5
8195         fi
8196       else
8197         echo "cannot find nm_test_var in $nlist" >&5
8198       fi
8199     else
8200       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8201     fi
8202   else
8203     echo "$progname: failed program was:" >&5
8204     cat conftest.$ac_ext >&5
8205   fi
8206   rm -rf conftest* conftst*
8207
8208   # Do not use the global_symbol_pipe unless it works.
8209   if test "$pipe_works" = yes; then
8210     break
8211   else
8212     lt_cv_sys_global_symbol_pipe=
8213   fi
8214 done
8215
8216 fi
8217
8218 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8219   lt_cv_sys_global_symbol_to_cdecl=
8220 fi
8221 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8222   { echo "$as_me:$LINENO: result: failed" >&5
8223 echo "${ECHO_T}failed" >&6; }
8224 else
8225   { echo "$as_me:$LINENO: result: ok" >&5
8226 echo "${ECHO_T}ok" >&6; }
8227 fi
8228
8229 { echo "$as_me:$LINENO: checking for objdir" >&5
8230 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
8231 if test "${lt_cv_objdir+set}" = set; then
8232   echo $ECHO_N "(cached) $ECHO_C" >&6
8233 else
8234   rm -f .libs 2>/dev/null
8235 mkdir .libs 2>/dev/null
8236 if test -d .libs; then
8237   lt_cv_objdir=.libs
8238 else
8239   # MS-DOS does not allow filenames that begin with a dot.
8240   lt_cv_objdir=_libs
8241 fi
8242 rmdir .libs 2>/dev/null
8243 fi
8244 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8245 echo "${ECHO_T}$lt_cv_objdir" >&6; }
8246 objdir=$lt_cv_objdir
8247
8248
8249
8250
8251
8252 case $host_os in
8253 aix3*)
8254   # AIX sometimes has problems with the GCC collect2 program.  For some
8255   # reason, if we set the COLLECT_NAMES environment variable, the problems
8256   # vanish in a puff of smoke.
8257   if test "X${COLLECT_NAMES+set}" != Xset; then
8258     COLLECT_NAMES=
8259     export COLLECT_NAMES
8260   fi
8261   ;;
8262 esac
8263
8264 # Sed substitution that helps us do robust quoting.  It backslashifies
8265 # metacharacters that are still active within double-quoted strings.
8266 Xsed='sed -e 1s/^X//'
8267 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8268
8269 # Same as above, but do not quote variable references.
8270 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8271
8272 # Sed substitution to delay expansion of an escaped shell variable in a
8273 # double_quote_subst'ed string.
8274 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8275
8276 # Sed substitution to avoid accidental globbing in evaled expressions
8277 no_glob_subst='s/\*/\\\*/g'
8278
8279 # Constants:
8280 rm="rm -f"
8281
8282 # Global variables:
8283 default_ofile=libtool
8284 can_build_shared=yes
8285
8286 # All known linkers require a `.a' archive for static linking (except MSVC,
8287 # which needs '.lib').
8288 libext=a
8289 ltmain="$ac_aux_dir/ltmain.sh"
8290 ofile="$default_ofile"
8291 with_gnu_ld="$lt_cv_prog_gnu_ld"
8292
8293 if test -n "$ac_tool_prefix"; then
8294   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8295 set dummy ${ac_tool_prefix}ar; ac_word=$2
8296 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8298 if test "${ac_cv_prog_AR+set}" = set; then
8299   echo $ECHO_N "(cached) $ECHO_C" >&6
8300 else
8301   if test -n "$AR"; then
8302   ac_cv_prog_AR="$AR" # Let the user override the test.
8303 else
8304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8305 for as_dir in $PATH
8306 do
8307   IFS=$as_save_IFS
8308   test -z "$as_dir" && as_dir=.
8309   for ac_exec_ext in '' $ac_executable_extensions; do
8310   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8311     ac_cv_prog_AR="${ac_tool_prefix}ar"
8312     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8313     break 2
8314   fi
8315 done
8316 done
8317 IFS=$as_save_IFS
8318
8319 fi
8320 fi
8321 AR=$ac_cv_prog_AR
8322 if test -n "$AR"; then
8323   { echo "$as_me:$LINENO: result: $AR" >&5
8324 echo "${ECHO_T}$AR" >&6; }
8325 else
8326   { echo "$as_me:$LINENO: result: no" >&5
8327 echo "${ECHO_T}no" >&6; }
8328 fi
8329
8330
8331 fi
8332 if test -z "$ac_cv_prog_AR"; then
8333   ac_ct_AR=$AR
8334   # Extract the first word of "ar", so it can be a program name with args.
8335 set dummy ar; ac_word=$2
8336 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8338 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8339   echo $ECHO_N "(cached) $ECHO_C" >&6
8340 else
8341   if test -n "$ac_ct_AR"; then
8342   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8343 else
8344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8345 for as_dir in $PATH
8346 do
8347   IFS=$as_save_IFS
8348   test -z "$as_dir" && as_dir=.
8349   for ac_exec_ext in '' $ac_executable_extensions; do
8350   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8351     ac_cv_prog_ac_ct_AR="ar"
8352     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8353     break 2
8354   fi
8355 done
8356 done
8357 IFS=$as_save_IFS
8358
8359 fi
8360 fi
8361 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8362 if test -n "$ac_ct_AR"; then
8363   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8364 echo "${ECHO_T}$ac_ct_AR" >&6; }
8365 else
8366   { echo "$as_me:$LINENO: result: no" >&5
8367 echo "${ECHO_T}no" >&6; }
8368 fi
8369
8370   if test "x$ac_ct_AR" = x; then
8371     AR="false"
8372   else
8373     case $cross_compiling:$ac_tool_warned in
8374 yes:)
8375 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8376 whose name does not start with the host triplet.  If you think this
8377 configuration is useful to you, please write to autoconf@gnu.org." >&5
8378 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8379 whose name does not start with the host triplet.  If you think this
8380 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8381 ac_tool_warned=yes ;;
8382 esac
8383     AR=$ac_ct_AR
8384   fi
8385 else
8386   AR="$ac_cv_prog_AR"
8387 fi
8388
8389 if test -n "$ac_tool_prefix"; then
8390   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8391 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8392 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8394 if test "${ac_cv_prog_RANLIB+set}" = set; then
8395   echo $ECHO_N "(cached) $ECHO_C" >&6
8396 else
8397   if test -n "$RANLIB"; then
8398   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8399 else
8400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8401 for as_dir in $PATH
8402 do
8403   IFS=$as_save_IFS
8404   test -z "$as_dir" && as_dir=.
8405   for ac_exec_ext in '' $ac_executable_extensions; do
8406   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8407     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8408     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8409     break 2
8410   fi
8411 done
8412 done
8413 IFS=$as_save_IFS
8414
8415 fi
8416 fi
8417 RANLIB=$ac_cv_prog_RANLIB
8418 if test -n "$RANLIB"; then
8419   { echo "$as_me:$LINENO: result: $RANLIB" >&5
8420 echo "${ECHO_T}$RANLIB" >&6; }
8421 else
8422   { echo "$as_me:$LINENO: result: no" >&5
8423 echo "${ECHO_T}no" >&6; }
8424 fi
8425
8426
8427 fi
8428 if test -z "$ac_cv_prog_RANLIB"; then
8429   ac_ct_RANLIB=$RANLIB
8430   # Extract the first word of "ranlib", so it can be a program name with args.
8431 set dummy ranlib; ac_word=$2
8432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8434 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8435   echo $ECHO_N "(cached) $ECHO_C" >&6
8436 else
8437   if test -n "$ac_ct_RANLIB"; then
8438   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8439 else
8440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8441 for as_dir in $PATH
8442 do
8443   IFS=$as_save_IFS
8444   test -z "$as_dir" && as_dir=.
8445   for ac_exec_ext in '' $ac_executable_extensions; do
8446   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8447     ac_cv_prog_ac_ct_RANLIB="ranlib"
8448     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8449     break 2
8450   fi
8451 done
8452 done
8453 IFS=$as_save_IFS
8454
8455 fi
8456 fi
8457 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8458 if test -n "$ac_ct_RANLIB"; then
8459   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8460 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8461 else
8462   { echo "$as_me:$LINENO: result: no" >&5
8463 echo "${ECHO_T}no" >&6; }
8464 fi
8465
8466   if test "x$ac_ct_RANLIB" = x; then
8467     RANLIB=":"
8468   else
8469     case $cross_compiling:$ac_tool_warned in
8470 yes:)
8471 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8472 whose name does not start with the host triplet.  If you think this
8473 configuration is useful to you, please write to autoconf@gnu.org." >&5
8474 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8475 whose name does not start with the host triplet.  If you think this
8476 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8477 ac_tool_warned=yes ;;
8478 esac
8479     RANLIB=$ac_ct_RANLIB
8480   fi
8481 else
8482   RANLIB="$ac_cv_prog_RANLIB"
8483 fi
8484
8485 if test -n "$ac_tool_prefix"; then
8486   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8487 set dummy ${ac_tool_prefix}strip; ac_word=$2
8488 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8490 if test "${ac_cv_prog_STRIP+set}" = set; then
8491   echo $ECHO_N "(cached) $ECHO_C" >&6
8492 else
8493   if test -n "$STRIP"; then
8494   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8495 else
8496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8497 for as_dir in $PATH
8498 do
8499   IFS=$as_save_IFS
8500   test -z "$as_dir" && as_dir=.
8501   for ac_exec_ext in '' $ac_executable_extensions; do
8502   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8503     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8504     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8505     break 2
8506   fi
8507 done
8508 done
8509 IFS=$as_save_IFS
8510
8511 fi
8512 fi
8513 STRIP=$ac_cv_prog_STRIP
8514 if test -n "$STRIP"; then
8515   { echo "$as_me:$LINENO: result: $STRIP" >&5
8516 echo "${ECHO_T}$STRIP" >&6; }
8517 else
8518   { echo "$as_me:$LINENO: result: no" >&5
8519 echo "${ECHO_T}no" >&6; }
8520 fi
8521
8522
8523 fi
8524 if test -z "$ac_cv_prog_STRIP"; then
8525   ac_ct_STRIP=$STRIP
8526   # Extract the first word of "strip", so it can be a program name with args.
8527 set dummy strip; ac_word=$2
8528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8530 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8531   echo $ECHO_N "(cached) $ECHO_C" >&6
8532 else
8533   if test -n "$ac_ct_STRIP"; then
8534   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8535 else
8536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8537 for as_dir in $PATH
8538 do
8539   IFS=$as_save_IFS
8540   test -z "$as_dir" && as_dir=.
8541   for ac_exec_ext in '' $ac_executable_extensions; do
8542   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8543     ac_cv_prog_ac_ct_STRIP="strip"
8544     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8545     break 2
8546   fi
8547 done
8548 done
8549 IFS=$as_save_IFS
8550
8551 fi
8552 fi
8553 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8554 if test -n "$ac_ct_STRIP"; then
8555   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8556 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8557 else
8558   { echo "$as_me:$LINENO: result: no" >&5
8559 echo "${ECHO_T}no" >&6; }
8560 fi
8561
8562   if test "x$ac_ct_STRIP" = x; then
8563     STRIP=":"
8564   else
8565     case $cross_compiling:$ac_tool_warned in
8566 yes:)
8567 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8568 whose name does not start with the host triplet.  If you think this
8569 configuration is useful to you, please write to autoconf@gnu.org." >&5
8570 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8571 whose name does not start with the host triplet.  If you think this
8572 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8573 ac_tool_warned=yes ;;
8574 esac
8575     STRIP=$ac_ct_STRIP
8576   fi
8577 else
8578   STRIP="$ac_cv_prog_STRIP"
8579 fi
8580
8581
8582 old_CC="$CC"
8583 old_CFLAGS="$CFLAGS"
8584
8585 # Set sane defaults for various variables
8586 test -z "$AR" && AR=ar
8587 test -z "$AR_FLAGS" && AR_FLAGS=cru
8588 test -z "$AS" && AS=as
8589 test -z "$CC" && CC=cc
8590 test -z "$LTCC" && LTCC=$CC
8591 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8592 test -z "$DLLTOOL" && DLLTOOL=dlltool
8593 test -z "$LD" && LD=ld
8594 test -z "$LN_S" && LN_S="ln -s"
8595 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8596 test -z "$NM" && NM=nm
8597 test -z "$SED" && SED=sed
8598 test -z "$OBJDUMP" && OBJDUMP=objdump
8599 test -z "$RANLIB" && RANLIB=:
8600 test -z "$STRIP" && STRIP=:
8601 test -z "$ac_objext" && ac_objext=o
8602
8603 # Determine commands to create old-style static archives.
8604 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8605 old_postinstall_cmds='chmod 644 $oldlib'
8606 old_postuninstall_cmds=
8607
8608 if test -n "$RANLIB"; then
8609   case $host_os in
8610   openbsd*)
8611     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8612     ;;
8613   *)
8614     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8615     ;;
8616   esac
8617   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8618 fi
8619
8620 for cc_temp in $compiler""; do
8621   case $cc_temp in
8622     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8623     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8624     \-*) ;;
8625     *) break;;
8626   esac
8627 done
8628 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8629
8630
8631 # Only perform the check for file, if the check method requires it
8632 case $deplibs_check_method in
8633 file_magic*)
8634   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8635     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8636 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8637 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8638   echo $ECHO_N "(cached) $ECHO_C" >&6
8639 else
8640   case $MAGIC_CMD in
8641 [\\/*] |  ?:[\\/]*)
8642   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8643   ;;
8644 *)
8645   lt_save_MAGIC_CMD="$MAGIC_CMD"
8646   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8647   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8648   for ac_dir in $ac_dummy; do
8649     IFS="$lt_save_ifs"
8650     test -z "$ac_dir" && ac_dir=.
8651     if test -f $ac_dir/${ac_tool_prefix}file; then
8652       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8653       if test -n "$file_magic_test_file"; then
8654         case $deplibs_check_method in
8655         "file_magic "*)
8656           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8657           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8658           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8659             $EGREP "$file_magic_regex" > /dev/null; then
8660             :
8661           else
8662             cat <<EOF 1>&2
8663
8664 *** Warning: the command libtool uses to detect shared libraries,
8665 *** $file_magic_cmd, produces output that libtool cannot recognize.
8666 *** The result is that libtool may fail to recognize shared libraries
8667 *** as such.  This will affect the creation of libtool libraries that
8668 *** depend on shared libraries, but programs linked with such libtool
8669 *** libraries will work regardless of this problem.  Nevertheless, you
8670 *** may want to report the problem to your system manager and/or to
8671 *** bug-libtool@gnu.org
8672
8673 EOF
8674           fi ;;
8675         esac
8676       fi
8677       break
8678     fi
8679   done
8680   IFS="$lt_save_ifs"
8681   MAGIC_CMD="$lt_save_MAGIC_CMD"
8682   ;;
8683 esac
8684 fi
8685
8686 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8687 if test -n "$MAGIC_CMD"; then
8688   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8689 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8690 else
8691   { echo "$as_me:$LINENO: result: no" >&5
8692 echo "${ECHO_T}no" >&6; }
8693 fi
8694
8695 if test -z "$lt_cv_path_MAGIC_CMD"; then
8696   if test -n "$ac_tool_prefix"; then
8697     { echo "$as_me:$LINENO: checking for file" >&5
8698 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8699 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8700   echo $ECHO_N "(cached) $ECHO_C" >&6
8701 else
8702   case $MAGIC_CMD in
8703 [\\/*] |  ?:[\\/]*)
8704   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8705   ;;
8706 *)
8707   lt_save_MAGIC_CMD="$MAGIC_CMD"
8708   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8709   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8710   for ac_dir in $ac_dummy; do
8711     IFS="$lt_save_ifs"
8712     test -z "$ac_dir" && ac_dir=.
8713     if test -f $ac_dir/file; then
8714       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8715       if test -n "$file_magic_test_file"; then
8716         case $deplibs_check_method in
8717         "file_magic "*)
8718           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8719           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8720           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8721             $EGREP "$file_magic_regex" > /dev/null; then
8722             :
8723           else
8724             cat <<EOF 1>&2
8725
8726 *** Warning: the command libtool uses to detect shared libraries,
8727 *** $file_magic_cmd, produces output that libtool cannot recognize.
8728 *** The result is that libtool may fail to recognize shared libraries
8729 *** as such.  This will affect the creation of libtool libraries that
8730 *** depend on shared libraries, but programs linked with such libtool
8731 *** libraries will work regardless of this problem.  Nevertheless, you
8732 *** may want to report the problem to your system manager and/or to
8733 *** bug-libtool@gnu.org
8734
8735 EOF
8736           fi ;;
8737         esac
8738       fi
8739       break
8740     fi
8741   done
8742   IFS="$lt_save_ifs"
8743   MAGIC_CMD="$lt_save_MAGIC_CMD"
8744   ;;
8745 esac
8746 fi
8747
8748 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8749 if test -n "$MAGIC_CMD"; then
8750   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8751 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8752 else
8753   { echo "$as_me:$LINENO: result: no" >&5
8754 echo "${ECHO_T}no" >&6; }
8755 fi
8756
8757   else
8758     MAGIC_CMD=:
8759   fi
8760 fi
8761
8762   fi
8763   ;;
8764 esac
8765
8766
8767   case $host_os in
8768     rhapsody* | darwin*)
8769     if test -n "$ac_tool_prefix"; then
8770   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8771 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8772 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8774 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
8775   echo $ECHO_N "(cached) $ECHO_C" >&6
8776 else
8777   if test -n "$DSYMUTIL"; then
8778   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8779 else
8780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8781 for as_dir in $PATH
8782 do
8783   IFS=$as_save_IFS
8784   test -z "$as_dir" && as_dir=.
8785   for ac_exec_ext in '' $ac_executable_extensions; do
8786   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8787     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8788     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8789     break 2
8790   fi
8791 done
8792 done
8793 IFS=$as_save_IFS
8794
8795 fi
8796 fi
8797 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8798 if test -n "$DSYMUTIL"; then
8799   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
8800 echo "${ECHO_T}$DSYMUTIL" >&6; }
8801 else
8802   { echo "$as_me:$LINENO: result: no" >&5
8803 echo "${ECHO_T}no" >&6; }
8804 fi
8805
8806
8807 fi
8808 if test -z "$ac_cv_prog_DSYMUTIL"; then
8809   ac_ct_DSYMUTIL=$DSYMUTIL
8810   # Extract the first word of "dsymutil", so it can be a program name with args.
8811 set dummy dsymutil; ac_word=$2
8812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8814 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
8815   echo $ECHO_N "(cached) $ECHO_C" >&6
8816 else
8817   if test -n "$ac_ct_DSYMUTIL"; then
8818   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8819 else
8820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8821 for as_dir in $PATH
8822 do
8823   IFS=$as_save_IFS
8824   test -z "$as_dir" && as_dir=.
8825   for ac_exec_ext in '' $ac_executable_extensions; do
8826   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8827     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8828     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8829     break 2
8830   fi
8831 done
8832 done
8833 IFS=$as_save_IFS
8834
8835 fi
8836 fi
8837 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8838 if test -n "$ac_ct_DSYMUTIL"; then
8839   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
8840 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
8841 else
8842   { echo "$as_me:$LINENO: result: no" >&5
8843 echo "${ECHO_T}no" >&6; }
8844 fi
8845
8846   if test "x$ac_ct_DSYMUTIL" = x; then
8847     DSYMUTIL=":"
8848   else
8849     case $cross_compiling:$ac_tool_warned in
8850 yes:)
8851 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8852 whose name does not start with the host triplet.  If you think this
8853 configuration is useful to you, please write to autoconf@gnu.org." >&5
8854 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8855 whose name does not start with the host triplet.  If you think this
8856 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8857 ac_tool_warned=yes ;;
8858 esac
8859     DSYMUTIL=$ac_ct_DSYMUTIL
8860   fi
8861 else
8862   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8863 fi
8864
8865     if test -n "$ac_tool_prefix"; then
8866   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8867 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8870 if test "${ac_cv_prog_NMEDIT+set}" = set; then
8871   echo $ECHO_N "(cached) $ECHO_C" >&6
8872 else
8873   if test -n "$NMEDIT"; then
8874   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8875 else
8876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8877 for as_dir in $PATH
8878 do
8879   IFS=$as_save_IFS
8880   test -z "$as_dir" && as_dir=.
8881   for ac_exec_ext in '' $ac_executable_extensions; do
8882   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8883     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8884     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8885     break 2
8886   fi
8887 done
8888 done
8889 IFS=$as_save_IFS
8890
8891 fi
8892 fi
8893 NMEDIT=$ac_cv_prog_NMEDIT
8894 if test -n "$NMEDIT"; then
8895   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
8896 echo "${ECHO_T}$NMEDIT" >&6; }
8897 else
8898   { echo "$as_me:$LINENO: result: no" >&5
8899 echo "${ECHO_T}no" >&6; }
8900 fi
8901
8902
8903 fi
8904 if test -z "$ac_cv_prog_NMEDIT"; then
8905   ac_ct_NMEDIT=$NMEDIT
8906   # Extract the first word of "nmedit", so it can be a program name with args.
8907 set dummy nmedit; ac_word=$2
8908 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8910 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
8911   echo $ECHO_N "(cached) $ECHO_C" >&6
8912 else
8913   if test -n "$ac_ct_NMEDIT"; then
8914   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8915 else
8916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8917 for as_dir in $PATH
8918 do
8919   IFS=$as_save_IFS
8920   test -z "$as_dir" && as_dir=.
8921   for ac_exec_ext in '' $ac_executable_extensions; do
8922   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8923     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8924     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8925     break 2
8926   fi
8927 done
8928 done
8929 IFS=$as_save_IFS
8930
8931 fi
8932 fi
8933 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8934 if test -n "$ac_ct_NMEDIT"; then
8935   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
8936 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
8937 else
8938   { echo "$as_me:$LINENO: result: no" >&5
8939 echo "${ECHO_T}no" >&6; }
8940 fi
8941
8942   if test "x$ac_ct_NMEDIT" = x; then
8943     NMEDIT=":"
8944   else
8945     case $cross_compiling:$ac_tool_warned in
8946 yes:)
8947 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8948 whose name does not start with the host triplet.  If you think this
8949 configuration is useful to you, please write to autoconf@gnu.org." >&5
8950 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8951 whose name does not start with the host triplet.  If you think this
8952 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8953 ac_tool_warned=yes ;;
8954 esac
8955     NMEDIT=$ac_ct_NMEDIT
8956   fi
8957 else
8958   NMEDIT="$ac_cv_prog_NMEDIT"
8959 fi
8960
8961
8962     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
8963 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
8964 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8965   echo $ECHO_N "(cached) $ECHO_C" >&6
8966 else
8967   lt_cv_apple_cc_single_mod=no
8968       if test -z "${LT_MULTI_MODULE}"; then
8969    # By default we will add the -single_module flag. You can override
8970    # by either setting the environment variable LT_MULTI_MODULE
8971    # non-empty at configure time, or by adding -multi_module to the
8972    # link flags.
8973    echo "int foo(void){return 1;}" > conftest.c
8974    $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8975      -dynamiclib ${wl}-single_module conftest.c
8976    if test -f libconftest.dylib; then
8977      lt_cv_apple_cc_single_mod=yes
8978      rm -rf libconftest.dylib*
8979    fi
8980    rm conftest.c
8981       fi
8982 fi
8983 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
8984 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
8985     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
8986 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
8987 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
8988   echo $ECHO_N "(cached) $ECHO_C" >&6
8989 else
8990   lt_cv_ld_exported_symbols_list=no
8991       save_LDFLAGS=$LDFLAGS
8992       echo "_main" > conftest.sym
8993       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8994       cat >conftest.$ac_ext <<_ACEOF
8995 /* confdefs.h.  */
8996 _ACEOF
8997 cat confdefs.h >>conftest.$ac_ext
8998 cat >>conftest.$ac_ext <<_ACEOF
8999 /* end confdefs.h.  */
9000
9001 int
9002 main ()
9003 {
9004
9005   ;
9006   return 0;
9007 }
9008 _ACEOF
9009 rm -f conftest.$ac_objext conftest$ac_exeext
9010 if { (ac_try="$ac_link"
9011 case "(($ac_try" in
9012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9013   *) ac_try_echo=$ac_try;;
9014 esac
9015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9016   (eval "$ac_link") 2>conftest.er1
9017   ac_status=$?
9018   grep -v '^ *+' conftest.er1 >conftest.err
9019   rm -f conftest.er1
9020   cat conftest.err >&5
9021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022   (exit $ac_status); } && {
9023          test -z "$ac_c_werror_flag" ||
9024          test ! -s conftest.err
9025        } && test -s conftest$ac_exeext &&
9026        $as_test_x conftest$ac_exeext; then
9027   lt_cv_ld_exported_symbols_list=yes
9028 else
9029   echo "$as_me: failed program was:" >&5
9030 sed 's/^/| /' conftest.$ac_ext >&5
9031
9032         lt_cv_ld_exported_symbols_list=no
9033 fi
9034
9035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9036       conftest$ac_exeext conftest.$ac_ext
9037    LDFLAGS="$save_LDFLAGS"
9038     
9039 fi
9040 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
9041 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
9042     case $host_os in
9043     rhapsody* | darwin1.[0123])
9044       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9045     darwin1.*)
9046      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9047     darwin*)
9048       # if running on 10.5 or later, the deployment target defaults
9049       # to the OS version, if on x86, and 10.4, the deployment
9050       # target defaults to 10.4. Don't you love it?
9051       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9052    10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9053      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9054    10.[012]*)
9055      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9056    10.*)
9057      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9058       esac
9059     ;;
9060   esac
9061     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9062       _lt_dar_single_mod='$single_module'
9063     fi
9064     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9065       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9066     else
9067       _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
9068     fi
9069     if test "$DSYMUTIL" != ":"; then
9070       _lt_dsymutil="~$DSYMUTIL \$lib || :"
9071     else
9072       _lt_dsymutil=
9073     fi
9074     ;;
9075   esac
9076
9077
9078 enable_dlopen=no
9079 enable_win32_dll=no
9080
9081 # Check whether --enable-libtool-lock was given.
9082 if test "${enable_libtool_lock+set}" = set; then
9083   enableval=$enable_libtool_lock; 
9084 fi
9085
9086 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9087
9088
9089 # Check whether --with-pic was given.
9090 if test "${with_pic+set}" = set; then
9091   withval=$with_pic; pic_mode="$withval"
9092 else
9093   pic_mode=default
9094 fi
9095
9096 test -z "$pic_mode" && pic_mode=default
9097
9098 # Use C for the default configuration in the libtool script
9099 tagname=
9100 lt_save_CC="$CC"
9101 ac_ext=c
9102 ac_cpp='$CPP $CPPFLAGS'
9103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9106
9107
9108 # Source file extension for C test sources.
9109 ac_ext=c
9110
9111 # Object file extension for compiled C test sources.
9112 objext=o
9113 objext=$objext
9114
9115 # Code to be used in simple compile tests
9116 lt_simple_compile_test_code="int some_variable = 0;"
9117
9118 # Code to be used in simple link tests
9119 lt_simple_link_test_code='int main(){return(0);}'
9120
9121
9122 # If no C compiler was specified, use CC.
9123 LTCC=${LTCC-"$CC"}
9124
9125 # If no C compiler flags were specified, use CFLAGS.
9126 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9127
9128 # Allow CC to be a program name with arguments.
9129 compiler=$CC
9130
9131
9132 # save warnings/boilerplate of simple test code
9133 ac_outfile=conftest.$ac_objext
9134 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9135 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9136 _lt_compiler_boilerplate=`cat conftest.err`
9137 $rm conftest*
9138
9139 ac_outfile=conftest.$ac_objext
9140 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9141 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9142 _lt_linker_boilerplate=`cat conftest.err`
9143 $rm -r conftest*
9144
9145
9146 ## CAVEAT EMPTOR:
9147 ## There is no encapsulation within the following macros, do not change
9148 ## the running order or otherwise move them around unless you know exactly
9149 ## what you are doing...
9150
9151 lt_prog_compiler_no_builtin_flag=
9152
9153 if test "$GCC" = yes; then
9154   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9155
9156   
9157 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9158 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9159 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9160   echo $ECHO_N "(cached) $ECHO_C" >&6
9161 else
9162   lt_cv_prog_compiler_rtti_exceptions=no
9163   ac_outfile=conftest.$ac_objext
9164    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9165    lt_compiler_flag="-fno-rtti -fno-exceptions"
9166    # Insert the option either (1) after the last *FLAGS variable, or
9167    # (2) before a word containing "conftest.", or (3) at the end.
9168    # Note that $ac_compile itself does not contain backslashes and begins
9169    # with a dollar sign (not a hyphen), so the echo should work correctly.
9170    # The option is referenced via a variable to avoid confusing sed.
9171    lt_compile=`echo "$ac_compile" | $SED \
9172    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9173    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9174    -e 's:$: $lt_compiler_flag:'`
9175    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
9176    (eval "$lt_compile" 2>conftest.err)
9177    ac_status=$?
9178    cat conftest.err >&5
9179    echo "$as_me:__oline__: \$? = $ac_status" >&5
9180    if (exit $ac_status) && test -s "$ac_outfile"; then
9181      # The compiler can only warn and ignore the option if not recognized
9182      # So say no if there are warnings other than the usual output.
9183      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9184      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9185      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9186        lt_cv_prog_compiler_rtti_exceptions=yes
9187      fi
9188    fi
9189    $rm conftest*
9190
9191 fi
9192 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9193 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9194
9195 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9196     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9197 else
9198     :
9199 fi
9200
9201 fi
9202
9203 lt_prog_compiler_wl=
9204 lt_prog_compiler_pic=
9205 lt_prog_compiler_static=
9206
9207 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9208 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9209  
9210   if test "$GCC" = yes; then
9211     lt_prog_compiler_wl='-Wl,'
9212     lt_prog_compiler_static='-static'
9213
9214     case $host_os in
9215       aix*)
9216       # All AIX code is PIC.
9217       if test "$host_cpu" = ia64; then
9218         # AIX 5 now supports IA64 processor
9219         lt_prog_compiler_static='-Bstatic'
9220       fi
9221       ;;
9222
9223     amigaos*)
9224       # FIXME: we need at least 68020 code to build shared libraries, but
9225       # adding the `-m68020' flag to GCC prevents building anything better,
9226       # like `-m68040'.
9227       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9228       ;;
9229
9230     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9231       # PIC is the default for these OSes.
9232       ;;
9233
9234     mingw* | cygwin* | pw32* | os2*)
9235       # This hack is so that the source file can tell whether it is being
9236       # built for inclusion in a dll (and should export symbols for example).
9237       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9238       # (--disable-auto-import) libraries
9239       lt_prog_compiler_pic='-DDLL_EXPORT'
9240       ;;
9241
9242     darwin* | rhapsody*)
9243       # PIC is the default on this platform
9244       # Common symbols not allowed in MH_DYLIB files
9245       lt_prog_compiler_pic='-fno-common'
9246       ;;
9247
9248     interix[3-9]*)
9249       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9250       # Instead, we relocate shared libraries at runtime.
9251       ;;
9252
9253     msdosdjgpp*)
9254       # Just because we use GCC doesn't mean we suddenly get shared libraries
9255       # on systems that don't support them.
9256       lt_prog_compiler_can_build_shared=no
9257       enable_shared=no
9258       ;;
9259
9260     sysv4*MP*)
9261       if test -d /usr/nec; then
9262         lt_prog_compiler_pic=-Kconform_pic
9263       fi
9264       ;;
9265
9266     hpux*)
9267       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9268       # not for PA HP-UX.
9269       case $host_cpu in
9270       hppa*64*|ia64*)
9271         # +Z the default
9272         ;;
9273       *)
9274         lt_prog_compiler_pic='-fPIC'
9275         ;;
9276       esac
9277       ;;
9278
9279     *)
9280       lt_prog_compiler_pic='-fPIC'
9281       ;;
9282     esac
9283   else
9284     # PORTME Check for flag to pass linker flags through the system compiler.
9285     case $host_os in
9286     aix*)
9287       lt_prog_compiler_wl='-Wl,'
9288       if test "$host_cpu" = ia64; then
9289         # AIX 5 now supports IA64 processor
9290         lt_prog_compiler_static='-Bstatic'
9291       else
9292         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9293       fi
9294       ;;
9295       darwin*)
9296         # PIC is the default on this platform
9297         # Common symbols not allowed in MH_DYLIB files
9298        case $cc_basename in
9299          xlc*)
9300          lt_prog_compiler_pic='-qnocommon'
9301          lt_prog_compiler_wl='-Wl,'
9302          ;;
9303        esac
9304        ;;
9305
9306     mingw* | cygwin* | pw32* | os2*)
9307       # This hack is so that the source file can tell whether it is being
9308       # built for inclusion in a dll (and should export symbols for example).
9309       lt_prog_compiler_pic='-DDLL_EXPORT'
9310       ;;
9311
9312     hpux9* | hpux10* | hpux11*)
9313       lt_prog_compiler_wl='-Wl,'
9314       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9315       # not for PA HP-UX.
9316       case $host_cpu in
9317       hppa*64*|ia64*)
9318         # +Z the default
9319         ;;
9320       *)
9321         lt_prog_compiler_pic='+Z'
9322         ;;
9323       esac
9324       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9325       lt_prog_compiler_static='${wl}-a ${wl}archive'
9326       ;;
9327
9328     irix5* | irix6* | nonstopux*)
9329       lt_prog_compiler_wl='-Wl,'
9330       # PIC (with -KPIC) is the default.
9331       lt_prog_compiler_static='-non_shared'
9332       ;;
9333
9334     newsos6)
9335       lt_prog_compiler_pic='-KPIC'
9336       lt_prog_compiler_static='-Bstatic'
9337       ;;
9338
9339     linux* | k*bsd*-gnu)
9340       case $cc_basename in
9341       icc* | ecc*)
9342         lt_prog_compiler_wl='-Wl,'
9343         lt_prog_compiler_pic='-KPIC'
9344         lt_prog_compiler_static='-static'
9345         ;;
9346       pgcc* | pgf77* | pgf90* | pgf95*)
9347         # Portland Group compilers (*not* the Pentium gcc compiler,
9348         # which looks to be a dead project)
9349         lt_prog_compiler_wl='-Wl,'
9350         lt_prog_compiler_pic='-fpic'
9351         lt_prog_compiler_static='-Bstatic'
9352         ;;
9353       ccc*)
9354         lt_prog_compiler_wl='-Wl,'
9355         # All Alpha code is PIC.
9356         lt_prog_compiler_static='-non_shared'
9357         ;;
9358       *)
9359         case `$CC -V 2>&1 | sed 5q` in
9360         *Sun\ C*)
9361           # Sun C 5.9
9362           lt_prog_compiler_pic='-KPIC'
9363           lt_prog_compiler_static='-Bstatic'
9364           lt_prog_compiler_wl='-Wl,'
9365           ;;
9366         *Sun\ F*)
9367           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9368           lt_prog_compiler_pic='-KPIC'
9369           lt_prog_compiler_static='-Bstatic'
9370           lt_prog_compiler_wl=''
9371           ;;
9372         esac
9373         ;;
9374       esac
9375       ;;
9376
9377     osf3* | osf4* | osf5*)
9378       lt_prog_compiler_wl='-Wl,'
9379       # All OSF/1 code is PIC.
9380       lt_prog_compiler_static='-non_shared'
9381       ;;
9382
9383     rdos*)
9384       lt_prog_compiler_static='-non_shared'
9385       ;;
9386
9387     solaris*)
9388       lt_prog_compiler_pic='-KPIC'
9389       lt_prog_compiler_static='-Bstatic'
9390       case $cc_basename in
9391       f77* | f90* | f95*)
9392         lt_prog_compiler_wl='-Qoption ld ';;
9393       *)
9394         lt_prog_compiler_wl='-Wl,';;
9395       esac
9396       ;;
9397
9398     sunos4*)
9399       lt_prog_compiler_wl='-Qoption ld '
9400       lt_prog_compiler_pic='-PIC'
9401       lt_prog_compiler_static='-Bstatic'
9402       ;;
9403
9404     sysv4 | sysv4.2uw2* | sysv4.3*)
9405       lt_prog_compiler_wl='-Wl,'
9406       lt_prog_compiler_pic='-KPIC'
9407       lt_prog_compiler_static='-Bstatic'
9408       ;;
9409
9410     sysv4*MP*)
9411       if test -d /usr/nec ;then
9412         lt_prog_compiler_pic='-Kconform_pic'
9413         lt_prog_compiler_static='-Bstatic'
9414       fi
9415       ;;
9416
9417     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9418       lt_prog_compiler_wl='-Wl,'
9419       lt_prog_compiler_pic='-KPIC'
9420       lt_prog_compiler_static='-Bstatic'
9421       ;;
9422
9423     unicos*)
9424       lt_prog_compiler_wl='-Wl,'
9425       lt_prog_compiler_can_build_shared=no
9426       ;;
9427
9428     uts4*)
9429       lt_prog_compiler_pic='-pic'
9430       lt_prog_compiler_static='-Bstatic'
9431       ;;
9432
9433     *)
9434       lt_prog_compiler_can_build_shared=no
9435       ;;
9436     esac
9437   fi
9438
9439 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9440 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9441
9442 #
9443 # Check to make sure the PIC flag actually works.
9444 #
9445 if test -n "$lt_prog_compiler_pic"; then
9446   
9447 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9448 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9449 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9450   echo $ECHO_N "(cached) $ECHO_C" >&6
9451 else
9452   lt_cv_prog_compiler_pic_works=no
9453   ac_outfile=conftest.$ac_objext
9454    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9455    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9456    # Insert the option either (1) after the last *FLAGS variable, or
9457    # (2) before a word containing "conftest.", or (3) at the end.
9458    # Note that $ac_compile itself does not contain backslashes and begins
9459    # with a dollar sign (not a hyphen), so the echo should work correctly.
9460    # The option is referenced via a variable to avoid confusing sed.
9461    lt_compile=`echo "$ac_compile" | $SED \
9462    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9463    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9464    -e 's:$: $lt_compiler_flag:'`
9465    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
9466    (eval "$lt_compile" 2>conftest.err)
9467    ac_status=$?
9468    cat conftest.err >&5
9469    echo "$as_me:__oline__: \$? = $ac_status" >&5
9470    if (exit $ac_status) && test -s "$ac_outfile"; then
9471      # The compiler can only warn and ignore the option if not recognized
9472      # So say no if there are warnings other than the usual output.
9473      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9474      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9475      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9476        lt_cv_prog_compiler_pic_works=yes
9477      fi
9478    fi
9479    $rm conftest*
9480
9481 fi
9482 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9483 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
9484
9485 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9486     case $lt_prog_compiler_pic in
9487      "" | " "*) ;;
9488      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9489      esac
9490 else
9491     lt_prog_compiler_pic=
9492      lt_prog_compiler_can_build_shared=no
9493 fi
9494
9495 fi
9496 case $host_os in
9497   # For platforms which do not support PIC, -DPIC is meaningless:
9498   *djgpp*)
9499     lt_prog_compiler_pic=
9500     ;;
9501   *)
9502     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9503     ;;
9504 esac
9505
9506 #
9507 # Check to make sure the static flag actually works.
9508 #
9509 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9510 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9511 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9512 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9513   echo $ECHO_N "(cached) $ECHO_C" >&6
9514 else
9515   lt_cv_prog_compiler_static_works=no
9516    save_LDFLAGS="$LDFLAGS"
9517    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9518    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9519    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9520      # The linker can only warn and ignore the option if not recognized
9521      # So say no if there are warnings
9522      if test -s conftest.err; then
9523        # Append any errors to the config.log.
9524        cat conftest.err 1>&5
9525        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9526        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9527        if diff conftest.exp conftest.er2 >/dev/null; then
9528          lt_cv_prog_compiler_static_works=yes
9529        fi
9530      else
9531        lt_cv_prog_compiler_static_works=yes
9532      fi
9533    fi
9534    $rm -r conftest*
9535    LDFLAGS="$save_LDFLAGS"
9536
9537 fi
9538 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9539 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9540
9541 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9542     :
9543 else
9544     lt_prog_compiler_static=
9545 fi
9546
9547
9548 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9549 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9550 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9551   echo $ECHO_N "(cached) $ECHO_C" >&6
9552 else
9553   lt_cv_prog_compiler_c_o=no
9554    $rm -r conftest 2>/dev/null
9555    mkdir conftest
9556    cd conftest
9557    mkdir out
9558    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9559
9560    lt_compiler_flag="-o out/conftest2.$ac_objext"
9561    # Insert the option either (1) after the last *FLAGS variable, or
9562    # (2) before a word containing "conftest.", or (3) at the end.
9563    # Note that $ac_compile itself does not contain backslashes and begins
9564    # with a dollar sign (not a hyphen), so the echo should work correctly.
9565    lt_compile=`echo "$ac_compile" | $SED \
9566    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9567    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9568    -e 's:$: $lt_compiler_flag:'`
9569    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
9570    (eval "$lt_compile" 2>out/conftest.err)
9571    ac_status=$?
9572    cat out/conftest.err >&5
9573    echo "$as_me:__oline__: \$? = $ac_status" >&5
9574    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9575    then
9576      # The compiler can only warn and ignore the option if not recognized
9577      # So say no if there are warnings
9578      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9579      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9580      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9581        lt_cv_prog_compiler_c_o=yes
9582      fi
9583    fi
9584    chmod u+w . 2>&5
9585    $rm conftest*
9586    # SGI C++ compiler will create directory out/ii_files/ for
9587    # template instantiation
9588    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9589    $rm out/* && rmdir out
9590    cd ..
9591    rmdir conftest
9592    $rm conftest*
9593
9594 fi
9595 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9596 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9597
9598
9599 hard_links="nottested"
9600 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9601   # do not overwrite the value of need_locks provided by the user
9602   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9603 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9604   hard_links=yes
9605   $rm conftest*
9606   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9607   touch conftest.a
9608   ln conftest.a conftest.b 2>&5 || hard_links=no
9609   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9610   { echo "$as_me:$LINENO: result: $hard_links" >&5
9611 echo "${ECHO_T}$hard_links" >&6; }
9612   if test "$hard_links" = no; then
9613     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9614 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9615     need_locks=warn
9616   fi
9617 else
9618   need_locks=no
9619 fi
9620
9621 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9622 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9623
9624   runpath_var=
9625   allow_undefined_flag=
9626   enable_shared_with_static_runtimes=no
9627   archive_cmds=
9628   archive_expsym_cmds=
9629   old_archive_From_new_cmds=
9630   old_archive_from_expsyms_cmds=
9631   export_dynamic_flag_spec=
9632   whole_archive_flag_spec=
9633   thread_safe_flag_spec=
9634   hardcode_libdir_flag_spec=
9635   hardcode_libdir_flag_spec_ld=
9636   hardcode_libdir_separator=
9637   hardcode_direct=no
9638   hardcode_minus_L=no
9639   hardcode_shlibpath_var=unsupported
9640   link_all_deplibs=unknown
9641   hardcode_automatic=no
9642   module_cmds=
9643   module_expsym_cmds=
9644   always_export_symbols=no
9645   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9646   # include_expsyms should be a list of space-separated symbols to be *always*
9647   # included in the symbol list
9648   include_expsyms=
9649   # exclude_expsyms can be an extended regexp of symbols to exclude
9650   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9651   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9652   # as well as any symbol that contains `d'.
9653   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9654   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9655   # platforms (ab)use it in PIC code, but their linkers get confused if
9656   # the symbol is explicitly referenced.  Since portable code cannot
9657   # rely on this symbol name, it's probably fine to never include it in
9658   # preloaded symbol tables.
9659   # Exclude shared library initialization/finalization symbols.
9660   extract_expsyms_cmds=
9661   # Just being paranoid about ensuring that cc_basename is set.
9662   for cc_temp in $compiler""; do
9663   case $cc_temp in
9664     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9665     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9666     \-*) ;;
9667     *) break;;
9668   esac
9669 done
9670 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9671
9672   case $host_os in
9673   cygwin* | mingw* | pw32*)
9674     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9675     # When not using gcc, we currently assume that we are using
9676     # Microsoft Visual C++.
9677     if test "$GCC" != yes; then
9678       with_gnu_ld=no
9679     fi
9680     ;;
9681   interix*)
9682     # we just hope/assume this is gcc and not c89 (= MSVC++)
9683     with_gnu_ld=yes
9684     ;;
9685   openbsd*)
9686     with_gnu_ld=no
9687     ;;
9688   esac
9689
9690   ld_shlibs=yes
9691   if test "$with_gnu_ld" = yes; then
9692     # If archive_cmds runs LD, not CC, wlarc should be empty
9693     wlarc='${wl}'
9694
9695     # Set some defaults for GNU ld with shared library support. These
9696     # are reset later if shared libraries are not supported. Putting them
9697     # here allows them to be overridden if necessary.
9698     runpath_var=LD_RUN_PATH
9699     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9700     export_dynamic_flag_spec='${wl}--export-dynamic'
9701     # ancient GNU ld didn't support --whole-archive et. al.
9702     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9703         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9704       else
9705         whole_archive_flag_spec=
9706     fi
9707     supports_anon_versioning=no
9708     case `$LD -v 2>/dev/null` in
9709       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9710       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9711       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9712       *\ 2.11.*) ;; # other 2.11 versions
9713       *) supports_anon_versioning=yes ;;
9714     esac
9715
9716     # See if GNU ld supports shared libraries.
9717     case $host_os in
9718     aix[3-9]*)
9719       # On AIX/PPC, the GNU linker is very broken
9720       if test "$host_cpu" != ia64; then
9721         ld_shlibs=no
9722         cat <<EOF 1>&2
9723
9724 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9725 *** to be unable to reliably create shared libraries on AIX.
9726 *** Therefore, libtool is disabling shared libraries support.  If you
9727 *** really care for shared libraries, you may want to modify your PATH
9728 *** so that a non-GNU linker is found, and then restart.
9729
9730 EOF
9731       fi
9732       ;;
9733
9734     amigaos*)
9735       archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9736       hardcode_libdir_flag_spec='-L$libdir'
9737       hardcode_minus_L=yes
9738
9739       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9740       # that the semantics of dynamic libraries on AmigaOS, at least up
9741       # to version 4, is to share data among multiple programs linked
9742       # with the same dynamic library.  Since this doesn't match the
9743       # behavior of shared libraries on other platforms, we can't use
9744       # them.
9745       ld_shlibs=no
9746       ;;
9747
9748     beos*)
9749       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9750         allow_undefined_flag=unsupported
9751         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9752         # support --undefined.  This deserves some investigation.  FIXME
9753         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9754       else
9755         ld_shlibs=no
9756       fi
9757       ;;
9758
9759     cygwin* | mingw* | pw32*)
9760       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9761       # as there is no search path for DLLs.
9762       hardcode_libdir_flag_spec='-L$libdir'
9763       allow_undefined_flag=unsupported
9764       always_export_symbols=no
9765       enable_shared_with_static_runtimes=yes
9766       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9767
9768       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9769         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9770         # If the export-symbols file already is a .def file (1st line
9771         # is EXPORTS), use it as is; otherwise, prepend...
9772         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9773           cp $export_symbols $output_objdir/$soname.def;
9774         else
9775           echo EXPORTS > $output_objdir/$soname.def;
9776           cat $export_symbols >> $output_objdir/$soname.def;
9777         fi~
9778         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9779       else
9780         ld_shlibs=no
9781       fi
9782       ;;
9783
9784     interix[3-9]*)
9785       hardcode_direct=no
9786       hardcode_shlibpath_var=no
9787       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9788       export_dynamic_flag_spec='${wl}-E'
9789       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9790       # Instead, shared libraries are loaded at an image base (0x10000000 by
9791       # default) and relocated if they conflict, which is a slow very memory
9792       # consuming and fragmenting process.  To avoid this, we pick a random,
9793       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9794       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9795       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9796       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9797       ;;
9798
9799     gnu* | linux* | k*bsd*-gnu)
9800       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9801         tmp_addflag=
9802         case $cc_basename,$host_cpu in
9803         pgcc*)                          # Portland Group C compiler
9804           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9805           tmp_addflag=' $pic_flag'
9806           ;;
9807         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9808           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9809           tmp_addflag=' $pic_flag -Mnomain' ;;
9810         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9811           tmp_addflag=' -i_dynamic' ;;
9812         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9813           tmp_addflag=' -i_dynamic -nofor_main' ;;
9814         ifc* | ifort*)                  # Intel Fortran compiler
9815           tmp_addflag=' -nofor_main' ;;
9816         esac
9817         case `$CC -V 2>&1 | sed 5q` in
9818         *Sun\ C*)                       # Sun C 5.9
9819           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9820           tmp_sharedflag='-G' ;;
9821         *Sun\ F*)                       # Sun Fortran 8.3
9822           tmp_sharedflag='-G' ;;
9823         *)
9824           tmp_sharedflag='-shared' ;;
9825         esac
9826         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9827
9828         if test $supports_anon_versioning = yes; then
9829           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9830   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9831   $echo "local: *; };" >> $output_objdir/$libname.ver~
9832           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9833         fi
9834       else
9835         ld_shlibs=no
9836       fi
9837       ;;
9838
9839     netbsd*)
9840       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9841         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9842         wlarc=
9843       else
9844         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9845         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9846       fi
9847       ;;
9848
9849     solaris*)
9850       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9851         ld_shlibs=no
9852         cat <<EOF 1>&2
9853
9854 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9855 *** create shared libraries on Solaris systems.  Therefore, libtool
9856 *** is disabling shared libraries support.  We urge you to upgrade GNU
9857 *** binutils to release 2.9.1 or newer.  Another option is to modify
9858 *** your PATH or compiler configuration so that the native linker is
9859 *** used, and then restart.
9860
9861 EOF
9862       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9863         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9864         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9865       else
9866         ld_shlibs=no
9867       fi
9868       ;;
9869
9870     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9871       case `$LD -v 2>&1` in
9872         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9873         ld_shlibs=no
9874         cat <<_LT_EOF 1>&2
9875
9876 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9877 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9878 *** is disabling shared libraries support.  We urge you to upgrade GNU
9879 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9880 *** your PATH or compiler configuration so that the native linker is
9881 *** used, and then restart.
9882
9883 _LT_EOF
9884         ;;
9885         *)
9886           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9887             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9888             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9889             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9890           else
9891             ld_shlibs=no
9892           fi
9893         ;;
9894       esac
9895       ;;
9896
9897     sunos4*)
9898       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9899       wlarc=
9900       hardcode_direct=yes
9901       hardcode_shlibpath_var=no
9902       ;;
9903
9904     *)
9905       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9906         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9907         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9908       else
9909         ld_shlibs=no
9910       fi
9911       ;;
9912     esac
9913
9914     if test "$ld_shlibs" = no; then
9915       runpath_var=
9916       hardcode_libdir_flag_spec=
9917       export_dynamic_flag_spec=
9918       whole_archive_flag_spec=
9919     fi
9920   else
9921     # PORTME fill in a description of your system's linker (not GNU ld)
9922     case $host_os in
9923     aix3*)
9924       allow_undefined_flag=unsupported
9925       always_export_symbols=yes
9926       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
9927       # Note: this linker hardcodes the directories in LIBPATH if there
9928       # are no directories specified by -L.
9929       hardcode_minus_L=yes
9930       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9931         # Neither direct hardcoding nor static linking is supported with a
9932         # broken collect2.
9933         hardcode_direct=unsupported
9934       fi
9935       ;;
9936
9937     aix[4-9]*)
9938       if test "$host_cpu" = ia64; then
9939         # On IA64, the linker does run time linking by default, so we don't
9940         # have to do anything special.
9941         aix_use_runtimelinking=no
9942         exp_sym_flag='-Bexport'
9943         no_entry_flag=""
9944       else
9945         # If we're using GNU nm, then we don't want the "-C" option.
9946         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9947         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9948           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
9949         else
9950           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
9951         fi
9952         aix_use_runtimelinking=no
9953
9954         # Test if we are trying to use run time linking or normal
9955         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9956         # need to do runtime linking.
9957         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9958           for ld_flag in $LDFLAGS; do
9959           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9960             aix_use_runtimelinking=yes
9961             break
9962           fi
9963           done
9964           ;;
9965         esac
9966
9967         exp_sym_flag='-bexport'
9968         no_entry_flag='-bnoentry'
9969       fi
9970
9971       # When large executables or shared objects are built, AIX ld can
9972       # have problems creating the table of contents.  If linking a library
9973       # or program results in "error TOC overflow" add -mminimal-toc to
9974       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9975       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9976
9977       archive_cmds=''
9978       hardcode_direct=yes
9979       hardcode_libdir_separator=':'
9980       link_all_deplibs=yes
9981
9982       if test "$GCC" = yes; then
9983         case $host_os in aix4.[012]|aix4.[012].*)
9984         # We only want to do this on AIX 4.2 and lower, the check
9985         # below for broken collect2 doesn't work under 4.3+
9986           collect2name=`${CC} -print-prog-name=collect2`
9987           if test -f "$collect2name" && \
9988            strings "$collect2name" | grep resolve_lib_name >/dev/null
9989           then
9990           # We have reworked collect2
9991           :
9992           else
9993           # We have old collect2
9994           hardcode_direct=unsupported
9995           # It fails to find uninstalled libraries when the uninstalled
9996           # path is not listed in the libpath.  Setting hardcode_minus_L
9997           # to unsupported forces relinking
9998           hardcode_minus_L=yes
9999           hardcode_libdir_flag_spec='-L$libdir'
10000           hardcode_libdir_separator=
10001           fi
10002           ;;
10003         esac
10004         shared_flag='-shared'
10005         if test "$aix_use_runtimelinking" = yes; then
10006           shared_flag="$shared_flag "'${wl}-G'
10007         fi
10008       else
10009         # not using gcc
10010         if test "$host_cpu" = ia64; then
10011         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10012         # chokes on -Wl,-G. The following line is correct:
10013           shared_flag='-G'
10014         else
10015           if test "$aix_use_runtimelinking" = yes; then
10016             shared_flag='${wl}-G'
10017           else
10018             shared_flag='${wl}-bM:SRE'
10019           fi
10020         fi
10021       fi
10022
10023       # It seems that -bexpall does not export symbols beginning with
10024       # underscore (_), so it is better to generate a list of symbols to export.
10025       always_export_symbols=yes
10026       if test "$aix_use_runtimelinking" = yes; then
10027         # Warning - without using the other runtime loading flags (-brtl),
10028         # -berok will link without error, but may produce a broken library.
10029         allow_undefined_flag='-berok'
10030        # Determine the default libpath from the value encoded in an empty executable.
10031        cat >conftest.$ac_ext <<_ACEOF
10032 /* confdefs.h.  */
10033 _ACEOF
10034 cat confdefs.h >>conftest.$ac_ext
10035 cat >>conftest.$ac_ext <<_ACEOF
10036 /* end confdefs.h.  */
10037
10038 int
10039 main ()
10040 {
10041
10042   ;
10043   return 0;
10044 }
10045 _ACEOF
10046 rm -f conftest.$ac_objext conftest$ac_exeext
10047 if { (ac_try="$ac_link"
10048 case "(($ac_try" in
10049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10050   *) ac_try_echo=$ac_try;;
10051 esac
10052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10053   (eval "$ac_link") 2>conftest.er1
10054   ac_status=$?
10055   grep -v '^ *+' conftest.er1 >conftest.err
10056   rm -f conftest.er1
10057   cat conftest.err >&5
10058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059   (exit $ac_status); } && {
10060          test -z "$ac_c_werror_flag" ||
10061          test ! -s conftest.err
10062        } && test -s conftest$ac_exeext &&
10063        $as_test_x conftest$ac_exeext; then
10064   
10065 lt_aix_libpath_sed='
10066     /Import File Strings/,/^$/ {
10067         /^0/ {
10068             s/^0  *\(.*\)$/\1/
10069             p
10070         }
10071     }'
10072 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10073 # Check for a 64-bit object if we didn't find anything.
10074 if test -z "$aix_libpath"; then
10075   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10076 fi
10077 else
10078   echo "$as_me: failed program was:" >&5
10079 sed 's/^/| /' conftest.$ac_ext >&5
10080
10081         
10082 fi
10083
10084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10085       conftest$ac_exeext conftest.$ac_ext
10086 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10087
10088        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10089         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10090        else
10091         if test "$host_cpu" = ia64; then
10092           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10093           allow_undefined_flag="-z nodefs"
10094           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10095         else
10096          # Determine the default libpath from the value encoded in an empty executable.
10097          cat >conftest.$ac_ext <<_ACEOF
10098 /* confdefs.h.  */
10099 _ACEOF
10100 cat confdefs.h >>conftest.$ac_ext
10101 cat >>conftest.$ac_ext <<_ACEOF
10102 /* end confdefs.h.  */
10103
10104 int
10105 main ()
10106 {
10107
10108   ;
10109   return 0;
10110 }
10111 _ACEOF
10112 rm -f conftest.$ac_objext conftest$ac_exeext
10113 if { (ac_try="$ac_link"
10114 case "(($ac_try" in
10115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10116   *) ac_try_echo=$ac_try;;
10117 esac
10118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10119   (eval "$ac_link") 2>conftest.er1
10120   ac_status=$?
10121   grep -v '^ *+' conftest.er1 >conftest.err
10122   rm -f conftest.er1
10123   cat conftest.err >&5
10124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125   (exit $ac_status); } && {
10126          test -z "$ac_c_werror_flag" ||
10127          test ! -s conftest.err
10128        } && test -s conftest$ac_exeext &&
10129        $as_test_x conftest$ac_exeext; then
10130   
10131 lt_aix_libpath_sed='
10132     /Import File Strings/,/^$/ {
10133         /^0/ {
10134             s/^0  *\(.*\)$/\1/
10135             p
10136         }
10137     }'
10138 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10139 # Check for a 64-bit object if we didn't find anything.
10140 if test -z "$aix_libpath"; then
10141   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10142 fi
10143 else
10144   echo "$as_me: failed program was:" >&5
10145 sed 's/^/| /' conftest.$ac_ext >&5
10146
10147         
10148 fi
10149
10150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10151       conftest$ac_exeext conftest.$ac_ext
10152 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10153
10154          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10155           # Warning - without using the other run time loading flags,
10156           # -berok will link without error, but may produce a broken library.
10157           no_undefined_flag=' ${wl}-bernotok'
10158           allow_undefined_flag=' ${wl}-berok'
10159           # Exported symbols can be pulled into shared objects from archives
10160           whole_archive_flag_spec='$convenience'
10161           archive_cmds_need_lc=yes
10162           # This is similar to how AIX traditionally builds its shared libraries.
10163           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10164         fi
10165       fi
10166       ;;
10167
10168     amigaos*)
10169       archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10170       hardcode_libdir_flag_spec='-L$libdir'
10171       hardcode_minus_L=yes
10172       # see comment about different semantics on the GNU ld section
10173       ld_shlibs=no
10174       ;;
10175
10176     bsdi[45]*)
10177       export_dynamic_flag_spec=-rdynamic
10178       ;;
10179
10180     cygwin* | mingw* | pw32*)
10181       # When not using gcc, we currently assume that we are using
10182       # Microsoft Visual C++.
10183       # hardcode_libdir_flag_spec is actually meaningless, as there is
10184       # no search path for DLLs.
10185       hardcode_libdir_flag_spec=' '
10186       allow_undefined_flag=unsupported
10187       # Tell ltmain to make .lib files, not .a files.
10188       libext=lib
10189       # Tell ltmain to make .dll files, not .so files.
10190       shrext_cmds=".dll"
10191       # FIXME: Setting linknames here is a bad hack.
10192       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10193       # The linker will automatically build a .lib file if we build a DLL.
10194       old_archive_From_new_cmds='true'
10195       # FIXME: Should let the user specify the lib program.
10196       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10197       fix_srcfile_path='`cygpath -w "$srcfile"`'
10198       enable_shared_with_static_runtimes=yes
10199       ;;
10200
10201     darwin* | rhapsody*)
10202       case $host_os in
10203         rhapsody* | darwin1.[012])
10204          allow_undefined_flag='${wl}-undefined ${wl}suppress'
10205          ;;
10206        *) # Darwin 1.3 on
10207          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10208            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10209          else
10210            case ${MACOSX_DEPLOYMENT_TARGET} in
10211              10.[012])
10212                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10213                ;;
10214              10.*)
10215                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
10216                ;;
10217            esac
10218          fi
10219          ;;
10220       esac
10221       archive_cmds_need_lc=no
10222       hardcode_direct=no
10223       hardcode_automatic=yes
10224       hardcode_shlibpath_var=unsupported
10225       whole_archive_flag_spec=''
10226       link_all_deplibs=yes
10227     if test "$GCC" = yes ; then
10228         output_verbose_link_cmd='echo'
10229         archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10230         module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10231         archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10232         module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10233     else
10234       case $cc_basename in
10235         xlc*)
10236          output_verbose_link_cmd='echo'
10237          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
10238          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10239           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10240          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10241           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10242           ;;
10243        *)
10244          ld_shlibs=no
10245           ;;
10246       esac
10247     fi
10248       ;;
10249
10250     dgux*)
10251       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10252       hardcode_libdir_flag_spec='-L$libdir'
10253       hardcode_shlibpath_var=no
10254       ;;
10255
10256     freebsd1*)
10257       ld_shlibs=no
10258       ;;
10259
10260     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10261     # support.  Future versions do this automatically, but an explicit c++rt0.o
10262     # does not break anything, and helps significantly (at the cost of a little
10263     # extra space).
10264     freebsd2.2*)
10265       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10266       hardcode_libdir_flag_spec='-R$libdir'
10267       hardcode_direct=yes
10268       hardcode_shlibpath_var=no
10269       ;;
10270
10271     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10272     freebsd2*)
10273       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10274       hardcode_direct=yes
10275       hardcode_minus_L=yes
10276       hardcode_shlibpath_var=no
10277       ;;
10278
10279     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10280     freebsd* | dragonfly*)
10281       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10282       hardcode_libdir_flag_spec='-R$libdir'
10283       hardcode_direct=yes
10284       hardcode_shlibpath_var=no
10285       ;;
10286
10287     hpux9*)
10288       if test "$GCC" = yes; then
10289         archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10290       else
10291         archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10292       fi
10293       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10294       hardcode_libdir_separator=:
10295       hardcode_direct=yes
10296
10297       # hardcode_minus_L: Not really in the search PATH,
10298       # but as the default location of the library.
10299       hardcode_minus_L=yes
10300       export_dynamic_flag_spec='${wl}-E'
10301       ;;
10302
10303     hpux10*)
10304       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10305         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10306       else
10307         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10308       fi
10309       if test "$with_gnu_ld" = no; then
10310         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10311         hardcode_libdir_separator=:
10312
10313         hardcode_direct=yes
10314         export_dynamic_flag_spec='${wl}-E'
10315
10316         # hardcode_minus_L: Not really in the search PATH,
10317         # but as the default location of the library.
10318         hardcode_minus_L=yes
10319       fi
10320       ;;
10321
10322     hpux11*)
10323       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10324         case $host_cpu in
10325         hppa*64*)
10326           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10327           ;;
10328         ia64*)
10329           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10330           ;;
10331         *)
10332           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10333           ;;
10334         esac
10335       else
10336         case $host_cpu in
10337         hppa*64*)
10338           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10339           ;;
10340         ia64*)
10341           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10342           ;;
10343         *)
10344           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10345           ;;
10346         esac
10347       fi
10348       if test "$with_gnu_ld" = no; then
10349         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10350         hardcode_libdir_separator=:
10351
10352         case $host_cpu in
10353         hppa*64*|ia64*)
10354           hardcode_libdir_flag_spec_ld='+b $libdir'
10355           hardcode_direct=no
10356           hardcode_shlibpath_var=no
10357           ;;
10358         *)
10359           hardcode_direct=yes
10360           export_dynamic_flag_spec='${wl}-E'
10361
10362           # hardcode_minus_L: Not really in the search PATH,
10363           # but as the default location of the library.
10364           hardcode_minus_L=yes
10365           ;;
10366         esac
10367       fi
10368       ;;
10369
10370     irix5* | irix6* | nonstopux*)
10371       if test "$GCC" = yes; then
10372         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10373       else
10374         archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10375         hardcode_libdir_flag_spec_ld='-rpath $libdir'
10376       fi
10377       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10378       hardcode_libdir_separator=:
10379       link_all_deplibs=yes
10380       ;;
10381
10382     netbsd*)
10383       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10384         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10385       else
10386         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10387       fi
10388       hardcode_libdir_flag_spec='-R$libdir'
10389       hardcode_direct=yes
10390       hardcode_shlibpath_var=no
10391       ;;
10392
10393     newsos6)
10394       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10395       hardcode_direct=yes
10396       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10397       hardcode_libdir_separator=:
10398       hardcode_shlibpath_var=no
10399       ;;
10400
10401     openbsd*)
10402       if test -f /usr/libexec/ld.so; then
10403         hardcode_direct=yes
10404         hardcode_shlibpath_var=no
10405         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10406           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10407           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10408           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10409           export_dynamic_flag_spec='${wl}-E'
10410         else
10411           case $host_os in
10412            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10413              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10414              hardcode_libdir_flag_spec='-R$libdir'
10415              ;;
10416            *)
10417              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10418              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10419              ;;
10420           esac
10421         fi
10422       else
10423         ld_shlibs=no
10424       fi
10425       ;;
10426
10427     os2*)
10428       hardcode_libdir_flag_spec='-L$libdir'
10429       hardcode_minus_L=yes
10430       allow_undefined_flag=unsupported
10431       archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10432       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10433       ;;
10434
10435     osf3*)
10436       if test "$GCC" = yes; then
10437         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10438         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10439       else
10440         allow_undefined_flag=' -expect_unresolved \*'
10441         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10442       fi
10443       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10444       hardcode_libdir_separator=:
10445       ;;
10446
10447     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10448       if test "$GCC" = yes; then
10449         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10450         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10451         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10452       else
10453         allow_undefined_flag=' -expect_unresolved \*'
10454         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10455         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10456         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
10457
10458         # Both c and cxx compiler support -rpath directly
10459         hardcode_libdir_flag_spec='-rpath $libdir'
10460       fi
10461       hardcode_libdir_separator=:
10462       ;;
10463
10464     solaris*)
10465       no_undefined_flag=' -z text'
10466       if test "$GCC" = yes; then
10467         wlarc='${wl}'
10468         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10469         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10470           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10471       else
10472         wlarc=''
10473         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10474         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10475         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10476       fi
10477       hardcode_libdir_flag_spec='-R$libdir'
10478       hardcode_shlibpath_var=no
10479       case $host_os in
10480       solaris2.[0-5] | solaris2.[0-5].*) ;;
10481       *)
10482         # The compiler driver will combine and reorder linker options,
10483         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10484         # but is careful enough not to reorder.
10485         # Supported since Solaris 2.6 (maybe 2.5.1?)
10486         if test "$GCC" = yes; then
10487           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10488         else
10489           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10490         fi
10491         ;;
10492       esac
10493       link_all_deplibs=yes
10494       ;;
10495
10496     sunos4*)
10497       if test "x$host_vendor" = xsequent; then
10498         # Use $CC to link under sequent, because it throws in some extra .o
10499         # files that make .init and .fini sections work.
10500         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10501       else
10502         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10503       fi
10504       hardcode_libdir_flag_spec='-L$libdir'
10505       hardcode_direct=yes
10506       hardcode_minus_L=yes
10507       hardcode_shlibpath_var=no
10508       ;;
10509
10510     sysv4)
10511       case $host_vendor in
10512         sni)
10513           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10514           hardcode_direct=yes # is this really true???
10515         ;;
10516         siemens)
10517           ## LD is ld it makes a PLAMLIB
10518           ## CC just makes a GrossModule.
10519           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10520           reload_cmds='$CC -r -o $output$reload_objs'
10521           hardcode_direct=no
10522         ;;
10523         motorola)
10524           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10525           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10526         ;;
10527       esac
10528       runpath_var='LD_RUN_PATH'
10529       hardcode_shlibpath_var=no
10530       ;;
10531
10532     sysv4.3*)
10533       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10534       hardcode_shlibpath_var=no
10535       export_dynamic_flag_spec='-Bexport'
10536       ;;
10537
10538     sysv4*MP*)
10539       if test -d /usr/nec; then
10540         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10541         hardcode_shlibpath_var=no
10542         runpath_var=LD_RUN_PATH
10543         hardcode_runpath_var=yes
10544         ld_shlibs=yes
10545       fi
10546       ;;
10547
10548     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10549       no_undefined_flag='${wl}-z,text'
10550       archive_cmds_need_lc=no
10551       hardcode_shlibpath_var=no
10552       runpath_var='LD_RUN_PATH'
10553
10554       if test "$GCC" = yes; then
10555         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10556         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10557       else
10558         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10559         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10560       fi
10561       ;;
10562
10563     sysv5* | sco3.2v5* | sco5v6*)
10564       # Note: We can NOT use -z defs as we might desire, because we do not
10565       # link with -lc, and that would cause any symbols used from libc to
10566       # always be unresolved, which means just about no library would
10567       # ever link correctly.  If we're not using GNU ld we use -z text
10568       # though, which does catch some bad symbols but isn't as heavy-handed
10569       # as -z defs.
10570       no_undefined_flag='${wl}-z,text'
10571       allow_undefined_flag='${wl}-z,nodefs'
10572       archive_cmds_need_lc=no
10573       hardcode_shlibpath_var=no
10574       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10575       hardcode_libdir_separator=':'
10576       link_all_deplibs=yes
10577       export_dynamic_flag_spec='${wl}-Bexport'
10578       runpath_var='LD_RUN_PATH'
10579
10580       if test "$GCC" = yes; then
10581         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10582         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10583       else
10584         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10585         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10586       fi
10587       ;;
10588
10589     uts4*)
10590       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10591       hardcode_libdir_flag_spec='-L$libdir'
10592       hardcode_shlibpath_var=no
10593       ;;
10594
10595     *)
10596       ld_shlibs=no
10597       ;;
10598     esac
10599   fi
10600
10601 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10602 echo "${ECHO_T}$ld_shlibs" >&6; }
10603 test "$ld_shlibs" = no && can_build_shared=no
10604
10605 #
10606 # Do we need to explicitly link libc?
10607 #
10608 case "x$archive_cmds_need_lc" in
10609 x|xyes)
10610   # Assume -lc should be added
10611   archive_cmds_need_lc=yes
10612
10613   if test "$enable_shared" = yes && test "$GCC" = yes; then
10614     case $archive_cmds in
10615     *'~'*)
10616       # FIXME: we may have to deal with multi-command sequences.
10617       ;;
10618     '$CC '*)
10619       # Test whether the compiler implicitly links with -lc since on some
10620       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10621       # to ld, don't add -lc before -lgcc.
10622       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10623 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
10624       $rm conftest*
10625       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10626
10627       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10628   (eval $ac_compile) 2>&5
10629   ac_status=$?
10630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631   (exit $ac_status); } 2>conftest.err; then
10632         soname=conftest
10633         lib=conftest
10634         libobjs=conftest.$ac_objext
10635         deplibs=
10636         wl=$lt_prog_compiler_wl
10637         pic_flag=$lt_prog_compiler_pic
10638         compiler_flags=-v
10639         linker_flags=-v
10640         verstring=
10641         output_objdir=.
10642         libname=conftest
10643         lt_save_allow_undefined_flag=$allow_undefined_flag
10644         allow_undefined_flag=
10645         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10646   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10647   ac_status=$?
10648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649   (exit $ac_status); }
10650         then
10651           archive_cmds_need_lc=no
10652         else
10653           archive_cmds_need_lc=yes
10654         fi
10655         allow_undefined_flag=$lt_save_allow_undefined_flag
10656       else
10657         cat conftest.err 1>&5
10658       fi
10659       $rm conftest*
10660       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10661 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
10662       ;;
10663     esac
10664   fi
10665   ;;
10666 esac
10667
10668 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10669 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10670 library_names_spec=
10671 libname_spec='lib$name'
10672 soname_spec=
10673 shrext_cmds=".so"
10674 postinstall_cmds=
10675 postuninstall_cmds=
10676 finish_cmds=
10677 finish_eval=
10678 shlibpath_var=
10679 shlibpath_overrides_runpath=unknown
10680 version_type=none
10681 dynamic_linker="$host_os ld.so"
10682 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10683
10684 if test "$GCC" = yes; then
10685   case $host_os in
10686     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10687     *) lt_awk_arg="/^libraries:/" ;;
10688   esac
10689   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10690   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
10691     # if the path contains ";" then we assume it to be the separator
10692     # otherwise default to the standard path separator (i.e. ":") - it is
10693     # assumed that no part of a normal pathname contains ";" but that should
10694     # okay in the real world where ";" in dirpaths is itself problematic.
10695     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10696   else
10697     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10698   fi
10699   # Ok, now we have the path, separated by spaces, we can step through it
10700   # and add multilib dir if necessary.
10701   lt_tmp_lt_search_path_spec=
10702   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10703   for lt_sys_path in $lt_search_path_spec; do
10704     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10705       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10706     else
10707       test -d "$lt_sys_path" && \
10708         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10709     fi
10710   done
10711   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
10712 BEGIN {RS=" "; FS="/|\n";} {
10713   lt_foo="";
10714   lt_count=0;
10715   for (lt_i = NF; lt_i > 0; lt_i--) {
10716     if ($lt_i != "" && $lt_i != ".") {
10717       if ($lt_i == "..") {
10718         lt_count++;
10719       } else {
10720         if (lt_count == 0) {
10721           lt_foo="/" $lt_i lt_foo;
10722         } else {
10723           lt_count--;
10724         }
10725       }
10726     }
10727   }
10728   if (lt_foo != "") { lt_freq[lt_foo]++; }
10729   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10730 }'`
10731   sys_lib_search_path_spec=`echo $lt_search_path_spec`
10732 else
10733   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10734 fi
10735 need_lib_prefix=unknown
10736 hardcode_into_libs=no
10737
10738 # when you set need_version to no, make sure it does not cause -set_version
10739 # flags to be left without arguments
10740 need_version=unknown
10741
10742 case $host_os in
10743 aix3*)
10744   version_type=linux
10745   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10746   shlibpath_var=LIBPATH
10747
10748   # AIX 3 has no versioning support, so we append a major version to the name.
10749   soname_spec='${libname}${release}${shared_ext}$major'
10750   ;;
10751
10752 aix[4-9]*)
10753   version_type=linux
10754   need_lib_prefix=no
10755   need_version=no
10756   hardcode_into_libs=yes
10757   if test "$host_cpu" = ia64; then
10758     # AIX 5 supports IA64
10759     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10760     shlibpath_var=LD_LIBRARY_PATH
10761   else
10762     # With GCC up to 2.95.x, collect2 would create an import file
10763     # for dependence libraries.  The import file would start with
10764     # the line `#! .'.  This would cause the generated library to
10765     # depend on `.', always an invalid library.  This was fixed in
10766     # development snapshots of GCC prior to 3.0.
10767     case $host_os in
10768       aix4 | aix4.[01] | aix4.[01].*)
10769       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10770            echo ' yes '
10771            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10772         :
10773       else
10774         can_build_shared=no
10775       fi
10776       ;;
10777     esac
10778     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10779     # soname into executable. Probably we can add versioning support to
10780     # collect2, so additional links can be useful in future.
10781     if test "$aix_use_runtimelinking" = yes; then
10782       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10783       # instead of lib<name>.a to let people know that these are not
10784       # typical AIX shared libraries.
10785       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10786     else
10787       # We preserve .a as extension for shared libraries through AIX4.2
10788       # and later when we are not doing run time linking.
10789       library_names_spec='${libname}${release}.a $libname.a'
10790       soname_spec='${libname}${release}${shared_ext}$major'
10791     fi
10792     shlibpath_var=LIBPATH
10793   fi
10794   ;;
10795
10796 amigaos*)
10797   library_names_spec='$libname.ixlibrary $libname.a'
10798   # Create ${libname}_ixlibrary.a entries in /sys/libs.
10799   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10800   ;;
10801
10802 beos*)
10803   library_names_spec='${libname}${shared_ext}'
10804   dynamic_linker="$host_os ld.so"
10805   shlibpath_var=LIBRARY_PATH
10806   ;;
10807
10808 bsdi[45]*)
10809   version_type=linux
10810   need_version=no
10811   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10812   soname_spec='${libname}${release}${shared_ext}$major'
10813   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10814   shlibpath_var=LD_LIBRARY_PATH
10815   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10816   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10817   # the default ld.so.conf also contains /usr/contrib/lib and
10818   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10819   # libtool to hard-code these into programs
10820   ;;
10821
10822 cygwin* | mingw* | pw32*)
10823   version_type=windows
10824   shrext_cmds=".dll"
10825   need_version=no
10826   need_lib_prefix=no
10827
10828   case $GCC,$host_os in
10829   yes,cygwin* | yes,mingw* | yes,pw32*)
10830     library_names_spec='$libname.dll.a'
10831     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10832     postinstall_cmds='base_file=`basename \${file}`~
10833       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10834       dldir=$destdir/`dirname \$dlpath`~
10835       test -d \$dldir || mkdir -p \$dldir~
10836       $install_prog $dir/$dlname \$dldir/$dlname~
10837       chmod a+x \$dldir/$dlname'
10838     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10839       dlpath=$dir/\$dldll~
10840        $rm \$dlpath'
10841     shlibpath_overrides_runpath=yes
10842
10843     case $host_os in
10844     cygwin*)
10845       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10846       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10847       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10848       ;;
10849     mingw*)
10850       # MinGW DLLs use traditional 'lib' prefix
10851       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10852       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10853       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10854         # It is most probably a Windows format PATH printed by
10855         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10856         # path with ; separators, and with drive letters. We can handle the
10857         # drive letters (cygwin fileutils understands them), so leave them,
10858         # especially as we might pass files found there to a mingw objdump,
10859         # which wouldn't understand a cygwinified path. Ahh.
10860         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10861       else
10862         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10863       fi
10864       ;;
10865     pw32*)
10866       # pw32 DLLs use 'pw' prefix rather than 'lib'
10867       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10868       ;;
10869     esac
10870     ;;
10871
10872   *)
10873     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10874     ;;
10875   esac
10876   dynamic_linker='Win32 ld.exe'
10877   # FIXME: first we should search . and the directory the executable is in
10878   shlibpath_var=PATH
10879   ;;
10880
10881 darwin* | rhapsody*)
10882   dynamic_linker="$host_os dyld"
10883   version_type=darwin
10884   need_lib_prefix=no
10885   need_version=no
10886   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10887   soname_spec='${libname}${release}${major}$shared_ext'
10888   shlibpath_overrides_runpath=yes
10889   shlibpath_var=DYLD_LIBRARY_PATH
10890   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10891   
10892   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 
10893   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10894   ;;
10895
10896 dgux*)
10897   version_type=linux
10898   need_lib_prefix=no
10899   need_version=no
10900   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10901   soname_spec='${libname}${release}${shared_ext}$major'
10902   shlibpath_var=LD_LIBRARY_PATH
10903   ;;
10904
10905 freebsd1*)
10906   dynamic_linker=no
10907   ;;
10908
10909 freebsd* | dragonfly*)
10910   # DragonFly does not have aout.  When/if they implement a new
10911   # versioning mechanism, adjust this.
10912   if test -x /usr/bin/objformat; then
10913     objformat=`/usr/bin/objformat`
10914   else
10915     case $host_os in
10916     freebsd[123]*) objformat=aout ;;
10917     *) objformat=elf ;;
10918     esac
10919   fi
10920   version_type=freebsd-$objformat
10921   case $version_type in
10922     freebsd-elf*)
10923       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10924       need_version=no
10925       need_lib_prefix=no
10926       ;;
10927     freebsd-*)
10928       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10929       need_version=yes
10930       ;;
10931   esac
10932   shlibpath_var=LD_LIBRARY_PATH
10933   case $host_os in
10934   freebsd2*)
10935     shlibpath_overrides_runpath=yes
10936     ;;
10937   freebsd3.[01]* | freebsdelf3.[01]*)
10938     shlibpath_overrides_runpath=yes
10939     hardcode_into_libs=yes
10940     ;;
10941   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10942   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10943     shlibpath_overrides_runpath=no
10944     hardcode_into_libs=yes
10945     ;;
10946   *) # from 4.6 on, and DragonFly
10947     shlibpath_overrides_runpath=yes
10948     hardcode_into_libs=yes
10949     ;;
10950   esac
10951   ;;
10952
10953 gnu*)
10954   version_type=linux
10955   need_lib_prefix=no
10956   need_version=no
10957   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10958   soname_spec='${libname}${release}${shared_ext}$major'
10959   shlibpath_var=LD_LIBRARY_PATH
10960   hardcode_into_libs=yes
10961   ;;
10962
10963 hpux9* | hpux10* | hpux11*)
10964   # Give a soname corresponding to the major version so that dld.sl refuses to
10965   # link against other versions.
10966   version_type=sunos
10967   need_lib_prefix=no
10968   need_version=no
10969   case $host_cpu in
10970   ia64*)
10971     shrext_cmds='.so'
10972     hardcode_into_libs=yes
10973     dynamic_linker="$host_os dld.so"
10974     shlibpath_var=LD_LIBRARY_PATH
10975     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10976     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10977     soname_spec='${libname}${release}${shared_ext}$major'
10978     if test "X$HPUX_IA64_MODE" = X32; then
10979       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10980     else
10981       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10982     fi
10983     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10984     ;;
10985    hppa*64*)
10986      shrext_cmds='.sl'
10987      hardcode_into_libs=yes
10988      dynamic_linker="$host_os dld.sl"
10989      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10990      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10991      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10992      soname_spec='${libname}${release}${shared_ext}$major'
10993      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10994      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10995      ;;
10996    *)
10997     shrext_cmds='.sl'
10998     dynamic_linker="$host_os dld.sl"
10999     shlibpath_var=SHLIB_PATH
11000     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11001     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11002     soname_spec='${libname}${release}${shared_ext}$major'
11003     ;;
11004   esac
11005   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11006   postinstall_cmds='chmod 555 $lib'
11007   ;;
11008
11009 interix[3-9]*)
11010   version_type=linux
11011   need_lib_prefix=no
11012   need_version=no
11013   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11014   soname_spec='${libname}${release}${shared_ext}$major'
11015   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11016   shlibpath_var=LD_LIBRARY_PATH
11017   shlibpath_overrides_runpath=no
11018   hardcode_into_libs=yes
11019   ;;
11020
11021 irix5* | irix6* | nonstopux*)
11022   case $host_os in
11023     nonstopux*) version_type=nonstopux ;;
11024     *)
11025         if test "$lt_cv_prog_gnu_ld" = yes; then
11026                 version_type=linux
11027         else
11028                 version_type=irix
11029         fi ;;
11030   esac
11031   need_lib_prefix=no
11032   need_version=no
11033   soname_spec='${libname}${release}${shared_ext}$major'
11034   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11035   case $host_os in
11036   irix5* | nonstopux*)
11037     libsuff= shlibsuff=
11038     ;;
11039   *)
11040     case $LD in # libtool.m4 will add one of these switches to LD
11041     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11042       libsuff= shlibsuff= libmagic=32-bit;;
11043     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11044       libsuff=32 shlibsuff=N32 libmagic=N32;;
11045     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11046       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11047     *) libsuff= shlibsuff= libmagic=never-match;;
11048     esac
11049     ;;
11050   esac
11051   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11052   shlibpath_overrides_runpath=no
11053   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11054   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11055   hardcode_into_libs=yes
11056   ;;
11057
11058 # No shared lib support for Linux oldld, aout, or coff.
11059 linux*oldld* | linux*aout* | linux*coff*)
11060   dynamic_linker=no
11061   ;;
11062
11063 # This must be Linux ELF.
11064 linux* | k*bsd*-gnu)
11065   version_type=linux
11066   need_lib_prefix=no
11067   need_version=no
11068   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11069   soname_spec='${libname}${release}${shared_ext}$major'
11070   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11071   shlibpath_var=LD_LIBRARY_PATH
11072   shlibpath_overrides_runpath=no
11073   # This implies no fast_install, which is unacceptable.
11074   # Some rework will be needed to allow for fast_install
11075   # before this can be enabled.
11076   hardcode_into_libs=yes
11077
11078   # Append ld.so.conf contents to the search path
11079   if test -f /etc/ld.so.conf; then
11080     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11081     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11082   fi
11083
11084   # We used to test for /lib/ld.so.1 and disable shared libraries on
11085   # powerpc, because MkLinux only supported shared libraries with the
11086   # GNU dynamic linker.  Since this was broken with cross compilers,
11087   # most powerpc-linux boxes support dynamic linking these days and
11088   # people can always --disable-shared, the test was removed, and we
11089   # assume the GNU/Linux dynamic linker is in use.
11090   dynamic_linker='GNU/Linux ld.so'
11091   ;;
11092
11093 netbsd*)
11094   version_type=sunos
11095   need_lib_prefix=no
11096   need_version=no
11097   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11098     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11099     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11100     dynamic_linker='NetBSD (a.out) ld.so'
11101   else
11102     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11103     soname_spec='${libname}${release}${shared_ext}$major'
11104     dynamic_linker='NetBSD ld.elf_so'
11105   fi
11106   shlibpath_var=LD_LIBRARY_PATH
11107   shlibpath_overrides_runpath=yes
11108   hardcode_into_libs=yes
11109   ;;
11110
11111 newsos6)
11112   version_type=linux
11113   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11114   shlibpath_var=LD_LIBRARY_PATH
11115   shlibpath_overrides_runpath=yes
11116   ;;
11117
11118 nto-qnx*)
11119   version_type=linux
11120   need_lib_prefix=no
11121   need_version=no
11122   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11123   soname_spec='${libname}${release}${shared_ext}$major'
11124   shlibpath_var=LD_LIBRARY_PATH
11125   shlibpath_overrides_runpath=yes
11126   ;;
11127
11128 openbsd*)
11129   version_type=sunos
11130   sys_lib_dlsearch_path_spec="/usr/lib"
11131   need_lib_prefix=no
11132   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11133   case $host_os in
11134     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11135     *)                         need_version=no  ;;
11136   esac
11137   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11138   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11139   shlibpath_var=LD_LIBRARY_PATH
11140   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11141     case $host_os in
11142       openbsd2.[89] | openbsd2.[89].*)
11143         shlibpath_overrides_runpath=no
11144         ;;
11145       *)
11146         shlibpath_overrides_runpath=yes
11147         ;;
11148       esac
11149   else
11150     shlibpath_overrides_runpath=yes
11151   fi
11152   ;;
11153
11154 os2*)
11155   libname_spec='$name'
11156   shrext_cmds=".dll"
11157   need_lib_prefix=no
11158   library_names_spec='$libname${shared_ext} $libname.a'
11159   dynamic_linker='OS/2 ld.exe'
11160   shlibpath_var=LIBPATH
11161   ;;
11162
11163 osf3* | osf4* | osf5*)
11164   version_type=osf
11165   need_lib_prefix=no
11166   need_version=no
11167   soname_spec='${libname}${release}${shared_ext}$major'
11168   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11169   shlibpath_var=LD_LIBRARY_PATH
11170   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11171   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11172   ;;
11173
11174 rdos*)
11175   dynamic_linker=no
11176   ;;
11177
11178 solaris*)
11179   version_type=linux
11180   need_lib_prefix=no
11181   need_version=no
11182   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11183   soname_spec='${libname}${release}${shared_ext}$major'
11184   shlibpath_var=LD_LIBRARY_PATH
11185   shlibpath_overrides_runpath=yes
11186   hardcode_into_libs=yes
11187   # ldd complains unless libraries are executable
11188   postinstall_cmds='chmod +x $lib'
11189   ;;
11190
11191 sunos4*)
11192   version_type=sunos
11193   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11194   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11195   shlibpath_var=LD_LIBRARY_PATH
11196   shlibpath_overrides_runpath=yes
11197   if test "$with_gnu_ld" = yes; then
11198     need_lib_prefix=no
11199   fi
11200   need_version=yes
11201   ;;
11202
11203 sysv4 | sysv4.3*)
11204   version_type=linux
11205   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11206   soname_spec='${libname}${release}${shared_ext}$major'
11207   shlibpath_var=LD_LIBRARY_PATH
11208   case $host_vendor in
11209     sni)
11210       shlibpath_overrides_runpath=no
11211       need_lib_prefix=no
11212       export_dynamic_flag_spec='${wl}-Blargedynsym'
11213       runpath_var=LD_RUN_PATH
11214       ;;
11215     siemens)
11216       need_lib_prefix=no
11217       ;;
11218     motorola)
11219       need_lib_prefix=no
11220       need_version=no
11221       shlibpath_overrides_runpath=no
11222       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11223       ;;
11224   esac
11225   ;;
11226
11227 sysv4*MP*)
11228   if test -d /usr/nec ;then
11229     version_type=linux
11230     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11231     soname_spec='$libname${shared_ext}.$major'
11232     shlibpath_var=LD_LIBRARY_PATH
11233   fi
11234   ;;
11235
11236 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11237   version_type=freebsd-elf
11238   need_lib_prefix=no
11239   need_version=no
11240   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11241   soname_spec='${libname}${release}${shared_ext}$major'
11242   shlibpath_var=LD_LIBRARY_PATH
11243   hardcode_into_libs=yes
11244   if test "$with_gnu_ld" = yes; then
11245     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11246     shlibpath_overrides_runpath=no
11247   else
11248     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11249     shlibpath_overrides_runpath=yes
11250     case $host_os in
11251       sco3.2v5*)
11252         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11253         ;;
11254     esac
11255   fi
11256   sys_lib_dlsearch_path_spec='/usr/lib'
11257   ;;
11258
11259 uts4*)
11260   version_type=linux
11261   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11262   soname_spec='${libname}${release}${shared_ext}$major'
11263   shlibpath_var=LD_LIBRARY_PATH
11264   ;;
11265
11266 *)
11267   dynamic_linker=no
11268   ;;
11269 esac
11270 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11271 echo "${ECHO_T}$dynamic_linker" >&6; }
11272 test "$dynamic_linker" = no && can_build_shared=no
11273
11274 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11275   echo $ECHO_N "(cached) $ECHO_C" >&6
11276 else
11277   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
11278 fi
11279
11280 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11281 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11282   echo $ECHO_N "(cached) $ECHO_C" >&6
11283 else
11284   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
11285 fi
11286
11287 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11288
11289 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11290 if test "$GCC" = yes; then
11291   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11292 fi
11293
11294 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11295 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
11296 hardcode_action=
11297 if test -n "$hardcode_libdir_flag_spec" || \
11298    test -n "$runpath_var" || \
11299    test "X$hardcode_automatic" = "Xyes" ; then
11300
11301   # We can hardcode non-existant directories.
11302   if test "$hardcode_direct" != no &&
11303      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11304      # have to relink, otherwise we might link with an installed library
11305      # when we should be linking with a yet-to-be-installed one
11306      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
11307      test "$hardcode_minus_L" != no; then
11308     # Linking always hardcodes the temporary library directory.
11309     hardcode_action=relink
11310   else
11311     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11312     hardcode_action=immediate
11313   fi
11314 else
11315   # We cannot hardcode anything, or else we can only hardcode existing
11316   # directories.
11317   hardcode_action=unsupported
11318 fi
11319 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
11320 echo "${ECHO_T}$hardcode_action" >&6; }
11321
11322 if test "$hardcode_action" = relink; then
11323   # Fast installation is not supported
11324   enable_fast_install=no
11325 elif test "$shlibpath_overrides_runpath" = yes ||
11326      test "$enable_shared" = no; then
11327   # Fast installation is not necessary
11328   enable_fast_install=needless
11329 fi
11330
11331 striplib=
11332 old_striplib=
11333 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11334 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
11335 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11336   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11337   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11338   { echo "$as_me:$LINENO: result: yes" >&5
11339 echo "${ECHO_T}yes" >&6; }
11340 else
11341 # FIXME - insert some real tests, host_os isn't really good enough
11342   case $host_os in
11343    darwin*)
11344        if test -n "$STRIP" ; then
11345          striplib="$STRIP -x"
11346          old_striplib="$STRIP -S"
11347          { echo "$as_me:$LINENO: result: yes" >&5
11348 echo "${ECHO_T}yes" >&6; }
11349        else
11350   { echo "$as_me:$LINENO: result: no" >&5
11351 echo "${ECHO_T}no" >&6; }
11352 fi
11353        ;;
11354    *)
11355   { echo "$as_me:$LINENO: result: no" >&5
11356 echo "${ECHO_T}no" >&6; }
11357     ;;
11358   esac
11359 fi
11360
11361 if test "x$enable_dlopen" != xyes; then
11362   enable_dlopen=unknown
11363   enable_dlopen_self=unknown
11364   enable_dlopen_self_static=unknown
11365 else
11366   lt_cv_dlopen=no
11367   lt_cv_dlopen_libs=
11368
11369   case $host_os in
11370   beos*)
11371     lt_cv_dlopen="load_add_on"
11372     lt_cv_dlopen_libs=
11373     lt_cv_dlopen_self=yes
11374     ;;
11375
11376   mingw* | pw32*)
11377     lt_cv_dlopen="LoadLibrary"
11378     lt_cv_dlopen_libs=
11379    ;;
11380
11381   cygwin*)
11382     lt_cv_dlopen="dlopen"
11383     lt_cv_dlopen_libs=
11384    ;;
11385
11386   darwin*)
11387   # if libdl is installed we need to link against it
11388     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11389 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11390 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11391   echo $ECHO_N "(cached) $ECHO_C" >&6
11392 else
11393   ac_check_lib_save_LIBS=$LIBS
11394 LIBS="-ldl  $LIBS"
11395 cat >conftest.$ac_ext <<_ACEOF
11396 /* confdefs.h.  */
11397 _ACEOF
11398 cat confdefs.h >>conftest.$ac_ext
11399 cat >>conftest.$ac_ext <<_ACEOF
11400 /* end confdefs.h.  */
11401
11402 /* Override any GCC internal prototype to avoid an error.
11403    Use char because int might match the return type of a GCC
11404    builtin and then its argument prototype would still apply.  */
11405 #ifdef __cplusplus
11406 extern "C"
11407 #endif
11408 char dlopen ();
11409 int
11410 main ()
11411 {
11412 return dlopen ();
11413   ;
11414   return 0;
11415 }
11416 _ACEOF
11417 rm -f conftest.$ac_objext conftest$ac_exeext
11418 if { (ac_try="$ac_link"
11419 case "(($ac_try" in
11420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11421   *) ac_try_echo=$ac_try;;
11422 esac
11423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11424   (eval "$ac_link") 2>conftest.er1
11425   ac_status=$?
11426   grep -v '^ *+' conftest.er1 >conftest.err
11427   rm -f conftest.er1
11428   cat conftest.err >&5
11429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11430   (exit $ac_status); } && {
11431          test -z "$ac_c_werror_flag" ||
11432          test ! -s conftest.err
11433        } && test -s conftest$ac_exeext &&
11434        $as_test_x conftest$ac_exeext; then
11435   ac_cv_lib_dl_dlopen=yes
11436 else
11437   echo "$as_me: failed program was:" >&5
11438 sed 's/^/| /' conftest.$ac_ext >&5
11439
11440         ac_cv_lib_dl_dlopen=no
11441 fi
11442
11443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11444       conftest$ac_exeext conftest.$ac_ext
11445 LIBS=$ac_check_lib_save_LIBS
11446 fi
11447 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11448 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11449 if test $ac_cv_lib_dl_dlopen = yes; then
11450   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11451 else
11452   
11453     lt_cv_dlopen="dyld"
11454     lt_cv_dlopen_libs=
11455     lt_cv_dlopen_self=yes
11456     
11457 fi
11458
11459    ;;
11460
11461   *)
11462     { echo "$as_me:$LINENO: checking for shl_load" >&5
11463 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
11464 if test "${ac_cv_func_shl_load+set}" = set; then
11465   echo $ECHO_N "(cached) $ECHO_C" >&6
11466 else
11467   cat >conftest.$ac_ext <<_ACEOF
11468 /* confdefs.h.  */
11469 _ACEOF
11470 cat confdefs.h >>conftest.$ac_ext
11471 cat >>conftest.$ac_ext <<_ACEOF
11472 /* end confdefs.h.  */
11473 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11474    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11475 #define shl_load innocuous_shl_load
11476
11477 /* System header to define __stub macros and hopefully few prototypes,
11478     which can conflict with char shl_load (); below.
11479     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11480     <limits.h> exists even on freestanding compilers.  */
11481
11482 #ifdef __STDC__
11483 # include <limits.h>
11484 #else
11485 # include <assert.h>
11486 #endif
11487
11488 #undef shl_load
11489
11490 /* Override any GCC internal prototype to avoid an error.
11491    Use char because int might match the return type of a GCC
11492    builtin and then its argument prototype would still apply.  */
11493 #ifdef __cplusplus
11494 extern "C"
11495 #endif
11496 char shl_load ();
11497 /* The GNU C library defines this for functions which it implements
11498     to always fail with ENOSYS.  Some functions are actually named
11499     something starting with __ and the normal name is an alias.  */
11500 #if defined __stub_shl_load || defined __stub___shl_load
11501 choke me
11502 #endif
11503
11504 int
11505 main ()
11506 {
11507 return shl_load ();
11508   ;
11509   return 0;
11510 }
11511 _ACEOF
11512 rm -f conftest.$ac_objext conftest$ac_exeext
11513 if { (ac_try="$ac_link"
11514 case "(($ac_try" in
11515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11516   *) ac_try_echo=$ac_try;;
11517 esac
11518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11519   (eval "$ac_link") 2>conftest.er1
11520   ac_status=$?
11521   grep -v '^ *+' conftest.er1 >conftest.err
11522   rm -f conftest.er1
11523   cat conftest.err >&5
11524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525   (exit $ac_status); } && {
11526          test -z "$ac_c_werror_flag" ||
11527          test ! -s conftest.err
11528        } && test -s conftest$ac_exeext &&
11529        $as_test_x conftest$ac_exeext; then
11530   ac_cv_func_shl_load=yes
11531 else
11532   echo "$as_me: failed program was:" >&5
11533 sed 's/^/| /' conftest.$ac_ext >&5
11534
11535         ac_cv_func_shl_load=no
11536 fi
11537
11538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11539       conftest$ac_exeext conftest.$ac_ext
11540 fi
11541 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11542 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
11543 if test $ac_cv_func_shl_load = yes; then
11544   lt_cv_dlopen="shl_load"
11545 else
11546   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11547 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
11548 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11549   echo $ECHO_N "(cached) $ECHO_C" >&6
11550 else
11551   ac_check_lib_save_LIBS=$LIBS
11552 LIBS="-ldld  $LIBS"
11553 cat >conftest.$ac_ext <<_ACEOF
11554 /* confdefs.h.  */
11555 _ACEOF
11556 cat confdefs.h >>conftest.$ac_ext
11557 cat >>conftest.$ac_ext <<_ACEOF
11558 /* end confdefs.h.  */
11559
11560 /* Override any GCC internal prototype to avoid an error.
11561    Use char because int might match the return type of a GCC
11562    builtin and then its argument prototype would still apply.  */
11563 #ifdef __cplusplus
11564 extern "C"
11565 #endif
11566 char shl_load ();
11567 int
11568 main ()
11569 {
11570 return shl_load ();
11571   ;
11572   return 0;
11573 }
11574 _ACEOF
11575 rm -f conftest.$ac_objext conftest$ac_exeext
11576 if { (ac_try="$ac_link"
11577 case "(($ac_try" in
11578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11579   *) ac_try_echo=$ac_try;;
11580 esac
11581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11582   (eval "$ac_link") 2>conftest.er1
11583   ac_status=$?
11584   grep -v '^ *+' conftest.er1 >conftest.err
11585   rm -f conftest.er1
11586   cat conftest.err >&5
11587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588   (exit $ac_status); } && {
11589          test -z "$ac_c_werror_flag" ||
11590          test ! -s conftest.err
11591        } && test -s conftest$ac_exeext &&
11592        $as_test_x conftest$ac_exeext; then
11593   ac_cv_lib_dld_shl_load=yes
11594 else
11595   echo "$as_me: failed program was:" >&5
11596 sed 's/^/| /' conftest.$ac_ext >&5
11597
11598         ac_cv_lib_dld_shl_load=no
11599 fi
11600
11601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11602       conftest$ac_exeext conftest.$ac_ext
11603 LIBS=$ac_check_lib_save_LIBS
11604 fi
11605 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11606 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11607 if test $ac_cv_lib_dld_shl_load = yes; then
11608   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11609 else
11610   { echo "$as_me:$LINENO: checking for dlopen" >&5
11611 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11612 if test "${ac_cv_func_dlopen+set}" = set; then
11613   echo $ECHO_N "(cached) $ECHO_C" >&6
11614 else
11615   cat >conftest.$ac_ext <<_ACEOF
11616 /* confdefs.h.  */
11617 _ACEOF
11618 cat confdefs.h >>conftest.$ac_ext
11619 cat >>conftest.$ac_ext <<_ACEOF
11620 /* end confdefs.h.  */
11621 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11622    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11623 #define dlopen innocuous_dlopen
11624
11625 /* System header to define __stub macros and hopefully few prototypes,
11626     which can conflict with char dlopen (); below.
11627     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11628     <limits.h> exists even on freestanding compilers.  */
11629
11630 #ifdef __STDC__
11631 # include <limits.h>
11632 #else
11633 # include <assert.h>
11634 #endif
11635
11636 #undef dlopen
11637
11638 /* Override any GCC internal prototype to avoid an error.
11639    Use char because int might match the return type of a GCC
11640    builtin and then its argument prototype would still apply.  */
11641 #ifdef __cplusplus
11642 extern "C"
11643 #endif
11644 char dlopen ();
11645 /* The GNU C library defines this for functions which it implements
11646     to always fail with ENOSYS.  Some functions are actually named
11647     something starting with __ and the normal name is an alias.  */
11648 #if defined __stub_dlopen || defined __stub___dlopen
11649 choke me
11650 #endif
11651
11652 int
11653 main ()
11654 {
11655 return dlopen ();
11656   ;
11657   return 0;
11658 }
11659 _ACEOF
11660 rm -f conftest.$ac_objext conftest$ac_exeext
11661 if { (ac_try="$ac_link"
11662 case "(($ac_try" in
11663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11664   *) ac_try_echo=$ac_try;;
11665 esac
11666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11667   (eval "$ac_link") 2>conftest.er1
11668   ac_status=$?
11669   grep -v '^ *+' conftest.er1 >conftest.err
11670   rm -f conftest.er1
11671   cat conftest.err >&5
11672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673   (exit $ac_status); } && {
11674          test -z "$ac_c_werror_flag" ||
11675          test ! -s conftest.err
11676        } && test -s conftest$ac_exeext &&
11677        $as_test_x conftest$ac_exeext; then
11678   ac_cv_func_dlopen=yes
11679 else
11680   echo "$as_me: failed program was:" >&5
11681 sed 's/^/| /' conftest.$ac_ext >&5
11682
11683         ac_cv_func_dlopen=no
11684 fi
11685
11686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11687       conftest$ac_exeext conftest.$ac_ext
11688 fi
11689 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11690 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11691 if test $ac_cv_func_dlopen = yes; then
11692   lt_cv_dlopen="dlopen"
11693 else
11694   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11695 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11696 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11697   echo $ECHO_N "(cached) $ECHO_C" >&6
11698 else
11699   ac_check_lib_save_LIBS=$LIBS
11700 LIBS="-ldl  $LIBS"
11701 cat >conftest.$ac_ext <<_ACEOF
11702 /* confdefs.h.  */
11703 _ACEOF
11704 cat confdefs.h >>conftest.$ac_ext
11705 cat >>conftest.$ac_ext <<_ACEOF
11706 /* end confdefs.h.  */
11707
11708 /* Override any GCC internal prototype to avoid an error.
11709    Use char because int might match the return type of a GCC
11710    builtin and then its argument prototype would still apply.  */
11711 #ifdef __cplusplus
11712 extern "C"
11713 #endif
11714 char dlopen ();
11715 int
11716 main ()
11717 {
11718 return dlopen ();
11719   ;
11720   return 0;
11721 }
11722 _ACEOF
11723 rm -f conftest.$ac_objext conftest$ac_exeext
11724 if { (ac_try="$ac_link"
11725 case "(($ac_try" in
11726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11727   *) ac_try_echo=$ac_try;;
11728 esac
11729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11730   (eval "$ac_link") 2>conftest.er1
11731   ac_status=$?
11732   grep -v '^ *+' conftest.er1 >conftest.err
11733   rm -f conftest.er1
11734   cat conftest.err >&5
11735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736   (exit $ac_status); } && {
11737          test -z "$ac_c_werror_flag" ||
11738          test ! -s conftest.err
11739        } && test -s conftest$ac_exeext &&
11740        $as_test_x conftest$ac_exeext; then
11741   ac_cv_lib_dl_dlopen=yes
11742 else
11743   echo "$as_me: failed program was:" >&5
11744 sed 's/^/| /' conftest.$ac_ext >&5
11745
11746         ac_cv_lib_dl_dlopen=no
11747 fi
11748
11749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11750       conftest$ac_exeext conftest.$ac_ext
11751 LIBS=$ac_check_lib_save_LIBS
11752 fi
11753 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11754 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11755 if test $ac_cv_lib_dl_dlopen = yes; then
11756   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11757 else
11758   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11759 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11760 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11761   echo $ECHO_N "(cached) $ECHO_C" >&6
11762 else
11763   ac_check_lib_save_LIBS=$LIBS
11764 LIBS="-lsvld  $LIBS"
11765 cat >conftest.$ac_ext <<_ACEOF
11766 /* confdefs.h.  */
11767 _ACEOF
11768 cat confdefs.h >>conftest.$ac_ext
11769 cat >>conftest.$ac_ext <<_ACEOF
11770 /* end confdefs.h.  */
11771
11772 /* Override any GCC internal prototype to avoid an error.
11773    Use char because int might match the return type of a GCC
11774    builtin and then its argument prototype would still apply.  */
11775 #ifdef __cplusplus
11776 extern "C"
11777 #endif
11778 char dlopen ();
11779 int
11780 main ()
11781 {
11782 return dlopen ();
11783   ;
11784   return 0;
11785 }
11786 _ACEOF
11787 rm -f conftest.$ac_objext conftest$ac_exeext
11788 if { (ac_try="$ac_link"
11789 case "(($ac_try" in
11790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11791   *) ac_try_echo=$ac_try;;
11792 esac
11793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11794   (eval "$ac_link") 2>conftest.er1
11795   ac_status=$?
11796   grep -v '^ *+' conftest.er1 >conftest.err
11797   rm -f conftest.er1
11798   cat conftest.err >&5
11799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800   (exit $ac_status); } && {
11801          test -z "$ac_c_werror_flag" ||
11802          test ! -s conftest.err
11803        } && test -s conftest$ac_exeext &&
11804        $as_test_x conftest$ac_exeext; then
11805   ac_cv_lib_svld_dlopen=yes
11806 else
11807   echo "$as_me: failed program was:" >&5
11808 sed 's/^/| /' conftest.$ac_ext >&5
11809
11810         ac_cv_lib_svld_dlopen=no
11811 fi
11812
11813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11814       conftest$ac_exeext conftest.$ac_ext
11815 LIBS=$ac_check_lib_save_LIBS
11816 fi
11817 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11818 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11819 if test $ac_cv_lib_svld_dlopen = yes; then
11820   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11821 else
11822   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11823 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11824 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11825   echo $ECHO_N "(cached) $ECHO_C" >&6
11826 else
11827   ac_check_lib_save_LIBS=$LIBS
11828 LIBS="-ldld  $LIBS"
11829 cat >conftest.$ac_ext <<_ACEOF
11830 /* confdefs.h.  */
11831 _ACEOF
11832 cat confdefs.h >>conftest.$ac_ext
11833 cat >>conftest.$ac_ext <<_ACEOF
11834 /* end confdefs.h.  */
11835
11836 /* Override any GCC internal prototype to avoid an error.
11837    Use char because int might match the return type of a GCC
11838    builtin and then its argument prototype would still apply.  */
11839 #ifdef __cplusplus
11840 extern "C"
11841 #endif
11842 char dld_link ();
11843 int
11844 main ()
11845 {
11846 return dld_link ();
11847   ;
11848   return 0;
11849 }
11850 _ACEOF
11851 rm -f conftest.$ac_objext conftest$ac_exeext
11852 if { (ac_try="$ac_link"
11853 case "(($ac_try" in
11854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11855   *) ac_try_echo=$ac_try;;
11856 esac
11857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11858   (eval "$ac_link") 2>conftest.er1
11859   ac_status=$?
11860   grep -v '^ *+' conftest.er1 >conftest.err
11861   rm -f conftest.er1
11862   cat conftest.err >&5
11863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864   (exit $ac_status); } && {
11865          test -z "$ac_c_werror_flag" ||
11866          test ! -s conftest.err
11867        } && test -s conftest$ac_exeext &&
11868        $as_test_x conftest$ac_exeext; then
11869   ac_cv_lib_dld_dld_link=yes
11870 else
11871   echo "$as_me: failed program was:" >&5
11872 sed 's/^/| /' conftest.$ac_ext >&5
11873
11874         ac_cv_lib_dld_dld_link=no
11875 fi
11876
11877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11878       conftest$ac_exeext conftest.$ac_ext
11879 LIBS=$ac_check_lib_save_LIBS
11880 fi
11881 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11882 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11883 if test $ac_cv_lib_dld_dld_link = yes; then
11884   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11885 fi
11886
11887               
11888 fi
11889
11890             
11891 fi
11892
11893           
11894 fi
11895
11896         
11897 fi
11898
11899       
11900 fi
11901
11902     ;;
11903   esac
11904
11905   if test "x$lt_cv_dlopen" != xno; then
11906     enable_dlopen=yes
11907   else
11908     enable_dlopen=no
11909   fi
11910
11911   case $lt_cv_dlopen in
11912   dlopen)
11913     save_CPPFLAGS="$CPPFLAGS"
11914     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11915
11916     save_LDFLAGS="$LDFLAGS"
11917     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11918
11919     save_LIBS="$LIBS"
11920     LIBS="$lt_cv_dlopen_libs $LIBS"
11921
11922     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11923 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11924 if test "${lt_cv_dlopen_self+set}" = set; then
11925   echo $ECHO_N "(cached) $ECHO_C" >&6
11926 else
11927           if test "$cross_compiling" = yes; then :
11928   lt_cv_dlopen_self=cross
11929 else
11930   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11931   lt_status=$lt_dlunknown
11932   cat > conftest.$ac_ext <<EOF
11933 #line __oline__ "configure"
11934 #include "confdefs.h"
11935
11936 #if HAVE_DLFCN_H
11937 #include <dlfcn.h>
11938 #endif
11939
11940 #include <stdio.h>
11941
11942 #ifdef RTLD_GLOBAL
11943 #  define LT_DLGLOBAL           RTLD_GLOBAL
11944 #else
11945 #  ifdef DL_GLOBAL
11946 #    define LT_DLGLOBAL         DL_GLOBAL
11947 #  else
11948 #    define LT_DLGLOBAL         0
11949 #  endif
11950 #endif
11951
11952 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11953    find out it does not work in some platform. */
11954 #ifndef LT_DLLAZY_OR_NOW
11955 #  ifdef RTLD_LAZY
11956 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11957 #  else
11958 #    ifdef DL_LAZY
11959 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11960 #    else
11961 #      ifdef RTLD_NOW
11962 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11963 #      else
11964 #        ifdef DL_NOW
11965 #          define LT_DLLAZY_OR_NOW      DL_NOW
11966 #        else
11967 #          define LT_DLLAZY_OR_NOW      0
11968 #        endif
11969 #      endif
11970 #    endif
11971 #  endif
11972 #endif
11973
11974 #ifdef __cplusplus
11975 extern "C" void exit (int);
11976 #endif
11977
11978 void fnord() { int i=42;}
11979 int main ()
11980 {
11981   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11982   int status = $lt_dlunknown;
11983
11984   if (self)
11985     {
11986       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11987       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11988       /* dlclose (self); */
11989     }
11990   else
11991     puts (dlerror ());
11992
11993     exit (status);
11994 }
11995 EOF
11996   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11997   (eval $ac_link) 2>&5
11998   ac_status=$?
11999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12001     (./conftest; exit; ) >&5 2>/dev/null
12002     lt_status=$?
12003     case x$lt_status in
12004       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12005       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12006       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12007     esac
12008   else :
12009     # compilation failed
12010     lt_cv_dlopen_self=no
12011   fi
12012 fi
12013 rm -fr conftest*
12014
12015     
12016 fi
12017 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12018 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12019
12020     if test "x$lt_cv_dlopen_self" = xyes; then
12021       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12022       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12023 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12024 if test "${lt_cv_dlopen_self_static+set}" = set; then
12025   echo $ECHO_N "(cached) $ECHO_C" >&6
12026 else
12027           if test "$cross_compiling" = yes; then :
12028   lt_cv_dlopen_self_static=cross
12029 else
12030   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12031   lt_status=$lt_dlunknown
12032   cat > conftest.$ac_ext <<EOF
12033 #line __oline__ "configure"
12034 #include "confdefs.h"
12035
12036 #if HAVE_DLFCN_H
12037 #include <dlfcn.h>
12038 #endif
12039
12040 #include <stdio.h>
12041
12042 #ifdef RTLD_GLOBAL
12043 #  define LT_DLGLOBAL           RTLD_GLOBAL
12044 #else
12045 #  ifdef DL_GLOBAL
12046 #    define LT_DLGLOBAL         DL_GLOBAL
12047 #  else
12048 #    define LT_DLGLOBAL         0
12049 #  endif
12050 #endif
12051
12052 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12053    find out it does not work in some platform. */
12054 #ifndef LT_DLLAZY_OR_NOW
12055 #  ifdef RTLD_LAZY
12056 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12057 #  else
12058 #    ifdef DL_LAZY
12059 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12060 #    else
12061 #      ifdef RTLD_NOW
12062 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12063 #      else
12064 #        ifdef DL_NOW
12065 #          define LT_DLLAZY_OR_NOW      DL_NOW
12066 #        else
12067 #          define LT_DLLAZY_OR_NOW      0
12068 #        endif
12069 #      endif
12070 #    endif
12071 #  endif
12072 #endif
12073
12074 #ifdef __cplusplus
12075 extern "C" void exit (int);
12076 #endif
12077
12078 void fnord() { int i=42;}
12079 int main ()
12080 {
12081   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12082   int status = $lt_dlunknown;
12083
12084   if (self)
12085     {
12086       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12087       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12088       /* dlclose (self); */
12089     }
12090   else
12091     puts (dlerror ());
12092
12093     exit (status);
12094 }
12095 EOF
12096   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12097   (eval $ac_link) 2>&5
12098   ac_status=$?
12099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12101     (./conftest; exit; ) >&5 2>/dev/null
12102     lt_status=$?
12103     case x$lt_status in
12104       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12105       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12106       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12107     esac
12108   else :
12109     # compilation failed
12110     lt_cv_dlopen_self_static=no
12111   fi
12112 fi
12113 rm -fr conftest*
12114
12115       
12116 fi
12117 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12118 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12119     fi
12120
12121     CPPFLAGS="$save_CPPFLAGS"
12122     LDFLAGS="$save_LDFLAGS"
12123     LIBS="$save_LIBS"
12124     ;;
12125   esac
12126
12127   case $lt_cv_dlopen_self in
12128   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12129   *) enable_dlopen_self=unknown ;;
12130   esac
12131
12132   case $lt_cv_dlopen_self_static in
12133   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12134   *) enable_dlopen_self_static=unknown ;;
12135   esac
12136 fi
12137
12138
12139 # Report which library types will actually be built
12140 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12141 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12142 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12143 echo "${ECHO_T}$can_build_shared" >&6; }
12144
12145 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12146 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12147 test "$can_build_shared" = "no" && enable_shared=no
12148
12149 # On AIX, shared libraries and static libraries use the same namespace, and
12150 # are all built from PIC.
12151 case $host_os in
12152 aix3*)
12153   test "$enable_shared" = yes && enable_static=no
12154   if test -n "$RANLIB"; then
12155     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12156     postinstall_cmds='$RANLIB $lib'
12157   fi
12158   ;;
12159
12160 aix[4-9]*)
12161   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12162     test "$enable_shared" = yes && enable_static=no
12163   fi
12164     ;;
12165 esac
12166 { echo "$as_me:$LINENO: result: $enable_shared" >&5
12167 echo "${ECHO_T}$enable_shared" >&6; }
12168
12169 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12170 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12171 # Make sure either enable_shared or enable_static is yes.
12172 test "$enable_shared" = yes || enable_static=yes
12173 { echo "$as_me:$LINENO: result: $enable_static" >&5
12174 echo "${ECHO_T}$enable_static" >&6; }
12175
12176 # The else clause should only fire when bootstrapping the
12177 # libtool distribution, otherwise you forgot to ship ltmain.sh
12178 # with your package, and you will get complaints that there are
12179 # no rules to generate ltmain.sh.
12180 if test -f "$ltmain"; then
12181   # See if we are running on zsh, and set the options which allow our commands through
12182   # without removal of \ escapes.
12183   if test -n "${ZSH_VERSION+set}" ; then
12184     setopt NO_GLOB_SUBST
12185   fi
12186   # Now quote all the things that may contain metacharacters while being
12187   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12188   # variables and quote the copies for generation of the libtool script.
12189   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12190     SED SHELL STRIP \
12191     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12192     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12193     deplibs_check_method reload_flag reload_cmds need_locks \
12194     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12195     lt_cv_sys_global_symbol_to_c_name_address \
12196     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12197     old_postinstall_cmds old_postuninstall_cmds \
12198     compiler \
12199     CC \
12200     LD \
12201     lt_prog_compiler_wl \
12202     lt_prog_compiler_pic \
12203     lt_prog_compiler_static \
12204     lt_prog_compiler_no_builtin_flag \
12205     export_dynamic_flag_spec \
12206     thread_safe_flag_spec \
12207     whole_archive_flag_spec \
12208     enable_shared_with_static_runtimes \
12209     old_archive_cmds \
12210     old_archive_from_new_cmds \
12211     predep_objects \
12212     postdep_objects \
12213     predeps \
12214     postdeps \
12215     compiler_lib_search_path \
12216     compiler_lib_search_dirs \
12217     archive_cmds \
12218     archive_expsym_cmds \
12219     postinstall_cmds \
12220     postuninstall_cmds \
12221     old_archive_from_expsyms_cmds \
12222     allow_undefined_flag \
12223     no_undefined_flag \
12224     export_symbols_cmds \
12225     hardcode_libdir_flag_spec \
12226     hardcode_libdir_flag_spec_ld \
12227     hardcode_libdir_separator \
12228     hardcode_automatic \
12229     module_cmds \
12230     module_expsym_cmds \
12231     lt_cv_prog_compiler_c_o \
12232     fix_srcfile_path \
12233     exclude_expsyms \
12234     include_expsyms; do
12235
12236     case $var in
12237     old_archive_cmds | \
12238     old_archive_from_new_cmds | \
12239     archive_cmds | \
12240     archive_expsym_cmds | \
12241     module_cmds | \
12242     module_expsym_cmds | \
12243     old_archive_from_expsyms_cmds | \
12244     export_symbols_cmds | \
12245     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12246     postinstall_cmds | postuninstall_cmds | \
12247     old_postinstall_cmds | old_postuninstall_cmds | \
12248     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12249       # Double-quote double-evaled strings.
12250       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12251       ;;
12252     *)
12253       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12254       ;;
12255     esac
12256   done
12257
12258   case $lt_echo in
12259   *'\$0 --fallback-echo"')
12260     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12261     ;;
12262   esac
12263
12264 cfgfile="${ofile}T"
12265   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
12266   $rm -f "$cfgfile"
12267   { echo "$as_me:$LINENO: creating $ofile" >&5
12268 echo "$as_me: creating $ofile" >&6;}
12269
12270   cat <<__EOF__ >> "$cfgfile"
12271 #! $SHELL
12272
12273 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12274 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
12275 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12276 #
12277 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
12278 # Free Software Foundation, Inc.
12279 #
12280 # This file is part of GNU Libtool:
12281 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
12282 #
12283 # This program is free software; you can redistribute it and/or modify
12284 # it under the terms of the GNU General Public License as published by
12285 # the Free Software Foundation; either version 2 of the License, or
12286 # (at your option) any later version.
12287 #
12288 # This program is distributed in the hope that it will be useful, but
12289 # WITHOUT ANY WARRANTY; without even the implied warranty of
12290 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12291 # General Public License for more details.
12292 #
12293 # You should have received a copy of the GNU General Public License
12294 # along with this program; if not, write to the Free Software
12295 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12296 #
12297 # As a special exception to the GNU General Public License, if you
12298 # distribute this file as part of a program that contains a
12299 # configuration script generated by Autoconf, you may include it under
12300 # the same distribution terms that you use for the rest of that program.
12301
12302 # A sed program that does not truncate output.
12303 SED=$lt_SED
12304
12305 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12306 Xsed="$SED -e 1s/^X//"
12307
12308 # The HP-UX ksh and POSIX shell print the target directory to stdout
12309 # if CDPATH is set.
12310 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12311
12312 # The names of the tagged configurations supported by this script.
12313 available_tags=
12314
12315 # ### BEGIN LIBTOOL CONFIG
12316
12317 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12318
12319 # Shell to use when invoking shell scripts.
12320 SHELL=$lt_SHELL
12321
12322 # Whether or not to build shared libraries.
12323 build_libtool_libs=$enable_shared
12324
12325 # Whether or not to build static libraries.
12326 build_old_libs=$enable_static
12327
12328 # Whether or not to add -lc for building shared libraries.
12329 build_libtool_need_lc=$archive_cmds_need_lc
12330
12331 # Whether or not to disallow shared libs when runtime libs are static
12332 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12333
12334 # Whether or not to optimize for fast installation.
12335 fast_install=$enable_fast_install
12336
12337 # The host system.
12338 host_alias=$host_alias
12339 host=$host
12340 host_os=$host_os
12341
12342 # The build system.
12343 build_alias=$build_alias
12344 build=$build
12345 build_os=$build_os
12346
12347 # An echo program that does not interpret backslashes.
12348 echo=$lt_echo
12349
12350 # The archiver.
12351 AR=$lt_AR
12352 AR_FLAGS=$lt_AR_FLAGS
12353
12354 # A C compiler.
12355 LTCC=$lt_LTCC
12356
12357 # LTCC compiler flags.
12358 LTCFLAGS=$lt_LTCFLAGS
12359
12360 # A language-specific compiler.
12361 CC=$lt_compiler
12362
12363 # Is the compiler the GNU C compiler?
12364 with_gcc=$GCC
12365
12366 # An ERE matcher.
12367 EGREP=$lt_EGREP
12368
12369 # The linker used to build libraries.
12370 LD=$lt_LD
12371
12372 # Whether we need hard or soft links.
12373 LN_S=$lt_LN_S
12374
12375 # A BSD-compatible nm program.
12376 NM=$lt_NM
12377
12378 # A symbol stripping program
12379 STRIP=$lt_STRIP
12380
12381 # Used to examine libraries when file_magic_cmd begins "file"
12382 MAGIC_CMD=$MAGIC_CMD
12383
12384 # Used on cygwin: DLL creation program.
12385 DLLTOOL="$DLLTOOL"
12386
12387 # Used on cygwin: object dumper.
12388 OBJDUMP="$OBJDUMP"
12389
12390 # Used on cygwin: assembler.
12391 AS="$AS"
12392
12393 # The name of the directory that contains temporary libtool files.
12394 objdir=$objdir
12395
12396 # How to create reloadable object files.
12397 reload_flag=$lt_reload_flag
12398 reload_cmds=$lt_reload_cmds
12399
12400 # How to pass a linker flag through the compiler.
12401 wl=$lt_lt_prog_compiler_wl
12402
12403 # Object file suffix (normally "o").
12404 objext="$ac_objext"
12405
12406 # Old archive suffix (normally "a").
12407 libext="$libext"
12408
12409 # Shared library suffix (normally ".so").
12410 shrext_cmds='$shrext_cmds'
12411
12412 # Executable file suffix (normally "").
12413 exeext="$exeext"
12414
12415 # Additional compiler flags for building library objects.
12416 pic_flag=$lt_lt_prog_compiler_pic
12417 pic_mode=$pic_mode
12418
12419 # What is the maximum length of a command?
12420 max_cmd_len=$lt_cv_sys_max_cmd_len
12421
12422 # Does compiler simultaneously support -c and -o options?
12423 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12424
12425 # Must we lock files when doing compilation?
12426 need_locks=$lt_need_locks
12427
12428 # Do we need the lib prefix for modules?
12429 need_lib_prefix=$need_lib_prefix
12430
12431 # Do we need a version for libraries?
12432 need_version=$need_version
12433
12434 # Whether dlopen is supported.
12435 dlopen_support=$enable_dlopen
12436
12437 # Whether dlopen of programs is supported.
12438 dlopen_self=$enable_dlopen_self
12439
12440 # Whether dlopen of statically linked programs is supported.
12441 dlopen_self_static=$enable_dlopen_self_static
12442
12443 # Compiler flag to prevent dynamic linking.
12444 link_static_flag=$lt_lt_prog_compiler_static
12445
12446 # Compiler flag to turn off builtin functions.
12447 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12448
12449 # Compiler flag to allow reflexive dlopens.
12450 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12451
12452 # Compiler flag to generate shared objects directly from archives.
12453 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12454
12455 # Compiler flag to generate thread-safe objects.
12456 thread_safe_flag_spec=$lt_thread_safe_flag_spec
12457
12458 # Library versioning type.
12459 version_type=$version_type
12460
12461 # Format of library name prefix.
12462 libname_spec=$lt_libname_spec
12463
12464 # List of archive names.  First name is the real one, the rest are links.
12465 # The last name is the one that the linker finds with -lNAME.
12466 library_names_spec=$lt_library_names_spec
12467
12468 # The coded name of the library, if different from the real name.
12469 soname_spec=$lt_soname_spec
12470
12471 # Commands used to build and install an old-style archive.
12472 RANLIB=$lt_RANLIB
12473 old_archive_cmds=$lt_old_archive_cmds
12474 old_postinstall_cmds=$lt_old_postinstall_cmds
12475 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12476
12477 # Create an old-style archive from a shared archive.
12478 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12479
12480 # Create a temporary old-style archive to link instead of a shared archive.
12481 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12482
12483 # Commands used to build and install a shared archive.
12484 archive_cmds=$lt_archive_cmds
12485 archive_expsym_cmds=$lt_archive_expsym_cmds
12486 postinstall_cmds=$lt_postinstall_cmds
12487 postuninstall_cmds=$lt_postuninstall_cmds
12488
12489 # Commands used to build a loadable module (assumed same as above if empty)
12490 module_cmds=$lt_module_cmds
12491 module_expsym_cmds=$lt_module_expsym_cmds
12492
12493 # Commands to strip libraries.
12494 old_striplib=$lt_old_striplib
12495 striplib=$lt_striplib
12496
12497 # Dependencies to place before the objects being linked to create a
12498 # shared library.
12499 predep_objects=$lt_predep_objects
12500
12501 # Dependencies to place after the objects being linked to create a
12502 # shared library.
12503 postdep_objects=$lt_postdep_objects
12504
12505 # Dependencies to place before the objects being linked to create a
12506 # shared library.
12507 predeps=$lt_predeps
12508
12509 # Dependencies to place after the objects being linked to create a
12510 # shared library.
12511 postdeps=$lt_postdeps
12512
12513 # The directories searched by this compiler when creating a shared
12514 # library
12515 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
12516
12517 # The library search path used internally by the compiler when linking
12518 # a shared library.
12519 compiler_lib_search_path=$lt_compiler_lib_search_path
12520
12521 # Method to check whether dependent libraries are shared objects.
12522 deplibs_check_method=$lt_deplibs_check_method
12523
12524 # Command to use when deplibs_check_method == file_magic.
12525 file_magic_cmd=$lt_file_magic_cmd
12526
12527 # Flag that allows shared libraries with undefined symbols to be built.
12528 allow_undefined_flag=$lt_allow_undefined_flag
12529
12530 # Flag that forces no undefined symbols.
12531 no_undefined_flag=$lt_no_undefined_flag
12532
12533 # Commands used to finish a libtool library installation in a directory.
12534 finish_cmds=$lt_finish_cmds
12535
12536 # Same as above, but a single script fragment to be evaled but not shown.
12537 finish_eval=$lt_finish_eval
12538
12539 # Take the output of nm and produce a listing of raw symbols and C names.
12540 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12541
12542 # Transform the output of nm in a proper C declaration
12543 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12544
12545 # Transform the output of nm in a C name address pair
12546 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12547
12548 # This is the shared library runtime path variable.
12549 runpath_var=$runpath_var
12550
12551 # This is the shared library path variable.
12552 shlibpath_var=$shlibpath_var
12553
12554 # Is shlibpath searched before the hard-coded library search path?
12555 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12556
12557 # How to hardcode a shared library path into an executable.
12558 hardcode_action=$hardcode_action
12559
12560 # Whether we should hardcode library paths into libraries.
12561 hardcode_into_libs=$hardcode_into_libs
12562
12563 # Flag to hardcode \$libdir into a binary during linking.
12564 # This must work even if \$libdir does not exist.
12565 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12566
12567 # If ld is used when linking, flag to hardcode \$libdir into
12568 # a binary during linking. This must work even if \$libdir does
12569 # not exist.
12570 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12571
12572 # Whether we need a single -rpath flag with a separated argument.
12573 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12574
12575 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12576 # resulting binary.
12577 hardcode_direct=$hardcode_direct
12578
12579 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12580 # resulting binary.
12581 hardcode_minus_L=$hardcode_minus_L
12582
12583 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12584 # the resulting binary.
12585 hardcode_shlibpath_var=$hardcode_shlibpath_var
12586
12587 # Set to yes if building a shared library automatically hardcodes DIR into the library
12588 # and all subsequent libraries and executables linked against it.
12589 hardcode_automatic=$hardcode_automatic
12590
12591 # Variables whose values should be saved in libtool wrapper scripts and
12592 # restored at relink time.
12593 variables_saved_for_relink="$variables_saved_for_relink"
12594
12595 # Whether libtool must link a program against all its dependency libraries.
12596 link_all_deplibs=$link_all_deplibs
12597
12598 # Compile-time system search path for libraries
12599 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12600
12601 # Run-time system search path for libraries
12602 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12603
12604 # Fix the shell variable \$srcfile for the compiler.
12605 fix_srcfile_path=$lt_fix_srcfile_path
12606
12607 # Set to yes if exported symbols are required.
12608 always_export_symbols=$always_export_symbols
12609
12610 # The commands to list exported symbols.
12611 export_symbols_cmds=$lt_export_symbols_cmds
12612
12613 # The commands to extract the exported symbol list from a shared archive.
12614 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12615
12616 # Symbols that should not be listed in the preloaded symbols.
12617 exclude_expsyms=$lt_exclude_expsyms
12618
12619 # Symbols that must always be exported.
12620 include_expsyms=$lt_include_expsyms
12621
12622 # ### END LIBTOOL CONFIG
12623
12624 __EOF__
12625
12626
12627   case $host_os in
12628   aix3*)
12629     cat <<\EOF >> "$cfgfile"
12630
12631 # AIX sometimes has problems with the GCC collect2 program.  For some
12632 # reason, if we set the COLLECT_NAMES environment variable, the problems
12633 # vanish in a puff of smoke.
12634 if test "X${COLLECT_NAMES+set}" != Xset; then
12635   COLLECT_NAMES=
12636   export COLLECT_NAMES
12637 fi
12638 EOF
12639     ;;
12640   esac
12641
12642   # We use sed instead of cat because bash on DJGPP gets confused if
12643   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
12644   # text mode, it properly converts lines to CR/LF.  This bash problem
12645   # is reportedly fixed, but why not run on old versions too?
12646   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12647
12648   mv -f "$cfgfile" "$ofile" || \
12649     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12650   chmod +x "$ofile"
12651
12652 else
12653   # If there is no Makefile yet, we rely on a make rule to execute
12654   # `config.status --recheck' to rerun these tests and create the
12655   # libtool script then.
12656   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12657   if test -f "$ltmain_in"; then
12658     test -f Makefile && make "$ltmain"
12659   fi
12660 fi
12661
12662
12663 ac_ext=c
12664 ac_cpp='$CPP $CPPFLAGS'
12665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12668
12669 CC="$lt_save_CC"
12670
12671
12672 # Check whether --with-tags was given.
12673 if test "${with_tags+set}" = set; then
12674   withval=$with_tags; tagnames="$withval"
12675 fi
12676
12677
12678 if test -f "$ltmain" && test -n "$tagnames"; then
12679   if test ! -f "${ofile}"; then
12680     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12681 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12682   fi
12683
12684   if test -z "$LTCC"; then
12685     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12686     if test -z "$LTCC"; then
12687       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12688 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12689     else
12690       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12691 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12692     fi
12693   fi
12694   if test -z "$LTCFLAGS"; then
12695     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12696   fi
12697
12698   # Extract list of available tagged configurations in $ofile.
12699   # Note that this assumes the entire list is on one line.
12700   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12701
12702   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12703   for tagname in $tagnames; do
12704     IFS="$lt_save_ifs"
12705     # Check whether tagname contains only valid characters
12706     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12707     "") ;;
12708     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12709 echo "$as_me: error: invalid tag name: $tagname" >&2;}
12710    { (exit 1); exit 1; }; }
12711         ;;
12712     esac
12713
12714     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12715     then
12716       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12717 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12718    { (exit 1); exit 1; }; }
12719     fi
12720
12721     # Update the list of available tags.
12722     if test -n "$tagname"; then
12723       echo appending configuration tag \"$tagname\" to $ofile
12724
12725       case $tagname in
12726       CXX)
12727         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12728             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12729             (test "X$CXX" != "Xg++"))) ; then
12730           ac_ext=cpp
12731 ac_cpp='$CXXCPP $CPPFLAGS'
12732 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12733 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12734 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12735
12736
12737
12738
12739 archive_cmds_need_lc_CXX=no
12740 allow_undefined_flag_CXX=
12741 always_export_symbols_CXX=no
12742 archive_expsym_cmds_CXX=
12743 export_dynamic_flag_spec_CXX=
12744 hardcode_direct_CXX=no
12745 hardcode_libdir_flag_spec_CXX=
12746 hardcode_libdir_flag_spec_ld_CXX=
12747 hardcode_libdir_separator_CXX=
12748 hardcode_minus_L_CXX=no
12749 hardcode_shlibpath_var_CXX=unsupported
12750 hardcode_automatic_CXX=no
12751 module_cmds_CXX=
12752 module_expsym_cmds_CXX=
12753 link_all_deplibs_CXX=unknown
12754 old_archive_cmds_CXX=$old_archive_cmds
12755 no_undefined_flag_CXX=
12756 whole_archive_flag_spec_CXX=
12757 enable_shared_with_static_runtimes_CXX=no
12758
12759 # Dependencies to place before and after the object being linked:
12760 predep_objects_CXX=
12761 postdep_objects_CXX=
12762 predeps_CXX=
12763 postdeps_CXX=
12764 compiler_lib_search_path_CXX=
12765 compiler_lib_search_dirs_CXX=
12766
12767 # Source file extension for C++ test sources.
12768 ac_ext=cpp
12769
12770 # Object file extension for compiled C++ test sources.
12771 objext=o
12772 objext_CXX=$objext
12773
12774 # Code to be used in simple compile tests
12775 lt_simple_compile_test_code="int some_variable = 0;"
12776
12777 # Code to be used in simple link tests
12778 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12779
12780 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12781
12782 # If no C compiler was specified, use CC.
12783 LTCC=${LTCC-"$CC"}
12784
12785 # If no C compiler flags were specified, use CFLAGS.
12786 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12787
12788 # Allow CC to be a program name with arguments.
12789 compiler=$CC
12790
12791
12792 # save warnings/boilerplate of simple test code
12793 ac_outfile=conftest.$ac_objext
12794 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12795 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12796 _lt_compiler_boilerplate=`cat conftest.err`
12797 $rm conftest*
12798
12799 ac_outfile=conftest.$ac_objext
12800 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12801 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12802 _lt_linker_boilerplate=`cat conftest.err`
12803 $rm -r conftest*
12804
12805
12806 # Allow CC to be a program name with arguments.
12807 lt_save_CC=$CC
12808 lt_save_LD=$LD
12809 lt_save_GCC=$GCC
12810 GCC=$GXX
12811 lt_save_with_gnu_ld=$with_gnu_ld
12812 lt_save_path_LD=$lt_cv_path_LD
12813 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12814   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12815 else
12816   $as_unset lt_cv_prog_gnu_ld
12817 fi
12818 if test -n "${lt_cv_path_LDCXX+set}"; then
12819   lt_cv_path_LD=$lt_cv_path_LDCXX
12820 else
12821   $as_unset lt_cv_path_LD
12822 fi
12823 test -z "${LDCXX+set}" || LD=$LDCXX
12824 CC=${CXX-"c++"}
12825 compiler=$CC
12826 compiler_CXX=$CC
12827 for cc_temp in $compiler""; do
12828   case $cc_temp in
12829     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12830     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12831     \-*) ;;
12832     *) break;;
12833   esac
12834 done
12835 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12836
12837
12838 # We don't want -fno-exception wen compiling C++ code, so set the
12839 # no_builtin_flag separately
12840 if test "$GXX" = yes; then
12841   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12842 else
12843   lt_prog_compiler_no_builtin_flag_CXX=
12844 fi
12845
12846 if test "$GXX" = yes; then
12847   # Set up default GNU C++ configuration
12848
12849   
12850 # Check whether --with-gnu-ld was given.
12851 if test "${with_gnu_ld+set}" = set; then
12852   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12853 else
12854   with_gnu_ld=no
12855 fi
12856
12857 ac_prog=ld
12858 if test "$GCC" = yes; then
12859   # Check if gcc -print-prog-name=ld gives a path.
12860   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12861 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12862   case $host in
12863   *-*-mingw*)
12864     # gcc leaves a trailing carriage return which upsets mingw
12865     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12866   *)
12867     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12868   esac
12869   case $ac_prog in
12870     # Accept absolute paths.
12871     [\\/]* | ?:[\\/]*)
12872       re_direlt='/[^/][^/]*/\.\./'
12873       # Canonicalize the pathname of ld
12874       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12875       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12876         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12877       done
12878       test -z "$LD" && LD="$ac_prog"
12879       ;;
12880   "")
12881     # If it fails, then pretend we aren't using GCC.
12882     ac_prog=ld
12883     ;;
12884   *)
12885     # If it is relative, then search for the first ld in PATH.
12886     with_gnu_ld=unknown
12887     ;;
12888   esac
12889 elif test "$with_gnu_ld" = yes; then
12890   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12891 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12892 else
12893   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12894 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12895 fi
12896 if test "${lt_cv_path_LD+set}" = set; then
12897   echo $ECHO_N "(cached) $ECHO_C" >&6
12898 else
12899   if test -z "$LD"; then
12900   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12901   for ac_dir in $PATH; do
12902     IFS="$lt_save_ifs"
12903     test -z "$ac_dir" && ac_dir=.
12904     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12905       lt_cv_path_LD="$ac_dir/$ac_prog"
12906       # Check to see if the program is GNU ld.  I'd rather use --version,
12907       # but apparently some variants of GNU ld only accept -v.
12908       # Break only if it was the GNU/non-GNU ld that we prefer.
12909       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12910       *GNU* | *'with BFD'*)
12911         test "$with_gnu_ld" != no && break
12912         ;;
12913       *)
12914         test "$with_gnu_ld" != yes && break
12915         ;;
12916       esac
12917     fi
12918   done
12919   IFS="$lt_save_ifs"
12920 else
12921   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12922 fi
12923 fi
12924
12925 LD="$lt_cv_path_LD"
12926 if test -n "$LD"; then
12927   { echo "$as_me:$LINENO: result: $LD" >&5
12928 echo "${ECHO_T}$LD" >&6; }
12929 else
12930   { echo "$as_me:$LINENO: result: no" >&5
12931 echo "${ECHO_T}no" >&6; }
12932 fi
12933 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12934 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12935    { (exit 1); exit 1; }; }
12936 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12937 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12938 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12939   echo $ECHO_N "(cached) $ECHO_C" >&6
12940 else
12941   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12942 case `$LD -v 2>&1 </dev/null` in
12943 *GNU* | *'with BFD'*)
12944   lt_cv_prog_gnu_ld=yes
12945   ;;
12946 *)
12947   lt_cv_prog_gnu_ld=no
12948   ;;
12949 esac
12950 fi
12951 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12952 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12953 with_gnu_ld=$lt_cv_prog_gnu_ld
12954
12955
12956
12957   # Check if GNU C++ uses GNU ld as the underlying linker, since the
12958   # archiving commands below assume that GNU ld is being used.
12959   if test "$with_gnu_ld" = yes; then
12960     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12961     archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12962
12963     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12964     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12965
12966     # If archive_cmds runs LD, not CC, wlarc should be empty
12967     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12968     #     investigate it a little bit more. (MM)
12969     wlarc='${wl}'
12970
12971     # ancient GNU ld didn't support --whole-archive et. al.
12972     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12973         grep 'no-whole-archive' > /dev/null; then
12974       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12975     else
12976       whole_archive_flag_spec_CXX=
12977     fi
12978   else
12979     with_gnu_ld=no
12980     wlarc=
12981
12982     # A generic and very simple default shared library creation
12983     # command for GNU C++ for the case where it uses the native
12984     # linker, instead of GNU ld.  If possible, this setting should
12985     # overridden to take advantage of the native linker features on
12986     # the platform it is being used on.
12987     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12988   fi
12989
12990   # Commands to make compiler produce verbose output that lists
12991   # what "hidden" libraries, object files and flags are used when
12992   # linking a shared library.
12993   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12994
12995 else
12996   GXX=no
12997   with_gnu_ld=no
12998   wlarc=
12999 fi
13000
13001 # PORTME: fill in a description of your system's C++ link characteristics
13002 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13003 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13004 ld_shlibs_CXX=yes
13005 case $host_os in
13006   aix3*)
13007     # FIXME: insert proper C++ library support
13008     ld_shlibs_CXX=no
13009     ;;
13010   aix[4-9]*)
13011     if test "$host_cpu" = ia64; then
13012       # On IA64, the linker does run time linking by default, so we don't
13013       # have to do anything special.
13014       aix_use_runtimelinking=no
13015       exp_sym_flag='-Bexport'
13016       no_entry_flag=""
13017     else
13018       aix_use_runtimelinking=no
13019
13020       # Test if we are trying to use run time linking or normal
13021       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13022       # need to do runtime linking.
13023       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13024         for ld_flag in $LDFLAGS; do
13025           case $ld_flag in
13026           *-brtl*)
13027             aix_use_runtimelinking=yes
13028             break
13029             ;;
13030           esac
13031         done
13032         ;;
13033       esac
13034
13035       exp_sym_flag='-bexport'
13036       no_entry_flag='-bnoentry'
13037     fi
13038
13039     # When large executables or shared objects are built, AIX ld can
13040     # have problems creating the table of contents.  If linking a library
13041     # or program results in "error TOC overflow" add -mminimal-toc to
13042     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13043     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13044
13045     archive_cmds_CXX=''
13046     hardcode_direct_CXX=yes
13047     hardcode_libdir_separator_CXX=':'
13048     link_all_deplibs_CXX=yes
13049
13050     if test "$GXX" = yes; then
13051       case $host_os in aix4.[012]|aix4.[012].*)
13052       # We only want to do this on AIX 4.2 and lower, the check
13053       # below for broken collect2 doesn't work under 4.3+
13054         collect2name=`${CC} -print-prog-name=collect2`
13055         if test -f "$collect2name" && \
13056            strings "$collect2name" | grep resolve_lib_name >/dev/null
13057         then
13058           # We have reworked collect2
13059           :
13060         else
13061           # We have old collect2
13062           hardcode_direct_CXX=unsupported
13063           # It fails to find uninstalled libraries when the uninstalled
13064           # path is not listed in the libpath.  Setting hardcode_minus_L
13065           # to unsupported forces relinking
13066           hardcode_minus_L_CXX=yes
13067           hardcode_libdir_flag_spec_CXX='-L$libdir'
13068           hardcode_libdir_separator_CXX=
13069         fi
13070         ;;
13071       esac
13072       shared_flag='-shared'
13073       if test "$aix_use_runtimelinking" = yes; then
13074         shared_flag="$shared_flag "'${wl}-G'
13075       fi
13076     else
13077       # not using gcc
13078       if test "$host_cpu" = ia64; then
13079         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13080         # chokes on -Wl,-G. The following line is correct:
13081         shared_flag='-G'
13082       else
13083         if test "$aix_use_runtimelinking" = yes; then
13084           shared_flag='${wl}-G'
13085         else
13086           shared_flag='${wl}-bM:SRE'
13087         fi
13088       fi
13089     fi
13090
13091     # It seems that -bexpall does not export symbols beginning with
13092     # underscore (_), so it is better to generate a list of symbols to export.
13093     always_export_symbols_CXX=yes
13094     if test "$aix_use_runtimelinking" = yes; then
13095       # Warning - without using the other runtime loading flags (-brtl),
13096       # -berok will link without error, but may produce a broken library.
13097       allow_undefined_flag_CXX='-berok'
13098       # Determine the default libpath from the value encoded in an empty executable.
13099       cat >conftest.$ac_ext <<_ACEOF
13100 /* confdefs.h.  */
13101 _ACEOF
13102 cat confdefs.h >>conftest.$ac_ext
13103 cat >>conftest.$ac_ext <<_ACEOF
13104 /* end confdefs.h.  */
13105
13106 int
13107 main ()
13108 {
13109
13110   ;
13111   return 0;
13112 }
13113 _ACEOF
13114 rm -f conftest.$ac_objext conftest$ac_exeext
13115 if { (ac_try="$ac_link"
13116 case "(($ac_try" in
13117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13118   *) ac_try_echo=$ac_try;;
13119 esac
13120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13121   (eval "$ac_link") 2>conftest.er1
13122   ac_status=$?
13123   grep -v '^ *+' conftest.er1 >conftest.err
13124   rm -f conftest.er1
13125   cat conftest.err >&5
13126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127   (exit $ac_status); } && {
13128          test -z "$ac_cxx_werror_flag" ||
13129          test ! -s conftest.err
13130        } && test -s conftest$ac_exeext &&
13131        $as_test_x conftest$ac_exeext; then
13132   
13133 lt_aix_libpath_sed='
13134     /Import File Strings/,/^$/ {
13135         /^0/ {
13136             s/^0  *\(.*\)$/\1/
13137             p
13138         }
13139     }'
13140 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13141 # Check for a 64-bit object if we didn't find anything.
13142 if test -z "$aix_libpath"; then
13143   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13144 fi
13145 else
13146   echo "$as_me: failed program was:" >&5
13147 sed 's/^/| /' conftest.$ac_ext >&5
13148
13149         
13150 fi
13151
13152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13153       conftest$ac_exeext conftest.$ac_ext
13154 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13155
13156       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13157
13158       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13159      else
13160       if test "$host_cpu" = ia64; then
13161         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13162         allow_undefined_flag_CXX="-z nodefs"
13163         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13164       else
13165         # Determine the default libpath from the value encoded in an empty executable.
13166         cat >conftest.$ac_ext <<_ACEOF
13167 /* confdefs.h.  */
13168 _ACEOF
13169 cat confdefs.h >>conftest.$ac_ext
13170 cat >>conftest.$ac_ext <<_ACEOF
13171 /* end confdefs.h.  */
13172
13173 int
13174 main ()
13175 {
13176
13177   ;
13178   return 0;
13179 }
13180 _ACEOF
13181 rm -f conftest.$ac_objext conftest$ac_exeext
13182 if { (ac_try="$ac_link"
13183 case "(($ac_try" in
13184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13185   *) ac_try_echo=$ac_try;;
13186 esac
13187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13188   (eval "$ac_link") 2>conftest.er1
13189   ac_status=$?
13190   grep -v '^ *+' conftest.er1 >conftest.err
13191   rm -f conftest.er1
13192   cat conftest.err >&5
13193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194   (exit $ac_status); } && {
13195          test -z "$ac_cxx_werror_flag" ||
13196          test ! -s conftest.err
13197        } && test -s conftest$ac_exeext &&
13198        $as_test_x conftest$ac_exeext; then
13199   
13200 lt_aix_libpath_sed='
13201     /Import File Strings/,/^$/ {
13202         /^0/ {
13203             s/^0  *\(.*\)$/\1/
13204             p
13205         }
13206     }'
13207 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13208 # Check for a 64-bit object if we didn't find anything.
13209 if test -z "$aix_libpath"; then
13210   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13211 fi
13212 else
13213   echo "$as_me: failed program was:" >&5
13214 sed 's/^/| /' conftest.$ac_ext >&5
13215
13216         
13217 fi
13218
13219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13220       conftest$ac_exeext conftest.$ac_ext
13221 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13222
13223         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13224         # Warning - without using the other run time loading flags,
13225         # -berok will link without error, but may produce a broken library.
13226         no_undefined_flag_CXX=' ${wl}-bernotok'
13227         allow_undefined_flag_CXX=' ${wl}-berok'
13228         # Exported symbols can be pulled into shared objects from archives
13229         whole_archive_flag_spec_CXX='$convenience'
13230         archive_cmds_need_lc_CXX=yes
13231         # This is similar to how AIX traditionally builds its shared libraries.
13232         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13233       fi
13234     fi
13235     ;;
13236
13237   beos*)
13238     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13239       allow_undefined_flag_CXX=unsupported
13240       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13241       # support --undefined.  This deserves some investigation.  FIXME
13242       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13243     else
13244       ld_shlibs_CXX=no
13245     fi
13246     ;;
13247
13248   chorus*)
13249     case $cc_basename in
13250       *)
13251         # FIXME: insert proper C++ library support
13252         ld_shlibs_CXX=no
13253         ;;
13254     esac
13255     ;;
13256
13257   cygwin* | mingw* | pw32*)
13258     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13259     # as there is no search path for DLLs.
13260     hardcode_libdir_flag_spec_CXX='-L$libdir'
13261     allow_undefined_flag_CXX=unsupported
13262     always_export_symbols_CXX=no
13263     enable_shared_with_static_runtimes_CXX=yes
13264
13265     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13266       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13267       # If the export-symbols file already is a .def file (1st line
13268       # is EXPORTS), use it as is; otherwise, prepend...
13269       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13270         cp $export_symbols $output_objdir/$soname.def;
13271       else
13272         echo EXPORTS > $output_objdir/$soname.def;
13273         cat $export_symbols >> $output_objdir/$soname.def;
13274       fi~
13275       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13276     else
13277       ld_shlibs_CXX=no
13278     fi
13279   ;;
13280       darwin* | rhapsody*)
13281       archive_cmds_need_lc_CXX=no
13282       hardcode_direct_CXX=no
13283       hardcode_automatic_CXX=yes
13284       hardcode_shlibpath_var_CXX=unsupported
13285       whole_archive_flag_spec_CXX=''
13286       link_all_deplibs_CXX=yes
13287       allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13288       if test "$GXX" = yes ; then
13289       output_verbose_link_cmd='echo'
13290       archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13291       module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13292       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13293       module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
13294       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13295         archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13296         archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13297       fi
13298       else
13299       case $cc_basename in
13300         xlc*)
13301          output_verbose_link_cmd='echo'
13302           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
13303           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13304           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13305           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13306           module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13307           ;;
13308        *)
13309          ld_shlibs_CXX=no
13310           ;;
13311       esac
13312       fi
13313         ;;
13314
13315   dgux*)
13316     case $cc_basename in
13317       ec++*)
13318         # FIXME: insert proper C++ library support
13319         ld_shlibs_CXX=no
13320         ;;
13321       ghcx*)
13322         # Green Hills C++ Compiler
13323         # FIXME: insert proper C++ library support
13324         ld_shlibs_CXX=no
13325         ;;
13326       *)
13327         # FIXME: insert proper C++ library support
13328         ld_shlibs_CXX=no
13329         ;;
13330     esac
13331     ;;
13332   freebsd[12]*)
13333     # C++ shared libraries reported to be fairly broken before switch to ELF
13334     ld_shlibs_CXX=no
13335     ;;
13336   freebsd-elf*)
13337     archive_cmds_need_lc_CXX=no
13338     ;;
13339   freebsd* | dragonfly*)
13340     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13341     # conventions
13342     ld_shlibs_CXX=yes
13343     ;;
13344   gnu*)
13345     ;;
13346   hpux9*)
13347     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13348     hardcode_libdir_separator_CXX=:
13349     export_dynamic_flag_spec_CXX='${wl}-E'
13350     hardcode_direct_CXX=yes
13351     hardcode_minus_L_CXX=yes # Not in the search PATH,
13352                                 # but as the default
13353                                 # location of the library.
13354
13355     case $cc_basename in
13356     CC*)
13357       # FIXME: insert proper C++ library support
13358       ld_shlibs_CXX=no
13359       ;;
13360     aCC*)
13361       archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13362       # Commands to make compiler produce verbose output that lists
13363       # what "hidden" libraries, object files and flags are used when
13364       # linking a shared library.
13365       #
13366       # There doesn't appear to be a way to prevent this compiler from
13367       # explicitly linking system object files so we need to strip them
13368       # from the output so that they don't get included in the library
13369       # dependencies.
13370       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
13371       ;;
13372     *)
13373       if test "$GXX" = yes; then
13374         archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13375       else
13376         # FIXME: insert proper C++ library support
13377         ld_shlibs_CXX=no
13378       fi
13379       ;;
13380     esac
13381     ;;
13382   hpux10*|hpux11*)
13383     if test $with_gnu_ld = no; then
13384       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13385       hardcode_libdir_separator_CXX=:
13386
13387       case $host_cpu in
13388       hppa*64*|ia64*) ;;
13389       *)
13390         export_dynamic_flag_spec_CXX='${wl}-E'
13391         ;;
13392       esac
13393     fi
13394     case $host_cpu in
13395     hppa*64*|ia64*)
13396       hardcode_direct_CXX=no
13397       hardcode_shlibpath_var_CXX=no
13398       ;;
13399     *)
13400       hardcode_direct_CXX=yes
13401       hardcode_minus_L_CXX=yes # Not in the search PATH,
13402                                               # but as the default
13403                                               # location of the library.
13404       ;;
13405     esac
13406
13407     case $cc_basename in
13408       CC*)
13409         # FIXME: insert proper C++ library support
13410         ld_shlibs_CXX=no
13411         ;;
13412       aCC*)
13413         case $host_cpu in
13414         hppa*64*)
13415           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13416           ;;
13417         ia64*)
13418           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13419           ;;
13420         *)
13421           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13422           ;;
13423         esac
13424         # Commands to make compiler produce verbose output that lists
13425         # what "hidden" libraries, object files and flags are used when
13426         # linking a shared library.
13427         #
13428         # There doesn't appear to be a way to prevent this compiler from
13429         # explicitly linking system object files so we need to strip them
13430         # from the output so that they don't get included in the library
13431         # dependencies.
13432         output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
13433         ;;
13434       *)
13435         if test "$GXX" = yes; then
13436           if test $with_gnu_ld = no; then
13437             case $host_cpu in
13438             hppa*64*)
13439               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13440               ;;
13441             ia64*)
13442               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13443               ;;
13444             *)
13445               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13446               ;;
13447             esac
13448           fi
13449         else
13450           # FIXME: insert proper C++ library support
13451           ld_shlibs_CXX=no
13452         fi
13453         ;;
13454     esac
13455     ;;
13456   interix[3-9]*)
13457     hardcode_direct_CXX=no
13458     hardcode_shlibpath_var_CXX=no
13459     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13460     export_dynamic_flag_spec_CXX='${wl}-E'
13461     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13462     # Instead, shared libraries are loaded at an image base (0x10000000 by
13463     # default) and relocated if they conflict, which is a slow very memory
13464     # consuming and fragmenting process.  To avoid this, we pick a random,
13465     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13466     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13467     archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13468     archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13469     ;;
13470   irix5* | irix6*)
13471     case $cc_basename in
13472       CC*)
13473         # SGI C++
13474         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13475
13476         # Archives containing C++ object files must be created using
13477         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13478         # necessary to make sure instantiated templates are included
13479         # in the archive.
13480         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13481         ;;
13482       *)
13483         if test "$GXX" = yes; then
13484           if test "$with_gnu_ld" = no; then
13485             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13486           else
13487             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
13488           fi
13489         fi
13490         link_all_deplibs_CXX=yes
13491         ;;
13492     esac
13493     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13494     hardcode_libdir_separator_CXX=:
13495     ;;
13496   linux* | k*bsd*-gnu)
13497     case $cc_basename in
13498       KCC*)
13499         # Kuck and Associates, Inc. (KAI) C++ Compiler
13500
13501         # KCC will only create a shared library if the output file
13502         # ends with ".so" (or ".sl" for HP-UX), so rename the library
13503         # to its proper name (with version) after linking.
13504         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13505         archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13506         # Commands to make compiler produce verbose output that lists
13507         # what "hidden" libraries, object files and flags are used when
13508         # linking a shared library.
13509         #
13510         # There doesn't appear to be a way to prevent this compiler from
13511         # explicitly linking system object files so we need to strip them
13512         # from the output so that they don't get included in the library
13513         # dependencies.
13514         output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
13515
13516         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13517         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13518
13519         # Archives containing C++ object files must be created using
13520         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13521         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13522         ;;
13523       icpc*)
13524         # Intel C++
13525         with_gnu_ld=yes
13526         # version 8.0 and above of icpc choke on multiply defined symbols
13527         # if we add $predep_objects and $postdep_objects, however 7.1 and
13528         # earlier do not add the objects themselves.
13529         case `$CC -V 2>&1` in
13530         *"Version 7."*)
13531           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13532           archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13533           ;;
13534         *)  # Version 8.0 or newer
13535           tmp_idyn=
13536           case $host_cpu in
13537             ia64*) tmp_idyn=' -i_dynamic';;
13538           esac
13539           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13540           archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13541           ;;
13542         esac
13543         archive_cmds_need_lc_CXX=no
13544         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13545         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13546         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13547         ;;
13548       pgCC* | pgcpp*)
13549         # Portland Group C++ compiler
13550         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13551         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13552
13553         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13554         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13555         whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13556         ;;
13557       cxx*)
13558         # Compaq C++
13559         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13560         archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13561
13562         runpath_var=LD_RUN_PATH
13563         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13564         hardcode_libdir_separator_CXX=:
13565
13566         # Commands to make compiler produce verbose output that lists
13567         # what "hidden" libraries, object files and flags are used when
13568         # linking a shared library.
13569         #
13570         # There doesn't appear to be a way to prevent this compiler from
13571         # explicitly linking system object files so we need to strip them
13572         # from the output so that they don't get included in the library
13573         # dependencies.
13574         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
13575         ;;
13576       *)
13577         case `$CC -V 2>&1 | sed 5q` in
13578         *Sun\ C*)
13579           # Sun C++ 5.9
13580           no_undefined_flag_CXX=' -zdefs'
13581           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13582           archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13583           hardcode_libdir_flag_spec_CXX='-R$libdir'
13584           whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13585
13586           # Not sure whether something based on
13587           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13588           # would be better.
13589           output_verbose_link_cmd='echo'
13590
13591           # Archives containing C++ object files must be created using
13592           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13593           # necessary to make sure instantiated templates are included
13594           # in the archive.
13595           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13596           ;;
13597         esac
13598         ;;
13599     esac
13600     ;;
13601   lynxos*)
13602     # FIXME: insert proper C++ library support
13603     ld_shlibs_CXX=no
13604     ;;
13605   m88k*)
13606     # FIXME: insert proper C++ library support
13607     ld_shlibs_CXX=no
13608     ;;
13609   mvs*)
13610     case $cc_basename in
13611       cxx*)
13612         # FIXME: insert proper C++ library support
13613         ld_shlibs_CXX=no
13614         ;;
13615       *)
13616         # FIXME: insert proper C++ library support
13617         ld_shlibs_CXX=no
13618         ;;
13619     esac
13620     ;;
13621   netbsd*)
13622     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13623       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13624       wlarc=
13625       hardcode_libdir_flag_spec_CXX='-R$libdir'
13626       hardcode_direct_CXX=yes
13627       hardcode_shlibpath_var_CXX=no
13628     fi
13629     # Workaround some broken pre-1.5 toolchains
13630     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13631     ;;
13632   openbsd2*)
13633     # C++ shared libraries are fairly broken
13634     ld_shlibs_CXX=no
13635     ;;
13636   openbsd*)
13637     if test -f /usr/libexec/ld.so; then
13638       hardcode_direct_CXX=yes
13639       hardcode_shlibpath_var_CXX=no
13640       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13641       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13642       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13643         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13644         export_dynamic_flag_spec_CXX='${wl}-E'
13645         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13646       fi
13647       output_verbose_link_cmd='echo'
13648     else
13649       ld_shlibs_CXX=no
13650     fi
13651     ;;
13652   osf3*)
13653     case $cc_basename in
13654       KCC*)
13655         # Kuck and Associates, Inc. (KAI) C++ Compiler
13656
13657         # KCC will only create a shared library if the output file
13658         # ends with ".so" (or ".sl" for HP-UX), so rename the library
13659         # to its proper name (with version) after linking.
13660         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13661
13662         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13663         hardcode_libdir_separator_CXX=:
13664
13665         # Archives containing C++ object files must be created using
13666         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13667         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13668
13669         ;;
13670       RCC*)
13671         # Rational C++ 2.4.1
13672         # FIXME: insert proper C++ library support
13673         ld_shlibs_CXX=no
13674         ;;
13675       cxx*)
13676         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13677         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13678
13679         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13680         hardcode_libdir_separator_CXX=:
13681
13682         # Commands to make compiler produce verbose output that lists
13683         # what "hidden" libraries, object files and flags are used when
13684         # linking a shared library.
13685         #
13686         # There doesn't appear to be a way to prevent this compiler from
13687         # explicitly linking system object files so we need to strip them
13688         # from the output so that they don't get included in the library
13689         # dependencies.
13690         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
13691         ;;
13692       *)
13693         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13694           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13695           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13696
13697           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13698           hardcode_libdir_separator_CXX=:
13699
13700           # Commands to make compiler produce verbose output that lists
13701           # what "hidden" libraries, object files and flags are used when
13702           # linking a shared library.
13703           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13704
13705         else
13706           # FIXME: insert proper C++ library support
13707           ld_shlibs_CXX=no
13708         fi
13709         ;;
13710     esac
13711     ;;
13712   osf4* | osf5*)
13713     case $cc_basename in
13714       KCC*)
13715         # Kuck and Associates, Inc. (KAI) C++ Compiler
13716
13717         # KCC will only create a shared library if the output file
13718         # ends with ".so" (or ".sl" for HP-UX), so rename the library
13719         # to its proper name (with version) after linking.
13720         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13721
13722         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13723         hardcode_libdir_separator_CXX=:
13724
13725         # Archives containing C++ object files must be created using
13726         # the KAI C++ compiler.
13727         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13728         ;;
13729       RCC*)
13730         # Rational C++ 2.4.1
13731         # FIXME: insert proper C++ library support
13732         ld_shlibs_CXX=no
13733         ;;
13734       cxx*)
13735         allow_undefined_flag_CXX=' -expect_unresolved \*'
13736         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13737         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13738           echo "-hidden">> $lib.exp~
13739           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
13740           $rm $lib.exp'
13741
13742         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13743         hardcode_libdir_separator_CXX=:
13744
13745         # Commands to make compiler produce verbose output that lists
13746         # what "hidden" libraries, object files and flags are used when
13747         # linking a shared library.
13748         #
13749         # There doesn't appear to be a way to prevent this compiler from
13750         # explicitly linking system object files so we need to strip them
13751         # from the output so that they don't get included in the library
13752         # dependencies.
13753         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
13754         ;;
13755       *)
13756         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13757           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13758          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13759
13760           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13761           hardcode_libdir_separator_CXX=:
13762
13763           # Commands to make compiler produce verbose output that lists
13764           # what "hidden" libraries, object files and flags are used when
13765           # linking a shared library.
13766           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13767
13768         else
13769           # FIXME: insert proper C++ library support
13770           ld_shlibs_CXX=no
13771         fi
13772         ;;
13773     esac
13774     ;;
13775   psos*)
13776     # FIXME: insert proper C++ library support
13777     ld_shlibs_CXX=no
13778     ;;
13779   sunos4*)
13780     case $cc_basename in
13781       CC*)
13782         # Sun C++ 4.x
13783         # FIXME: insert proper C++ library support
13784         ld_shlibs_CXX=no
13785         ;;
13786       lcc*)
13787         # Lucid
13788         # FIXME: insert proper C++ library support
13789         ld_shlibs_CXX=no
13790         ;;
13791       *)
13792         # FIXME: insert proper C++ library support
13793         ld_shlibs_CXX=no
13794         ;;
13795     esac
13796     ;;
13797   solaris*)
13798     case $cc_basename in
13799       CC*)
13800         # Sun C++ 4.2, 5.x and Centerline C++
13801         archive_cmds_need_lc_CXX=yes
13802         no_undefined_flag_CXX=' -zdefs'
13803         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13804         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13805         $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13806
13807         hardcode_libdir_flag_spec_CXX='-R$libdir'
13808         hardcode_shlibpath_var_CXX=no
13809         case $host_os in
13810           solaris2.[0-5] | solaris2.[0-5].*) ;;
13811           *)
13812             # The compiler driver will combine and reorder linker options,
13813             # but understands `-z linker_flag'.
13814             # Supported since Solaris 2.6 (maybe 2.5.1?)
13815             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13816             ;;
13817         esac
13818         link_all_deplibs_CXX=yes
13819
13820         output_verbose_link_cmd='echo'
13821
13822         # Archives containing C++ object files must be created using
13823         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13824         # necessary to make sure instantiated templates are included
13825         # in the archive.
13826         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13827         ;;
13828       gcx*)
13829         # Green Hills C++ Compiler
13830         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13831
13832         # The C++ compiler must be used to create the archive.
13833         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13834         ;;
13835       *)
13836         # GNU C++ compiler with Solaris linker
13837         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13838           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13839           if $CC --version | grep -v '^2\.7' > /dev/null; then
13840             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13841             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13842                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13843
13844             # Commands to make compiler produce verbose output that lists
13845             # what "hidden" libraries, object files and flags are used when
13846             # linking a shared library.
13847             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13848           else
13849             # g++ 2.7 appears to require `-G' NOT `-shared' on this
13850             # platform.
13851             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13852             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13853                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13854
13855             # Commands to make compiler produce verbose output that lists
13856             # what "hidden" libraries, object files and flags are used when
13857             # linking a shared library.
13858             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13859           fi
13860
13861           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13862           case $host_os in
13863           solaris2.[0-5] | solaris2.[0-5].*) ;;
13864           *)
13865             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13866             ;;
13867           esac
13868         fi
13869         ;;
13870     esac
13871     ;;
13872   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13873     no_undefined_flag_CXX='${wl}-z,text'
13874     archive_cmds_need_lc_CXX=no
13875     hardcode_shlibpath_var_CXX=no
13876     runpath_var='LD_RUN_PATH'
13877
13878     case $cc_basename in
13879       CC*)
13880         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13881         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13882         ;;
13883       *)
13884         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13885         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13886         ;;
13887     esac
13888     ;;
13889   sysv5* | sco3.2v5* | sco5v6*)
13890     # Note: We can NOT use -z defs as we might desire, because we do not
13891     # link with -lc, and that would cause any symbols used from libc to
13892     # always be unresolved, which means just about no library would
13893     # ever link correctly.  If we're not using GNU ld we use -z text
13894     # though, which does catch some bad symbols but isn't as heavy-handed
13895     # as -z defs.
13896     # For security reasons, it is highly recommended that you always
13897     # use absolute paths for naming shared libraries, and exclude the
13898     # DT_RUNPATH tag from executables and libraries.  But doing so
13899     # requires that you compile everything twice, which is a pain.
13900     # So that behaviour is only enabled if SCOABSPATH is set to a
13901     # non-empty value in the environment.  Most likely only useful for
13902     # creating official distributions of packages.
13903     # This is a hack until libtool officially supports absolute path
13904     # names for shared libraries.
13905     no_undefined_flag_CXX='${wl}-z,text'
13906     allow_undefined_flag_CXX='${wl}-z,nodefs'
13907     archive_cmds_need_lc_CXX=no
13908     hardcode_shlibpath_var_CXX=no
13909     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13910     hardcode_libdir_separator_CXX=':'
13911     link_all_deplibs_CXX=yes
13912     export_dynamic_flag_spec_CXX='${wl}-Bexport'
13913     runpath_var='LD_RUN_PATH'
13914
13915     case $cc_basename in
13916       CC*)
13917         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13918         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13919         ;;
13920       *)
13921         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13922         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13923         ;;
13924     esac
13925     ;;
13926   tandem*)
13927     case $cc_basename in
13928       NCC*)
13929         # NonStop-UX NCC 3.20
13930         # FIXME: insert proper C++ library support
13931         ld_shlibs_CXX=no
13932         ;;
13933       *)
13934         # FIXME: insert proper C++ library support
13935         ld_shlibs_CXX=no
13936         ;;
13937     esac
13938     ;;
13939   vxworks*)
13940     # FIXME: insert proper C++ library support
13941     ld_shlibs_CXX=no
13942     ;;
13943   *)
13944     # FIXME: insert proper C++ library support
13945     ld_shlibs_CXX=no
13946     ;;
13947 esac
13948 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13949 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13950 test "$ld_shlibs_CXX" = no && can_build_shared=no
13951
13952 GCC_CXX="$GXX"
13953 LD_CXX="$LD"
13954
13955 ## CAVEAT EMPTOR:
13956 ## There is no encapsulation within the following macros, do not change
13957 ## the running order or otherwise move them around unless you know exactly
13958 ## what you are doing...
13959 cat > conftest.$ac_ext <<EOF
13960 class Foo
13961 {
13962 public:
13963   Foo (void) { a = 0; }
13964 private:
13965   int a;
13966 };
13967 EOF
13968
13969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13970   (eval $ac_compile) 2>&5
13971   ac_status=$?
13972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13973   (exit $ac_status); }; then
13974   # Parse the compiler output and extract the necessary
13975   # objects, libraries and library flags.
13976
13977   # Sentinel used to keep track of whether or not we are before
13978   # the conftest object file.
13979   pre_test_object_deps_done=no
13980
13981   # The `*' in the case matches for architectures that use `case' in
13982   # $output_verbose_cmd can trigger glob expansion during the loop
13983   # eval without this substitution.
13984   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13985
13986   for p in `eval $output_verbose_link_cmd`; do
13987     case $p in
13988
13989     -L* | -R* | -l*)
13990        # Some compilers place space between "-{L,R}" and the path.
13991        # Remove the space.
13992        if test $p = "-L" \
13993           || test $p = "-R"; then
13994          prev=$p
13995          continue
13996        else
13997          prev=
13998        fi
13999
14000        if test "$pre_test_object_deps_done" = no; then
14001          case $p in
14002          -L* | -R*)
14003            # Internal compiler library paths should come after those
14004            # provided the user.  The postdeps already come after the
14005            # user supplied libs so there is no need to process them.
14006            if test -z "$compiler_lib_search_path_CXX"; then
14007              compiler_lib_search_path_CXX="${prev}${p}"
14008            else
14009              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14010            fi
14011            ;;
14012          # The "-l" case would never come before the object being
14013          # linked, so don't bother handling this case.
14014          esac
14015        else
14016          if test -z "$postdeps_CXX"; then
14017            postdeps_CXX="${prev}${p}"
14018          else
14019            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14020          fi
14021        fi
14022        ;;
14023
14024     *.$objext)
14025        # This assumes that the test object file only shows up
14026        # once in the compiler output.
14027        if test "$p" = "conftest.$objext"; then
14028          pre_test_object_deps_done=yes
14029          continue
14030        fi
14031
14032        if test "$pre_test_object_deps_done" = no; then
14033          if test -z "$predep_objects_CXX"; then
14034            predep_objects_CXX="$p"
14035          else
14036            predep_objects_CXX="$predep_objects_CXX $p"
14037          fi
14038        else
14039          if test -z "$postdep_objects_CXX"; then
14040            postdep_objects_CXX="$p"
14041          else
14042            postdep_objects_CXX="$postdep_objects_CXX $p"
14043          fi
14044        fi
14045        ;;
14046
14047     *) ;; # Ignore the rest.
14048
14049     esac
14050   done
14051
14052   # Clean up.
14053   rm -f a.out a.exe
14054 else
14055   echo "libtool.m4: error: problem compiling CXX test program"
14056 fi
14057
14058 $rm -f confest.$objext
14059
14060 compiler_lib_search_dirs_CXX=
14061 if test -n "$compiler_lib_search_path_CXX"; then
14062   compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14063 fi
14064
14065 # PORTME: override above test on systems where it is broken
14066 case $host_os in
14067 interix[3-9]*)
14068   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14069   # hack all around it, let's just trust "g++" to DTRT.
14070   predep_objects_CXX=
14071   postdep_objects_CXX=
14072   postdeps_CXX=
14073   ;;
14074
14075 linux*)
14076   case `$CC -V 2>&1 | sed 5q` in
14077   *Sun\ C*)
14078     # Sun C++ 5.9
14079     #
14080     # The more standards-conforming stlport4 library is
14081     # incompatible with the Cstd library. Avoid specifying
14082     # it if it's in CXXFLAGS. Ignore libCrun as
14083     # -library=stlport4 depends on it.
14084     case " $CXX $CXXFLAGS " in
14085     *" -library=stlport4 "*)
14086       solaris_use_stlport4=yes
14087       ;;
14088     esac
14089     if test "$solaris_use_stlport4" != yes; then
14090       postdeps_CXX='-library=Cstd -library=Crun'
14091     fi
14092     ;;
14093   esac
14094   ;;
14095
14096 solaris*)
14097   case $cc_basename in
14098   CC*)
14099     # The more standards-conforming stlport4 library is
14100     # incompatible with the Cstd library. Avoid specifying
14101     # it if it's in CXXFLAGS. Ignore libCrun as
14102     # -library=stlport4 depends on it.
14103     case " $CXX $CXXFLAGS " in
14104     *" -library=stlport4 "*)
14105       solaris_use_stlport4=yes
14106       ;;
14107     esac
14108
14109     # Adding this requires a known-good setup of shared libraries for
14110     # Sun compiler versions before 5.6, else PIC objects from an old
14111     # archive will be linked into the output, leading to subtle bugs.
14112     if test "$solaris_use_stlport4" != yes; then
14113       postdeps_CXX='-library=Cstd -library=Crun'
14114     fi
14115     ;;
14116   esac
14117   ;;
14118 esac
14119
14120 case " $postdeps_CXX " in
14121 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14122 esac
14123
14124 lt_prog_compiler_wl_CXX=
14125 lt_prog_compiler_pic_CXX=
14126 lt_prog_compiler_static_CXX=
14127
14128 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14129 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14130  
14131   # C++ specific cases for pic, static, wl, etc.
14132   if test "$GXX" = yes; then
14133     lt_prog_compiler_wl_CXX='-Wl,'
14134     lt_prog_compiler_static_CXX='-static'
14135
14136     case $host_os in
14137     aix*)
14138       # All AIX code is PIC.
14139       if test "$host_cpu" = ia64; then
14140         # AIX 5 now supports IA64 processor
14141         lt_prog_compiler_static_CXX='-Bstatic'
14142       fi
14143       ;;
14144     amigaos*)
14145       # FIXME: we need at least 68020 code to build shared libraries, but
14146       # adding the `-m68020' flag to GCC prevents building anything better,
14147       # like `-m68040'.
14148       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14149       ;;
14150     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14151       # PIC is the default for these OSes.
14152       ;;
14153     mingw* | cygwin* | os2* | pw32*)
14154       # This hack is so that the source file can tell whether it is being
14155       # built for inclusion in a dll (and should export symbols for example).
14156       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14157       # (--disable-auto-import) libraries
14158       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14159       ;;
14160     darwin* | rhapsody*)
14161       # PIC is the default on this platform
14162       # Common symbols not allowed in MH_DYLIB files
14163       lt_prog_compiler_pic_CXX='-fno-common'
14164       ;;
14165     *djgpp*)
14166       # DJGPP does not support shared libraries at all
14167       lt_prog_compiler_pic_CXX=
14168       ;;
14169     interix[3-9]*)
14170       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14171       # Instead, we relocate shared libraries at runtime.
14172       ;;
14173     sysv4*MP*)
14174       if test -d /usr/nec; then
14175         lt_prog_compiler_pic_CXX=-Kconform_pic
14176       fi
14177       ;;
14178     hpux*)
14179       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14180       # not for PA HP-UX.
14181       case $host_cpu in
14182       hppa*64*|ia64*)
14183         ;;
14184       *)
14185         lt_prog_compiler_pic_CXX='-fPIC'
14186         ;;
14187       esac
14188       ;;
14189     *)
14190       lt_prog_compiler_pic_CXX='-fPIC'
14191       ;;
14192     esac
14193   else
14194     case $host_os in
14195       aix[4-9]*)
14196         # All AIX code is PIC.
14197         if test "$host_cpu" = ia64; then
14198           # AIX 5 now supports IA64 processor
14199           lt_prog_compiler_static_CXX='-Bstatic'
14200         else
14201           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14202         fi
14203         ;;
14204       chorus*)
14205         case $cc_basename in
14206         cxch68*)
14207           # Green Hills C++ Compiler
14208           # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14209           ;;
14210         esac
14211         ;;
14212        darwin*)
14213          # PIC is the default on this platform
14214          # Common symbols not allowed in MH_DYLIB files
14215          case $cc_basename in
14216            xlc*)
14217            lt_prog_compiler_pic_CXX='-qnocommon'
14218            lt_prog_compiler_wl_CXX='-Wl,'
14219            ;;
14220          esac
14221        ;;
14222       dgux*)
14223         case $cc_basename in
14224           ec++*)
14225             lt_prog_compiler_pic_CXX='-KPIC'
14226             ;;
14227           ghcx*)
14228             # Green Hills C++ Compiler
14229             lt_prog_compiler_pic_CXX='-pic'
14230             ;;
14231           *)
14232             ;;
14233         esac
14234         ;;
14235       freebsd* | dragonfly*)
14236         # FreeBSD uses GNU C++
14237         ;;
14238       hpux9* | hpux10* | hpux11*)
14239         case $cc_basename in
14240           CC*)
14241             lt_prog_compiler_wl_CXX='-Wl,'
14242             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14243             if test "$host_cpu" != ia64; then
14244               lt_prog_compiler_pic_CXX='+Z'
14245             fi
14246             ;;
14247           aCC*)
14248             lt_prog_compiler_wl_CXX='-Wl,'
14249             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14250             case $host_cpu in
14251             hppa*64*|ia64*)
14252               # +Z the default
14253               ;;
14254             *)
14255               lt_prog_compiler_pic_CXX='+Z'
14256               ;;
14257             esac
14258             ;;
14259           *)
14260             ;;
14261         esac
14262         ;;
14263       interix*)
14264         # This is c89, which is MS Visual C++ (no shared libs)
14265         # Anyone wants to do a port?
14266         ;;
14267       irix5* | irix6* | nonstopux*)
14268         case $cc_basename in
14269           CC*)
14270             lt_prog_compiler_wl_CXX='-Wl,'
14271             lt_prog_compiler_static_CXX='-non_shared'
14272             # CC pic flag -KPIC is the default.
14273             ;;
14274           *)
14275             ;;
14276         esac
14277         ;;
14278       linux* | k*bsd*-gnu)
14279         case $cc_basename in
14280           KCC*)
14281             # KAI C++ Compiler
14282             lt_prog_compiler_wl_CXX='--backend -Wl,'
14283             lt_prog_compiler_pic_CXX='-fPIC'
14284             ;;
14285           icpc* | ecpc*)
14286             # Intel C++
14287             lt_prog_compiler_wl_CXX='-Wl,'
14288             lt_prog_compiler_pic_CXX='-KPIC'
14289             lt_prog_compiler_static_CXX='-static'
14290             ;;
14291           pgCC* | pgcpp*)
14292             # Portland Group C++ compiler.
14293             lt_prog_compiler_wl_CXX='-Wl,'
14294             lt_prog_compiler_pic_CXX='-fpic'
14295             lt_prog_compiler_static_CXX='-Bstatic'
14296             ;;
14297           cxx*)
14298             # Compaq C++
14299             # Make sure the PIC flag is empty.  It appears that all Alpha
14300             # Linux and Compaq Tru64 Unix objects are PIC.
14301             lt_prog_compiler_pic_CXX=
14302             lt_prog_compiler_static_CXX='-non_shared'
14303             ;;
14304           *)
14305             case `$CC -V 2>&1 | sed 5q` in
14306             *Sun\ C*)
14307               # Sun C++ 5.9
14308               lt_prog_compiler_pic_CXX='-KPIC'
14309               lt_prog_compiler_static_CXX='-Bstatic'
14310               lt_prog_compiler_wl_CXX='-Qoption ld '
14311               ;;
14312             esac
14313             ;;
14314         esac
14315         ;;
14316       lynxos*)
14317         ;;
14318       m88k*)
14319         ;;
14320       mvs*)
14321         case $cc_basename in
14322           cxx*)
14323             lt_prog_compiler_pic_CXX='-W c,exportall'
14324             ;;
14325           *)
14326             ;;
14327         esac
14328         ;;
14329       netbsd*)
14330         ;;
14331       osf3* | osf4* | osf5*)
14332         case $cc_basename in
14333           KCC*)
14334             lt_prog_compiler_wl_CXX='--backend -Wl,'
14335             ;;
14336           RCC*)
14337             # Rational C++ 2.4.1
14338             lt_prog_compiler_pic_CXX='-pic'
14339             ;;
14340           cxx*)
14341             # Digital/Compaq C++
14342             lt_prog_compiler_wl_CXX='-Wl,'
14343             # Make sure the PIC flag is empty.  It appears that all Alpha
14344             # Linux and Compaq Tru64 Unix objects are PIC.
14345             lt_prog_compiler_pic_CXX=
14346             lt_prog_compiler_static_CXX='-non_shared'
14347             ;;
14348           *)
14349             ;;
14350         esac
14351         ;;
14352       psos*)
14353         ;;
14354       solaris*)
14355         case $cc_basename in
14356           CC*)
14357             # Sun C++ 4.2, 5.x and Centerline C++
14358             lt_prog_compiler_pic_CXX='-KPIC'
14359             lt_prog_compiler_static_CXX='-Bstatic'
14360             lt_prog_compiler_wl_CXX='-Qoption ld '
14361             ;;
14362           gcx*)
14363             # Green Hills C++ Compiler
14364             lt_prog_compiler_pic_CXX='-PIC'
14365             ;;
14366           *)
14367             ;;
14368         esac
14369         ;;
14370       sunos4*)
14371         case $cc_basename in
14372           CC*)
14373             # Sun C++ 4.x
14374             lt_prog_compiler_pic_CXX='-pic'
14375             lt_prog_compiler_static_CXX='-Bstatic'
14376             ;;
14377           lcc*)
14378             # Lucid
14379             lt_prog_compiler_pic_CXX='-pic'
14380             ;;
14381           *)
14382             ;;
14383         esac
14384         ;;
14385       tandem*)
14386         case $cc_basename in
14387           NCC*)
14388             # NonStop-UX NCC 3.20
14389             lt_prog_compiler_pic_CXX='-KPIC'
14390             ;;
14391           *)
14392             ;;
14393         esac
14394         ;;
14395       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14396         case $cc_basename in
14397           CC*)
14398             lt_prog_compiler_wl_CXX='-Wl,'
14399             lt_prog_compiler_pic_CXX='-KPIC'
14400             lt_prog_compiler_static_CXX='-Bstatic'
14401             ;;
14402         esac
14403         ;;
14404       vxworks*)
14405         ;;
14406       *)
14407         lt_prog_compiler_can_build_shared_CXX=no
14408         ;;
14409     esac
14410   fi
14411
14412 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14413 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14414
14415 #
14416 # Check to make sure the PIC flag actually works.
14417 #
14418 if test -n "$lt_prog_compiler_pic_CXX"; then
14419   
14420 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14421 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14422 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14423   echo $ECHO_N "(cached) $ECHO_C" >&6
14424 else
14425   lt_cv_prog_compiler_pic_works_CXX=no
14426   ac_outfile=conftest.$ac_objext
14427    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14428    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14429    # Insert the option either (1) after the last *FLAGS variable, or
14430    # (2) before a word containing "conftest.", or (3) at the end.
14431    # Note that $ac_compile itself does not contain backslashes and begins
14432    # with a dollar sign (not a hyphen), so the echo should work correctly.
14433    # The option is referenced via a variable to avoid confusing sed.
14434    lt_compile=`echo "$ac_compile" | $SED \
14435    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14436    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14437    -e 's:$: $lt_compiler_flag:'`
14438    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
14439    (eval "$lt_compile" 2>conftest.err)
14440    ac_status=$?
14441    cat conftest.err >&5
14442    echo "$as_me:__oline__: \$? = $ac_status" >&5
14443    if (exit $ac_status) && test -s "$ac_outfile"; then
14444      # The compiler can only warn and ignore the option if not recognized
14445      # So say no if there are warnings other than the usual output.
14446      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14447      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14448      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14449        lt_cv_prog_compiler_pic_works_CXX=yes
14450      fi
14451    fi
14452    $rm conftest*
14453
14454 fi
14455 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14456 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14457
14458 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14459     case $lt_prog_compiler_pic_CXX in
14460      "" | " "*) ;;
14461      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14462      esac
14463 else
14464     lt_prog_compiler_pic_CXX=
14465      lt_prog_compiler_can_build_shared_CXX=no
14466 fi
14467
14468 fi
14469 case $host_os in
14470   # For platforms which do not support PIC, -DPIC is meaningless:
14471   *djgpp*)
14472     lt_prog_compiler_pic_CXX=
14473     ;;
14474   *)
14475     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14476     ;;
14477 esac
14478
14479 #
14480 # Check to make sure the static flag actually works.
14481 #
14482 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14483 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14484 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14485 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14486   echo $ECHO_N "(cached) $ECHO_C" >&6
14487 else
14488   lt_cv_prog_compiler_static_works_CXX=no
14489    save_LDFLAGS="$LDFLAGS"
14490    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14491    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14492    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14493      # The linker can only warn and ignore the option if not recognized
14494      # So say no if there are warnings
14495      if test -s conftest.err; then
14496        # Append any errors to the config.log.
14497        cat conftest.err 1>&5
14498        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14499        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14500        if diff conftest.exp conftest.er2 >/dev/null; then
14501          lt_cv_prog_compiler_static_works_CXX=yes
14502        fi
14503      else
14504        lt_cv_prog_compiler_static_works_CXX=yes
14505      fi
14506    fi
14507    $rm -r conftest*
14508    LDFLAGS="$save_LDFLAGS"
14509
14510 fi
14511 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14512 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14513
14514 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14515     :
14516 else
14517     lt_prog_compiler_static_CXX=
14518 fi
14519
14520
14521 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14522 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14523 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14524   echo $ECHO_N "(cached) $ECHO_C" >&6
14525 else
14526   lt_cv_prog_compiler_c_o_CXX=no
14527    $rm -r conftest 2>/dev/null
14528    mkdir conftest
14529    cd conftest
14530    mkdir out
14531    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14532
14533    lt_compiler_flag="-o out/conftest2.$ac_objext"
14534    # Insert the option either (1) after the last *FLAGS variable, or
14535    # (2) before a word containing "conftest.", or (3) at the end.
14536    # Note that $ac_compile itself does not contain backslashes and begins
14537    # with a dollar sign (not a hyphen), so the echo should work correctly.
14538    lt_compile=`echo "$ac_compile" | $SED \
14539    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14540    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14541    -e 's:$: $lt_compiler_flag:'`
14542    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
14543    (eval "$lt_compile" 2>out/conftest.err)
14544    ac_status=$?
14545    cat out/conftest.err >&5
14546    echo "$as_me:__oline__: \$? = $ac_status" >&5
14547    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14548    then
14549      # The compiler can only warn and ignore the option if not recognized
14550      # So say no if there are warnings
14551      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14552      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14553      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14554        lt_cv_prog_compiler_c_o_CXX=yes
14555      fi
14556    fi
14557    chmod u+w . 2>&5
14558    $rm conftest*
14559    # SGI C++ compiler will create directory out/ii_files/ for
14560    # template instantiation
14561    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14562    $rm out/* && rmdir out
14563    cd ..
14564    rmdir conftest
14565    $rm conftest*
14566
14567 fi
14568 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14569 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14570
14571
14572 hard_links="nottested"
14573 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14574   # do not overwrite the value of need_locks provided by the user
14575   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14576 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14577   hard_links=yes
14578   $rm conftest*
14579   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14580   touch conftest.a
14581   ln conftest.a conftest.b 2>&5 || hard_links=no
14582   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14583   { echo "$as_me:$LINENO: result: $hard_links" >&5
14584 echo "${ECHO_T}$hard_links" >&6; }
14585   if test "$hard_links" = no; then
14586     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14587 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14588     need_locks=warn
14589   fi
14590 else
14591   need_locks=no
14592 fi
14593
14594 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14595 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14596
14597   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14598   case $host_os in
14599   aix[4-9]*)
14600     # If we're using GNU nm, then we don't want the "-C" option.
14601     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14602     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14603       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14604     else
14605       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14606     fi
14607     ;;
14608   pw32*)
14609     export_symbols_cmds_CXX="$ltdll_cmds"
14610   ;;
14611   cygwin* | mingw*)
14612     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14613   ;;
14614   *)
14615     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14616   ;;
14617   esac
14618   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14619
14620 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14621 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14622 test "$ld_shlibs_CXX" = no && can_build_shared=no
14623
14624 #
14625 # Do we need to explicitly link libc?
14626 #
14627 case "x$archive_cmds_need_lc_CXX" in
14628 x|xyes)
14629   # Assume -lc should be added
14630   archive_cmds_need_lc_CXX=yes
14631
14632   if test "$enable_shared" = yes && test "$GCC" = yes; then
14633     case $archive_cmds_CXX in
14634     *'~'*)
14635       # FIXME: we may have to deal with multi-command sequences.
14636       ;;
14637     '$CC '*)
14638       # Test whether the compiler implicitly links with -lc since on some
14639       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14640       # to ld, don't add -lc before -lgcc.
14641       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14642 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14643       $rm conftest*
14644       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14645
14646       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14647   (eval $ac_compile) 2>&5
14648   ac_status=$?
14649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650   (exit $ac_status); } 2>conftest.err; then
14651         soname=conftest
14652         lib=conftest
14653         libobjs=conftest.$ac_objext
14654         deplibs=
14655         wl=$lt_prog_compiler_wl_CXX
14656         pic_flag=$lt_prog_compiler_pic_CXX
14657         compiler_flags=-v
14658         linker_flags=-v
14659         verstring=
14660         output_objdir=.
14661         libname=conftest
14662         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14663         allow_undefined_flag_CXX=
14664         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14665   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14666   ac_status=$?
14667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668   (exit $ac_status); }
14669         then
14670           archive_cmds_need_lc_CXX=no
14671         else
14672           archive_cmds_need_lc_CXX=yes
14673         fi
14674         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14675       else
14676         cat conftest.err 1>&5
14677       fi
14678       $rm conftest*
14679       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14680 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14681       ;;
14682     esac
14683   fi
14684   ;;
14685 esac
14686
14687 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14688 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14689 library_names_spec=
14690 libname_spec='lib$name'
14691 soname_spec=
14692 shrext_cmds=".so"
14693 postinstall_cmds=
14694 postuninstall_cmds=
14695 finish_cmds=
14696 finish_eval=
14697 shlibpath_var=
14698 shlibpath_overrides_runpath=unknown
14699 version_type=none
14700 dynamic_linker="$host_os ld.so"
14701 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14702
14703 need_lib_prefix=unknown
14704 hardcode_into_libs=no
14705
14706 # when you set need_version to no, make sure it does not cause -set_version
14707 # flags to be left without arguments
14708 need_version=unknown
14709
14710 case $host_os in
14711 aix3*)
14712   version_type=linux
14713   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14714   shlibpath_var=LIBPATH
14715
14716   # AIX 3 has no versioning support, so we append a major version to the name.
14717   soname_spec='${libname}${release}${shared_ext}$major'
14718   ;;
14719
14720 aix[4-9]*)
14721   version_type=linux
14722   need_lib_prefix=no
14723   need_version=no
14724   hardcode_into_libs=yes
14725   if test "$host_cpu" = ia64; then
14726     # AIX 5 supports IA64
14727     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14728     shlibpath_var=LD_LIBRARY_PATH
14729   else
14730     # With GCC up to 2.95.x, collect2 would create an import file
14731     # for dependence libraries.  The import file would start with
14732     # the line `#! .'.  This would cause the generated library to
14733     # depend on `.', always an invalid library.  This was fixed in
14734     # development snapshots of GCC prior to 3.0.
14735     case $host_os in
14736       aix4 | aix4.[01] | aix4.[01].*)
14737       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14738            echo ' yes '
14739            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14740         :
14741       else
14742         can_build_shared=no
14743       fi
14744       ;;
14745     esac
14746     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14747     # soname into executable. Probably we can add versioning support to
14748     # collect2, so additional links can be useful in future.
14749     if test "$aix_use_runtimelinking" = yes; then
14750       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14751       # instead of lib<name>.a to let people know that these are not
14752       # typical AIX shared libraries.
14753       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14754     else
14755       # We preserve .a as extension for shared libraries through AIX4.2
14756       # and later when we are not doing run time linking.
14757       library_names_spec='${libname}${release}.a $libname.a'
14758       soname_spec='${libname}${release}${shared_ext}$major'
14759     fi
14760     shlibpath_var=LIBPATH
14761   fi
14762   ;;
14763
14764 amigaos*)
14765   library_names_spec='$libname.ixlibrary $libname.a'
14766   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14767   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14768   ;;
14769
14770 beos*)
14771   library_names_spec='${libname}${shared_ext}'
14772   dynamic_linker="$host_os ld.so"
14773   shlibpath_var=LIBRARY_PATH
14774   ;;
14775
14776 bsdi[45]*)
14777   version_type=linux
14778   need_version=no
14779   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14780   soname_spec='${libname}${release}${shared_ext}$major'
14781   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14782   shlibpath_var=LD_LIBRARY_PATH
14783   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14784   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14785   # the default ld.so.conf also contains /usr/contrib/lib and
14786   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14787   # libtool to hard-code these into programs
14788   ;;
14789
14790 cygwin* | mingw* | pw32*)
14791   version_type=windows
14792   shrext_cmds=".dll"
14793   need_version=no
14794   need_lib_prefix=no
14795
14796   case $GCC,$host_os in
14797   yes,cygwin* | yes,mingw* | yes,pw32*)
14798     library_names_spec='$libname.dll.a'
14799     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14800     postinstall_cmds='base_file=`basename \${file}`~
14801       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14802       dldir=$destdir/`dirname \$dlpath`~
14803       test -d \$dldir || mkdir -p \$dldir~
14804       $install_prog $dir/$dlname \$dldir/$dlname~
14805       chmod a+x \$dldir/$dlname'
14806     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14807       dlpath=$dir/\$dldll~
14808        $rm \$dlpath'
14809     shlibpath_overrides_runpath=yes
14810
14811     case $host_os in
14812     cygwin*)
14813       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14814       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14815       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14816       ;;
14817     mingw*)
14818       # MinGW DLLs use traditional 'lib' prefix
14819       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14820       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14821       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14822         # It is most probably a Windows format PATH printed by
14823         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14824         # path with ; separators, and with drive letters. We can handle the
14825         # drive letters (cygwin fileutils understands them), so leave them,
14826         # especially as we might pass files found there to a mingw objdump,
14827         # which wouldn't understand a cygwinified path. Ahh.
14828         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14829       else
14830         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14831       fi
14832       ;;
14833     pw32*)
14834       # pw32 DLLs use 'pw' prefix rather than 'lib'
14835       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14836       ;;
14837     esac
14838     ;;
14839
14840   *)
14841     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14842     ;;
14843   esac
14844   dynamic_linker='Win32 ld.exe'
14845   # FIXME: first we should search . and the directory the executable is in
14846   shlibpath_var=PATH
14847   ;;
14848
14849 darwin* | rhapsody*)
14850   dynamic_linker="$host_os dyld"
14851   version_type=darwin
14852   need_lib_prefix=no
14853   need_version=no
14854   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14855   soname_spec='${libname}${release}${major}$shared_ext'
14856   shlibpath_overrides_runpath=yes
14857   shlibpath_var=DYLD_LIBRARY_PATH
14858   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14859    
14860   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14861   ;;
14862
14863 dgux*)
14864   version_type=linux
14865   need_lib_prefix=no
14866   need_version=no
14867   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14868   soname_spec='${libname}${release}${shared_ext}$major'
14869   shlibpath_var=LD_LIBRARY_PATH
14870   ;;
14871
14872 freebsd1*)
14873   dynamic_linker=no
14874   ;;
14875
14876 freebsd* | dragonfly*)
14877   # DragonFly does not have aout.  When/if they implement a new
14878   # versioning mechanism, adjust this.
14879   if test -x /usr/bin/objformat; then
14880     objformat=`/usr/bin/objformat`
14881   else
14882     case $host_os in
14883     freebsd[123]*) objformat=aout ;;
14884     *) objformat=elf ;;
14885     esac
14886   fi
14887   version_type=freebsd-$objformat
14888   case $version_type in
14889     freebsd-elf*)
14890       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14891       need_version=no
14892       need_lib_prefix=no
14893       ;;
14894     freebsd-*)
14895       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14896       need_version=yes
14897       ;;
14898   esac
14899   shlibpath_var=LD_LIBRARY_PATH
14900   case $host_os in
14901   freebsd2*)
14902     shlibpath_overrides_runpath=yes
14903     ;;
14904   freebsd3.[01]* | freebsdelf3.[01]*)
14905     shlibpath_overrides_runpath=yes
14906     hardcode_into_libs=yes
14907     ;;
14908   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14909   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14910     shlibpath_overrides_runpath=no
14911     hardcode_into_libs=yes
14912     ;;
14913   *) # from 4.6 on, and DragonFly
14914     shlibpath_overrides_runpath=yes
14915     hardcode_into_libs=yes
14916     ;;
14917   esac
14918   ;;
14919
14920 gnu*)
14921   version_type=linux
14922   need_lib_prefix=no
14923   need_version=no
14924   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14925   soname_spec='${libname}${release}${shared_ext}$major'
14926   shlibpath_var=LD_LIBRARY_PATH
14927   hardcode_into_libs=yes
14928   ;;
14929
14930 hpux9* | hpux10* | hpux11*)
14931   # Give a soname corresponding to the major version so that dld.sl refuses to
14932   # link against other versions.
14933   version_type=sunos
14934   need_lib_prefix=no
14935   need_version=no
14936   case $host_cpu in
14937   ia64*)
14938     shrext_cmds='.so'
14939     hardcode_into_libs=yes
14940     dynamic_linker="$host_os dld.so"
14941     shlibpath_var=LD_LIBRARY_PATH
14942     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14943     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14944     soname_spec='${libname}${release}${shared_ext}$major'
14945     if test "X$HPUX_IA64_MODE" = X32; then
14946       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14947     else
14948       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14949     fi
14950     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14951     ;;
14952    hppa*64*)
14953      shrext_cmds='.sl'
14954      hardcode_into_libs=yes
14955      dynamic_linker="$host_os dld.sl"
14956      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14957      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14958      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14959      soname_spec='${libname}${release}${shared_ext}$major'
14960      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14961      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14962      ;;
14963    *)
14964     shrext_cmds='.sl'
14965     dynamic_linker="$host_os dld.sl"
14966     shlibpath_var=SHLIB_PATH
14967     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14968     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14969     soname_spec='${libname}${release}${shared_ext}$major'
14970     ;;
14971   esac
14972   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14973   postinstall_cmds='chmod 555 $lib'
14974   ;;
14975
14976 interix[3-9]*)
14977   version_type=linux
14978   need_lib_prefix=no
14979   need_version=no
14980   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14981   soname_spec='${libname}${release}${shared_ext}$major'
14982   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14983   shlibpath_var=LD_LIBRARY_PATH
14984   shlibpath_overrides_runpath=no
14985   hardcode_into_libs=yes
14986   ;;
14987
14988 irix5* | irix6* | nonstopux*)
14989   case $host_os in
14990     nonstopux*) version_type=nonstopux ;;
14991     *)
14992         if test "$lt_cv_prog_gnu_ld" = yes; then
14993                 version_type=linux
14994         else
14995                 version_type=irix
14996         fi ;;
14997   esac
14998   need_lib_prefix=no
14999   need_version=no
15000   soname_spec='${libname}${release}${shared_ext}$major'
15001   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15002   case $host_os in
15003   irix5* | nonstopux*)
15004     libsuff= shlibsuff=
15005     ;;
15006   *)
15007     case $LD in # libtool.m4 will add one of these switches to LD
15008     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15009       libsuff= shlibsuff= libmagic=32-bit;;
15010     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15011       libsuff=32 shlibsuff=N32 libmagic=N32;;
15012     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15013       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15014     *) libsuff= shlibsuff= libmagic=never-match;;
15015     esac
15016     ;;
15017   esac
15018   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15019   shlibpath_overrides_runpath=no
15020   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15021   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15022   hardcode_into_libs=yes
15023   ;;
15024
15025 # No shared lib support for Linux oldld, aout, or coff.
15026 linux*oldld* | linux*aout* | linux*coff*)
15027   dynamic_linker=no
15028   ;;
15029
15030 # This must be Linux ELF.
15031 linux* | k*bsd*-gnu)
15032   version_type=linux
15033   need_lib_prefix=no
15034   need_version=no
15035   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15036   soname_spec='${libname}${release}${shared_ext}$major'
15037   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15038   shlibpath_var=LD_LIBRARY_PATH
15039   shlibpath_overrides_runpath=no
15040   # This implies no fast_install, which is unacceptable.
15041   # Some rework will be needed to allow for fast_install
15042   # before this can be enabled.
15043   hardcode_into_libs=yes
15044
15045   # Append ld.so.conf contents to the search path
15046   if test -f /etc/ld.so.conf; then
15047     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15048     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15049   fi
15050
15051   # We used to test for /lib/ld.so.1 and disable shared libraries on
15052   # powerpc, because MkLinux only supported shared libraries with the
15053   # GNU dynamic linker.  Since this was broken with cross compilers,
15054   # most powerpc-linux boxes support dynamic linking these days and
15055   # people can always --disable-shared, the test was removed, and we
15056   # assume the GNU/Linux dynamic linker is in use.
15057   dynamic_linker='GNU/Linux ld.so'
15058   ;;
15059
15060 netbsd*)
15061   version_type=sunos
15062   need_lib_prefix=no
15063   need_version=no
15064   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15065     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15066     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15067     dynamic_linker='NetBSD (a.out) ld.so'
15068   else
15069     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15070     soname_spec='${libname}${release}${shared_ext}$major'
15071     dynamic_linker='NetBSD ld.elf_so'
15072   fi
15073   shlibpath_var=LD_LIBRARY_PATH
15074   shlibpath_overrides_runpath=yes
15075   hardcode_into_libs=yes
15076   ;;
15077
15078 newsos6)
15079   version_type=linux
15080   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15081   shlibpath_var=LD_LIBRARY_PATH
15082   shlibpath_overrides_runpath=yes
15083   ;;
15084
15085 nto-qnx*)
15086   version_type=linux
15087   need_lib_prefix=no
15088   need_version=no
15089   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15090   soname_spec='${libname}${release}${shared_ext}$major'
15091   shlibpath_var=LD_LIBRARY_PATH
15092   shlibpath_overrides_runpath=yes
15093   ;;
15094
15095 openbsd*)
15096   version_type=sunos
15097   sys_lib_dlsearch_path_spec="/usr/lib"
15098   need_lib_prefix=no
15099   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15100   case $host_os in
15101     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15102     *)                         need_version=no  ;;
15103   esac
15104   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15105   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15106   shlibpath_var=LD_LIBRARY_PATH
15107   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15108     case $host_os in
15109       openbsd2.[89] | openbsd2.[89].*)
15110         shlibpath_overrides_runpath=no
15111         ;;
15112       *)
15113         shlibpath_overrides_runpath=yes
15114         ;;
15115       esac
15116   else
15117     shlibpath_overrides_runpath=yes
15118   fi
15119   ;;
15120
15121 os2*)
15122   libname_spec='$name'
15123   shrext_cmds=".dll"
15124   need_lib_prefix=no
15125   library_names_spec='$libname${shared_ext} $libname.a'
15126   dynamic_linker='OS/2 ld.exe'
15127   shlibpath_var=LIBPATH
15128   ;;
15129
15130 osf3* | osf4* | osf5*)
15131   version_type=osf
15132   need_lib_prefix=no
15133   need_version=no
15134   soname_spec='${libname}${release}${shared_ext}$major'
15135   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15136   shlibpath_var=LD_LIBRARY_PATH
15137   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15138   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15139   ;;
15140
15141 rdos*)
15142   dynamic_linker=no
15143   ;;
15144
15145 solaris*)
15146   version_type=linux
15147   need_lib_prefix=no
15148   need_version=no
15149   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15150   soname_spec='${libname}${release}${shared_ext}$major'
15151   shlibpath_var=LD_LIBRARY_PATH
15152   shlibpath_overrides_runpath=yes
15153   hardcode_into_libs=yes
15154   # ldd complains unless libraries are executable
15155   postinstall_cmds='chmod +x $lib'
15156   ;;
15157
15158 sunos4*)
15159   version_type=sunos
15160   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15161   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15162   shlibpath_var=LD_LIBRARY_PATH
15163   shlibpath_overrides_runpath=yes
15164   if test "$with_gnu_ld" = yes; then
15165     need_lib_prefix=no
15166   fi
15167   need_version=yes
15168   ;;
15169
15170 sysv4 | sysv4.3*)
15171   version_type=linux
15172   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15173   soname_spec='${libname}${release}${shared_ext}$major'
15174   shlibpath_var=LD_LIBRARY_PATH
15175   case $host_vendor in
15176     sni)
15177       shlibpath_overrides_runpath=no
15178       need_lib_prefix=no
15179       export_dynamic_flag_spec='${wl}-Blargedynsym'
15180       runpath_var=LD_RUN_PATH
15181       ;;
15182     siemens)
15183       need_lib_prefix=no
15184       ;;
15185     motorola)
15186       need_lib_prefix=no
15187       need_version=no
15188       shlibpath_overrides_runpath=no
15189       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15190       ;;
15191   esac
15192   ;;
15193
15194 sysv4*MP*)
15195   if test -d /usr/nec ;then
15196     version_type=linux
15197     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15198     soname_spec='$libname${shared_ext}.$major'
15199     shlibpath_var=LD_LIBRARY_PATH
15200   fi
15201   ;;
15202
15203 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15204   version_type=freebsd-elf
15205   need_lib_prefix=no
15206   need_version=no
15207   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15208   soname_spec='${libname}${release}${shared_ext}$major'
15209   shlibpath_var=LD_LIBRARY_PATH
15210   hardcode_into_libs=yes
15211   if test "$with_gnu_ld" = yes; then
15212     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15213     shlibpath_overrides_runpath=no
15214   else
15215     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15216     shlibpath_overrides_runpath=yes
15217     case $host_os in
15218       sco3.2v5*)
15219         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15220         ;;
15221     esac
15222   fi
15223   sys_lib_dlsearch_path_spec='/usr/lib'
15224   ;;
15225
15226 uts4*)
15227   version_type=linux
15228   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15229   soname_spec='${libname}${release}${shared_ext}$major'
15230   shlibpath_var=LD_LIBRARY_PATH
15231   ;;
15232
15233 *)
15234   dynamic_linker=no
15235   ;;
15236 esac
15237 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15238 echo "${ECHO_T}$dynamic_linker" >&6; }
15239 test "$dynamic_linker" = no && can_build_shared=no
15240
15241 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15242   echo $ECHO_N "(cached) $ECHO_C" >&6
15243 else
15244   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
15245 fi
15246
15247 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15248 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15249   echo $ECHO_N "(cached) $ECHO_C" >&6
15250 else
15251   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
15252 fi
15253
15254 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15255
15256 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15257 if test "$GCC" = yes; then
15258   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15259 fi
15260
15261 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15262 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15263 hardcode_action_CXX=
15264 if test -n "$hardcode_libdir_flag_spec_CXX" || \
15265    test -n "$runpath_var_CXX" || \
15266    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15267
15268   # We can hardcode non-existant directories.
15269   if test "$hardcode_direct_CXX" != no &&
15270      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15271      # have to relink, otherwise we might link with an installed library
15272      # when we should be linking with a yet-to-be-installed one
15273      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15274      test "$hardcode_minus_L_CXX" != no; then
15275     # Linking always hardcodes the temporary library directory.
15276     hardcode_action_CXX=relink
15277   else
15278     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15279     hardcode_action_CXX=immediate
15280   fi
15281 else
15282   # We cannot hardcode anything, or else we can only hardcode existing
15283   # directories.
15284   hardcode_action_CXX=unsupported
15285 fi
15286 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15287 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15288
15289 if test "$hardcode_action_CXX" = relink; then
15290   # Fast installation is not supported
15291   enable_fast_install=no
15292 elif test "$shlibpath_overrides_runpath" = yes ||
15293      test "$enable_shared" = no; then
15294   # Fast installation is not necessary
15295   enable_fast_install=needless
15296 fi
15297
15298
15299 # The else clause should only fire when bootstrapping the
15300 # libtool distribution, otherwise you forgot to ship ltmain.sh
15301 # with your package, and you will get complaints that there are
15302 # no rules to generate ltmain.sh.
15303 if test -f "$ltmain"; then
15304   # See if we are running on zsh, and set the options which allow our commands through
15305   # without removal of \ escapes.
15306   if test -n "${ZSH_VERSION+set}" ; then
15307     setopt NO_GLOB_SUBST
15308   fi
15309   # Now quote all the things that may contain metacharacters while being
15310   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15311   # variables and quote the copies for generation of the libtool script.
15312   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15313     SED SHELL STRIP \
15314     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15315     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15316     deplibs_check_method reload_flag reload_cmds need_locks \
15317     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15318     lt_cv_sys_global_symbol_to_c_name_address \
15319     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15320     old_postinstall_cmds old_postuninstall_cmds \
15321     compiler_CXX \
15322     CC_CXX \
15323     LD_CXX \
15324     lt_prog_compiler_wl_CXX \
15325     lt_prog_compiler_pic_CXX \
15326     lt_prog_compiler_static_CXX \
15327     lt_prog_compiler_no_builtin_flag_CXX \
15328     export_dynamic_flag_spec_CXX \
15329     thread_safe_flag_spec_CXX \
15330     whole_archive_flag_spec_CXX \
15331     enable_shared_with_static_runtimes_CXX \
15332     old_archive_cmds_CXX \
15333     old_archive_from_new_cmds_CXX \
15334     predep_objects_CXX \
15335     postdep_objects_CXX \
15336     predeps_CXX \
15337     postdeps_CXX \
15338     compiler_lib_search_path_CXX \
15339     compiler_lib_search_dirs_CXX \
15340     archive_cmds_CXX \
15341     archive_expsym_cmds_CXX \
15342     postinstall_cmds_CXX \
15343     postuninstall_cmds_CXX \
15344     old_archive_from_expsyms_cmds_CXX \
15345     allow_undefined_flag_CXX \
15346     no_undefined_flag_CXX \
15347     export_symbols_cmds_CXX \
15348     hardcode_libdir_flag_spec_CXX \
15349     hardcode_libdir_flag_spec_ld_CXX \
15350     hardcode_libdir_separator_CXX \
15351     hardcode_automatic_CXX \
15352     module_cmds_CXX \
15353     module_expsym_cmds_CXX \
15354     lt_cv_prog_compiler_c_o_CXX \
15355     fix_srcfile_path_CXX \
15356     exclude_expsyms_CXX \
15357     include_expsyms_CXX; do
15358
15359     case $var in
15360     old_archive_cmds_CXX | \
15361     old_archive_from_new_cmds_CXX | \
15362     archive_cmds_CXX | \
15363     archive_expsym_cmds_CXX | \
15364     module_cmds_CXX | \
15365     module_expsym_cmds_CXX | \
15366     old_archive_from_expsyms_cmds_CXX | \
15367     export_symbols_cmds_CXX | \
15368     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15369     postinstall_cmds | postuninstall_cmds | \
15370     old_postinstall_cmds | old_postuninstall_cmds | \
15371     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15372       # Double-quote double-evaled strings.
15373       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15374       ;;
15375     *)
15376       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15377       ;;
15378     esac
15379   done
15380
15381   case $lt_echo in
15382   *'\$0 --fallback-echo"')
15383     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15384     ;;
15385   esac
15386
15387 cfgfile="$ofile"
15388
15389   cat <<__EOF__ >> "$cfgfile"
15390 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15391
15392 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15393
15394 # Shell to use when invoking shell scripts.
15395 SHELL=$lt_SHELL
15396
15397 # Whether or not to build shared libraries.
15398 build_libtool_libs=$enable_shared
15399
15400 # Whether or not to build static libraries.
15401 build_old_libs=$enable_static
15402
15403 # Whether or not to add -lc for building shared libraries.
15404 build_libtool_need_lc=$archive_cmds_need_lc_CXX
15405
15406 # Whether or not to disallow shared libs when runtime libs are static
15407 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15408
15409 # Whether or not to optimize for fast installation.
15410 fast_install=$enable_fast_install
15411
15412 # The host system.
15413 host_alias=$host_alias
15414 host=$host
15415 host_os=$host_os
15416
15417 # The build system.
15418 build_alias=$build_alias
15419 build=$build
15420 build_os=$build_os
15421
15422 # An echo program that does not interpret backslashes.
15423 echo=$lt_echo
15424
15425 # The archiver.
15426 AR=$lt_AR
15427 AR_FLAGS=$lt_AR_FLAGS
15428
15429 # A C compiler.
15430 LTCC=$lt_LTCC
15431
15432 # LTCC compiler flags.
15433 LTCFLAGS=$lt_LTCFLAGS
15434
15435 # A language-specific compiler.
15436 CC=$lt_compiler_CXX
15437
15438 # Is the compiler the GNU C compiler?
15439 with_gcc=$GCC_CXX
15440
15441 # An ERE matcher.
15442 EGREP=$lt_EGREP
15443
15444 # The linker used to build libraries.
15445 LD=$lt_LD_CXX
15446
15447 # Whether we need hard or soft links.
15448 LN_S=$lt_LN_S
15449
15450 # A BSD-compatible nm program.
15451 NM=$lt_NM
15452
15453 # A symbol stripping program
15454 STRIP=$lt_STRIP
15455
15456 # Used to examine libraries when file_magic_cmd begins "file"
15457 MAGIC_CMD=$MAGIC_CMD
15458
15459 # Used on cygwin: DLL creation program.
15460 DLLTOOL="$DLLTOOL"
15461
15462 # Used on cygwin: object dumper.
15463 OBJDUMP="$OBJDUMP"
15464
15465 # Used on cygwin: assembler.
15466 AS="$AS"
15467
15468 # The name of the directory that contains temporary libtool files.
15469 objdir=$objdir
15470
15471 # How to create reloadable object files.
15472 reload_flag=$lt_reload_flag
15473 reload_cmds=$lt_reload_cmds
15474
15475 # How to pass a linker flag through the compiler.
15476 wl=$lt_lt_prog_compiler_wl_CXX
15477
15478 # Object file suffix (normally "o").
15479 objext="$ac_objext"
15480
15481 # Old archive suffix (normally "a").
15482 libext="$libext"
15483
15484 # Shared library suffix (normally ".so").
15485 shrext_cmds='$shrext_cmds'
15486
15487 # Executable file suffix (normally "").
15488 exeext="$exeext"
15489
15490 # Additional compiler flags for building library objects.
15491 pic_flag=$lt_lt_prog_compiler_pic_CXX
15492 pic_mode=$pic_mode
15493
15494 # What is the maximum length of a command?
15495 max_cmd_len=$lt_cv_sys_max_cmd_len
15496
15497 # Does compiler simultaneously support -c and -o options?
15498 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15499
15500 # Must we lock files when doing compilation?
15501 need_locks=$lt_need_locks
15502
15503 # Do we need the lib prefix for modules?
15504 need_lib_prefix=$need_lib_prefix
15505
15506 # Do we need a version for libraries?
15507 need_version=$need_version
15508
15509 # Whether dlopen is supported.
15510 dlopen_support=$enable_dlopen
15511
15512 # Whether dlopen of programs is supported.
15513 dlopen_self=$enable_dlopen_self
15514
15515 # Whether dlopen of statically linked programs is supported.
15516 dlopen_self_static=$enable_dlopen_self_static
15517
15518 # Compiler flag to prevent dynamic linking.
15519 link_static_flag=$lt_lt_prog_compiler_static_CXX
15520
15521 # Compiler flag to turn off builtin functions.
15522 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15523
15524 # Compiler flag to allow reflexive dlopens.
15525 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15526
15527 # Compiler flag to generate shared objects directly from archives.
15528 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15529
15530 # Compiler flag to generate thread-safe objects.
15531 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15532
15533 # Library versioning type.
15534 version_type=$version_type
15535
15536 # Format of library name prefix.
15537 libname_spec=$lt_libname_spec
15538
15539 # List of archive names.  First name is the real one, the rest are links.
15540 # The last name is the one that the linker finds with -lNAME.
15541 library_names_spec=$lt_library_names_spec
15542
15543 # The coded name of the library, if different from the real name.
15544 soname_spec=$lt_soname_spec
15545
15546 # Commands used to build and install an old-style archive.
15547 RANLIB=$lt_RANLIB
15548 old_archive_cmds=$lt_old_archive_cmds_CXX
15549 old_postinstall_cmds=$lt_old_postinstall_cmds
15550 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15551
15552 # Create an old-style archive from a shared archive.
15553 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15554
15555 # Create a temporary old-style archive to link instead of a shared archive.
15556 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15557
15558 # Commands used to build and install a shared archive.
15559 archive_cmds=$lt_archive_cmds_CXX
15560 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15561 postinstall_cmds=$lt_postinstall_cmds
15562 postuninstall_cmds=$lt_postuninstall_cmds
15563
15564 # Commands used to build a loadable module (assumed same as above if empty)
15565 module_cmds=$lt_module_cmds_CXX
15566 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15567
15568 # Commands to strip libraries.
15569 old_striplib=$lt_old_striplib
15570 striplib=$lt_striplib
15571
15572 # Dependencies to place before the objects being linked to create a
15573 # shared library.
15574 predep_objects=$lt_predep_objects_CXX
15575
15576 # Dependencies to place after the objects being linked to create a
15577 # shared library.
15578 postdep_objects=$lt_postdep_objects_CXX
15579
15580 # Dependencies to place before the objects being linked to create a
15581 # shared library.
15582 predeps=$lt_predeps_CXX
15583
15584 # Dependencies to place after the objects being linked to create a
15585 # shared library.
15586 postdeps=$lt_postdeps_CXX
15587
15588 # The directories searched by this compiler when creating a shared
15589 # library
15590 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
15591
15592 # The library search path used internally by the compiler when linking
15593 # a shared library.
15594 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15595
15596 # Method to check whether dependent libraries are shared objects.
15597 deplibs_check_method=$lt_deplibs_check_method
15598
15599 # Command to use when deplibs_check_method == file_magic.
15600 file_magic_cmd=$lt_file_magic_cmd
15601
15602 # Flag that allows shared libraries with undefined symbols to be built.
15603 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15604
15605 # Flag that forces no undefined symbols.
15606 no_undefined_flag=$lt_no_undefined_flag_CXX
15607
15608 # Commands used to finish a libtool library installation in a directory.
15609 finish_cmds=$lt_finish_cmds
15610
15611 # Same as above, but a single script fragment to be evaled but not shown.
15612 finish_eval=$lt_finish_eval
15613
15614 # Take the output of nm and produce a listing of raw symbols and C names.
15615 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15616
15617 # Transform the output of nm in a proper C declaration
15618 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15619
15620 # Transform the output of nm in a C name address pair
15621 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15622
15623 # This is the shared library runtime path variable.
15624 runpath_var=$runpath_var
15625
15626 # This is the shared library path variable.
15627 shlibpath_var=$shlibpath_var
15628
15629 # Is shlibpath searched before the hard-coded library search path?
15630 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15631
15632 # How to hardcode a shared library path into an executable.
15633 hardcode_action=$hardcode_action_CXX
15634
15635 # Whether we should hardcode library paths into libraries.
15636 hardcode_into_libs=$hardcode_into_libs
15637
15638 # Flag to hardcode \$libdir into a binary during linking.
15639 # This must work even if \$libdir does not exist.
15640 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15641
15642 # If ld is used when linking, flag to hardcode \$libdir into
15643 # a binary during linking. This must work even if \$libdir does
15644 # not exist.
15645 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15646
15647 # Whether we need a single -rpath flag with a separated argument.
15648 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15649
15650 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15651 # resulting binary.
15652 hardcode_direct=$hardcode_direct_CXX
15653
15654 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15655 # resulting binary.
15656 hardcode_minus_L=$hardcode_minus_L_CXX
15657
15658 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15659 # the resulting binary.
15660 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15661
15662 # Set to yes if building a shared library automatically hardcodes DIR into the library
15663 # and all subsequent libraries and executables linked against it.
15664 hardcode_automatic=$hardcode_automatic_CXX
15665
15666 # Variables whose values should be saved in libtool wrapper scripts and
15667 # restored at relink time.
15668 variables_saved_for_relink="$variables_saved_for_relink"
15669
15670 # Whether libtool must link a program against all its dependency libraries.
15671 link_all_deplibs=$link_all_deplibs_CXX
15672
15673 # Compile-time system search path for libraries
15674 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15675
15676 # Run-time system search path for libraries
15677 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15678
15679 # Fix the shell variable \$srcfile for the compiler.
15680 fix_srcfile_path=$lt_fix_srcfile_path
15681
15682 # Set to yes if exported symbols are required.
15683 always_export_symbols=$always_export_symbols_CXX
15684
15685 # The commands to list exported symbols.
15686 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15687
15688 # The commands to extract the exported symbol list from a shared archive.
15689 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15690
15691 # Symbols that should not be listed in the preloaded symbols.
15692 exclude_expsyms=$lt_exclude_expsyms_CXX
15693
15694 # Symbols that must always be exported.
15695 include_expsyms=$lt_include_expsyms_CXX
15696
15697 # ### END LIBTOOL TAG CONFIG: $tagname
15698
15699 __EOF__
15700
15701
15702 else
15703   # If there is no Makefile yet, we rely on a make rule to execute
15704   # `config.status --recheck' to rerun these tests and create the
15705   # libtool script then.
15706   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15707   if test -f "$ltmain_in"; then
15708     test -f Makefile && make "$ltmain"
15709   fi
15710 fi
15711
15712
15713 ac_ext=c
15714 ac_cpp='$CPP $CPPFLAGS'
15715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15718
15719 CC=$lt_save_CC
15720 LDCXX=$LD
15721 LD=$lt_save_LD
15722 GCC=$lt_save_GCC
15723 with_gnu_ldcxx=$with_gnu_ld
15724 with_gnu_ld=$lt_save_with_gnu_ld
15725 lt_cv_path_LDCXX=$lt_cv_path_LD
15726 lt_cv_path_LD=$lt_save_path_LD
15727 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15728 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15729
15730         else
15731           tagname=""
15732         fi
15733         ;;
15734
15735       F77)
15736         if test -n "$F77" && test "X$F77" != "Xno"; then
15737           
15738 ac_ext=f
15739 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15740 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15741 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15742
15743
15744 archive_cmds_need_lc_F77=no
15745 allow_undefined_flag_F77=
15746 always_export_symbols_F77=no
15747 archive_expsym_cmds_F77=
15748 export_dynamic_flag_spec_F77=
15749 hardcode_direct_F77=no
15750 hardcode_libdir_flag_spec_F77=
15751 hardcode_libdir_flag_spec_ld_F77=
15752 hardcode_libdir_separator_F77=
15753 hardcode_minus_L_F77=no
15754 hardcode_automatic_F77=no
15755 module_cmds_F77=
15756 module_expsym_cmds_F77=
15757 link_all_deplibs_F77=unknown
15758 old_archive_cmds_F77=$old_archive_cmds
15759 no_undefined_flag_F77=
15760 whole_archive_flag_spec_F77=
15761 enable_shared_with_static_runtimes_F77=no
15762
15763 # Source file extension for f77 test sources.
15764 ac_ext=f
15765
15766 # Object file extension for compiled f77 test sources.
15767 objext=o
15768 objext_F77=$objext
15769
15770 # Code to be used in simple compile tests
15771 lt_simple_compile_test_code="\
15772       subroutine t
15773       return
15774       end
15775 "
15776
15777 # Code to be used in simple link tests
15778 lt_simple_link_test_code="\
15779       program t
15780       end
15781 "
15782
15783 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15784
15785 # If no C compiler was specified, use CC.
15786 LTCC=${LTCC-"$CC"}
15787
15788 # If no C compiler flags were specified, use CFLAGS.
15789 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15790
15791 # Allow CC to be a program name with arguments.
15792 compiler=$CC
15793
15794
15795 # save warnings/boilerplate of simple test code
15796 ac_outfile=conftest.$ac_objext
15797 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15798 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15799 _lt_compiler_boilerplate=`cat conftest.err`
15800 $rm conftest*
15801
15802 ac_outfile=conftest.$ac_objext
15803 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15804 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15805 _lt_linker_boilerplate=`cat conftest.err`
15806 $rm -r conftest*
15807
15808
15809 # Allow CC to be a program name with arguments.
15810 lt_save_CC="$CC"
15811 CC=${F77-"f77"}
15812 compiler=$CC
15813 compiler_F77=$CC
15814 for cc_temp in $compiler""; do
15815   case $cc_temp in
15816     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15817     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15818     \-*) ;;
15819     *) break;;
15820   esac
15821 done
15822 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15823
15824
15825 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15826 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15827 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
15828 echo "${ECHO_T}$can_build_shared" >&6; }
15829
15830 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15831 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15832 test "$can_build_shared" = "no" && enable_shared=no
15833
15834 # On AIX, shared libraries and static libraries use the same namespace, and
15835 # are all built from PIC.
15836 case $host_os in
15837 aix3*)
15838   test "$enable_shared" = yes && enable_static=no
15839   if test -n "$RANLIB"; then
15840     archive_cmds="$archive_cmds~\$RANLIB \$lib"
15841     postinstall_cmds='$RANLIB $lib'
15842   fi
15843   ;;
15844 aix[4-9]*)
15845   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15846     test "$enable_shared" = yes && enable_static=no
15847   fi
15848   ;;
15849 esac
15850 { echo "$as_me:$LINENO: result: $enable_shared" >&5
15851 echo "${ECHO_T}$enable_shared" >&6; }
15852
15853 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15854 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15855 # Make sure either enable_shared or enable_static is yes.
15856 test "$enable_shared" = yes || enable_static=yes
15857 { echo "$as_me:$LINENO: result: $enable_static" >&5
15858 echo "${ECHO_T}$enable_static" >&6; }
15859
15860 GCC_F77="$G77"
15861 LD_F77="$LD"
15862
15863 lt_prog_compiler_wl_F77=
15864 lt_prog_compiler_pic_F77=
15865 lt_prog_compiler_static_F77=
15866
15867 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15868 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15869  
15870   if test "$GCC" = yes; then
15871     lt_prog_compiler_wl_F77='-Wl,'
15872     lt_prog_compiler_static_F77='-static'
15873
15874     case $host_os in
15875       aix*)
15876       # All AIX code is PIC.
15877       if test "$host_cpu" = ia64; then
15878         # AIX 5 now supports IA64 processor
15879         lt_prog_compiler_static_F77='-Bstatic'
15880       fi
15881       ;;
15882
15883     amigaos*)
15884       # FIXME: we need at least 68020 code to build shared libraries, but
15885       # adding the `-m68020' flag to GCC prevents building anything better,
15886       # like `-m68040'.
15887       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15888       ;;
15889
15890     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15891       # PIC is the default for these OSes.
15892       ;;
15893
15894     mingw* | cygwin* | pw32* | os2*)
15895       # This hack is so that the source file can tell whether it is being
15896       # built for inclusion in a dll (and should export symbols for example).
15897       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15898       # (--disable-auto-import) libraries
15899       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15900       ;;
15901
15902     darwin* | rhapsody*)
15903       # PIC is the default on this platform
15904       # Common symbols not allowed in MH_DYLIB files
15905       lt_prog_compiler_pic_F77='-fno-common'
15906       ;;
15907
15908     interix[3-9]*)
15909       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15910       # Instead, we relocate shared libraries at runtime.
15911       ;;
15912
15913     msdosdjgpp*)
15914       # Just because we use GCC doesn't mean we suddenly get shared libraries
15915       # on systems that don't support them.
15916       lt_prog_compiler_can_build_shared_F77=no
15917       enable_shared=no
15918       ;;
15919
15920     sysv4*MP*)
15921       if test -d /usr/nec; then
15922         lt_prog_compiler_pic_F77=-Kconform_pic
15923       fi
15924       ;;
15925
15926     hpux*)
15927       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15928       # not for PA HP-UX.
15929       case $host_cpu in
15930       hppa*64*|ia64*)
15931         # +Z the default
15932         ;;
15933       *)
15934         lt_prog_compiler_pic_F77='-fPIC'
15935         ;;
15936       esac
15937       ;;
15938
15939     *)
15940       lt_prog_compiler_pic_F77='-fPIC'
15941       ;;
15942     esac
15943   else
15944     # PORTME Check for flag to pass linker flags through the system compiler.
15945     case $host_os in
15946     aix*)
15947       lt_prog_compiler_wl_F77='-Wl,'
15948       if test "$host_cpu" = ia64; then
15949         # AIX 5 now supports IA64 processor
15950         lt_prog_compiler_static_F77='-Bstatic'
15951       else
15952         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15953       fi
15954       ;;
15955       darwin*)
15956         # PIC is the default on this platform
15957         # Common symbols not allowed in MH_DYLIB files
15958        case $cc_basename in
15959          xlc*)
15960          lt_prog_compiler_pic_F77='-qnocommon'
15961          lt_prog_compiler_wl_F77='-Wl,'
15962          ;;
15963        esac
15964        ;;
15965
15966     mingw* | cygwin* | pw32* | os2*)
15967       # This hack is so that the source file can tell whether it is being
15968       # built for inclusion in a dll (and should export symbols for example).
15969       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15970       ;;
15971
15972     hpux9* | hpux10* | hpux11*)
15973       lt_prog_compiler_wl_F77='-Wl,'
15974       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15975       # not for PA HP-UX.
15976       case $host_cpu in
15977       hppa*64*|ia64*)
15978         # +Z the default
15979         ;;
15980       *)
15981         lt_prog_compiler_pic_F77='+Z'
15982         ;;
15983       esac
15984       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15985       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15986       ;;
15987
15988     irix5* | irix6* | nonstopux*)
15989       lt_prog_compiler_wl_F77='-Wl,'
15990       # PIC (with -KPIC) is the default.
15991       lt_prog_compiler_static_F77='-non_shared'
15992       ;;
15993
15994     newsos6)
15995       lt_prog_compiler_pic_F77='-KPIC'
15996       lt_prog_compiler_static_F77='-Bstatic'
15997       ;;
15998
15999     linux* | k*bsd*-gnu)
16000       case $cc_basename in
16001       icc* | ecc*)
16002         lt_prog_compiler_wl_F77='-Wl,'
16003         lt_prog_compiler_pic_F77='-KPIC'
16004         lt_prog_compiler_static_F77='-static'
16005         ;;
16006       pgcc* | pgf77* | pgf90* | pgf95*)
16007         # Portland Group compilers (*not* the Pentium gcc compiler,
16008         # which looks to be a dead project)
16009         lt_prog_compiler_wl_F77='-Wl,'
16010         lt_prog_compiler_pic_F77='-fpic'
16011         lt_prog_compiler_static_F77='-Bstatic'
16012         ;;
16013       ccc*)
16014         lt_prog_compiler_wl_F77='-Wl,'
16015         # All Alpha code is PIC.
16016         lt_prog_compiler_static_F77='-non_shared'
16017         ;;
16018       *)
16019         case `$CC -V 2>&1 | sed 5q` in
16020         *Sun\ C*)
16021           # Sun C 5.9
16022           lt_prog_compiler_pic_F77='-KPIC'
16023           lt_prog_compiler_static_F77='-Bstatic'
16024           lt_prog_compiler_wl_F77='-Wl,'
16025           ;;
16026         *Sun\ F*)
16027           # Sun Fortran 8.3 passes all unrecognized flags to the linker
16028           lt_prog_compiler_pic_F77='-KPIC'
16029           lt_prog_compiler_static_F77='-Bstatic'
16030           lt_prog_compiler_wl_F77=''
16031           ;;
16032         esac
16033         ;;
16034       esac
16035       ;;
16036
16037     osf3* | osf4* | osf5*)
16038       lt_prog_compiler_wl_F77='-Wl,'
16039       # All OSF/1 code is PIC.
16040       lt_prog_compiler_static_F77='-non_shared'
16041       ;;
16042
16043     rdos*)
16044       lt_prog_compiler_static_F77='-non_shared'
16045       ;;
16046
16047     solaris*)
16048       lt_prog_compiler_pic_F77='-KPIC'
16049       lt_prog_compiler_static_F77='-Bstatic'
16050       case $cc_basename in
16051       f77* | f90* | f95*)
16052         lt_prog_compiler_wl_F77='-Qoption ld ';;
16053       *)
16054         lt_prog_compiler_wl_F77='-Wl,';;
16055       esac
16056       ;;
16057
16058     sunos4*)
16059       lt_prog_compiler_wl_F77='-Qoption ld '
16060       lt_prog_compiler_pic_F77='-PIC'
16061       lt_prog_compiler_static_F77='-Bstatic'
16062       ;;
16063
16064     sysv4 | sysv4.2uw2* | sysv4.3*)
16065       lt_prog_compiler_wl_F77='-Wl,'
16066       lt_prog_compiler_pic_F77='-KPIC'
16067       lt_prog_compiler_static_F77='-Bstatic'
16068       ;;
16069
16070     sysv4*MP*)
16071       if test -d /usr/nec ;then
16072         lt_prog_compiler_pic_F77='-Kconform_pic'
16073         lt_prog_compiler_static_F77='-Bstatic'
16074       fi
16075       ;;
16076
16077     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16078       lt_prog_compiler_wl_F77='-Wl,'
16079       lt_prog_compiler_pic_F77='-KPIC'
16080       lt_prog_compiler_static_F77='-Bstatic'
16081       ;;
16082
16083     unicos*)
16084       lt_prog_compiler_wl_F77='-Wl,'
16085       lt_prog_compiler_can_build_shared_F77=no
16086       ;;
16087
16088     uts4*)
16089       lt_prog_compiler_pic_F77='-pic'
16090       lt_prog_compiler_static_F77='-Bstatic'
16091       ;;
16092
16093     *)
16094       lt_prog_compiler_can_build_shared_F77=no
16095       ;;
16096     esac
16097   fi
16098
16099 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
16100 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
16101
16102 #
16103 # Check to make sure the PIC flag actually works.
16104 #
16105 if test -n "$lt_prog_compiler_pic_F77"; then
16106   
16107 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
16108 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
16109 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
16110   echo $ECHO_N "(cached) $ECHO_C" >&6
16111 else
16112   lt_cv_prog_compiler_pic_works_F77=no
16113   ac_outfile=conftest.$ac_objext
16114    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16115    lt_compiler_flag="$lt_prog_compiler_pic_F77"
16116    # Insert the option either (1) after the last *FLAGS variable, or
16117    # (2) before a word containing "conftest.", or (3) at the end.
16118    # Note that $ac_compile itself does not contain backslashes and begins
16119    # with a dollar sign (not a hyphen), so the echo should work correctly.
16120    # The option is referenced via a variable to avoid confusing sed.
16121    lt_compile=`echo "$ac_compile" | $SED \
16122    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16123    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16124    -e 's:$: $lt_compiler_flag:'`
16125    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16126    (eval "$lt_compile" 2>conftest.err)
16127    ac_status=$?
16128    cat conftest.err >&5
16129    echo "$as_me:__oline__: \$? = $ac_status" >&5
16130    if (exit $ac_status) && test -s "$ac_outfile"; then
16131      # The compiler can only warn and ignore the option if not recognized
16132      # So say no if there are warnings other than the usual output.
16133      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16134      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16135      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16136        lt_cv_prog_compiler_pic_works_F77=yes
16137      fi
16138    fi
16139    $rm conftest*
16140
16141 fi
16142 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
16143 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
16144
16145 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
16146     case $lt_prog_compiler_pic_F77 in
16147      "" | " "*) ;;
16148      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
16149      esac
16150 else
16151     lt_prog_compiler_pic_F77=
16152      lt_prog_compiler_can_build_shared_F77=no
16153 fi
16154
16155 fi
16156 case $host_os in
16157   # For platforms which do not support PIC, -DPIC is meaningless:
16158   *djgpp*)
16159     lt_prog_compiler_pic_F77=
16160     ;;
16161   *)
16162     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
16163     ;;
16164 esac
16165
16166 #
16167 # Check to make sure the static flag actually works.
16168 #
16169 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
16170 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16171 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16172 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
16173   echo $ECHO_N "(cached) $ECHO_C" >&6
16174 else
16175   lt_cv_prog_compiler_static_works_F77=no
16176    save_LDFLAGS="$LDFLAGS"
16177    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16178    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16179    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16180      # The linker can only warn and ignore the option if not recognized
16181      # So say no if there are warnings
16182      if test -s conftest.err; then
16183        # Append any errors to the config.log.
16184        cat conftest.err 1>&5
16185        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16186        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16187        if diff conftest.exp conftest.er2 >/dev/null; then
16188          lt_cv_prog_compiler_static_works_F77=yes
16189        fi
16190      else
16191        lt_cv_prog_compiler_static_works_F77=yes
16192      fi
16193    fi
16194    $rm -r conftest*
16195    LDFLAGS="$save_LDFLAGS"
16196
16197 fi
16198 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
16199 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
16200
16201 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
16202     :
16203 else
16204     lt_prog_compiler_static_F77=
16205 fi
16206
16207
16208 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16209 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16210 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
16211   echo $ECHO_N "(cached) $ECHO_C" >&6
16212 else
16213   lt_cv_prog_compiler_c_o_F77=no
16214    $rm -r conftest 2>/dev/null
16215    mkdir conftest
16216    cd conftest
16217    mkdir out
16218    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16219
16220    lt_compiler_flag="-o out/conftest2.$ac_objext"
16221    # Insert the option either (1) after the last *FLAGS variable, or
16222    # (2) before a word containing "conftest.", or (3) at the end.
16223    # Note that $ac_compile itself does not contain backslashes and begins
16224    # with a dollar sign (not a hyphen), so the echo should work correctly.
16225    lt_compile=`echo "$ac_compile" | $SED \
16226    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16227    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16228    -e 's:$: $lt_compiler_flag:'`
16229    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16230    (eval "$lt_compile" 2>out/conftest.err)
16231    ac_status=$?
16232    cat out/conftest.err >&5
16233    echo "$as_me:__oline__: \$? = $ac_status" >&5
16234    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16235    then
16236      # The compiler can only warn and ignore the option if not recognized
16237      # So say no if there are warnings
16238      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16239      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16240      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16241        lt_cv_prog_compiler_c_o_F77=yes
16242      fi
16243    fi
16244    chmod u+w . 2>&5
16245    $rm conftest*
16246    # SGI C++ compiler will create directory out/ii_files/ for
16247    # template instantiation
16248    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16249    $rm out/* && rmdir out
16250    cd ..
16251    rmdir conftest
16252    $rm conftest*
16253
16254 fi
16255 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
16256 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
16257
16258
16259 hard_links="nottested"
16260 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
16261   # do not overwrite the value of need_locks provided by the user
16262   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16263 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16264   hard_links=yes
16265   $rm conftest*
16266   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16267   touch conftest.a
16268   ln conftest.a conftest.b 2>&5 || hard_links=no
16269   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16270   { echo "$as_me:$LINENO: result: $hard_links" >&5
16271 echo "${ECHO_T}$hard_links" >&6; }
16272   if test "$hard_links" = no; then
16273     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16274 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16275     need_locks=warn
16276   fi
16277 else
16278   need_locks=no
16279 fi
16280
16281 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16282 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16283
16284   runpath_var=
16285   allow_undefined_flag_F77=
16286   enable_shared_with_static_runtimes_F77=no
16287   archive_cmds_F77=
16288   archive_expsym_cmds_F77=
16289   old_archive_From_new_cmds_F77=
16290   old_archive_from_expsyms_cmds_F77=
16291   export_dynamic_flag_spec_F77=
16292   whole_archive_flag_spec_F77=
16293   thread_safe_flag_spec_F77=
16294   hardcode_libdir_flag_spec_F77=
16295   hardcode_libdir_flag_spec_ld_F77=
16296   hardcode_libdir_separator_F77=
16297   hardcode_direct_F77=no
16298   hardcode_minus_L_F77=no
16299   hardcode_shlibpath_var_F77=unsupported
16300   link_all_deplibs_F77=unknown
16301   hardcode_automatic_F77=no
16302   module_cmds_F77=
16303   module_expsym_cmds_F77=
16304   always_export_symbols_F77=no
16305   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16306   # include_expsyms should be a list of space-separated symbols to be *always*
16307   # included in the symbol list
16308   include_expsyms_F77=
16309   # exclude_expsyms can be an extended regexp of symbols to exclude
16310   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16311   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16312   # as well as any symbol that contains `d'.
16313   exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16314   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16315   # platforms (ab)use it in PIC code, but their linkers get confused if
16316   # the symbol is explicitly referenced.  Since portable code cannot
16317   # rely on this symbol name, it's probably fine to never include it in
16318   # preloaded symbol tables.
16319   # Exclude shared library initialization/finalization symbols.
16320   extract_expsyms_cmds=
16321   # Just being paranoid about ensuring that cc_basename is set.
16322   for cc_temp in $compiler""; do
16323   case $cc_temp in
16324     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16325     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16326     \-*) ;;
16327     *) break;;
16328   esac
16329 done
16330 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16331
16332   case $host_os in
16333   cygwin* | mingw* | pw32*)
16334     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16335     # When not using gcc, we currently assume that we are using
16336     # Microsoft Visual C++.
16337     if test "$GCC" != yes; then
16338       with_gnu_ld=no
16339     fi
16340     ;;
16341   interix*)
16342     # we just hope/assume this is gcc and not c89 (= MSVC++)
16343     with_gnu_ld=yes
16344     ;;
16345   openbsd*)
16346     with_gnu_ld=no
16347     ;;
16348   esac
16349
16350   ld_shlibs_F77=yes
16351   if test "$with_gnu_ld" = yes; then
16352     # If archive_cmds runs LD, not CC, wlarc should be empty
16353     wlarc='${wl}'
16354
16355     # Set some defaults for GNU ld with shared library support. These
16356     # are reset later if shared libraries are not supported. Putting them
16357     # here allows them to be overridden if necessary.
16358     runpath_var=LD_RUN_PATH
16359     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
16360     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
16361     # ancient GNU ld didn't support --whole-archive et. al.
16362     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16363         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16364       else
16365         whole_archive_flag_spec_F77=
16366     fi
16367     supports_anon_versioning=no
16368     case `$LD -v 2>/dev/null` in
16369       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16370       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16371       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16372       *\ 2.11.*) ;; # other 2.11 versions
16373       *) supports_anon_versioning=yes ;;
16374     esac
16375
16376     # See if GNU ld supports shared libraries.
16377     case $host_os in
16378     aix[3-9]*)
16379       # On AIX/PPC, the GNU linker is very broken
16380       if test "$host_cpu" != ia64; then
16381         ld_shlibs_F77=no
16382         cat <<EOF 1>&2
16383
16384 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16385 *** to be unable to reliably create shared libraries on AIX.
16386 *** Therefore, libtool is disabling shared libraries support.  If you
16387 *** really care for shared libraries, you may want to modify your PATH
16388 *** so that a non-GNU linker is found, and then restart.
16389
16390 EOF
16391       fi
16392       ;;
16393
16394     amigaos*)
16395       archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16396       hardcode_libdir_flag_spec_F77='-L$libdir'
16397       hardcode_minus_L_F77=yes
16398
16399       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16400       # that the semantics of dynamic libraries on AmigaOS, at least up
16401       # to version 4, is to share data among multiple programs linked
16402       # with the same dynamic library.  Since this doesn't match the
16403       # behavior of shared libraries on other platforms, we can't use
16404       # them.
16405       ld_shlibs_F77=no
16406       ;;
16407
16408     beos*)
16409       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16410         allow_undefined_flag_F77=unsupported
16411         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16412         # support --undefined.  This deserves some investigation.  FIXME
16413         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16414       else
16415         ld_shlibs_F77=no
16416       fi
16417       ;;
16418
16419     cygwin* | mingw* | pw32*)
16420       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16421       # as there is no search path for DLLs.
16422       hardcode_libdir_flag_spec_F77='-L$libdir'
16423       allow_undefined_flag_F77=unsupported
16424       always_export_symbols_F77=no
16425       enable_shared_with_static_runtimes_F77=yes
16426       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16427
16428       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16429         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16430         # If the export-symbols file already is a .def file (1st line
16431         # is EXPORTS), use it as is; otherwise, prepend...
16432         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16433           cp $export_symbols $output_objdir/$soname.def;
16434         else
16435           echo EXPORTS > $output_objdir/$soname.def;
16436           cat $export_symbols >> $output_objdir/$soname.def;
16437         fi~
16438         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16439       else
16440         ld_shlibs_F77=no
16441       fi
16442       ;;
16443
16444     interix[3-9]*)
16445       hardcode_direct_F77=no
16446       hardcode_shlibpath_var_F77=no
16447       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16448       export_dynamic_flag_spec_F77='${wl}-E'
16449       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16450       # Instead, shared libraries are loaded at an image base (0x10000000 by
16451       # default) and relocated if they conflict, which is a slow very memory
16452       # consuming and fragmenting process.  To avoid this, we pick a random,
16453       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16454       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16455       archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16456       archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16457       ;;
16458
16459     gnu* | linux* | k*bsd*-gnu)
16460       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16461         tmp_addflag=
16462         case $cc_basename,$host_cpu in
16463         pgcc*)                          # Portland Group C compiler
16464           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16465           tmp_addflag=' $pic_flag'
16466           ;;
16467         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16468           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16469           tmp_addflag=' $pic_flag -Mnomain' ;;
16470         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16471           tmp_addflag=' -i_dynamic' ;;
16472         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16473           tmp_addflag=' -i_dynamic -nofor_main' ;;
16474         ifc* | ifort*)                  # Intel Fortran compiler
16475           tmp_addflag=' -nofor_main' ;;
16476         esac
16477         case `$CC -V 2>&1 | sed 5q` in
16478         *Sun\ C*)                       # Sun C 5.9
16479           whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16480           tmp_sharedflag='-G' ;;
16481         *Sun\ F*)                       # Sun Fortran 8.3
16482           tmp_sharedflag='-G' ;;
16483         *)
16484           tmp_sharedflag='-shared' ;;
16485         esac
16486         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16487
16488         if test $supports_anon_versioning = yes; then
16489           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16490   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16491   $echo "local: *; };" >> $output_objdir/$libname.ver~
16492           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16493         fi
16494       else
16495         ld_shlibs_F77=no
16496       fi
16497       ;;
16498
16499     netbsd*)
16500       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16501         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16502         wlarc=
16503       else
16504         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16505         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16506       fi
16507       ;;
16508
16509     solaris*)
16510       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16511         ld_shlibs_F77=no
16512         cat <<EOF 1>&2
16513
16514 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16515 *** create shared libraries on Solaris systems.  Therefore, libtool
16516 *** is disabling shared libraries support.  We urge you to upgrade GNU
16517 *** binutils to release 2.9.1 or newer.  Another option is to modify
16518 *** your PATH or compiler configuration so that the native linker is
16519 *** used, and then restart.
16520
16521 EOF
16522       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16523         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16524         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16525       else
16526         ld_shlibs_F77=no
16527       fi
16528       ;;
16529
16530     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16531       case `$LD -v 2>&1` in
16532         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16533         ld_shlibs_F77=no
16534         cat <<_LT_EOF 1>&2
16535
16536 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16537 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16538 *** is disabling shared libraries support.  We urge you to upgrade GNU
16539 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16540 *** your PATH or compiler configuration so that the native linker is
16541 *** used, and then restart.
16542
16543 _LT_EOF
16544         ;;
16545         *)
16546           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16547             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16548             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16549             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16550           else
16551             ld_shlibs_F77=no
16552           fi
16553         ;;
16554       esac
16555       ;;
16556
16557     sunos4*)
16558       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16559       wlarc=
16560       hardcode_direct_F77=yes
16561       hardcode_shlibpath_var_F77=no
16562       ;;
16563
16564     *)
16565       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16566         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16567         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16568       else
16569         ld_shlibs_F77=no
16570       fi
16571       ;;
16572     esac
16573
16574     if test "$ld_shlibs_F77" = no; then
16575       runpath_var=
16576       hardcode_libdir_flag_spec_F77=
16577       export_dynamic_flag_spec_F77=
16578       whole_archive_flag_spec_F77=
16579     fi
16580   else
16581     # PORTME fill in a description of your system's linker (not GNU ld)
16582     case $host_os in
16583     aix3*)
16584       allow_undefined_flag_F77=unsupported
16585       always_export_symbols_F77=yes
16586       archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16587       # Note: this linker hardcodes the directories in LIBPATH if there
16588       # are no directories specified by -L.
16589       hardcode_minus_L_F77=yes
16590       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16591         # Neither direct hardcoding nor static linking is supported with a
16592         # broken collect2.
16593         hardcode_direct_F77=unsupported
16594       fi
16595       ;;
16596
16597     aix[4-9]*)
16598       if test "$host_cpu" = ia64; then
16599         # On IA64, the linker does run time linking by default, so we don't
16600         # have to do anything special.
16601         aix_use_runtimelinking=no
16602         exp_sym_flag='-Bexport'
16603         no_entry_flag=""
16604       else
16605         # If we're using GNU nm, then we don't want the "-C" option.
16606         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16607         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16608           export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16609         else
16610           export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16611         fi
16612         aix_use_runtimelinking=no
16613
16614         # Test if we are trying to use run time linking or normal
16615         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16616         # need to do runtime linking.
16617         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16618           for ld_flag in $LDFLAGS; do
16619           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16620             aix_use_runtimelinking=yes
16621             break
16622           fi
16623           done
16624           ;;
16625         esac
16626
16627         exp_sym_flag='-bexport'
16628         no_entry_flag='-bnoentry'
16629       fi
16630
16631       # When large executables or shared objects are built, AIX ld can
16632       # have problems creating the table of contents.  If linking a library
16633       # or program results in "error TOC overflow" add -mminimal-toc to
16634       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16635       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16636
16637       archive_cmds_F77=''
16638       hardcode_direct_F77=yes
16639       hardcode_libdir_separator_F77=':'
16640       link_all_deplibs_F77=yes
16641
16642       if test "$GCC" = yes; then
16643         case $host_os in aix4.[012]|aix4.[012].*)
16644         # We only want to do this on AIX 4.2 and lower, the check
16645         # below for broken collect2 doesn't work under 4.3+
16646           collect2name=`${CC} -print-prog-name=collect2`
16647           if test -f "$collect2name" && \
16648            strings "$collect2name" | grep resolve_lib_name >/dev/null
16649           then
16650           # We have reworked collect2
16651           :
16652           else
16653           # We have old collect2
16654           hardcode_direct_F77=unsupported
16655           # It fails to find uninstalled libraries when the uninstalled
16656           # path is not listed in the libpath.  Setting hardcode_minus_L
16657           # to unsupported forces relinking
16658           hardcode_minus_L_F77=yes
16659           hardcode_libdir_flag_spec_F77='-L$libdir'
16660           hardcode_libdir_separator_F77=
16661           fi
16662           ;;
16663         esac
16664         shared_flag='-shared'
16665         if test "$aix_use_runtimelinking" = yes; then
16666           shared_flag="$shared_flag "'${wl}-G'
16667         fi
16668       else
16669         # not using gcc
16670         if test "$host_cpu" = ia64; then
16671         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16672         # chokes on -Wl,-G. The following line is correct:
16673           shared_flag='-G'
16674         else
16675           if test "$aix_use_runtimelinking" = yes; then
16676             shared_flag='${wl}-G'
16677           else
16678             shared_flag='${wl}-bM:SRE'
16679           fi
16680         fi
16681       fi
16682
16683       # It seems that -bexpall does not export symbols beginning with
16684       # underscore (_), so it is better to generate a list of symbols to export.
16685       always_export_symbols_F77=yes
16686       if test "$aix_use_runtimelinking" = yes; then
16687         # Warning - without using the other runtime loading flags (-brtl),
16688         # -berok will link without error, but may produce a broken library.
16689         allow_undefined_flag_F77='-berok'
16690        # Determine the default libpath from the value encoded in an empty executable.
16691        cat >conftest.$ac_ext <<_ACEOF
16692       program main
16693
16694       end
16695 _ACEOF
16696 rm -f conftest.$ac_objext conftest$ac_exeext
16697 if { (ac_try="$ac_link"
16698 case "(($ac_try" in
16699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16700   *) ac_try_echo=$ac_try;;
16701 esac
16702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16703   (eval "$ac_link") 2>conftest.er1
16704   ac_status=$?
16705   grep -v '^ *+' conftest.er1 >conftest.err
16706   rm -f conftest.er1
16707   cat conftest.err >&5
16708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16709   (exit $ac_status); } && {
16710          test -z "$ac_f77_werror_flag" ||
16711          test ! -s conftest.err
16712        } && test -s conftest$ac_exeext &&
16713        $as_test_x conftest$ac_exeext; then
16714   
16715 lt_aix_libpath_sed='
16716     /Import File Strings/,/^$/ {
16717         /^0/ {
16718             s/^0  *\(.*\)$/\1/
16719             p
16720         }
16721     }'
16722 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16723 # Check for a 64-bit object if we didn't find anything.
16724 if test -z "$aix_libpath"; then
16725   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16726 fi
16727 else
16728   echo "$as_me: failed program was:" >&5
16729 sed 's/^/| /' conftest.$ac_ext >&5
16730
16731         
16732 fi
16733
16734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16735       conftest$ac_exeext conftest.$ac_ext
16736 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16737
16738        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16739         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16740        else
16741         if test "$host_cpu" = ia64; then
16742           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16743           allow_undefined_flag_F77="-z nodefs"
16744           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16745         else
16746          # Determine the default libpath from the value encoded in an empty executable.
16747          cat >conftest.$ac_ext <<_ACEOF
16748       program main
16749
16750       end
16751 _ACEOF
16752 rm -f conftest.$ac_objext conftest$ac_exeext
16753 if { (ac_try="$ac_link"
16754 case "(($ac_try" in
16755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16756   *) ac_try_echo=$ac_try;;
16757 esac
16758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16759   (eval "$ac_link") 2>conftest.er1
16760   ac_status=$?
16761   grep -v '^ *+' conftest.er1 >conftest.err
16762   rm -f conftest.er1
16763   cat conftest.err >&5
16764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765   (exit $ac_status); } && {
16766          test -z "$ac_f77_werror_flag" ||
16767          test ! -s conftest.err
16768        } && test -s conftest$ac_exeext &&
16769        $as_test_x conftest$ac_exeext; then
16770   
16771 lt_aix_libpath_sed='
16772     /Import File Strings/,/^$/ {
16773         /^0/ {
16774             s/^0  *\(.*\)$/\1/
16775             p
16776         }
16777     }'
16778 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16779 # Check for a 64-bit object if we didn't find anything.
16780 if test -z "$aix_libpath"; then
16781   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16782 fi
16783 else
16784   echo "$as_me: failed program was:" >&5
16785 sed 's/^/| /' conftest.$ac_ext >&5
16786
16787         
16788 fi
16789
16790 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16791       conftest$ac_exeext conftest.$ac_ext
16792 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16793
16794          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16795           # Warning - without using the other run time loading flags,
16796           # -berok will link without error, but may produce a broken library.
16797           no_undefined_flag_F77=' ${wl}-bernotok'
16798           allow_undefined_flag_F77=' ${wl}-berok'
16799           # Exported symbols can be pulled into shared objects from archives
16800           whole_archive_flag_spec_F77='$convenience'
16801           archive_cmds_need_lc_F77=yes
16802           # This is similar to how AIX traditionally builds its shared libraries.
16803           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16804         fi
16805       fi
16806       ;;
16807
16808     amigaos*)
16809       archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16810       hardcode_libdir_flag_spec_F77='-L$libdir'
16811       hardcode_minus_L_F77=yes
16812       # see comment about different semantics on the GNU ld section
16813       ld_shlibs_F77=no
16814       ;;
16815
16816     bsdi[45]*)
16817       export_dynamic_flag_spec_F77=-rdynamic
16818       ;;
16819
16820     cygwin* | mingw* | pw32*)
16821       # When not using gcc, we currently assume that we are using
16822       # Microsoft Visual C++.
16823       # hardcode_libdir_flag_spec is actually meaningless, as there is
16824       # no search path for DLLs.
16825       hardcode_libdir_flag_spec_F77=' '
16826       allow_undefined_flag_F77=unsupported
16827       # Tell ltmain to make .lib files, not .a files.
16828       libext=lib
16829       # Tell ltmain to make .dll files, not .so files.
16830       shrext_cmds=".dll"
16831       # FIXME: Setting linknames here is a bad hack.
16832       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16833       # The linker will automatically build a .lib file if we build a DLL.
16834       old_archive_From_new_cmds_F77='true'
16835       # FIXME: Should let the user specify the lib program.
16836       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
16837       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16838       enable_shared_with_static_runtimes_F77=yes
16839       ;;
16840
16841     darwin* | rhapsody*)
16842       case $host_os in
16843         rhapsody* | darwin1.[012])
16844          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16845          ;;
16846        *) # Darwin 1.3 on
16847          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16848            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16849          else
16850            case ${MACOSX_DEPLOYMENT_TARGET} in
16851              10.[012])
16852                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16853                ;;
16854              10.*)
16855                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16856                ;;
16857            esac
16858          fi
16859          ;;
16860       esac
16861       archive_cmds_need_lc_F77=no
16862       hardcode_direct_F77=no
16863       hardcode_automatic_F77=yes
16864       hardcode_shlibpath_var_F77=unsupported
16865       whole_archive_flag_spec_F77=''
16866       link_all_deplibs_F77=yes
16867     if test "$GCC" = yes ; then
16868         output_verbose_link_cmd='echo'
16869         archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16870         module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16871         archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
16872         module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
16873     else
16874       case $cc_basename in
16875         xlc*)
16876          output_verbose_link_cmd='echo'
16877          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16878          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16879           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16880          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16881           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16882           ;;
16883        *)
16884          ld_shlibs_F77=no
16885           ;;
16886       esac
16887     fi
16888       ;;
16889
16890     dgux*)
16891       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16892       hardcode_libdir_flag_spec_F77='-L$libdir'
16893       hardcode_shlibpath_var_F77=no
16894       ;;
16895
16896     freebsd1*)
16897       ld_shlibs_F77=no
16898       ;;
16899
16900     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16901     # support.  Future versions do this automatically, but an explicit c++rt0.o
16902     # does not break anything, and helps significantly (at the cost of a little
16903     # extra space).
16904     freebsd2.2*)
16905       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16906       hardcode_libdir_flag_spec_F77='-R$libdir'
16907       hardcode_direct_F77=yes
16908       hardcode_shlibpath_var_F77=no
16909       ;;
16910
16911     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16912     freebsd2*)
16913       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16914       hardcode_direct_F77=yes
16915       hardcode_minus_L_F77=yes
16916       hardcode_shlibpath_var_F77=no
16917       ;;
16918
16919     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16920     freebsd* | dragonfly*)
16921       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16922       hardcode_libdir_flag_spec_F77='-R$libdir'
16923       hardcode_direct_F77=yes
16924       hardcode_shlibpath_var_F77=no
16925       ;;
16926
16927     hpux9*)
16928       if test "$GCC" = yes; then
16929         archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16930       else
16931         archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16932       fi
16933       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16934       hardcode_libdir_separator_F77=:
16935       hardcode_direct_F77=yes
16936
16937       # hardcode_minus_L: Not really in the search PATH,
16938       # but as the default location of the library.
16939       hardcode_minus_L_F77=yes
16940       export_dynamic_flag_spec_F77='${wl}-E'
16941       ;;
16942
16943     hpux10*)
16944       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16945         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16946       else
16947         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16948       fi
16949       if test "$with_gnu_ld" = no; then
16950         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16951         hardcode_libdir_separator_F77=:
16952
16953         hardcode_direct_F77=yes
16954         export_dynamic_flag_spec_F77='${wl}-E'
16955
16956         # hardcode_minus_L: Not really in the search PATH,
16957         # but as the default location of the library.
16958         hardcode_minus_L_F77=yes
16959       fi
16960       ;;
16961
16962     hpux11*)
16963       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16964         case $host_cpu in
16965         hppa*64*)
16966           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16967           ;;
16968         ia64*)
16969           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16970           ;;
16971         *)
16972           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16973           ;;
16974         esac
16975       else
16976         case $host_cpu in
16977         hppa*64*)
16978           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16979           ;;
16980         ia64*)
16981           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16982           ;;
16983         *)
16984           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16985           ;;
16986         esac
16987       fi
16988       if test "$with_gnu_ld" = no; then
16989         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16990         hardcode_libdir_separator_F77=:
16991
16992         case $host_cpu in
16993         hppa*64*|ia64*)
16994           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16995           hardcode_direct_F77=no
16996           hardcode_shlibpath_var_F77=no
16997           ;;
16998         *)
16999           hardcode_direct_F77=yes
17000           export_dynamic_flag_spec_F77='${wl}-E'
17001
17002           # hardcode_minus_L: Not really in the search PATH,
17003           # but as the default location of the library.
17004           hardcode_minus_L_F77=yes
17005           ;;
17006         esac
17007       fi
17008       ;;
17009
17010     irix5* | irix6* | nonstopux*)
17011       if test "$GCC" = yes; then
17012         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17013       else
17014         archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17015         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
17016       fi
17017       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17018       hardcode_libdir_separator_F77=:
17019       link_all_deplibs_F77=yes
17020       ;;
17021
17022     netbsd*)
17023       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17024         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17025       else
17026         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17027       fi
17028       hardcode_libdir_flag_spec_F77='-R$libdir'
17029       hardcode_direct_F77=yes
17030       hardcode_shlibpath_var_F77=no
17031       ;;
17032
17033     newsos6)
17034       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17035       hardcode_direct_F77=yes
17036       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17037       hardcode_libdir_separator_F77=:
17038       hardcode_shlibpath_var_F77=no
17039       ;;
17040
17041     openbsd*)
17042       if test -f /usr/libexec/ld.so; then
17043         hardcode_direct_F77=yes
17044         hardcode_shlibpath_var_F77=no
17045         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17046           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17047           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17048           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17049           export_dynamic_flag_spec_F77='${wl}-E'
17050         else
17051           case $host_os in
17052            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17053              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17054              hardcode_libdir_flag_spec_F77='-R$libdir'
17055              ;;
17056            *)
17057              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17058              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17059              ;;
17060           esac
17061         fi
17062       else
17063         ld_shlibs_F77=no
17064       fi
17065       ;;
17066
17067     os2*)
17068       hardcode_libdir_flag_spec_F77='-L$libdir'
17069       hardcode_minus_L_F77=yes
17070       allow_undefined_flag_F77=unsupported
17071       archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
17072       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17073       ;;
17074
17075     osf3*)
17076       if test "$GCC" = yes; then
17077         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
17078         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17079       else
17080         allow_undefined_flag_F77=' -expect_unresolved \*'
17081         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17082       fi
17083       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17084       hardcode_libdir_separator_F77=:
17085       ;;
17086
17087     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17088       if test "$GCC" = yes; then
17089         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
17090         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17091         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17092       else
17093         allow_undefined_flag_F77=' -expect_unresolved \*'
17094         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17095         archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17096         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17097
17098         # Both c and cxx compiler support -rpath directly
17099         hardcode_libdir_flag_spec_F77='-rpath $libdir'
17100       fi
17101       hardcode_libdir_separator_F77=:
17102       ;;
17103
17104     solaris*)
17105       no_undefined_flag_F77=' -z text'
17106       if test "$GCC" = yes; then
17107         wlarc='${wl}'
17108         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17109         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17110           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17111       else
17112         wlarc=''
17113         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17114         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17115         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17116       fi
17117       hardcode_libdir_flag_spec_F77='-R$libdir'
17118       hardcode_shlibpath_var_F77=no
17119       case $host_os in
17120       solaris2.[0-5] | solaris2.[0-5].*) ;;
17121       *)
17122         # The compiler driver will combine and reorder linker options,
17123         # but understands `-z linker_flag'.  GCC discards it without `$wl',
17124         # but is careful enough not to reorder.
17125         # Supported since Solaris 2.6 (maybe 2.5.1?)
17126         if test "$GCC" = yes; then
17127           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17128         else
17129           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
17130         fi
17131         ;;
17132       esac
17133       link_all_deplibs_F77=yes
17134       ;;
17135
17136     sunos4*)
17137       if test "x$host_vendor" = xsequent; then
17138         # Use $CC to link under sequent, because it throws in some extra .o
17139         # files that make .init and .fini sections work.
17140         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17141       else
17142         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17143       fi
17144       hardcode_libdir_flag_spec_F77='-L$libdir'
17145       hardcode_direct_F77=yes
17146       hardcode_minus_L_F77=yes
17147       hardcode_shlibpath_var_F77=no
17148       ;;
17149
17150     sysv4)
17151       case $host_vendor in
17152         sni)
17153           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17154           hardcode_direct_F77=yes # is this really true???
17155         ;;
17156         siemens)
17157           ## LD is ld it makes a PLAMLIB
17158           ## CC just makes a GrossModule.
17159           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17160           reload_cmds_F77='$CC -r -o $output$reload_objs'
17161           hardcode_direct_F77=no
17162         ;;
17163         motorola)
17164           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17165           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
17166         ;;
17167       esac
17168       runpath_var='LD_RUN_PATH'
17169       hardcode_shlibpath_var_F77=no
17170       ;;
17171
17172     sysv4.3*)
17173       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17174       hardcode_shlibpath_var_F77=no
17175       export_dynamic_flag_spec_F77='-Bexport'
17176       ;;
17177
17178     sysv4*MP*)
17179       if test -d /usr/nec; then
17180         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17181         hardcode_shlibpath_var_F77=no
17182         runpath_var=LD_RUN_PATH
17183         hardcode_runpath_var=yes
17184         ld_shlibs_F77=yes
17185       fi
17186       ;;
17187
17188     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17189       no_undefined_flag_F77='${wl}-z,text'
17190       archive_cmds_need_lc_F77=no
17191       hardcode_shlibpath_var_F77=no
17192       runpath_var='LD_RUN_PATH'
17193
17194       if test "$GCC" = yes; then
17195         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17196         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17197       else
17198         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17199         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17200       fi
17201       ;;
17202
17203     sysv5* | sco3.2v5* | sco5v6*)
17204       # Note: We can NOT use -z defs as we might desire, because we do not
17205       # link with -lc, and that would cause any symbols used from libc to
17206       # always be unresolved, which means just about no library would
17207       # ever link correctly.  If we're not using GNU ld we use -z text
17208       # though, which does catch some bad symbols but isn't as heavy-handed
17209       # as -z defs.
17210       no_undefined_flag_F77='${wl}-z,text'
17211       allow_undefined_flag_F77='${wl}-z,nodefs'
17212       archive_cmds_need_lc_F77=no
17213       hardcode_shlibpath_var_F77=no
17214       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17215       hardcode_libdir_separator_F77=':'
17216       link_all_deplibs_F77=yes
17217       export_dynamic_flag_spec_F77='${wl}-Bexport'
17218       runpath_var='LD_RUN_PATH'
17219
17220       if test "$GCC" = yes; then
17221         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17222         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17223       else
17224         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17225         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17226       fi
17227       ;;
17228
17229     uts4*)
17230       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17231       hardcode_libdir_flag_spec_F77='-L$libdir'
17232       hardcode_shlibpath_var_F77=no
17233       ;;
17234
17235     *)
17236       ld_shlibs_F77=no
17237       ;;
17238     esac
17239   fi
17240
17241 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
17242 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
17243 test "$ld_shlibs_F77" = no && can_build_shared=no
17244
17245 #
17246 # Do we need to explicitly link libc?
17247 #
17248 case "x$archive_cmds_need_lc_F77" in
17249 x|xyes)
17250   # Assume -lc should be added
17251   archive_cmds_need_lc_F77=yes
17252
17253   if test "$enable_shared" = yes && test "$GCC" = yes; then
17254     case $archive_cmds_F77 in
17255     *'~'*)
17256       # FIXME: we may have to deal with multi-command sequences.
17257       ;;
17258     '$CC '*)
17259       # Test whether the compiler implicitly links with -lc since on some
17260       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17261       # to ld, don't add -lc before -lgcc.
17262       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17263 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17264       $rm conftest*
17265       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17266
17267       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17268   (eval $ac_compile) 2>&5
17269   ac_status=$?
17270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271   (exit $ac_status); } 2>conftest.err; then
17272         soname=conftest
17273         lib=conftest
17274         libobjs=conftest.$ac_objext
17275         deplibs=
17276         wl=$lt_prog_compiler_wl_F77
17277         pic_flag=$lt_prog_compiler_pic_F77
17278         compiler_flags=-v
17279         linker_flags=-v
17280         verstring=
17281         output_objdir=.
17282         libname=conftest
17283         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
17284         allow_undefined_flag_F77=
17285         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17286   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17287   ac_status=$?
17288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17289   (exit $ac_status); }
17290         then
17291           archive_cmds_need_lc_F77=no
17292         else
17293           archive_cmds_need_lc_F77=yes
17294         fi
17295         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
17296       else
17297         cat conftest.err 1>&5
17298       fi
17299       $rm conftest*
17300       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
17301 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
17302       ;;
17303     esac
17304   fi
17305   ;;
17306 esac
17307
17308 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17309 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17310 library_names_spec=
17311 libname_spec='lib$name'
17312 soname_spec=
17313 shrext_cmds=".so"
17314 postinstall_cmds=
17315 postuninstall_cmds=
17316 finish_cmds=
17317 finish_eval=
17318 shlibpath_var=
17319 shlibpath_overrides_runpath=unknown
17320 version_type=none
17321 dynamic_linker="$host_os ld.so"
17322 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17323
17324 need_lib_prefix=unknown
17325 hardcode_into_libs=no
17326
17327 # when you set need_version to no, make sure it does not cause -set_version
17328 # flags to be left without arguments
17329 need_version=unknown
17330
17331 case $host_os in
17332 aix3*)
17333   version_type=linux
17334   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17335   shlibpath_var=LIBPATH
17336
17337   # AIX 3 has no versioning support, so we append a major version to the name.
17338   soname_spec='${libname}${release}${shared_ext}$major'
17339   ;;
17340
17341 aix[4-9]*)
17342   version_type=linux
17343   need_lib_prefix=no
17344   need_version=no
17345   hardcode_into_libs=yes
17346   if test "$host_cpu" = ia64; then
17347     # AIX 5 supports IA64
17348     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17349     shlibpath_var=LD_LIBRARY_PATH
17350   else
17351     # With GCC up to 2.95.x, collect2 would create an import file
17352     # for dependence libraries.  The import file would start with
17353     # the line `#! .'.  This would cause the generated library to
17354     # depend on `.', always an invalid library.  This was fixed in
17355     # development snapshots of GCC prior to 3.0.
17356     case $host_os in
17357       aix4 | aix4.[01] | aix4.[01].*)
17358       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17359            echo ' yes '
17360            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17361         :
17362       else
17363         can_build_shared=no
17364       fi
17365       ;;
17366     esac
17367     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17368     # soname into executable. Probably we can add versioning support to
17369     # collect2, so additional links can be useful in future.
17370     if test "$aix_use_runtimelinking" = yes; then
17371       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17372       # instead of lib<name>.a to let people know that these are not
17373       # typical AIX shared libraries.
17374       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17375     else
17376       # We preserve .a as extension for shared libraries through AIX4.2
17377       # and later when we are not doing run time linking.
17378       library_names_spec='${libname}${release}.a $libname.a'
17379       soname_spec='${libname}${release}${shared_ext}$major'
17380     fi
17381     shlibpath_var=LIBPATH
17382   fi
17383   ;;
17384
17385 amigaos*)
17386   library_names_spec='$libname.ixlibrary $libname.a'
17387   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17388   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
17389   ;;
17390
17391 beos*)
17392   library_names_spec='${libname}${shared_ext}'
17393   dynamic_linker="$host_os ld.so"
17394   shlibpath_var=LIBRARY_PATH
17395   ;;
17396
17397 bsdi[45]*)
17398   version_type=linux
17399   need_version=no
17400   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17401   soname_spec='${libname}${release}${shared_ext}$major'
17402   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17403   shlibpath_var=LD_LIBRARY_PATH
17404   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17405   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17406   # the default ld.so.conf also contains /usr/contrib/lib and
17407   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17408   # libtool to hard-code these into programs
17409   ;;
17410
17411 cygwin* | mingw* | pw32*)
17412   version_type=windows
17413   shrext_cmds=".dll"
17414   need_version=no
17415   need_lib_prefix=no
17416
17417   case $GCC,$host_os in
17418   yes,cygwin* | yes,mingw* | yes,pw32*)
17419     library_names_spec='$libname.dll.a'
17420     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17421     postinstall_cmds='base_file=`basename \${file}`~
17422       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17423       dldir=$destdir/`dirname \$dlpath`~
17424       test -d \$dldir || mkdir -p \$dldir~
17425       $install_prog $dir/$dlname \$dldir/$dlname~
17426       chmod a+x \$dldir/$dlname'
17427     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17428       dlpath=$dir/\$dldll~
17429        $rm \$dlpath'
17430     shlibpath_overrides_runpath=yes
17431
17432     case $host_os in
17433     cygwin*)
17434       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17435       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17436       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17437       ;;
17438     mingw*)
17439       # MinGW DLLs use traditional 'lib' prefix
17440       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17441       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17442       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17443         # It is most probably a Windows format PATH printed by
17444         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17445         # path with ; separators, and with drive letters. We can handle the
17446         # drive letters (cygwin fileutils understands them), so leave them,
17447         # especially as we might pass files found there to a mingw objdump,
17448         # which wouldn't understand a cygwinified path. Ahh.
17449         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17450       else
17451         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17452       fi
17453       ;;
17454     pw32*)
17455       # pw32 DLLs use 'pw' prefix rather than 'lib'
17456       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17457       ;;
17458     esac
17459     ;;
17460
17461   *)
17462     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17463     ;;
17464   esac
17465   dynamic_linker='Win32 ld.exe'
17466   # FIXME: first we should search . and the directory the executable is in
17467   shlibpath_var=PATH
17468   ;;
17469
17470 darwin* | rhapsody*)
17471   dynamic_linker="$host_os dyld"
17472   version_type=darwin
17473   need_lib_prefix=no
17474   need_version=no
17475   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17476   soname_spec='${libname}${release}${major}$shared_ext'
17477   shlibpath_overrides_runpath=yes
17478   shlibpath_var=DYLD_LIBRARY_PATH
17479   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17480    
17481   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17482   ;;
17483
17484 dgux*)
17485   version_type=linux
17486   need_lib_prefix=no
17487   need_version=no
17488   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17489   soname_spec='${libname}${release}${shared_ext}$major'
17490   shlibpath_var=LD_LIBRARY_PATH
17491   ;;
17492
17493 freebsd1*)
17494   dynamic_linker=no
17495   ;;
17496
17497 freebsd* | dragonfly*)
17498   # DragonFly does not have aout.  When/if they implement a new
17499   # versioning mechanism, adjust this.
17500   if test -x /usr/bin/objformat; then
17501     objformat=`/usr/bin/objformat`
17502   else
17503     case $host_os in
17504     freebsd[123]*) objformat=aout ;;
17505     *) objformat=elf ;;
17506     esac
17507   fi
17508   version_type=freebsd-$objformat
17509   case $version_type in
17510     freebsd-elf*)
17511       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17512       need_version=no
17513       need_lib_prefix=no
17514       ;;
17515     freebsd-*)
17516       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17517       need_version=yes
17518       ;;
17519   esac
17520   shlibpath_var=LD_LIBRARY_PATH
17521   case $host_os in
17522   freebsd2*)
17523     shlibpath_overrides_runpath=yes
17524     ;;
17525   freebsd3.[01]* | freebsdelf3.[01]*)
17526     shlibpath_overrides_runpath=yes
17527     hardcode_into_libs=yes
17528     ;;
17529   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17530   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17531     shlibpath_overrides_runpath=no
17532     hardcode_into_libs=yes
17533     ;;
17534   *) # from 4.6 on, and DragonFly
17535     shlibpath_overrides_runpath=yes
17536     hardcode_into_libs=yes
17537     ;;
17538   esac
17539   ;;
17540
17541 gnu*)
17542   version_type=linux
17543   need_lib_prefix=no
17544   need_version=no
17545   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17546   soname_spec='${libname}${release}${shared_ext}$major'
17547   shlibpath_var=LD_LIBRARY_PATH
17548   hardcode_into_libs=yes
17549   ;;
17550
17551 hpux9* | hpux10* | hpux11*)
17552   # Give a soname corresponding to the major version so that dld.sl refuses to
17553   # link against other versions.
17554   version_type=sunos
17555   need_lib_prefix=no
17556   need_version=no
17557   case $host_cpu in
17558   ia64*)
17559     shrext_cmds='.so'
17560     hardcode_into_libs=yes
17561     dynamic_linker="$host_os dld.so"
17562     shlibpath_var=LD_LIBRARY_PATH
17563     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17564     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17565     soname_spec='${libname}${release}${shared_ext}$major'
17566     if test "X$HPUX_IA64_MODE" = X32; then
17567       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17568     else
17569       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17570     fi
17571     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17572     ;;
17573    hppa*64*)
17574      shrext_cmds='.sl'
17575      hardcode_into_libs=yes
17576      dynamic_linker="$host_os dld.sl"
17577      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17578      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17579      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17580      soname_spec='${libname}${release}${shared_ext}$major'
17581      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17582      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17583      ;;
17584    *)
17585     shrext_cmds='.sl'
17586     dynamic_linker="$host_os dld.sl"
17587     shlibpath_var=SHLIB_PATH
17588     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17589     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17590     soname_spec='${libname}${release}${shared_ext}$major'
17591     ;;
17592   esac
17593   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17594   postinstall_cmds='chmod 555 $lib'
17595   ;;
17596
17597 interix[3-9]*)
17598   version_type=linux
17599   need_lib_prefix=no
17600   need_version=no
17601   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17602   soname_spec='${libname}${release}${shared_ext}$major'
17603   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17604   shlibpath_var=LD_LIBRARY_PATH
17605   shlibpath_overrides_runpath=no
17606   hardcode_into_libs=yes
17607   ;;
17608
17609 irix5* | irix6* | nonstopux*)
17610   case $host_os in
17611     nonstopux*) version_type=nonstopux ;;
17612     *)
17613         if test "$lt_cv_prog_gnu_ld" = yes; then
17614                 version_type=linux
17615         else
17616                 version_type=irix
17617         fi ;;
17618   esac
17619   need_lib_prefix=no
17620   need_version=no
17621   soname_spec='${libname}${release}${shared_ext}$major'
17622   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17623   case $host_os in
17624   irix5* | nonstopux*)
17625     libsuff= shlibsuff=
17626     ;;
17627   *)
17628     case $LD in # libtool.m4 will add one of these switches to LD
17629     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17630       libsuff= shlibsuff= libmagic=32-bit;;
17631     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17632       libsuff=32 shlibsuff=N32 libmagic=N32;;
17633     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17634       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17635     *) libsuff= shlibsuff= libmagic=never-match;;
17636     esac
17637     ;;
17638   esac
17639   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17640   shlibpath_overrides_runpath=no
17641   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17642   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17643   hardcode_into_libs=yes
17644   ;;
17645
17646 # No shared lib support for Linux oldld, aout, or coff.
17647 linux*oldld* | linux*aout* | linux*coff*)
17648   dynamic_linker=no
17649   ;;
17650
17651 # This must be Linux ELF.
17652 linux* | k*bsd*-gnu)
17653   version_type=linux
17654   need_lib_prefix=no
17655   need_version=no
17656   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17657   soname_spec='${libname}${release}${shared_ext}$major'
17658   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17659   shlibpath_var=LD_LIBRARY_PATH
17660   shlibpath_overrides_runpath=no
17661   # This implies no fast_install, which is unacceptable.
17662   # Some rework will be needed to allow for fast_install
17663   # before this can be enabled.
17664   hardcode_into_libs=yes
17665
17666   # Append ld.so.conf contents to the search path
17667   if test -f /etc/ld.so.conf; then
17668     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17669     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17670   fi
17671
17672   # We used to test for /lib/ld.so.1 and disable shared libraries on
17673   # powerpc, because MkLinux only supported shared libraries with the
17674   # GNU dynamic linker.  Since this was broken with cross compilers,
17675   # most powerpc-linux boxes support dynamic linking these days and
17676   # people can always --disable-shared, the test was removed, and we
17677   # assume the GNU/Linux dynamic linker is in use.
17678   dynamic_linker='GNU/Linux ld.so'
17679   ;;
17680
17681 netbsd*)
17682   version_type=sunos
17683   need_lib_prefix=no
17684   need_version=no
17685   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17686     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17687     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17688     dynamic_linker='NetBSD (a.out) ld.so'
17689   else
17690     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17691     soname_spec='${libname}${release}${shared_ext}$major'
17692     dynamic_linker='NetBSD ld.elf_so'
17693   fi
17694   shlibpath_var=LD_LIBRARY_PATH
17695   shlibpath_overrides_runpath=yes
17696   hardcode_into_libs=yes
17697   ;;
17698
17699 newsos6)
17700   version_type=linux
17701   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17702   shlibpath_var=LD_LIBRARY_PATH
17703   shlibpath_overrides_runpath=yes
17704   ;;
17705
17706 nto-qnx*)
17707   version_type=linux
17708   need_lib_prefix=no
17709   need_version=no
17710   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17711   soname_spec='${libname}${release}${shared_ext}$major'
17712   shlibpath_var=LD_LIBRARY_PATH
17713   shlibpath_overrides_runpath=yes
17714   ;;
17715
17716 openbsd*)
17717   version_type=sunos
17718   sys_lib_dlsearch_path_spec="/usr/lib"
17719   need_lib_prefix=no
17720   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17721   case $host_os in
17722     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17723     *)                         need_version=no  ;;
17724   esac
17725   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17726   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17727   shlibpath_var=LD_LIBRARY_PATH
17728   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17729     case $host_os in
17730       openbsd2.[89] | openbsd2.[89].*)
17731         shlibpath_overrides_runpath=no
17732         ;;
17733       *)
17734         shlibpath_overrides_runpath=yes
17735         ;;
17736       esac
17737   else
17738     shlibpath_overrides_runpath=yes
17739   fi
17740   ;;
17741
17742 os2*)
17743   libname_spec='$name'
17744   shrext_cmds=".dll"
17745   need_lib_prefix=no
17746   library_names_spec='$libname${shared_ext} $libname.a'
17747   dynamic_linker='OS/2 ld.exe'
17748   shlibpath_var=LIBPATH
17749   ;;
17750
17751 osf3* | osf4* | osf5*)
17752   version_type=osf
17753   need_lib_prefix=no
17754   need_version=no
17755   soname_spec='${libname}${release}${shared_ext}$major'
17756   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17757   shlibpath_var=LD_LIBRARY_PATH
17758   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17759   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17760   ;;
17761
17762 rdos*)
17763   dynamic_linker=no
17764   ;;
17765
17766 solaris*)
17767   version_type=linux
17768   need_lib_prefix=no
17769   need_version=no
17770   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17771   soname_spec='${libname}${release}${shared_ext}$major'
17772   shlibpath_var=LD_LIBRARY_PATH
17773   shlibpath_overrides_runpath=yes
17774   hardcode_into_libs=yes
17775   # ldd complains unless libraries are executable
17776   postinstall_cmds='chmod +x $lib'
17777   ;;
17778
17779 sunos4*)
17780   version_type=sunos
17781   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17782   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17783   shlibpath_var=LD_LIBRARY_PATH
17784   shlibpath_overrides_runpath=yes
17785   if test "$with_gnu_ld" = yes; then
17786     need_lib_prefix=no
17787   fi
17788   need_version=yes
17789   ;;
17790
17791 sysv4 | sysv4.3*)
17792   version_type=linux
17793   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17794   soname_spec='${libname}${release}${shared_ext}$major'
17795   shlibpath_var=LD_LIBRARY_PATH
17796   case $host_vendor in
17797     sni)
17798       shlibpath_overrides_runpath=no
17799       need_lib_prefix=no
17800       export_dynamic_flag_spec='${wl}-Blargedynsym'
17801       runpath_var=LD_RUN_PATH
17802       ;;
17803     siemens)
17804       need_lib_prefix=no
17805       ;;
17806     motorola)
17807       need_lib_prefix=no
17808       need_version=no
17809       shlibpath_overrides_runpath=no
17810       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17811       ;;
17812   esac
17813   ;;
17814
17815 sysv4*MP*)
17816   if test -d /usr/nec ;then
17817     version_type=linux
17818     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17819     soname_spec='$libname${shared_ext}.$major'
17820     shlibpath_var=LD_LIBRARY_PATH
17821   fi
17822   ;;
17823
17824 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17825   version_type=freebsd-elf
17826   need_lib_prefix=no
17827   need_version=no
17828   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17829   soname_spec='${libname}${release}${shared_ext}$major'
17830   shlibpath_var=LD_LIBRARY_PATH
17831   hardcode_into_libs=yes
17832   if test "$with_gnu_ld" = yes; then
17833     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17834     shlibpath_overrides_runpath=no
17835   else
17836     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17837     shlibpath_overrides_runpath=yes
17838     case $host_os in
17839       sco3.2v5*)
17840         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17841         ;;
17842     esac
17843   fi
17844   sys_lib_dlsearch_path_spec='/usr/lib'
17845   ;;
17846
17847 uts4*)
17848   version_type=linux
17849   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17850   soname_spec='${libname}${release}${shared_ext}$major'
17851   shlibpath_var=LD_LIBRARY_PATH
17852   ;;
17853
17854 *)
17855   dynamic_linker=no
17856   ;;
17857 esac
17858 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17859 echo "${ECHO_T}$dynamic_linker" >&6; }
17860 test "$dynamic_linker" = no && can_build_shared=no
17861
17862 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17863   echo $ECHO_N "(cached) $ECHO_C" >&6
17864 else
17865   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
17866 fi
17867
17868 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17869 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17870   echo $ECHO_N "(cached) $ECHO_C" >&6
17871 else
17872   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
17873 fi
17874
17875 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17876
17877 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17878 if test "$GCC" = yes; then
17879   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17880 fi
17881
17882 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17883 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17884 hardcode_action_F77=
17885 if test -n "$hardcode_libdir_flag_spec_F77" || \
17886    test -n "$runpath_var_F77" || \
17887    test "X$hardcode_automatic_F77" = "Xyes" ; then
17888
17889   # We can hardcode non-existant directories.
17890   if test "$hardcode_direct_F77" != no &&
17891      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17892      # have to relink, otherwise we might link with an installed library
17893      # when we should be linking with a yet-to-be-installed one
17894      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17895      test "$hardcode_minus_L_F77" != no; then
17896     # Linking always hardcodes the temporary library directory.
17897     hardcode_action_F77=relink
17898   else
17899     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17900     hardcode_action_F77=immediate
17901   fi
17902 else
17903   # We cannot hardcode anything, or else we can only hardcode existing
17904   # directories.
17905   hardcode_action_F77=unsupported
17906 fi
17907 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17908 echo "${ECHO_T}$hardcode_action_F77" >&6; }
17909
17910 if test "$hardcode_action_F77" = relink; then
17911   # Fast installation is not supported
17912   enable_fast_install=no
17913 elif test "$shlibpath_overrides_runpath" = yes ||
17914      test "$enable_shared" = no; then
17915   # Fast installation is not necessary
17916   enable_fast_install=needless
17917 fi
17918
17919
17920 # The else clause should only fire when bootstrapping the
17921 # libtool distribution, otherwise you forgot to ship ltmain.sh
17922 # with your package, and you will get complaints that there are
17923 # no rules to generate ltmain.sh.
17924 if test -f "$ltmain"; then
17925   # See if we are running on zsh, and set the options which allow our commands through
17926   # without removal of \ escapes.
17927   if test -n "${ZSH_VERSION+set}" ; then
17928     setopt NO_GLOB_SUBST
17929   fi
17930   # Now quote all the things that may contain metacharacters while being
17931   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17932   # variables and quote the copies for generation of the libtool script.
17933   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17934     SED SHELL STRIP \
17935     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17936     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17937     deplibs_check_method reload_flag reload_cmds need_locks \
17938     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17939     lt_cv_sys_global_symbol_to_c_name_address \
17940     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17941     old_postinstall_cmds old_postuninstall_cmds \
17942     compiler_F77 \
17943     CC_F77 \
17944     LD_F77 \
17945     lt_prog_compiler_wl_F77 \
17946     lt_prog_compiler_pic_F77 \
17947     lt_prog_compiler_static_F77 \
17948     lt_prog_compiler_no_builtin_flag_F77 \
17949     export_dynamic_flag_spec_F77 \
17950     thread_safe_flag_spec_F77 \
17951     whole_archive_flag_spec_F77 \
17952     enable_shared_with_static_runtimes_F77 \
17953     old_archive_cmds_F77 \
17954     old_archive_from_new_cmds_F77 \
17955     predep_objects_F77 \
17956     postdep_objects_F77 \
17957     predeps_F77 \
17958     postdeps_F77 \
17959     compiler_lib_search_path_F77 \
17960     compiler_lib_search_dirs_F77 \
17961     archive_cmds_F77 \
17962     archive_expsym_cmds_F77 \
17963     postinstall_cmds_F77 \
17964     postuninstall_cmds_F77 \
17965     old_archive_from_expsyms_cmds_F77 \
17966     allow_undefined_flag_F77 \
17967     no_undefined_flag_F77 \
17968     export_symbols_cmds_F77 \
17969     hardcode_libdir_flag_spec_F77 \
17970     hardcode_libdir_flag_spec_ld_F77 \
17971     hardcode_libdir_separator_F77 \
17972     hardcode_automatic_F77 \
17973     module_cmds_F77 \
17974     module_expsym_cmds_F77 \
17975     lt_cv_prog_compiler_c_o_F77 \
17976     fix_srcfile_path_F77 \
17977     exclude_expsyms_F77 \
17978     include_expsyms_F77; do
17979
17980     case $var in
17981     old_archive_cmds_F77 | \
17982     old_archive_from_new_cmds_F77 | \
17983     archive_cmds_F77 | \
17984     archive_expsym_cmds_F77 | \
17985     module_cmds_F77 | \
17986     module_expsym_cmds_F77 | \
17987     old_archive_from_expsyms_cmds_F77 | \
17988     export_symbols_cmds_F77 | \
17989     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17990     postinstall_cmds | postuninstall_cmds | \
17991     old_postinstall_cmds | old_postuninstall_cmds | \
17992     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17993       # Double-quote double-evaled strings.
17994       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17995       ;;
17996     *)
17997       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17998       ;;
17999     esac
18000   done
18001
18002   case $lt_echo in
18003   *'\$0 --fallback-echo"')
18004     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18005     ;;
18006   esac
18007
18008 cfgfile="$ofile"
18009
18010   cat <<__EOF__ >> "$cfgfile"
18011 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18012
18013 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18014
18015 # Shell to use when invoking shell scripts.
18016 SHELL=$lt_SHELL
18017
18018 # Whether or not to build shared libraries.
18019 build_libtool_libs=$enable_shared
18020
18021 # Whether or not to build static libraries.
18022 build_old_libs=$enable_static
18023
18024 # Whether or not to add -lc for building shared libraries.
18025 build_libtool_need_lc=$archive_cmds_need_lc_F77
18026
18027 # Whether or not to disallow shared libs when runtime libs are static
18028 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
18029
18030 # Whether or not to optimize for fast installation.
18031 fast_install=$enable_fast_install
18032
18033 # The host system.
18034 host_alias=$host_alias
18035 host=$host
18036 host_os=$host_os
18037
18038 # The build system.
18039 build_alias=$build_alias
18040 build=$build
18041 build_os=$build_os
18042
18043 # An echo program that does not interpret backslashes.
18044 echo=$lt_echo
18045
18046 # The archiver.
18047 AR=$lt_AR
18048 AR_FLAGS=$lt_AR_FLAGS
18049
18050 # A C compiler.
18051 LTCC=$lt_LTCC
18052
18053 # LTCC compiler flags.
18054 LTCFLAGS=$lt_LTCFLAGS
18055
18056 # A language-specific compiler.
18057 CC=$lt_compiler_F77
18058
18059 # Is the compiler the GNU C compiler?
18060 with_gcc=$GCC_F77
18061
18062 # An ERE matcher.
18063 EGREP=$lt_EGREP
18064
18065 # The linker used to build libraries.
18066 LD=$lt_LD_F77
18067
18068 # Whether we need hard or soft links.
18069 LN_S=$lt_LN_S
18070
18071 # A BSD-compatible nm program.
18072 NM=$lt_NM
18073
18074 # A symbol stripping program
18075 STRIP=$lt_STRIP
18076
18077 # Used to examine libraries when file_magic_cmd begins "file"
18078 MAGIC_CMD=$MAGIC_CMD
18079
18080 # Used on cygwin: DLL creation program.
18081 DLLTOOL="$DLLTOOL"
18082
18083 # Used on cygwin: object dumper.
18084 OBJDUMP="$OBJDUMP"
18085
18086 # Used on cygwin: assembler.
18087 AS="$AS"
18088
18089 # The name of the directory that contains temporary libtool files.
18090 objdir=$objdir
18091
18092 # How to create reloadable object files.
18093 reload_flag=$lt_reload_flag
18094 reload_cmds=$lt_reload_cmds
18095
18096 # How to pass a linker flag through the compiler.
18097 wl=$lt_lt_prog_compiler_wl_F77
18098
18099 # Object file suffix (normally "o").
18100 objext="$ac_objext"
18101
18102 # Old archive suffix (normally "a").
18103 libext="$libext"
18104
18105 # Shared library suffix (normally ".so").
18106 shrext_cmds='$shrext_cmds'
18107
18108 # Executable file suffix (normally "").
18109 exeext="$exeext"
18110
18111 # Additional compiler flags for building library objects.
18112 pic_flag=$lt_lt_prog_compiler_pic_F77
18113 pic_mode=$pic_mode
18114
18115 # What is the maximum length of a command?
18116 max_cmd_len=$lt_cv_sys_max_cmd_len
18117
18118 # Does compiler simultaneously support -c and -o options?
18119 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
18120
18121 # Must we lock files when doing compilation?
18122 need_locks=$lt_need_locks
18123
18124 # Do we need the lib prefix for modules?
18125 need_lib_prefix=$need_lib_prefix
18126
18127 # Do we need a version for libraries?
18128 need_version=$need_version
18129
18130 # Whether dlopen is supported.
18131 dlopen_support=$enable_dlopen
18132
18133 # Whether dlopen of programs is supported.
18134 dlopen_self=$enable_dlopen_self
18135
18136 # Whether dlopen of statically linked programs is supported.
18137 dlopen_self_static=$enable_dlopen_self_static
18138
18139 # Compiler flag to prevent dynamic linking.
18140 link_static_flag=$lt_lt_prog_compiler_static_F77
18141
18142 # Compiler flag to turn off builtin functions.
18143 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
18144
18145 # Compiler flag to allow reflexive dlopens.
18146 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
18147
18148 # Compiler flag to generate shared objects directly from archives.
18149 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
18150
18151 # Compiler flag to generate thread-safe objects.
18152 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
18153
18154 # Library versioning type.
18155 version_type=$version_type
18156
18157 # Format of library name prefix.
18158 libname_spec=$lt_libname_spec
18159
18160 # List of archive names.  First name is the real one, the rest are links.
18161 # The last name is the one that the linker finds with -lNAME.
18162 library_names_spec=$lt_library_names_spec
18163
18164 # The coded name of the library, if different from the real name.
18165 soname_spec=$lt_soname_spec
18166
18167 # Commands used to build and install an old-style archive.
18168 RANLIB=$lt_RANLIB
18169 old_archive_cmds=$lt_old_archive_cmds_F77
18170 old_postinstall_cmds=$lt_old_postinstall_cmds
18171 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18172
18173 # Create an old-style archive from a shared archive.
18174 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
18175
18176 # Create a temporary old-style archive to link instead of a shared archive.
18177 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
18178
18179 # Commands used to build and install a shared archive.
18180 archive_cmds=$lt_archive_cmds_F77
18181 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
18182 postinstall_cmds=$lt_postinstall_cmds
18183 postuninstall_cmds=$lt_postuninstall_cmds
18184
18185 # Commands used to build a loadable module (assumed same as above if empty)
18186 module_cmds=$lt_module_cmds_F77
18187 module_expsym_cmds=$lt_module_expsym_cmds_F77
18188
18189 # Commands to strip libraries.
18190 old_striplib=$lt_old_striplib
18191 striplib=$lt_striplib
18192
18193 # Dependencies to place before the objects being linked to create a
18194 # shared library.
18195 predep_objects=$lt_predep_objects_F77
18196
18197 # Dependencies to place after the objects being linked to create a
18198 # shared library.
18199 postdep_objects=$lt_postdep_objects_F77
18200
18201 # Dependencies to place before the objects being linked to create a
18202 # shared library.
18203 predeps=$lt_predeps_F77
18204
18205 # Dependencies to place after the objects being linked to create a
18206 # shared library.
18207 postdeps=$lt_postdeps_F77
18208
18209 # The directories searched by this compiler when creating a shared
18210 # library
18211 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
18212
18213 # The library search path used internally by the compiler when linking
18214 # a shared library.
18215 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
18216
18217 # Method to check whether dependent libraries are shared objects.
18218 deplibs_check_method=$lt_deplibs_check_method
18219
18220 # Command to use when deplibs_check_method == file_magic.
18221 file_magic_cmd=$lt_file_magic_cmd
18222
18223 # Flag that allows shared libraries with undefined symbols to be built.
18224 allow_undefined_flag=$lt_allow_undefined_flag_F77
18225
18226 # Flag that forces no undefined symbols.
18227 no_undefined_flag=$lt_no_undefined_flag_F77
18228
18229 # Commands used to finish a libtool library installation in a directory.
18230 finish_cmds=$lt_finish_cmds
18231
18232 # Same as above, but a single script fragment to be evaled but not shown.
18233 finish_eval=$lt_finish_eval
18234
18235 # Take the output of nm and produce a listing of raw symbols and C names.
18236 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18237
18238 # Transform the output of nm in a proper C declaration
18239 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18240
18241 # Transform the output of nm in a C name address pair
18242 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18243
18244 # This is the shared library runtime path variable.
18245 runpath_var=$runpath_var
18246
18247 # This is the shared library path variable.
18248 shlibpath_var=$shlibpath_var
18249
18250 # Is shlibpath searched before the hard-coded library search path?
18251 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18252
18253 # How to hardcode a shared library path into an executable.
18254 hardcode_action=$hardcode_action_F77
18255
18256 # Whether we should hardcode library paths into libraries.
18257 hardcode_into_libs=$hardcode_into_libs
18258
18259 # Flag to hardcode \$libdir into a binary during linking.
18260 # This must work even if \$libdir does not exist.
18261 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
18262
18263 # If ld is used when linking, flag to hardcode \$libdir into
18264 # a binary during linking. This must work even if \$libdir does
18265 # not exist.
18266 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
18267
18268 # Whether we need a single -rpath flag with a separated argument.
18269 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
18270
18271 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18272 # resulting binary.
18273 hardcode_direct=$hardcode_direct_F77
18274
18275 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18276 # resulting binary.
18277 hardcode_minus_L=$hardcode_minus_L_F77
18278
18279 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18280 # the resulting binary.
18281 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
18282
18283 # Set to yes if building a shared library automatically hardcodes DIR into the library
18284 # and all subsequent libraries and executables linked against it.
18285 hardcode_automatic=$hardcode_automatic_F77
18286
18287 # Variables whose values should be saved in libtool wrapper scripts and
18288 # restored at relink time.
18289 variables_saved_for_relink="$variables_saved_for_relink"
18290
18291 # Whether libtool must link a program against all its dependency libraries.
18292 link_all_deplibs=$link_all_deplibs_F77
18293
18294 # Compile-time system search path for libraries
18295 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18296
18297 # Run-time system search path for libraries
18298 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18299
18300 # Fix the shell variable \$srcfile for the compiler.
18301 fix_srcfile_path=$lt_fix_srcfile_path
18302
18303 # Set to yes if exported symbols are required.
18304 always_export_symbols=$always_export_symbols_F77
18305
18306 # The commands to list exported symbols.
18307 export_symbols_cmds=$lt_export_symbols_cmds_F77
18308
18309 # The commands to extract the exported symbol list from a shared archive.
18310 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18311
18312 # Symbols that should not be listed in the preloaded symbols.
18313 exclude_expsyms=$lt_exclude_expsyms_F77
18314
18315 # Symbols that must always be exported.
18316 include_expsyms=$lt_include_expsyms_F77
18317
18318 # ### END LIBTOOL TAG CONFIG: $tagname
18319
18320 __EOF__
18321
18322
18323 else
18324   # If there is no Makefile yet, we rely on a make rule to execute
18325   # `config.status --recheck' to rerun these tests and create the
18326   # libtool script then.
18327   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18328   if test -f "$ltmain_in"; then
18329     test -f Makefile && make "$ltmain"
18330   fi
18331 fi
18332
18333
18334 ac_ext=c
18335 ac_cpp='$CPP $CPPFLAGS'
18336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18339
18340 CC="$lt_save_CC"
18341
18342         else
18343           tagname=""
18344         fi
18345         ;;
18346
18347       GCJ)
18348         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
18349           
18350
18351 # Source file extension for Java test sources.
18352 ac_ext=java
18353
18354 # Object file extension for compiled Java test sources.
18355 objext=o
18356 objext_GCJ=$objext
18357
18358 # Code to be used in simple compile tests
18359 lt_simple_compile_test_code="class foo {}"
18360
18361 # Code to be used in simple link tests
18362 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
18363
18364 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18365
18366 # If no C compiler was specified, use CC.
18367 LTCC=${LTCC-"$CC"}
18368
18369 # If no C compiler flags were specified, use CFLAGS.
18370 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18371
18372 # Allow CC to be a program name with arguments.
18373 compiler=$CC
18374
18375
18376 # save warnings/boilerplate of simple test code
18377 ac_outfile=conftest.$ac_objext
18378 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18379 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18380 _lt_compiler_boilerplate=`cat conftest.err`
18381 $rm conftest*
18382
18383 ac_outfile=conftest.$ac_objext
18384 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18385 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18386 _lt_linker_boilerplate=`cat conftest.err`
18387 $rm -r conftest*
18388
18389
18390 # Allow CC to be a program name with arguments.
18391 lt_save_CC="$CC"
18392 CC=${GCJ-"gcj"}
18393 compiler=$CC
18394 compiler_GCJ=$CC
18395 for cc_temp in $compiler""; do
18396   case $cc_temp in
18397     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18398     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18399     \-*) ;;
18400     *) break;;
18401   esac
18402 done
18403 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18404
18405
18406 # GCJ did not exist at the time GCC didn't implicitly link libc in.
18407 archive_cmds_need_lc_GCJ=no
18408
18409 old_archive_cmds_GCJ=$old_archive_cmds
18410
18411 ## CAVEAT EMPTOR:
18412 ## There is no encapsulation within the following macros, do not change
18413 ## the running order or otherwise move them around unless you know exactly
18414 ## what you are doing...
18415
18416 lt_prog_compiler_no_builtin_flag_GCJ=
18417
18418 if test "$GCC" = yes; then
18419   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
18420
18421   
18422 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18423 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
18424 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
18425   echo $ECHO_N "(cached) $ECHO_C" >&6
18426 else
18427   lt_cv_prog_compiler_rtti_exceptions=no
18428   ac_outfile=conftest.$ac_objext
18429    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18430    lt_compiler_flag="-fno-rtti -fno-exceptions"
18431    # Insert the option either (1) after the last *FLAGS variable, or
18432    # (2) before a word containing "conftest.", or (3) at the end.
18433    # Note that $ac_compile itself does not contain backslashes and begins
18434    # with a dollar sign (not a hyphen), so the echo should work correctly.
18435    # The option is referenced via a variable to avoid confusing sed.
18436    lt_compile=`echo "$ac_compile" | $SED \
18437    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18438    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18439    -e 's:$: $lt_compiler_flag:'`
18440    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
18441    (eval "$lt_compile" 2>conftest.err)
18442    ac_status=$?
18443    cat conftest.err >&5
18444    echo "$as_me:__oline__: \$? = $ac_status" >&5
18445    if (exit $ac_status) && test -s "$ac_outfile"; then
18446      # The compiler can only warn and ignore the option if not recognized
18447      # So say no if there are warnings other than the usual output.
18448      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18449      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18450      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18451        lt_cv_prog_compiler_rtti_exceptions=yes
18452      fi
18453    fi
18454    $rm conftest*
18455
18456 fi
18457 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18458 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
18459
18460 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18461     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18462 else
18463     :
18464 fi
18465
18466 fi
18467
18468 lt_prog_compiler_wl_GCJ=
18469 lt_prog_compiler_pic_GCJ=
18470 lt_prog_compiler_static_GCJ=
18471
18472 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18473 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18474  
18475   if test "$GCC" = yes; then
18476     lt_prog_compiler_wl_GCJ='-Wl,'
18477     lt_prog_compiler_static_GCJ='-static'
18478
18479     case $host_os in
18480       aix*)
18481       # All AIX code is PIC.
18482       if test "$host_cpu" = ia64; then
18483         # AIX 5 now supports IA64 processor
18484         lt_prog_compiler_static_GCJ='-Bstatic'
18485       fi
18486       ;;
18487
18488     amigaos*)
18489       # FIXME: we need at least 68020 code to build shared libraries, but
18490       # adding the `-m68020' flag to GCC prevents building anything better,
18491       # like `-m68040'.
18492       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18493       ;;
18494
18495     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18496       # PIC is the default for these OSes.
18497       ;;
18498
18499     mingw* | cygwin* | pw32* | os2*)
18500       # This hack is so that the source file can tell whether it is being
18501       # built for inclusion in a dll (and should export symbols for example).
18502       # Although the cygwin gcc ignores -fPIC, still need this for old-style
18503       # (--disable-auto-import) libraries
18504       
18505       ;;
18506
18507     darwin* | rhapsody*)
18508       # PIC is the default on this platform
18509       # Common symbols not allowed in MH_DYLIB files
18510       lt_prog_compiler_pic_GCJ='-fno-common'
18511       ;;
18512
18513     interix[3-9]*)
18514       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18515       # Instead, we relocate shared libraries at runtime.
18516       ;;
18517
18518     msdosdjgpp*)
18519       # Just because we use GCC doesn't mean we suddenly get shared libraries
18520       # on systems that don't support them.
18521       lt_prog_compiler_can_build_shared_GCJ=no
18522       enable_shared=no
18523       ;;
18524
18525     sysv4*MP*)
18526       if test -d /usr/nec; then
18527         lt_prog_compiler_pic_GCJ=-Kconform_pic
18528       fi
18529       ;;
18530
18531     hpux*)
18532       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18533       # not for PA HP-UX.
18534       case $host_cpu in
18535       hppa*64*|ia64*)
18536         # +Z the default
18537         ;;
18538       *)
18539         lt_prog_compiler_pic_GCJ='-fPIC'
18540         ;;
18541       esac
18542       ;;
18543
18544     *)
18545       lt_prog_compiler_pic_GCJ='-fPIC'
18546       ;;
18547     esac
18548   else
18549     # PORTME Check for flag to pass linker flags through the system compiler.
18550     case $host_os in
18551     aix*)
18552       lt_prog_compiler_wl_GCJ='-Wl,'
18553       if test "$host_cpu" = ia64; then
18554         # AIX 5 now supports IA64 processor
18555         lt_prog_compiler_static_GCJ='-Bstatic'
18556       else
18557         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18558       fi
18559       ;;
18560       darwin*)
18561         # PIC is the default on this platform
18562         # Common symbols not allowed in MH_DYLIB files
18563        case $cc_basename in
18564          xlc*)
18565          lt_prog_compiler_pic_GCJ='-qnocommon'
18566          lt_prog_compiler_wl_GCJ='-Wl,'
18567          ;;
18568        esac
18569        ;;
18570
18571     mingw* | cygwin* | pw32* | os2*)
18572       # This hack is so that the source file can tell whether it is being
18573       # built for inclusion in a dll (and should export symbols for example).
18574       
18575       ;;
18576
18577     hpux9* | hpux10* | hpux11*)
18578       lt_prog_compiler_wl_GCJ='-Wl,'
18579       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18580       # not for PA HP-UX.
18581       case $host_cpu in
18582       hppa*64*|ia64*)
18583         # +Z the default
18584         ;;
18585       *)
18586         lt_prog_compiler_pic_GCJ='+Z'
18587         ;;
18588       esac
18589       # Is there a better lt_prog_compiler_static that works with the bundled CC?
18590       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18591       ;;
18592
18593     irix5* | irix6* | nonstopux*)
18594       lt_prog_compiler_wl_GCJ='-Wl,'
18595       # PIC (with -KPIC) is the default.
18596       lt_prog_compiler_static_GCJ='-non_shared'
18597       ;;
18598
18599     newsos6)
18600       lt_prog_compiler_pic_GCJ='-KPIC'
18601       lt_prog_compiler_static_GCJ='-Bstatic'
18602       ;;
18603
18604     linux* | k*bsd*-gnu)
18605       case $cc_basename in
18606       icc* | ecc*)
18607         lt_prog_compiler_wl_GCJ='-Wl,'
18608         lt_prog_compiler_pic_GCJ='-KPIC'
18609         lt_prog_compiler_static_GCJ='-static'
18610         ;;
18611       pgcc* | pgf77* | pgf90* | pgf95*)
18612         # Portland Group compilers (*not* the Pentium gcc compiler,
18613         # which looks to be a dead project)
18614         lt_prog_compiler_wl_GCJ='-Wl,'
18615         lt_prog_compiler_pic_GCJ='-fpic'
18616         lt_prog_compiler_static_GCJ='-Bstatic'
18617         ;;
18618       ccc*)
18619         lt_prog_compiler_wl_GCJ='-Wl,'
18620         # All Alpha code is PIC.
18621         lt_prog_compiler_static_GCJ='-non_shared'
18622         ;;
18623       *)
18624         case `$CC -V 2>&1 | sed 5q` in
18625         *Sun\ C*)
18626           # Sun C 5.9
18627           lt_prog_compiler_pic_GCJ='-KPIC'
18628           lt_prog_compiler_static_GCJ='-Bstatic'
18629           lt_prog_compiler_wl_GCJ='-Wl,'
18630           ;;
18631         *Sun\ F*)
18632           # Sun Fortran 8.3 passes all unrecognized flags to the linker
18633           lt_prog_compiler_pic_GCJ='-KPIC'
18634           lt_prog_compiler_static_GCJ='-Bstatic'
18635           lt_prog_compiler_wl_GCJ=''
18636           ;;
18637         esac
18638         ;;
18639       esac
18640       ;;
18641
18642     osf3* | osf4* | osf5*)
18643       lt_prog_compiler_wl_GCJ='-Wl,'
18644       # All OSF/1 code is PIC.
18645       lt_prog_compiler_static_GCJ='-non_shared'
18646       ;;
18647
18648     rdos*)
18649       lt_prog_compiler_static_GCJ='-non_shared'
18650       ;;
18651
18652     solaris*)
18653       lt_prog_compiler_pic_GCJ='-KPIC'
18654       lt_prog_compiler_static_GCJ='-Bstatic'
18655       case $cc_basename in
18656       f77* | f90* | f95*)
18657         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18658       *)
18659         lt_prog_compiler_wl_GCJ='-Wl,';;
18660       esac
18661       ;;
18662
18663     sunos4*)
18664       lt_prog_compiler_wl_GCJ='-Qoption ld '
18665       lt_prog_compiler_pic_GCJ='-PIC'
18666       lt_prog_compiler_static_GCJ='-Bstatic'
18667       ;;
18668
18669     sysv4 | sysv4.2uw2* | sysv4.3*)
18670       lt_prog_compiler_wl_GCJ='-Wl,'
18671       lt_prog_compiler_pic_GCJ='-KPIC'
18672       lt_prog_compiler_static_GCJ='-Bstatic'
18673       ;;
18674
18675     sysv4*MP*)
18676       if test -d /usr/nec ;then
18677         lt_prog_compiler_pic_GCJ='-Kconform_pic'
18678         lt_prog_compiler_static_GCJ='-Bstatic'
18679       fi
18680       ;;
18681
18682     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18683       lt_prog_compiler_wl_GCJ='-Wl,'
18684       lt_prog_compiler_pic_GCJ='-KPIC'
18685       lt_prog_compiler_static_GCJ='-Bstatic'
18686       ;;
18687
18688     unicos*)
18689       lt_prog_compiler_wl_GCJ='-Wl,'
18690       lt_prog_compiler_can_build_shared_GCJ=no
18691       ;;
18692
18693     uts4*)
18694       lt_prog_compiler_pic_GCJ='-pic'
18695       lt_prog_compiler_static_GCJ='-Bstatic'
18696       ;;
18697
18698     *)
18699       lt_prog_compiler_can_build_shared_GCJ=no
18700       ;;
18701     esac
18702   fi
18703
18704 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18705 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
18706
18707 #
18708 # Check to make sure the PIC flag actually works.
18709 #
18710 if test -n "$lt_prog_compiler_pic_GCJ"; then
18711   
18712 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18713 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
18714 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
18715   echo $ECHO_N "(cached) $ECHO_C" >&6
18716 else
18717   lt_cv_prog_compiler_pic_works_GCJ=no
18718   ac_outfile=conftest.$ac_objext
18719    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18720    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18721    # Insert the option either (1) after the last *FLAGS variable, or
18722    # (2) before a word containing "conftest.", or (3) at the end.
18723    # Note that $ac_compile itself does not contain backslashes and begins
18724    # with a dollar sign (not a hyphen), so the echo should work correctly.
18725    # The option is referenced via a variable to avoid confusing sed.
18726    lt_compile=`echo "$ac_compile" | $SED \
18727    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18728    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18729    -e 's:$: $lt_compiler_flag:'`
18730    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
18731    (eval "$lt_compile" 2>conftest.err)
18732    ac_status=$?
18733    cat conftest.err >&5
18734    echo "$as_me:__oline__: \$? = $ac_status" >&5
18735    if (exit $ac_status) && test -s "$ac_outfile"; then
18736      # The compiler can only warn and ignore the option if not recognized
18737      # So say no if there are warnings other than the usual output.
18738      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18739      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18740      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18741        lt_cv_prog_compiler_pic_works_GCJ=yes
18742      fi
18743    fi
18744    $rm conftest*
18745
18746 fi
18747 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
18748 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
18749
18750 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
18751     case $lt_prog_compiler_pic_GCJ in
18752      "" | " "*) ;;
18753      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18754      esac
18755 else
18756     lt_prog_compiler_pic_GCJ=
18757      lt_prog_compiler_can_build_shared_GCJ=no
18758 fi
18759
18760 fi
18761 case $host_os in
18762   # For platforms which do not support PIC, -DPIC is meaningless:
18763   *djgpp*)
18764     lt_prog_compiler_pic_GCJ=
18765     ;;
18766   *)
18767     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18768     ;;
18769 esac
18770
18771 #
18772 # Check to make sure the static flag actually works.
18773 #
18774 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18775 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18776 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18777 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
18778   echo $ECHO_N "(cached) $ECHO_C" >&6
18779 else
18780   lt_cv_prog_compiler_static_works_GCJ=no
18781    save_LDFLAGS="$LDFLAGS"
18782    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18783    echo "$lt_simple_link_test_code" > conftest.$ac_ext
18784    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18785      # The linker can only warn and ignore the option if not recognized
18786      # So say no if there are warnings
18787      if test -s conftest.err; then
18788        # Append any errors to the config.log.
18789        cat conftest.err 1>&5
18790        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18791        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18792        if diff conftest.exp conftest.er2 >/dev/null; then
18793          lt_cv_prog_compiler_static_works_GCJ=yes
18794        fi
18795      else
18796        lt_cv_prog_compiler_static_works_GCJ=yes
18797      fi
18798    fi
18799    $rm -r conftest*
18800    LDFLAGS="$save_LDFLAGS"
18801
18802 fi
18803 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
18804 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
18805
18806 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
18807     :
18808 else
18809     lt_prog_compiler_static_GCJ=
18810 fi
18811
18812
18813 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18814 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18815 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18816   echo $ECHO_N "(cached) $ECHO_C" >&6
18817 else
18818   lt_cv_prog_compiler_c_o_GCJ=no
18819    $rm -r conftest 2>/dev/null
18820    mkdir conftest
18821    cd conftest
18822    mkdir out
18823    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18824
18825    lt_compiler_flag="-o out/conftest2.$ac_objext"
18826    # Insert the option either (1) after the last *FLAGS variable, or
18827    # (2) before a word containing "conftest.", or (3) at the end.
18828    # Note that $ac_compile itself does not contain backslashes and begins
18829    # with a dollar sign (not a hyphen), so the echo should work correctly.
18830    lt_compile=`echo "$ac_compile" | $SED \
18831    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18832    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18833    -e 's:$: $lt_compiler_flag:'`
18834    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
18835    (eval "$lt_compile" 2>out/conftest.err)
18836    ac_status=$?
18837    cat out/conftest.err >&5
18838    echo "$as_me:__oline__: \$? = $ac_status" >&5
18839    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18840    then
18841      # The compiler can only warn and ignore the option if not recognized
18842      # So say no if there are warnings
18843      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18844      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18845      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18846        lt_cv_prog_compiler_c_o_GCJ=yes
18847      fi
18848    fi
18849    chmod u+w . 2>&5
18850    $rm conftest*
18851    # SGI C++ compiler will create directory out/ii_files/ for
18852    # template instantiation
18853    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18854    $rm out/* && rmdir out
18855    cd ..
18856    rmdir conftest
18857    $rm conftest*
18858
18859 fi
18860 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18861 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18862
18863
18864 hard_links="nottested"
18865 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18866   # do not overwrite the value of need_locks provided by the user
18867   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18868 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18869   hard_links=yes
18870   $rm conftest*
18871   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18872   touch conftest.a
18873   ln conftest.a conftest.b 2>&5 || hard_links=no
18874   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18875   { echo "$as_me:$LINENO: result: $hard_links" >&5
18876 echo "${ECHO_T}$hard_links" >&6; }
18877   if test "$hard_links" = no; then
18878     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18879 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18880     need_locks=warn
18881   fi
18882 else
18883   need_locks=no
18884 fi
18885
18886 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18887 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18888
18889   runpath_var=
18890   allow_undefined_flag_GCJ=
18891   enable_shared_with_static_runtimes_GCJ=no
18892   archive_cmds_GCJ=
18893   archive_expsym_cmds_GCJ=
18894   old_archive_From_new_cmds_GCJ=
18895   old_archive_from_expsyms_cmds_GCJ=
18896   export_dynamic_flag_spec_GCJ=
18897   whole_archive_flag_spec_GCJ=
18898   thread_safe_flag_spec_GCJ=
18899   hardcode_libdir_flag_spec_GCJ=
18900   hardcode_libdir_flag_spec_ld_GCJ=
18901   hardcode_libdir_separator_GCJ=
18902   hardcode_direct_GCJ=no
18903   hardcode_minus_L_GCJ=no
18904   hardcode_shlibpath_var_GCJ=unsupported
18905   link_all_deplibs_GCJ=unknown
18906   hardcode_automatic_GCJ=no
18907   module_cmds_GCJ=
18908   module_expsym_cmds_GCJ=
18909   always_export_symbols_GCJ=no
18910   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18911   # include_expsyms should be a list of space-separated symbols to be *always*
18912   # included in the symbol list
18913   include_expsyms_GCJ=
18914   # exclude_expsyms can be an extended regexp of symbols to exclude
18915   # it will be wrapped by ` (' and `)$', so one must not match beginning or
18916   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18917   # as well as any symbol that contains `d'.
18918   exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18919   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18920   # platforms (ab)use it in PIC code, but their linkers get confused if
18921   # the symbol is explicitly referenced.  Since portable code cannot
18922   # rely on this symbol name, it's probably fine to never include it in
18923   # preloaded symbol tables.
18924   # Exclude shared library initialization/finalization symbols.
18925   extract_expsyms_cmds=
18926   # Just being paranoid about ensuring that cc_basename is set.
18927   for cc_temp in $compiler""; do
18928   case $cc_temp in
18929     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18930     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18931     \-*) ;;
18932     *) break;;
18933   esac
18934 done
18935 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18936
18937   case $host_os in
18938   cygwin* | mingw* | pw32*)
18939     # FIXME: the MSVC++ port hasn't been tested in a loooong time
18940     # When not using gcc, we currently assume that we are using
18941     # Microsoft Visual C++.
18942     if test "$GCC" != yes; then
18943       with_gnu_ld=no
18944     fi
18945     ;;
18946   interix*)
18947     # we just hope/assume this is gcc and not c89 (= MSVC++)
18948     with_gnu_ld=yes
18949     ;;
18950   openbsd*)
18951     with_gnu_ld=no
18952     ;;
18953   esac
18954
18955   ld_shlibs_GCJ=yes
18956   if test "$with_gnu_ld" = yes; then
18957     # If archive_cmds runs LD, not CC, wlarc should be empty
18958     wlarc='${wl}'
18959
18960     # Set some defaults for GNU ld with shared library support. These
18961     # are reset later if shared libraries are not supported. Putting them
18962     # here allows them to be overridden if necessary.
18963     runpath_var=LD_RUN_PATH
18964     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18965     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18966     # ancient GNU ld didn't support --whole-archive et. al.
18967     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18968         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18969       else
18970         whole_archive_flag_spec_GCJ=
18971     fi
18972     supports_anon_versioning=no
18973     case `$LD -v 2>/dev/null` in
18974       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18975       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18976       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18977       *\ 2.11.*) ;; # other 2.11 versions
18978       *) supports_anon_versioning=yes ;;
18979     esac
18980
18981     # See if GNU ld supports shared libraries.
18982     case $host_os in
18983     aix[3-9]*)
18984       # On AIX/PPC, the GNU linker is very broken
18985       if test "$host_cpu" != ia64; then
18986         ld_shlibs_GCJ=no
18987         cat <<EOF 1>&2
18988
18989 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18990 *** to be unable to reliably create shared libraries on AIX.
18991 *** Therefore, libtool is disabling shared libraries support.  If you
18992 *** really care for shared libraries, you may want to modify your PATH
18993 *** so that a non-GNU linker is found, and then restart.
18994
18995 EOF
18996       fi
18997       ;;
18998
18999     amigaos*)
19000       archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
19001       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19002       hardcode_minus_L_GCJ=yes
19003
19004       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19005       # that the semantics of dynamic libraries on AmigaOS, at least up
19006       # to version 4, is to share data among multiple programs linked
19007       # with the same dynamic library.  Since this doesn't match the
19008       # behavior of shared libraries on other platforms, we can't use
19009       # them.
19010       ld_shlibs_GCJ=no
19011       ;;
19012
19013     beos*)
19014       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19015         allow_undefined_flag_GCJ=unsupported
19016         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19017         # support --undefined.  This deserves some investigation.  FIXME
19018         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19019       else
19020         ld_shlibs_GCJ=no
19021       fi
19022       ;;
19023
19024     cygwin* | mingw* | pw32*)
19025       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
19026       # as there is no search path for DLLs.
19027       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19028       allow_undefined_flag_GCJ=unsupported
19029       always_export_symbols_GCJ=no
19030       enable_shared_with_static_runtimes_GCJ=yes
19031       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
19032
19033       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19034         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19035         # If the export-symbols file already is a .def file (1st line
19036         # is EXPORTS), use it as is; otherwise, prepend...
19037         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19038           cp $export_symbols $output_objdir/$soname.def;
19039         else
19040           echo EXPORTS > $output_objdir/$soname.def;
19041           cat $export_symbols >> $output_objdir/$soname.def;
19042         fi~
19043         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19044       else
19045         ld_shlibs_GCJ=no
19046       fi
19047       ;;
19048
19049     interix[3-9]*)
19050       hardcode_direct_GCJ=no
19051       hardcode_shlibpath_var_GCJ=no
19052       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19053       export_dynamic_flag_spec_GCJ='${wl}-E'
19054       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19055       # Instead, shared libraries are loaded at an image base (0x10000000 by
19056       # default) and relocated if they conflict, which is a slow very memory
19057       # consuming and fragmenting process.  To avoid this, we pick a random,
19058       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19059       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
19060       archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19061       archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19062       ;;
19063
19064     gnu* | linux* | k*bsd*-gnu)
19065       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19066         tmp_addflag=
19067         case $cc_basename,$host_cpu in
19068         pgcc*)                          # Portland Group C compiler
19069           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
19070           tmp_addflag=' $pic_flag'
19071           ;;
19072         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
19073           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
19074           tmp_addflag=' $pic_flag -Mnomain' ;;
19075         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
19076           tmp_addflag=' -i_dynamic' ;;
19077         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
19078           tmp_addflag=' -i_dynamic -nofor_main' ;;
19079         ifc* | ifort*)                  # Intel Fortran compiler
19080           tmp_addflag=' -nofor_main' ;;
19081         esac
19082         case `$CC -V 2>&1 | sed 5q` in
19083         *Sun\ C*)                       # Sun C 5.9
19084           whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
19085           tmp_sharedflag='-G' ;;
19086         *Sun\ F*)                       # Sun Fortran 8.3
19087           tmp_sharedflag='-G' ;;
19088         *)
19089           tmp_sharedflag='-shared' ;;
19090         esac
19091         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19092
19093         if test $supports_anon_versioning = yes; then
19094           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
19095   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19096   $echo "local: *; };" >> $output_objdir/$libname.ver~
19097           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19098         fi
19099       else
19100         ld_shlibs_GCJ=no
19101       fi
19102       ;;
19103
19104     netbsd*)
19105       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19106         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19107         wlarc=
19108       else
19109         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19110         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19111       fi
19112       ;;
19113
19114     solaris*)
19115       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19116         ld_shlibs_GCJ=no
19117         cat <<EOF 1>&2
19118
19119 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19120 *** create shared libraries on Solaris systems.  Therefore, libtool
19121 *** is disabling shared libraries support.  We urge you to upgrade GNU
19122 *** binutils to release 2.9.1 or newer.  Another option is to modify
19123 *** your PATH or compiler configuration so that the native linker is
19124 *** used, and then restart.
19125
19126 EOF
19127       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19128         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19129         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19130       else
19131         ld_shlibs_GCJ=no
19132       fi
19133       ;;
19134
19135     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
19136       case `$LD -v 2>&1` in
19137         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
19138         ld_shlibs_GCJ=no
19139         cat <<_LT_EOF 1>&2
19140
19141 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
19142 *** reliably create shared libraries on SCO systems.  Therefore, libtool
19143 *** is disabling shared libraries support.  We urge you to upgrade GNU
19144 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
19145 *** your PATH or compiler configuration so that the native linker is
19146 *** used, and then restart.
19147
19148 _LT_EOF
19149         ;;
19150         *)
19151           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19152             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
19153             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
19154             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
19155           else
19156             ld_shlibs_GCJ=no
19157           fi
19158         ;;
19159       esac
19160       ;;
19161
19162     sunos4*)
19163       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19164       wlarc=
19165       hardcode_direct_GCJ=yes
19166       hardcode_shlibpath_var_GCJ=no
19167       ;;
19168
19169     *)
19170       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19171         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19172         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19173       else
19174         ld_shlibs_GCJ=no
19175       fi
19176       ;;
19177     esac
19178
19179     if test "$ld_shlibs_GCJ" = no; then
19180       runpath_var=
19181       hardcode_libdir_flag_spec_GCJ=
19182       export_dynamic_flag_spec_GCJ=
19183       whole_archive_flag_spec_GCJ=
19184     fi
19185   else
19186     # PORTME fill in a description of your system's linker (not GNU ld)
19187     case $host_os in
19188     aix3*)
19189       allow_undefined_flag_GCJ=unsupported
19190       always_export_symbols_GCJ=yes
19191       archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
19192       # Note: this linker hardcodes the directories in LIBPATH if there
19193       # are no directories specified by -L.
19194       hardcode_minus_L_GCJ=yes
19195       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
19196         # Neither direct hardcoding nor static linking is supported with a
19197         # broken collect2.
19198         hardcode_direct_GCJ=unsupported
19199       fi
19200       ;;
19201
19202     aix[4-9]*)
19203       if test "$host_cpu" = ia64; then
19204         # On IA64, the linker does run time linking by default, so we don't
19205         # have to do anything special.
19206         aix_use_runtimelinking=no
19207         exp_sym_flag='-Bexport'
19208         no_entry_flag=""
19209       else
19210         # If we're using GNU nm, then we don't want the "-C" option.
19211         # -C means demangle to AIX nm, but means don't demangle with GNU nm
19212         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19213           export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
19214         else
19215           export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
19216         fi
19217         aix_use_runtimelinking=no
19218
19219         # Test if we are trying to use run time linking or normal
19220         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19221         # need to do runtime linking.
19222         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19223           for ld_flag in $LDFLAGS; do
19224           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19225             aix_use_runtimelinking=yes
19226             break
19227           fi
19228           done
19229           ;;
19230         esac
19231
19232         exp_sym_flag='-bexport'
19233         no_entry_flag='-bnoentry'
19234       fi
19235
19236       # When large executables or shared objects are built, AIX ld can
19237       # have problems creating the table of contents.  If linking a library
19238       # or program results in "error TOC overflow" add -mminimal-toc to
19239       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19240       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19241
19242       archive_cmds_GCJ=''
19243       hardcode_direct_GCJ=yes
19244       hardcode_libdir_separator_GCJ=':'
19245       link_all_deplibs_GCJ=yes
19246
19247       if test "$GCC" = yes; then
19248         case $host_os in aix4.[012]|aix4.[012].*)
19249         # We only want to do this on AIX 4.2 and lower, the check
19250         # below for broken collect2 doesn't work under 4.3+
19251           collect2name=`${CC} -print-prog-name=collect2`
19252           if test -f "$collect2name" && \
19253            strings "$collect2name" | grep resolve_lib_name >/dev/null
19254           then
19255           # We have reworked collect2
19256           :
19257           else
19258           # We have old collect2
19259           hardcode_direct_GCJ=unsupported
19260           # It fails to find uninstalled libraries when the uninstalled
19261           # path is not listed in the libpath.  Setting hardcode_minus_L
19262           # to unsupported forces relinking
19263           hardcode_minus_L_GCJ=yes
19264           hardcode_libdir_flag_spec_GCJ='-L$libdir'
19265           hardcode_libdir_separator_GCJ=
19266           fi
19267           ;;
19268         esac
19269         shared_flag='-shared'
19270         if test "$aix_use_runtimelinking" = yes; then
19271           shared_flag="$shared_flag "'${wl}-G'
19272         fi
19273       else
19274         # not using gcc
19275         if test "$host_cpu" = ia64; then
19276         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19277         # chokes on -Wl,-G. The following line is correct:
19278           shared_flag='-G'
19279         else
19280           if test "$aix_use_runtimelinking" = yes; then
19281             shared_flag='${wl}-G'
19282           else
19283             shared_flag='${wl}-bM:SRE'
19284           fi
19285         fi
19286       fi
19287
19288       # It seems that -bexpall does not export symbols beginning with
19289       # underscore (_), so it is better to generate a list of symbols to export.
19290       always_export_symbols_GCJ=yes
19291       if test "$aix_use_runtimelinking" = yes; then
19292         # Warning - without using the other runtime loading flags (-brtl),
19293         # -berok will link without error, but may produce a broken library.
19294         allow_undefined_flag_GCJ='-berok'
19295        # Determine the default libpath from the value encoded in an empty executable.
19296        cat >conftest.$ac_ext <<_ACEOF
19297 /* confdefs.h.  */
19298 _ACEOF
19299 cat confdefs.h >>conftest.$ac_ext
19300 cat >>conftest.$ac_ext <<_ACEOF
19301 /* end confdefs.h.  */
19302
19303 int
19304 main ()
19305 {
19306
19307   ;
19308   return 0;
19309 }
19310 _ACEOF
19311 rm -f conftest.$ac_objext conftest$ac_exeext
19312 if { (ac_try="$ac_link"
19313 case "(($ac_try" in
19314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19315   *) ac_try_echo=$ac_try;;
19316 esac
19317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19318   (eval "$ac_link") 2>conftest.er1
19319   ac_status=$?
19320   grep -v '^ *+' conftest.er1 >conftest.err
19321   rm -f conftest.er1
19322   cat conftest.err >&5
19323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324   (exit $ac_status); } && {
19325          test -z "$ac_c_werror_flag" ||
19326          test ! -s conftest.err
19327        } && test -s conftest$ac_exeext &&
19328        $as_test_x conftest$ac_exeext; then
19329   
19330 lt_aix_libpath_sed='
19331     /Import File Strings/,/^$/ {
19332         /^0/ {
19333             s/^0  *\(.*\)$/\1/
19334             p
19335         }
19336     }'
19337 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19338 # Check for a 64-bit object if we didn't find anything.
19339 if test -z "$aix_libpath"; then
19340   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19341 fi
19342 else
19343   echo "$as_me: failed program was:" >&5
19344 sed 's/^/| /' conftest.$ac_ext >&5
19345
19346         
19347 fi
19348
19349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19350       conftest$ac_exeext conftest.$ac_ext
19351 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19352
19353        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19354         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
19355        else
19356         if test "$host_cpu" = ia64; then
19357           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
19358           allow_undefined_flag_GCJ="-z nodefs"
19359           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
19360         else
19361          # Determine the default libpath from the value encoded in an empty executable.
19362          cat >conftest.$ac_ext <<_ACEOF
19363 /* confdefs.h.  */
19364 _ACEOF
19365 cat confdefs.h >>conftest.$ac_ext
19366 cat >>conftest.$ac_ext <<_ACEOF
19367 /* end confdefs.h.  */
19368
19369 int
19370 main ()
19371 {
19372
19373   ;
19374   return 0;
19375 }
19376 _ACEOF
19377 rm -f conftest.$ac_objext conftest$ac_exeext
19378 if { (ac_try="$ac_link"
19379 case "(($ac_try" in
19380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19381   *) ac_try_echo=$ac_try;;
19382 esac
19383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19384   (eval "$ac_link") 2>conftest.er1
19385   ac_status=$?
19386   grep -v '^ *+' conftest.er1 >conftest.err
19387   rm -f conftest.er1
19388   cat conftest.err >&5
19389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19390   (exit $ac_status); } && {
19391          test -z "$ac_c_werror_flag" ||
19392          test ! -s conftest.err
19393        } && test -s conftest$ac_exeext &&
19394        $as_test_x conftest$ac_exeext; then
19395   
19396 lt_aix_libpath_sed='
19397     /Import File Strings/,/^$/ {
19398         /^0/ {
19399             s/^0  *\(.*\)$/\1/
19400             p
19401         }
19402     }'
19403 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19404 # Check for a 64-bit object if we didn't find anything.
19405 if test -z "$aix_libpath"; then
19406   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19407 fi
19408 else
19409   echo "$as_me: failed program was:" >&5
19410 sed 's/^/| /' conftest.$ac_ext >&5
19411
19412         
19413 fi
19414
19415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19416       conftest$ac_exeext conftest.$ac_ext
19417 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19418
19419          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19420           # Warning - without using the other run time loading flags,
19421           # -berok will link without error, but may produce a broken library.
19422           no_undefined_flag_GCJ=' ${wl}-bernotok'
19423           allow_undefined_flag_GCJ=' ${wl}-berok'
19424           # Exported symbols can be pulled into shared objects from archives
19425           whole_archive_flag_spec_GCJ='$convenience'
19426           archive_cmds_need_lc_GCJ=yes
19427           # This is similar to how AIX traditionally builds its shared libraries.
19428           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
19429         fi
19430       fi
19431       ;;
19432
19433     amigaos*)
19434       archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
19435       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19436       hardcode_minus_L_GCJ=yes
19437       # see comment about different semantics on the GNU ld section
19438       ld_shlibs_GCJ=no
19439       ;;
19440
19441     bsdi[45]*)
19442       export_dynamic_flag_spec_GCJ=-rdynamic
19443       ;;
19444
19445     cygwin* | mingw* | pw32*)
19446       # When not using gcc, we currently assume that we are using
19447       # Microsoft Visual C++.
19448       # hardcode_libdir_flag_spec is actually meaningless, as there is
19449       # no search path for DLLs.
19450       hardcode_libdir_flag_spec_GCJ=' '
19451       allow_undefined_flag_GCJ=unsupported
19452       # Tell ltmain to make .lib files, not .a files.
19453       libext=lib
19454       # Tell ltmain to make .dll files, not .so files.
19455       shrext_cmds=".dll"
19456       # FIXME: Setting linknames here is a bad hack.
19457       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19458       # The linker will automatically build a .lib file if we build a DLL.
19459       old_archive_From_new_cmds_GCJ='true'
19460       # FIXME: Should let the user specify the lib program.
19461       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
19462       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
19463       enable_shared_with_static_runtimes_GCJ=yes
19464       ;;
19465
19466     darwin* | rhapsody*)
19467       case $host_os in
19468         rhapsody* | darwin1.[012])
19469          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
19470          ;;
19471        *) # Darwin 1.3 on
19472          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19473            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19474          else
19475            case ${MACOSX_DEPLOYMENT_TARGET} in
19476              10.[012])
19477                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19478                ;;
19479              10.*)
19480                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19481                ;;
19482            esac
19483          fi
19484          ;;
19485       esac
19486       archive_cmds_need_lc_GCJ=no
19487       hardcode_direct_GCJ=no
19488       hardcode_automatic_GCJ=yes
19489       hardcode_shlibpath_var_GCJ=unsupported
19490       whole_archive_flag_spec_GCJ=''
19491       link_all_deplibs_GCJ=yes
19492     if test "$GCC" = yes ; then
19493         output_verbose_link_cmd='echo'
19494         archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
19495         module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19496         archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
19497         module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
19498     else
19499       case $cc_basename in
19500         xlc*)
19501          output_verbose_link_cmd='echo'
19502          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
19503          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19504           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19505          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19506           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19507           ;;
19508        *)
19509          ld_shlibs_GCJ=no
19510           ;;
19511       esac
19512     fi
19513       ;;
19514
19515     dgux*)
19516       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19517       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19518       hardcode_shlibpath_var_GCJ=no
19519       ;;
19520
19521     freebsd1*)
19522       ld_shlibs_GCJ=no
19523       ;;
19524
19525     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19526     # support.  Future versions do this automatically, but an explicit c++rt0.o
19527     # does not break anything, and helps significantly (at the cost of a little
19528     # extra space).
19529     freebsd2.2*)
19530       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19531       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19532       hardcode_direct_GCJ=yes
19533       hardcode_shlibpath_var_GCJ=no
19534       ;;
19535
19536     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19537     freebsd2*)
19538       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19539       hardcode_direct_GCJ=yes
19540       hardcode_minus_L_GCJ=yes
19541       hardcode_shlibpath_var_GCJ=no
19542       ;;
19543
19544     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19545     freebsd* | dragonfly*)
19546       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19547       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19548       hardcode_direct_GCJ=yes
19549       hardcode_shlibpath_var_GCJ=no
19550       ;;
19551
19552     hpux9*)
19553       if test "$GCC" = yes; then
19554         archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19555       else
19556         archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19557       fi
19558       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19559       hardcode_libdir_separator_GCJ=:
19560       hardcode_direct_GCJ=yes
19561
19562       # hardcode_minus_L: Not really in the search PATH,
19563       # but as the default location of the library.
19564       hardcode_minus_L_GCJ=yes
19565       export_dynamic_flag_spec_GCJ='${wl}-E'
19566       ;;
19567
19568     hpux10*)
19569       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19570         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19571       else
19572         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19573       fi
19574       if test "$with_gnu_ld" = no; then
19575         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19576         hardcode_libdir_separator_GCJ=:
19577
19578         hardcode_direct_GCJ=yes
19579         export_dynamic_flag_spec_GCJ='${wl}-E'
19580
19581         # hardcode_minus_L: Not really in the search PATH,
19582         # but as the default location of the library.
19583         hardcode_minus_L_GCJ=yes
19584       fi
19585       ;;
19586
19587     hpux11*)
19588       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19589         case $host_cpu in
19590         hppa*64*)
19591           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19592           ;;
19593         ia64*)
19594           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19595           ;;
19596         *)
19597           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19598           ;;
19599         esac
19600       else
19601         case $host_cpu in
19602         hppa*64*)
19603           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19604           ;;
19605         ia64*)
19606           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19607           ;;
19608         *)
19609           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19610           ;;
19611         esac
19612       fi
19613       if test "$with_gnu_ld" = no; then
19614         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19615         hardcode_libdir_separator_GCJ=:
19616
19617         case $host_cpu in
19618         hppa*64*|ia64*)
19619           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19620           hardcode_direct_GCJ=no
19621           hardcode_shlibpath_var_GCJ=no
19622           ;;
19623         *)
19624           hardcode_direct_GCJ=yes
19625           export_dynamic_flag_spec_GCJ='${wl}-E'
19626
19627           # hardcode_minus_L: Not really in the search PATH,
19628           # but as the default location of the library.
19629           hardcode_minus_L_GCJ=yes
19630           ;;
19631         esac
19632       fi
19633       ;;
19634
19635     irix5* | irix6* | nonstopux*)
19636       if test "$GCC" = yes; then
19637         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19638       else
19639         archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19640         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19641       fi
19642       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19643       hardcode_libdir_separator_GCJ=:
19644       link_all_deplibs_GCJ=yes
19645       ;;
19646
19647     netbsd*)
19648       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19649         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19650       else
19651         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19652       fi
19653       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19654       hardcode_direct_GCJ=yes
19655       hardcode_shlibpath_var_GCJ=no
19656       ;;
19657
19658     newsos6)
19659       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19660       hardcode_direct_GCJ=yes
19661       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19662       hardcode_libdir_separator_GCJ=:
19663       hardcode_shlibpath_var_GCJ=no
19664       ;;
19665
19666     openbsd*)
19667       if test -f /usr/libexec/ld.so; then
19668         hardcode_direct_GCJ=yes
19669         hardcode_shlibpath_var_GCJ=no
19670         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19671           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19672           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19673           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19674           export_dynamic_flag_spec_GCJ='${wl}-E'
19675         else
19676           case $host_os in
19677            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19678              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19679              hardcode_libdir_flag_spec_GCJ='-R$libdir'
19680              ;;
19681            *)
19682              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19683              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19684              ;;
19685           esac
19686         fi
19687       else
19688         ld_shlibs_GCJ=no
19689       fi
19690       ;;
19691
19692     os2*)
19693       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19694       hardcode_minus_L_GCJ=yes
19695       allow_undefined_flag_GCJ=unsupported
19696       archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
19697       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19698       ;;
19699
19700     osf3*)
19701       if test "$GCC" = yes; then
19702         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19703         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19704       else
19705         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19706         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19707       fi
19708       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19709       hardcode_libdir_separator_GCJ=:
19710       ;;
19711
19712     osf4* | osf5*)      # as osf3* with the addition of -msym flag
19713       if test "$GCC" = yes; then
19714         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19715         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19716         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19717       else
19718         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19719         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19720         archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
19721         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
19722
19723         # Both c and cxx compiler support -rpath directly
19724         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19725       fi
19726       hardcode_libdir_separator_GCJ=:
19727       ;;
19728
19729     solaris*)
19730       no_undefined_flag_GCJ=' -z text'
19731       if test "$GCC" = yes; then
19732         wlarc='${wl}'
19733         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19734         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19735           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19736       else
19737         wlarc=''
19738         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19739         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19740         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19741       fi
19742       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19743       hardcode_shlibpath_var_GCJ=no
19744       case $host_os in
19745       solaris2.[0-5] | solaris2.[0-5].*) ;;
19746       *)
19747         # The compiler driver will combine and reorder linker options,
19748         # but understands `-z linker_flag'.  GCC discards it without `$wl',
19749         # but is careful enough not to reorder.
19750         # Supported since Solaris 2.6 (maybe 2.5.1?)
19751         if test "$GCC" = yes; then
19752           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19753         else
19754           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
19755         fi
19756         ;;
19757       esac
19758       link_all_deplibs_GCJ=yes
19759       ;;
19760
19761     sunos4*)
19762       if test "x$host_vendor" = xsequent; then
19763         # Use $CC to link under sequent, because it throws in some extra .o
19764         # files that make .init and .fini sections work.
19765         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19766       else
19767         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19768       fi
19769       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19770       hardcode_direct_GCJ=yes
19771       hardcode_minus_L_GCJ=yes
19772       hardcode_shlibpath_var_GCJ=no
19773       ;;
19774
19775     sysv4)
19776       case $host_vendor in
19777         sni)
19778           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19779           hardcode_direct_GCJ=yes # is this really true???
19780         ;;
19781         siemens)
19782           ## LD is ld it makes a PLAMLIB
19783           ## CC just makes a GrossModule.
19784           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19785           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19786           hardcode_direct_GCJ=no
19787         ;;
19788         motorola)
19789           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19790           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19791         ;;
19792       esac
19793       runpath_var='LD_RUN_PATH'
19794       hardcode_shlibpath_var_GCJ=no
19795       ;;
19796
19797     sysv4.3*)
19798       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19799       hardcode_shlibpath_var_GCJ=no
19800       export_dynamic_flag_spec_GCJ='-Bexport'
19801       ;;
19802
19803     sysv4*MP*)
19804       if test -d /usr/nec; then
19805         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19806         hardcode_shlibpath_var_GCJ=no
19807         runpath_var=LD_RUN_PATH
19808         hardcode_runpath_var=yes
19809         ld_shlibs_GCJ=yes
19810       fi
19811       ;;
19812
19813     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19814       no_undefined_flag_GCJ='${wl}-z,text'
19815       archive_cmds_need_lc_GCJ=no
19816       hardcode_shlibpath_var_GCJ=no
19817       runpath_var='LD_RUN_PATH'
19818
19819       if test "$GCC" = yes; then
19820         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19821         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19822       else
19823         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19824         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19825       fi
19826       ;;
19827
19828     sysv5* | sco3.2v5* | sco5v6*)
19829       # Note: We can NOT use -z defs as we might desire, because we do not
19830       # link with -lc, and that would cause any symbols used from libc to
19831       # always be unresolved, which means just about no library would
19832       # ever link correctly.  If we're not using GNU ld we use -z text
19833       # though, which does catch some bad symbols but isn't as heavy-handed
19834       # as -z defs.
19835       no_undefined_flag_GCJ='${wl}-z,text'
19836       allow_undefined_flag_GCJ='${wl}-z,nodefs'
19837       archive_cmds_need_lc_GCJ=no
19838       hardcode_shlibpath_var_GCJ=no
19839       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19840       hardcode_libdir_separator_GCJ=':'
19841       link_all_deplibs_GCJ=yes
19842       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19843       runpath_var='LD_RUN_PATH'
19844
19845       if test "$GCC" = yes; then
19846         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19847         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19848       else
19849         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19850         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19851       fi
19852       ;;
19853
19854     uts4*)
19855       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19856       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19857       hardcode_shlibpath_var_GCJ=no
19858       ;;
19859
19860     *)
19861       ld_shlibs_GCJ=no
19862       ;;
19863     esac
19864   fi
19865
19866 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19867 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
19868 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19869
19870 #
19871 # Do we need to explicitly link libc?
19872 #
19873 case "x$archive_cmds_need_lc_GCJ" in
19874 x|xyes)
19875   # Assume -lc should be added
19876   archive_cmds_need_lc_GCJ=yes
19877
19878   if test "$enable_shared" = yes && test "$GCC" = yes; then
19879     case $archive_cmds_GCJ in
19880     *'~'*)
19881       # FIXME: we may have to deal with multi-command sequences.
19882       ;;
19883     '$CC '*)
19884       # Test whether the compiler implicitly links with -lc since on some
19885       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19886       # to ld, don't add -lc before -lgcc.
19887       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19888 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19889       $rm conftest*
19890       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19891
19892       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19893   (eval $ac_compile) 2>&5
19894   ac_status=$?
19895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19896   (exit $ac_status); } 2>conftest.err; then
19897         soname=conftest
19898         lib=conftest
19899         libobjs=conftest.$ac_objext
19900         deplibs=
19901         wl=$lt_prog_compiler_wl_GCJ
19902         pic_flag=$lt_prog_compiler_pic_GCJ
19903         compiler_flags=-v
19904         linker_flags=-v
19905         verstring=
19906         output_objdir=.
19907         libname=conftest
19908         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19909         allow_undefined_flag_GCJ=
19910         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19911   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19912   ac_status=$?
19913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19914   (exit $ac_status); }
19915         then
19916           archive_cmds_need_lc_GCJ=no
19917         else
19918           archive_cmds_need_lc_GCJ=yes
19919         fi
19920         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19921       else
19922         cat conftest.err 1>&5
19923       fi
19924       $rm conftest*
19925       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19926 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19927       ;;
19928     esac
19929   fi
19930   ;;
19931 esac
19932
19933 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19934 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19935 library_names_spec=
19936 libname_spec='lib$name'
19937 soname_spec=
19938 shrext_cmds=".so"
19939 postinstall_cmds=
19940 postuninstall_cmds=
19941 finish_cmds=
19942 finish_eval=
19943 shlibpath_var=
19944 shlibpath_overrides_runpath=unknown
19945 version_type=none
19946 dynamic_linker="$host_os ld.so"
19947 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19948
19949 need_lib_prefix=unknown
19950 hardcode_into_libs=no
19951
19952 # when you set need_version to no, make sure it does not cause -set_version
19953 # flags to be left without arguments
19954 need_version=unknown
19955
19956 case $host_os in
19957 aix3*)
19958   version_type=linux
19959   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19960   shlibpath_var=LIBPATH
19961
19962   # AIX 3 has no versioning support, so we append a major version to the name.
19963   soname_spec='${libname}${release}${shared_ext}$major'
19964   ;;
19965
19966 aix[4-9]*)
19967   version_type=linux
19968   need_lib_prefix=no
19969   need_version=no
19970   hardcode_into_libs=yes
19971   if test "$host_cpu" = ia64; then
19972     # AIX 5 supports IA64
19973     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19974     shlibpath_var=LD_LIBRARY_PATH
19975   else
19976     # With GCC up to 2.95.x, collect2 would create an import file
19977     # for dependence libraries.  The import file would start with
19978     # the line `#! .'.  This would cause the generated library to
19979     # depend on `.', always an invalid library.  This was fixed in
19980     # development snapshots of GCC prior to 3.0.
19981     case $host_os in
19982       aix4 | aix4.[01] | aix4.[01].*)
19983       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19984            echo ' yes '
19985            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19986         :
19987       else
19988         can_build_shared=no
19989       fi
19990       ;;
19991     esac
19992     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19993     # soname into executable. Probably we can add versioning support to
19994     # collect2, so additional links can be useful in future.
19995     if test "$aix_use_runtimelinking" = yes; then
19996       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19997       # instead of lib<name>.a to let people know that these are not
19998       # typical AIX shared libraries.
19999       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20000     else
20001       # We preserve .a as extension for shared libraries through AIX4.2
20002       # and later when we are not doing run time linking.
20003       library_names_spec='${libname}${release}.a $libname.a'
20004       soname_spec='${libname}${release}${shared_ext}$major'
20005     fi
20006     shlibpath_var=LIBPATH
20007   fi
20008   ;;
20009
20010 amigaos*)
20011   library_names_spec='$libname.ixlibrary $libname.a'
20012   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20013   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
20014   ;;
20015
20016 beos*)
20017   library_names_spec='${libname}${shared_ext}'
20018   dynamic_linker="$host_os ld.so"
20019   shlibpath_var=LIBRARY_PATH
20020   ;;
20021
20022 bsdi[45]*)
20023   version_type=linux
20024   need_version=no
20025   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20026   soname_spec='${libname}${release}${shared_ext}$major'
20027   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20028   shlibpath_var=LD_LIBRARY_PATH
20029   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20030   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20031   # the default ld.so.conf also contains /usr/contrib/lib and
20032   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20033   # libtool to hard-code these into programs
20034   ;;
20035
20036 cygwin* | mingw* | pw32*)
20037   version_type=windows
20038   shrext_cmds=".dll"
20039   need_version=no
20040   need_lib_prefix=no
20041
20042   case $GCC,$host_os in
20043   yes,cygwin* | yes,mingw* | yes,pw32*)
20044     library_names_spec='$libname.dll.a'
20045     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20046     postinstall_cmds='base_file=`basename \${file}`~
20047       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20048       dldir=$destdir/`dirname \$dlpath`~
20049       test -d \$dldir || mkdir -p \$dldir~
20050       $install_prog $dir/$dlname \$dldir/$dlname~
20051       chmod a+x \$dldir/$dlname'
20052     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20053       dlpath=$dir/\$dldll~
20054        $rm \$dlpath'
20055     shlibpath_overrides_runpath=yes
20056
20057     case $host_os in
20058     cygwin*)
20059       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20060       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20061       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20062       ;;
20063     mingw*)
20064       # MinGW DLLs use traditional 'lib' prefix
20065       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20066       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20067       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20068         # It is most probably a Windows format PATH printed by
20069         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20070         # path with ; separators, and with drive letters. We can handle the
20071         # drive letters (cygwin fileutils understands them), so leave them,
20072         # especially as we might pass files found there to a mingw objdump,
20073         # which wouldn't understand a cygwinified path. Ahh.
20074         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20075       else
20076         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20077       fi
20078       ;;
20079     pw32*)
20080       # pw32 DLLs use 'pw' prefix rather than 'lib'
20081       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20082       ;;
20083     esac
20084     ;;
20085
20086   *)
20087     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20088     ;;
20089   esac
20090   dynamic_linker='Win32 ld.exe'
20091   # FIXME: first we should search . and the directory the executable is in
20092   shlibpath_var=PATH
20093   ;;
20094
20095 darwin* | rhapsody*)
20096   dynamic_linker="$host_os dyld"
20097   version_type=darwin
20098   need_lib_prefix=no
20099   need_version=no
20100   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20101   soname_spec='${libname}${release}${major}$shared_ext'
20102   shlibpath_overrides_runpath=yes
20103   shlibpath_var=DYLD_LIBRARY_PATH
20104   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20105    
20106   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20107   ;;
20108
20109 dgux*)
20110   version_type=linux
20111   need_lib_prefix=no
20112   need_version=no
20113   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20114   soname_spec='${libname}${release}${shared_ext}$major'
20115   shlibpath_var=LD_LIBRARY_PATH
20116   ;;
20117
20118 freebsd1*)
20119   dynamic_linker=no
20120   ;;
20121
20122 freebsd* | dragonfly*)
20123   # DragonFly does not have aout.  When/if they implement a new
20124   # versioning mechanism, adjust this.
20125   if test -x /usr/bin/objformat; then
20126     objformat=`/usr/bin/objformat`
20127   else
20128     case $host_os in
20129     freebsd[123]*) objformat=aout ;;
20130     *) objformat=elf ;;
20131     esac
20132   fi
20133   version_type=freebsd-$objformat
20134   case $version_type in
20135     freebsd-elf*)
20136       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20137       need_version=no
20138       need_lib_prefix=no
20139       ;;
20140     freebsd-*)
20141       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20142       need_version=yes
20143       ;;
20144   esac
20145   shlibpath_var=LD_LIBRARY_PATH
20146   case $host_os in
20147   freebsd2*)
20148     shlibpath_overrides_runpath=yes
20149     ;;
20150   freebsd3.[01]* | freebsdelf3.[01]*)
20151     shlibpath_overrides_runpath=yes
20152     hardcode_into_libs=yes
20153     ;;
20154   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20155   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20156     shlibpath_overrides_runpath=no
20157     hardcode_into_libs=yes
20158     ;;
20159   *) # from 4.6 on, and DragonFly
20160     shlibpath_overrides_runpath=yes
20161     hardcode_into_libs=yes
20162     ;;
20163   esac
20164   ;;
20165
20166 gnu*)
20167   version_type=linux
20168   need_lib_prefix=no
20169   need_version=no
20170   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20171   soname_spec='${libname}${release}${shared_ext}$major'
20172   shlibpath_var=LD_LIBRARY_PATH
20173   hardcode_into_libs=yes
20174   ;;
20175
20176 hpux9* | hpux10* | hpux11*)
20177   # Give a soname corresponding to the major version so that dld.sl refuses to
20178   # link against other versions.
20179   version_type=sunos
20180   need_lib_prefix=no
20181   need_version=no
20182   case $host_cpu in
20183   ia64*)
20184     shrext_cmds='.so'
20185     hardcode_into_libs=yes
20186     dynamic_linker="$host_os dld.so"
20187     shlibpath_var=LD_LIBRARY_PATH
20188     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20189     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20190     soname_spec='${libname}${release}${shared_ext}$major'
20191     if test "X$HPUX_IA64_MODE" = X32; then
20192       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20193     else
20194       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20195     fi
20196     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20197     ;;
20198    hppa*64*)
20199      shrext_cmds='.sl'
20200      hardcode_into_libs=yes
20201      dynamic_linker="$host_os dld.sl"
20202      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20203      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20204      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20205      soname_spec='${libname}${release}${shared_ext}$major'
20206      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20207      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20208      ;;
20209    *)
20210     shrext_cmds='.sl'
20211     dynamic_linker="$host_os dld.sl"
20212     shlibpath_var=SHLIB_PATH
20213     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20214     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20215     soname_spec='${libname}${release}${shared_ext}$major'
20216     ;;
20217   esac
20218   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20219   postinstall_cmds='chmod 555 $lib'
20220   ;;
20221
20222 interix[3-9]*)
20223   version_type=linux
20224   need_lib_prefix=no
20225   need_version=no
20226   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20227   soname_spec='${libname}${release}${shared_ext}$major'
20228   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20229   shlibpath_var=LD_LIBRARY_PATH
20230   shlibpath_overrides_runpath=no
20231   hardcode_into_libs=yes
20232   ;;
20233
20234 irix5* | irix6* | nonstopux*)
20235   case $host_os in
20236     nonstopux*) version_type=nonstopux ;;
20237     *)
20238         if test "$lt_cv_prog_gnu_ld" = yes; then
20239                 version_type=linux
20240         else
20241                 version_type=irix
20242         fi ;;
20243   esac
20244   need_lib_prefix=no
20245   need_version=no
20246   soname_spec='${libname}${release}${shared_ext}$major'
20247   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20248   case $host_os in
20249   irix5* | nonstopux*)
20250     libsuff= shlibsuff=
20251     ;;
20252   *)
20253     case $LD in # libtool.m4 will add one of these switches to LD
20254     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20255       libsuff= shlibsuff= libmagic=32-bit;;
20256     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20257       libsuff=32 shlibsuff=N32 libmagic=N32;;
20258     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20259       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20260     *) libsuff= shlibsuff= libmagic=never-match;;
20261     esac
20262     ;;
20263   esac
20264   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20265   shlibpath_overrides_runpath=no
20266   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20267   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20268   hardcode_into_libs=yes
20269   ;;
20270
20271 # No shared lib support for Linux oldld, aout, or coff.
20272 linux*oldld* | linux*aout* | linux*coff*)
20273   dynamic_linker=no
20274   ;;
20275
20276 # This must be Linux ELF.
20277 linux* | k*bsd*-gnu)
20278   version_type=linux
20279   need_lib_prefix=no
20280   need_version=no
20281   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20282   soname_spec='${libname}${release}${shared_ext}$major'
20283   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20284   shlibpath_var=LD_LIBRARY_PATH
20285   shlibpath_overrides_runpath=no
20286   # This implies no fast_install, which is unacceptable.
20287   # Some rework will be needed to allow for fast_install
20288   # before this can be enabled.
20289   hardcode_into_libs=yes
20290
20291   # Append ld.so.conf contents to the search path
20292   if test -f /etc/ld.so.conf; then
20293     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
20294     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20295   fi
20296
20297   # We used to test for /lib/ld.so.1 and disable shared libraries on
20298   # powerpc, because MkLinux only supported shared libraries with the
20299   # GNU dynamic linker.  Since this was broken with cross compilers,
20300   # most powerpc-linux boxes support dynamic linking these days and
20301   # people can always --disable-shared, the test was removed, and we
20302   # assume the GNU/Linux dynamic linker is in use.
20303   dynamic_linker='GNU/Linux ld.so'
20304   ;;
20305
20306 netbsd*)
20307   version_type=sunos
20308   need_lib_prefix=no
20309   need_version=no
20310   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20311     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20312     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20313     dynamic_linker='NetBSD (a.out) ld.so'
20314   else
20315     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20316     soname_spec='${libname}${release}${shared_ext}$major'
20317     dynamic_linker='NetBSD ld.elf_so'
20318   fi
20319   shlibpath_var=LD_LIBRARY_PATH
20320   shlibpath_overrides_runpath=yes
20321   hardcode_into_libs=yes
20322   ;;
20323
20324 newsos6)
20325   version_type=linux
20326   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20327   shlibpath_var=LD_LIBRARY_PATH
20328   shlibpath_overrides_runpath=yes
20329   ;;
20330
20331 nto-qnx*)
20332   version_type=linux
20333   need_lib_prefix=no
20334   need_version=no
20335   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20336   soname_spec='${libname}${release}${shared_ext}$major'
20337   shlibpath_var=LD_LIBRARY_PATH
20338   shlibpath_overrides_runpath=yes
20339   ;;
20340
20341 openbsd*)
20342   version_type=sunos
20343   sys_lib_dlsearch_path_spec="/usr/lib"
20344   need_lib_prefix=no
20345   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20346   case $host_os in
20347     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20348     *)                         need_version=no  ;;
20349   esac
20350   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20351   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20352   shlibpath_var=LD_LIBRARY_PATH
20353   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20354     case $host_os in
20355       openbsd2.[89] | openbsd2.[89].*)
20356         shlibpath_overrides_runpath=no
20357         ;;
20358       *)
20359         shlibpath_overrides_runpath=yes
20360         ;;
20361       esac
20362   else
20363     shlibpath_overrides_runpath=yes
20364   fi
20365   ;;
20366
20367 os2*)
20368   libname_spec='$name'
20369   shrext_cmds=".dll"
20370   need_lib_prefix=no
20371   library_names_spec='$libname${shared_ext} $libname.a'
20372   dynamic_linker='OS/2 ld.exe'
20373   shlibpath_var=LIBPATH
20374   ;;
20375
20376 osf3* | osf4* | osf5*)
20377   version_type=osf
20378   need_lib_prefix=no
20379   need_version=no
20380   soname_spec='${libname}${release}${shared_ext}$major'
20381   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20382   shlibpath_var=LD_LIBRARY_PATH
20383   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20384   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20385   ;;
20386
20387 rdos*)
20388   dynamic_linker=no
20389   ;;
20390
20391 solaris*)
20392   version_type=linux
20393   need_lib_prefix=no
20394   need_version=no
20395   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20396   soname_spec='${libname}${release}${shared_ext}$major'
20397   shlibpath_var=LD_LIBRARY_PATH
20398   shlibpath_overrides_runpath=yes
20399   hardcode_into_libs=yes
20400   # ldd complains unless libraries are executable
20401   postinstall_cmds='chmod +x $lib'
20402   ;;
20403
20404 sunos4*)
20405   version_type=sunos
20406   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20407   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20408   shlibpath_var=LD_LIBRARY_PATH
20409   shlibpath_overrides_runpath=yes
20410   if test "$with_gnu_ld" = yes; then
20411     need_lib_prefix=no
20412   fi
20413   need_version=yes
20414   ;;
20415
20416 sysv4 | sysv4.3*)
20417   version_type=linux
20418   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20419   soname_spec='${libname}${release}${shared_ext}$major'
20420   shlibpath_var=LD_LIBRARY_PATH
20421   case $host_vendor in
20422     sni)
20423       shlibpath_overrides_runpath=no
20424       need_lib_prefix=no
20425       export_dynamic_flag_spec='${wl}-Blargedynsym'
20426       runpath_var=LD_RUN_PATH
20427       ;;
20428     siemens)
20429       need_lib_prefix=no
20430       ;;
20431     motorola)
20432       need_lib_prefix=no
20433       need_version=no
20434       shlibpath_overrides_runpath=no
20435       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20436       ;;
20437   esac
20438   ;;
20439
20440 sysv4*MP*)
20441   if test -d /usr/nec ;then
20442     version_type=linux
20443     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20444     soname_spec='$libname${shared_ext}.$major'
20445     shlibpath_var=LD_LIBRARY_PATH
20446   fi
20447   ;;
20448
20449 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20450   version_type=freebsd-elf
20451   need_lib_prefix=no
20452   need_version=no
20453   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20454   soname_spec='${libname}${release}${shared_ext}$major'
20455   shlibpath_var=LD_LIBRARY_PATH
20456   hardcode_into_libs=yes
20457   if test "$with_gnu_ld" = yes; then
20458     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20459     shlibpath_overrides_runpath=no
20460   else
20461     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20462     shlibpath_overrides_runpath=yes
20463     case $host_os in
20464       sco3.2v5*)
20465         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20466         ;;
20467     esac
20468   fi
20469   sys_lib_dlsearch_path_spec='/usr/lib'
20470   ;;
20471
20472 uts4*)
20473   version_type=linux
20474   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20475   soname_spec='${libname}${release}${shared_ext}$major'
20476   shlibpath_var=LD_LIBRARY_PATH
20477   ;;
20478
20479 *)
20480   dynamic_linker=no
20481   ;;
20482 esac
20483 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20484 echo "${ECHO_T}$dynamic_linker" >&6; }
20485 test "$dynamic_linker" = no && can_build_shared=no
20486
20487 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20488   echo $ECHO_N "(cached) $ECHO_C" >&6
20489 else
20490   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
20491 fi
20492
20493 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20494 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20495   echo $ECHO_N "(cached) $ECHO_C" >&6
20496 else
20497   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
20498 fi
20499
20500 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20501
20502 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20503 if test "$GCC" = yes; then
20504   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20505 fi
20506
20507 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20508 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20509 hardcode_action_GCJ=
20510 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20511    test -n "$runpath_var_GCJ" || \
20512    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20513
20514   # We can hardcode non-existant directories.
20515   if test "$hardcode_direct_GCJ" != no &&
20516      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20517      # have to relink, otherwise we might link with an installed library
20518      # when we should be linking with a yet-to-be-installed one
20519      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20520      test "$hardcode_minus_L_GCJ" != no; then
20521     # Linking always hardcodes the temporary library directory.
20522     hardcode_action_GCJ=relink
20523   else
20524     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20525     hardcode_action_GCJ=immediate
20526   fi
20527 else
20528   # We cannot hardcode anything, or else we can only hardcode existing
20529   # directories.
20530   hardcode_action_GCJ=unsupported
20531 fi
20532 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20533 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
20534
20535 if test "$hardcode_action_GCJ" = relink; then
20536   # Fast installation is not supported
20537   enable_fast_install=no
20538 elif test "$shlibpath_overrides_runpath" = yes ||
20539      test "$enable_shared" = no; then
20540   # Fast installation is not necessary
20541   enable_fast_install=needless
20542 fi
20543
20544
20545 # The else clause should only fire when bootstrapping the
20546 # libtool distribution, otherwise you forgot to ship ltmain.sh
20547 # with your package, and you will get complaints that there are
20548 # no rules to generate ltmain.sh.
20549 if test -f "$ltmain"; then
20550   # See if we are running on zsh, and set the options which allow our commands through
20551   # without removal of \ escapes.
20552   if test -n "${ZSH_VERSION+set}" ; then
20553     setopt NO_GLOB_SUBST
20554   fi
20555   # Now quote all the things that may contain metacharacters while being
20556   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20557   # variables and quote the copies for generation of the libtool script.
20558   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20559     SED SHELL STRIP \
20560     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20561     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20562     deplibs_check_method reload_flag reload_cmds need_locks \
20563     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20564     lt_cv_sys_global_symbol_to_c_name_address \
20565     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20566     old_postinstall_cmds old_postuninstall_cmds \
20567     compiler_GCJ \
20568     CC_GCJ \
20569     LD_GCJ \
20570     lt_prog_compiler_wl_GCJ \
20571     lt_prog_compiler_pic_GCJ \
20572     lt_prog_compiler_static_GCJ \
20573     lt_prog_compiler_no_builtin_flag_GCJ \
20574     export_dynamic_flag_spec_GCJ \
20575     thread_safe_flag_spec_GCJ \
20576     whole_archive_flag_spec_GCJ \
20577     enable_shared_with_static_runtimes_GCJ \
20578     old_archive_cmds_GCJ \
20579     old_archive_from_new_cmds_GCJ \
20580     predep_objects_GCJ \
20581     postdep_objects_GCJ \
20582     predeps_GCJ \
20583     postdeps_GCJ \
20584     compiler_lib_search_path_GCJ \
20585     compiler_lib_search_dirs_GCJ \
20586     archive_cmds_GCJ \
20587     archive_expsym_cmds_GCJ \
20588     postinstall_cmds_GCJ \
20589     postuninstall_cmds_GCJ \
20590     old_archive_from_expsyms_cmds_GCJ \
20591     allow_undefined_flag_GCJ \
20592     no_undefined_flag_GCJ \
20593     export_symbols_cmds_GCJ \
20594     hardcode_libdir_flag_spec_GCJ \
20595     hardcode_libdir_flag_spec_ld_GCJ \
20596     hardcode_libdir_separator_GCJ \
20597     hardcode_automatic_GCJ \
20598     module_cmds_GCJ \
20599     module_expsym_cmds_GCJ \
20600     lt_cv_prog_compiler_c_o_GCJ \
20601     fix_srcfile_path_GCJ \
20602     exclude_expsyms_GCJ \
20603     include_expsyms_GCJ; do
20604
20605     case $var in
20606     old_archive_cmds_GCJ | \
20607     old_archive_from_new_cmds_GCJ | \
20608     archive_cmds_GCJ | \
20609     archive_expsym_cmds_GCJ | \
20610     module_cmds_GCJ | \
20611     module_expsym_cmds_GCJ | \
20612     old_archive_from_expsyms_cmds_GCJ | \
20613     export_symbols_cmds_GCJ | \
20614     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20615     postinstall_cmds | postuninstall_cmds | \
20616     old_postinstall_cmds | old_postuninstall_cmds | \
20617     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20618       # Double-quote double-evaled strings.
20619       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20620       ;;
20621     *)
20622       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20623       ;;
20624     esac
20625   done
20626
20627   case $lt_echo in
20628   *'\$0 --fallback-echo"')
20629     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20630     ;;
20631   esac
20632
20633 cfgfile="$ofile"
20634
20635   cat <<__EOF__ >> "$cfgfile"
20636 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20637
20638 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20639
20640 # Shell to use when invoking shell scripts.
20641 SHELL=$lt_SHELL
20642
20643 # Whether or not to build shared libraries.
20644 build_libtool_libs=$enable_shared
20645
20646 # Whether or not to build static libraries.
20647 build_old_libs=$enable_static
20648
20649 # Whether or not to add -lc for building shared libraries.
20650 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20651
20652 # Whether or not to disallow shared libs when runtime libs are static
20653 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20654
20655 # Whether or not to optimize for fast installation.
20656 fast_install=$enable_fast_install
20657
20658 # The host system.
20659 host_alias=$host_alias
20660 host=$host
20661 host_os=$host_os
20662
20663 # The build system.
20664 build_alias=$build_alias
20665 build=$build
20666 build_os=$build_os
20667
20668 # An echo program that does not interpret backslashes.
20669 echo=$lt_echo
20670
20671 # The archiver.
20672 AR=$lt_AR
20673 AR_FLAGS=$lt_AR_FLAGS
20674
20675 # A C compiler.
20676 LTCC=$lt_LTCC
20677
20678 # LTCC compiler flags.
20679 LTCFLAGS=$lt_LTCFLAGS
20680
20681 # A language-specific compiler.
20682 CC=$lt_compiler_GCJ
20683
20684 # Is the compiler the GNU C compiler?
20685 with_gcc=$GCC_GCJ
20686
20687 # An ERE matcher.
20688 EGREP=$lt_EGREP
20689
20690 # The linker used to build libraries.
20691 LD=$lt_LD_GCJ
20692
20693 # Whether we need hard or soft links.
20694 LN_S=$lt_LN_S
20695
20696 # A BSD-compatible nm program.
20697 NM=$lt_NM
20698
20699 # A symbol stripping program
20700 STRIP=$lt_STRIP
20701
20702 # Used to examine libraries when file_magic_cmd begins "file"
20703 MAGIC_CMD=$MAGIC_CMD
20704
20705 # Used on cygwin: DLL creation program.
20706 DLLTOOL="$DLLTOOL"
20707
20708 # Used on cygwin: object dumper.
20709 OBJDUMP="$OBJDUMP"
20710
20711 # Used on cygwin: assembler.
20712 AS="$AS"
20713
20714 # The name of the directory that contains temporary libtool files.
20715 objdir=$objdir
20716
20717 # How to create reloadable object files.
20718 reload_flag=$lt_reload_flag
20719 reload_cmds=$lt_reload_cmds
20720
20721 # How to pass a linker flag through the compiler.
20722 wl=$lt_lt_prog_compiler_wl_GCJ
20723
20724 # Object file suffix (normally "o").
20725 objext="$ac_objext"
20726
20727 # Old archive suffix (normally "a").
20728 libext="$libext"
20729
20730 # Shared library suffix (normally ".so").
20731 shrext_cmds='$shrext_cmds'
20732
20733 # Executable file suffix (normally "").
20734 exeext="$exeext"
20735
20736 # Additional compiler flags for building library objects.
20737 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20738 pic_mode=$pic_mode
20739
20740 # What is the maximum length of a command?
20741 max_cmd_len=$lt_cv_sys_max_cmd_len
20742
20743 # Does compiler simultaneously support -c and -o options?
20744 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20745
20746 # Must we lock files when doing compilation?
20747 need_locks=$lt_need_locks
20748
20749 # Do we need the lib prefix for modules?
20750 need_lib_prefix=$need_lib_prefix
20751
20752 # Do we need a version for libraries?
20753 need_version=$need_version
20754
20755 # Whether dlopen is supported.
20756 dlopen_support=$enable_dlopen
20757
20758 # Whether dlopen of programs is supported.
20759 dlopen_self=$enable_dlopen_self
20760
20761 # Whether dlopen of statically linked programs is supported.
20762 dlopen_self_static=$enable_dlopen_self_static
20763
20764 # Compiler flag to prevent dynamic linking.
20765 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20766
20767 # Compiler flag to turn off builtin functions.
20768 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20769
20770 # Compiler flag to allow reflexive dlopens.
20771 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20772
20773 # Compiler flag to generate shared objects directly from archives.
20774 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20775
20776 # Compiler flag to generate thread-safe objects.
20777 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20778
20779 # Library versioning type.
20780 version_type=$version_type
20781
20782 # Format of library name prefix.
20783 libname_spec=$lt_libname_spec
20784
20785 # List of archive names.  First name is the real one, the rest are links.
20786 # The last name is the one that the linker finds with -lNAME.
20787 library_names_spec=$lt_library_names_spec
20788
20789 # The coded name of the library, if different from the real name.
20790 soname_spec=$lt_soname_spec
20791
20792 # Commands used to build and install an old-style archive.
20793 RANLIB=$lt_RANLIB
20794 old_archive_cmds=$lt_old_archive_cmds_GCJ
20795 old_postinstall_cmds=$lt_old_postinstall_cmds
20796 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20797
20798 # Create an old-style archive from a shared archive.
20799 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20800
20801 # Create a temporary old-style archive to link instead of a shared archive.
20802 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20803
20804 # Commands used to build and install a shared archive.
20805 archive_cmds=$lt_archive_cmds_GCJ
20806 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20807 postinstall_cmds=$lt_postinstall_cmds
20808 postuninstall_cmds=$lt_postuninstall_cmds
20809
20810 # Commands used to build a loadable module (assumed same as above if empty)
20811 module_cmds=$lt_module_cmds_GCJ
20812 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20813
20814 # Commands to strip libraries.
20815 old_striplib=$lt_old_striplib
20816 striplib=$lt_striplib
20817
20818 # Dependencies to place before the objects being linked to create a
20819 # shared library.
20820 predep_objects=$lt_predep_objects_GCJ
20821
20822 # Dependencies to place after the objects being linked to create a
20823 # shared library.
20824 postdep_objects=$lt_postdep_objects_GCJ
20825
20826 # Dependencies to place before the objects being linked to create a
20827 # shared library.
20828 predeps=$lt_predeps_GCJ
20829
20830 # Dependencies to place after the objects being linked to create a
20831 # shared library.
20832 postdeps=$lt_postdeps_GCJ
20833
20834 # The directories searched by this compiler when creating a shared
20835 # library
20836 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
20837
20838 # The library search path used internally by the compiler when linking
20839 # a shared library.
20840 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20841
20842 # Method to check whether dependent libraries are shared objects.
20843 deplibs_check_method=$lt_deplibs_check_method
20844
20845 # Command to use when deplibs_check_method == file_magic.
20846 file_magic_cmd=$lt_file_magic_cmd
20847
20848 # Flag that allows shared libraries with undefined symbols to be built.
20849 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20850
20851 # Flag that forces no undefined symbols.
20852 no_undefined_flag=$lt_no_undefined_flag_GCJ
20853
20854 # Commands used to finish a libtool library installation in a directory.
20855 finish_cmds=$lt_finish_cmds
20856
20857 # Same as above, but a single script fragment to be evaled but not shown.
20858 finish_eval=$lt_finish_eval
20859
20860 # Take the output of nm and produce a listing of raw symbols and C names.
20861 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20862
20863 # Transform the output of nm in a proper C declaration
20864 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20865
20866 # Transform the output of nm in a C name address pair
20867 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20868
20869 # This is the shared library runtime path variable.
20870 runpath_var=$runpath_var
20871
20872 # This is the shared library path variable.
20873 shlibpath_var=$shlibpath_var
20874
20875 # Is shlibpath searched before the hard-coded library search path?
20876 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20877
20878 # How to hardcode a shared library path into an executable.
20879 hardcode_action=$hardcode_action_GCJ
20880
20881 # Whether we should hardcode library paths into libraries.
20882 hardcode_into_libs=$hardcode_into_libs
20883
20884 # Flag to hardcode \$libdir into a binary during linking.
20885 # This must work even if \$libdir does not exist.
20886 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20887
20888 # If ld is used when linking, flag to hardcode \$libdir into
20889 # a binary during linking. This must work even if \$libdir does
20890 # not exist.
20891 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20892
20893 # Whether we need a single -rpath flag with a separated argument.
20894 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20895
20896 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20897 # resulting binary.
20898 hardcode_direct=$hardcode_direct_GCJ
20899
20900 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20901 # resulting binary.
20902 hardcode_minus_L=$hardcode_minus_L_GCJ
20903
20904 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20905 # the resulting binary.
20906 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20907
20908 # Set to yes if building a shared library automatically hardcodes DIR into the library
20909 # and all subsequent libraries and executables linked against it.
20910 hardcode_automatic=$hardcode_automatic_GCJ
20911
20912 # Variables whose values should be saved in libtool wrapper scripts and
20913 # restored at relink time.
20914 variables_saved_for_relink="$variables_saved_for_relink"
20915
20916 # Whether libtool must link a program against all its dependency libraries.
20917 link_all_deplibs=$link_all_deplibs_GCJ
20918
20919 # Compile-time system search path for libraries
20920 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20921
20922 # Run-time system search path for libraries
20923 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20924
20925 # Fix the shell variable \$srcfile for the compiler.
20926 fix_srcfile_path=$lt_fix_srcfile_path
20927
20928 # Set to yes if exported symbols are required.
20929 always_export_symbols=$always_export_symbols_GCJ
20930
20931 # The commands to list exported symbols.
20932 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20933
20934 # The commands to extract the exported symbol list from a shared archive.
20935 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20936
20937 # Symbols that should not be listed in the preloaded symbols.
20938 exclude_expsyms=$lt_exclude_expsyms_GCJ
20939
20940 # Symbols that must always be exported.
20941 include_expsyms=$lt_include_expsyms_GCJ
20942
20943 # ### END LIBTOOL TAG CONFIG: $tagname
20944
20945 __EOF__
20946
20947
20948 else
20949   # If there is no Makefile yet, we rely on a make rule to execute
20950   # `config.status --recheck' to rerun these tests and create the
20951   # libtool script then.
20952   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20953   if test -f "$ltmain_in"; then
20954     test -f Makefile && make "$ltmain"
20955   fi
20956 fi
20957
20958
20959 ac_ext=c
20960 ac_cpp='$CPP $CPPFLAGS'
20961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20964
20965 CC="$lt_save_CC"
20966
20967         else
20968           tagname=""
20969         fi
20970         ;;
20971
20972       RC)
20973         
20974
20975 # Source file extension for RC test sources.
20976 ac_ext=rc
20977
20978 # Object file extension for compiled RC test sources.
20979 objext=o
20980 objext_RC=$objext
20981
20982 # Code to be used in simple compile tests
20983 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
20984
20985 # Code to be used in simple link tests
20986 lt_simple_link_test_code="$lt_simple_compile_test_code"
20987
20988 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20989
20990 # If no C compiler was specified, use CC.
20991 LTCC=${LTCC-"$CC"}
20992
20993 # If no C compiler flags were specified, use CFLAGS.
20994 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20995
20996 # Allow CC to be a program name with arguments.
20997 compiler=$CC
20998
20999
21000 # save warnings/boilerplate of simple test code
21001 ac_outfile=conftest.$ac_objext
21002 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
21003 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21004 _lt_compiler_boilerplate=`cat conftest.err`
21005 $rm conftest*
21006
21007 ac_outfile=conftest.$ac_objext
21008 echo "$lt_simple_link_test_code" >conftest.$ac_ext
21009 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21010 _lt_linker_boilerplate=`cat conftest.err`
21011 $rm -r conftest*
21012
21013
21014 # Allow CC to be a program name with arguments.
21015 lt_save_CC="$CC"
21016 CC=${RC-"windres"}
21017 compiler=$CC
21018 compiler_RC=$CC
21019 for cc_temp in $compiler""; do
21020   case $cc_temp in
21021     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21022     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21023     \-*) ;;
21024     *) break;;
21025   esac
21026 done
21027 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21028
21029 lt_cv_prog_compiler_c_o_RC=yes
21030
21031 # The else clause should only fire when bootstrapping the
21032 # libtool distribution, otherwise you forgot to ship ltmain.sh
21033 # with your package, and you will get complaints that there are
21034 # no rules to generate ltmain.sh.
21035 if test -f "$ltmain"; then
21036   # See if we are running on zsh, and set the options which allow our commands through
21037   # without removal of \ escapes.
21038   if test -n "${ZSH_VERSION+set}" ; then
21039     setopt NO_GLOB_SUBST
21040   fi
21041   # Now quote all the things that may contain metacharacters while being
21042   # careful not to overquote the AC_SUBSTed values.  We take copies of the
21043   # variables and quote the copies for generation of the libtool script.
21044   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
21045     SED SHELL STRIP \
21046     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21047     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21048     deplibs_check_method reload_flag reload_cmds need_locks \
21049     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21050     lt_cv_sys_global_symbol_to_c_name_address \
21051     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21052     old_postinstall_cmds old_postuninstall_cmds \
21053     compiler_RC \
21054     CC_RC \
21055     LD_RC \
21056     lt_prog_compiler_wl_RC \
21057     lt_prog_compiler_pic_RC \
21058     lt_prog_compiler_static_RC \
21059     lt_prog_compiler_no_builtin_flag_RC \
21060     export_dynamic_flag_spec_RC \
21061     thread_safe_flag_spec_RC \
21062     whole_archive_flag_spec_RC \
21063     enable_shared_with_static_runtimes_RC \
21064     old_archive_cmds_RC \
21065     old_archive_from_new_cmds_RC \
21066     predep_objects_RC \
21067     postdep_objects_RC \
21068     predeps_RC \
21069     postdeps_RC \
21070     compiler_lib_search_path_RC \
21071     compiler_lib_search_dirs_RC \
21072     archive_cmds_RC \
21073     archive_expsym_cmds_RC \
21074     postinstall_cmds_RC \
21075     postuninstall_cmds_RC \
21076     old_archive_from_expsyms_cmds_RC \
21077     allow_undefined_flag_RC \
21078     no_undefined_flag_RC \
21079     export_symbols_cmds_RC \
21080     hardcode_libdir_flag_spec_RC \
21081     hardcode_libdir_flag_spec_ld_RC \
21082     hardcode_libdir_separator_RC \
21083     hardcode_automatic_RC \
21084     module_cmds_RC \
21085     module_expsym_cmds_RC \
21086     lt_cv_prog_compiler_c_o_RC \
21087     fix_srcfile_path_RC \
21088     exclude_expsyms_RC \
21089     include_expsyms_RC; do
21090
21091     case $var in
21092     old_archive_cmds_RC | \
21093     old_archive_from_new_cmds_RC | \
21094     archive_cmds_RC | \
21095     archive_expsym_cmds_RC | \
21096     module_cmds_RC | \
21097     module_expsym_cmds_RC | \
21098     old_archive_from_expsyms_cmds_RC | \
21099     export_symbols_cmds_RC | \
21100     extract_expsyms_cmds | reload_cmds | finish_cmds | \
21101     postinstall_cmds | postuninstall_cmds | \
21102     old_postinstall_cmds | old_postuninstall_cmds | \
21103     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21104       # Double-quote double-evaled strings.
21105       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21106       ;;
21107     *)
21108       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21109       ;;
21110     esac
21111   done
21112
21113   case $lt_echo in
21114   *'\$0 --fallback-echo"')
21115     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21116     ;;
21117   esac
21118
21119 cfgfile="$ofile"
21120
21121   cat <<__EOF__ >> "$cfgfile"
21122 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21123
21124 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21125
21126 # Shell to use when invoking shell scripts.
21127 SHELL=$lt_SHELL
21128
21129 # Whether or not to build shared libraries.
21130 build_libtool_libs=$enable_shared
21131
21132 # Whether or not to build static libraries.
21133 build_old_libs=$enable_static
21134
21135 # Whether or not to add -lc for building shared libraries.
21136 build_libtool_need_lc=$archive_cmds_need_lc_RC
21137
21138 # Whether or not to disallow shared libs when runtime libs are static
21139 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
21140
21141 # Whether or not to optimize for fast installation.
21142 fast_install=$enable_fast_install
21143
21144 # The host system.
21145 host_alias=$host_alias
21146 host=$host
21147 host_os=$host_os
21148
21149 # The build system.
21150 build_alias=$build_alias
21151 build=$build
21152 build_os=$build_os
21153
21154 # An echo program that does not interpret backslashes.
21155 echo=$lt_echo
21156
21157 # The archiver.
21158 AR=$lt_AR
21159 AR_FLAGS=$lt_AR_FLAGS
21160
21161 # A C compiler.
21162 LTCC=$lt_LTCC
21163
21164 # LTCC compiler flags.
21165 LTCFLAGS=$lt_LTCFLAGS
21166
21167 # A language-specific compiler.
21168 CC=$lt_compiler_RC
21169
21170 # Is the compiler the GNU C compiler?
21171 with_gcc=$GCC_RC
21172
21173 # An ERE matcher.
21174 EGREP=$lt_EGREP
21175
21176 # The linker used to build libraries.
21177 LD=$lt_LD_RC
21178
21179 # Whether we need hard or soft links.
21180 LN_S=$lt_LN_S
21181
21182 # A BSD-compatible nm program.
21183 NM=$lt_NM
21184
21185 # A symbol stripping program
21186 STRIP=$lt_STRIP
21187
21188 # Used to examine libraries when file_magic_cmd begins "file"
21189 MAGIC_CMD=$MAGIC_CMD
21190
21191 # Used on cygwin: DLL creation program.
21192 DLLTOOL="$DLLTOOL"
21193
21194 # Used on cygwin: object dumper.
21195 OBJDUMP="$OBJDUMP"
21196
21197 # Used on cygwin: assembler.
21198 AS="$AS"
21199
21200 # The name of the directory that contains temporary libtool files.
21201 objdir=$objdir
21202
21203 # How to create reloadable object files.
21204 reload_flag=$lt_reload_flag
21205 reload_cmds=$lt_reload_cmds
21206
21207 # How to pass a linker flag through the compiler.
21208 wl=$lt_lt_prog_compiler_wl_RC
21209
21210 # Object file suffix (normally "o").
21211 objext="$ac_objext"
21212
21213 # Old archive suffix (normally "a").
21214 libext="$libext"
21215
21216 # Shared library suffix (normally ".so").
21217 shrext_cmds='$shrext_cmds'
21218
21219 # Executable file suffix (normally "").
21220 exeext="$exeext"
21221
21222 # Additional compiler flags for building library objects.
21223 pic_flag=$lt_lt_prog_compiler_pic_RC
21224 pic_mode=$pic_mode
21225
21226 # What is the maximum length of a command?
21227 max_cmd_len=$lt_cv_sys_max_cmd_len
21228
21229 # Does compiler simultaneously support -c and -o options?
21230 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
21231
21232 # Must we lock files when doing compilation?
21233 need_locks=$lt_need_locks
21234
21235 # Do we need the lib prefix for modules?
21236 need_lib_prefix=$need_lib_prefix
21237
21238 # Do we need a version for libraries?
21239 need_version=$need_version
21240
21241 # Whether dlopen is supported.
21242 dlopen_support=$enable_dlopen
21243
21244 # Whether dlopen of programs is supported.
21245 dlopen_self=$enable_dlopen_self
21246
21247 # Whether dlopen of statically linked programs is supported.
21248 dlopen_self_static=$enable_dlopen_self_static
21249
21250 # Compiler flag to prevent dynamic linking.
21251 link_static_flag=$lt_lt_prog_compiler_static_RC
21252
21253 # Compiler flag to turn off builtin functions.
21254 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21255
21256 # Compiler flag to allow reflexive dlopens.
21257 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21258
21259 # Compiler flag to generate shared objects directly from archives.
21260 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21261
21262 # Compiler flag to generate thread-safe objects.
21263 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
21264
21265 # Library versioning type.
21266 version_type=$version_type
21267
21268 # Format of library name prefix.
21269 libname_spec=$lt_libname_spec
21270
21271 # List of archive names.  First name is the real one, the rest are links.
21272 # The last name is the one that the linker finds with -lNAME.
21273 library_names_spec=$lt_library_names_spec
21274
21275 # The coded name of the library, if different from the real name.
21276 soname_spec=$lt_soname_spec
21277
21278 # Commands used to build and install an old-style archive.
21279 RANLIB=$lt_RANLIB
21280 old_archive_cmds=$lt_old_archive_cmds_RC
21281 old_postinstall_cmds=$lt_old_postinstall_cmds
21282 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21283
21284 # Create an old-style archive from a shared archive.
21285 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21286
21287 # Create a temporary old-style archive to link instead of a shared archive.
21288 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21289
21290 # Commands used to build and install a shared archive.
21291 archive_cmds=$lt_archive_cmds_RC
21292 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21293 postinstall_cmds=$lt_postinstall_cmds
21294 postuninstall_cmds=$lt_postuninstall_cmds
21295
21296 # Commands used to build a loadable module (assumed same as above if empty)
21297 module_cmds=$lt_module_cmds_RC
21298 module_expsym_cmds=$lt_module_expsym_cmds_RC
21299
21300 # Commands to strip libraries.
21301 old_striplib=$lt_old_striplib
21302 striplib=$lt_striplib
21303
21304 # Dependencies to place before the objects being linked to create a
21305 # shared library.
21306 predep_objects=$lt_predep_objects_RC
21307
21308 # Dependencies to place after the objects being linked to create a
21309 # shared library.
21310 postdep_objects=$lt_postdep_objects_RC
21311
21312 # Dependencies to place before the objects being linked to create a
21313 # shared library.
21314 predeps=$lt_predeps_RC
21315
21316 # Dependencies to place after the objects being linked to create a
21317 # shared library.
21318 postdeps=$lt_postdeps_RC
21319
21320 # The directories searched by this compiler when creating a shared
21321 # library
21322 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
21323
21324 # The library search path used internally by the compiler when linking
21325 # a shared library.
21326 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21327
21328 # Method to check whether dependent libraries are shared objects.
21329 deplibs_check_method=$lt_deplibs_check_method
21330
21331 # Command to use when deplibs_check_method == file_magic.
21332 file_magic_cmd=$lt_file_magic_cmd
21333
21334 # Flag that allows shared libraries with undefined symbols to be built.
21335 allow_undefined_flag=$lt_allow_undefined_flag_RC
21336
21337 # Flag that forces no undefined symbols.
21338 no_undefined_flag=$lt_no_undefined_flag_RC
21339
21340 # Commands used to finish a libtool library installation in a directory.
21341 finish_cmds=$lt_finish_cmds
21342
21343 # Same as above, but a single script fragment to be evaled but not shown.
21344 finish_eval=$lt_finish_eval
21345
21346 # Take the output of nm and produce a listing of raw symbols and C names.
21347 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21348
21349 # Transform the output of nm in a proper C declaration
21350 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21351
21352 # Transform the output of nm in a C name address pair
21353 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21354
21355 # This is the shared library runtime path variable.
21356 runpath_var=$runpath_var
21357
21358 # This is the shared library path variable.
21359 shlibpath_var=$shlibpath_var
21360
21361 # Is shlibpath searched before the hard-coded library search path?
21362 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21363
21364 # How to hardcode a shared library path into an executable.
21365 hardcode_action=$hardcode_action_RC
21366
21367 # Whether we should hardcode library paths into libraries.
21368 hardcode_into_libs=$hardcode_into_libs
21369
21370 # Flag to hardcode \$libdir into a binary during linking.
21371 # This must work even if \$libdir does not exist.
21372 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21373
21374 # If ld is used when linking, flag to hardcode \$libdir into
21375 # a binary during linking. This must work even if \$libdir does
21376 # not exist.
21377 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
21378
21379 # Whether we need a single -rpath flag with a separated argument.
21380 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21381
21382 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21383 # resulting binary.
21384 hardcode_direct=$hardcode_direct_RC
21385
21386 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21387 # resulting binary.
21388 hardcode_minus_L=$hardcode_minus_L_RC
21389
21390 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21391 # the resulting binary.
21392 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21393
21394 # Set to yes if building a shared library automatically hardcodes DIR into the library
21395 # and all subsequent libraries and executables linked against it.
21396 hardcode_automatic=$hardcode_automatic_RC
21397
21398 # Variables whose values should be saved in libtool wrapper scripts and
21399 # restored at relink time.
21400 variables_saved_for_relink="$variables_saved_for_relink"
21401
21402 # Whether libtool must link a program against all its dependency libraries.
21403 link_all_deplibs=$link_all_deplibs_RC
21404
21405 # Compile-time system search path for libraries
21406 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21407
21408 # Run-time system search path for libraries
21409 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21410
21411 # Fix the shell variable \$srcfile for the compiler.
21412 fix_srcfile_path=$lt_fix_srcfile_path
21413
21414 # Set to yes if exported symbols are required.
21415 always_export_symbols=$always_export_symbols_RC
21416
21417 # The commands to list exported symbols.
21418 export_symbols_cmds=$lt_export_symbols_cmds_RC
21419
21420 # The commands to extract the exported symbol list from a shared archive.
21421 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21422
21423 # Symbols that should not be listed in the preloaded symbols.
21424 exclude_expsyms=$lt_exclude_expsyms_RC
21425
21426 # Symbols that must always be exported.
21427 include_expsyms=$lt_include_expsyms_RC
21428
21429 # ### END LIBTOOL TAG CONFIG: $tagname
21430
21431 __EOF__
21432
21433
21434 else
21435   # If there is no Makefile yet, we rely on a make rule to execute
21436   # `config.status --recheck' to rerun these tests and create the
21437   # libtool script then.
21438   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21439   if test -f "$ltmain_in"; then
21440     test -f Makefile && make "$ltmain"
21441   fi
21442 fi
21443
21444
21445 ac_ext=c
21446 ac_cpp='$CPP $CPPFLAGS'
21447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21450
21451 CC="$lt_save_CC"
21452
21453         ;;
21454
21455       *)
21456         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21457 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21458    { (exit 1); exit 1; }; }
21459         ;;
21460       esac
21461
21462       # Append the new tag name to the list of available tags.
21463       if test -n "$tagname" ; then
21464       available_tags="$available_tags $tagname"
21465     fi
21466     fi
21467   done
21468   IFS="$lt_save_ifs"
21469
21470   # Now substitute the updated list of available tags.
21471   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21472     mv "${ofile}T" "$ofile"
21473     chmod +x "$ofile"
21474   else
21475     rm -f "${ofile}T"
21476     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21477 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21478    { (exit 1); exit 1; }; }
21479   fi
21480 fi
21481
21482
21483
21484 # This can be used to rebuild libtool when needed
21485 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21486
21487 # Always use our own libtool.
21488 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21489
21490 # Prevent multiple expansion
21491
21492
21493
21494
21495
21496
21497
21498
21499
21500
21501
21502   
21503
21504   
21505
21506
21507   
21508        
21509        
21510
21511
21512
21513
21514 # -Wunreachable-code can't be used with library
21515 CFLAGS="$CFLAGS -pedantic-errors -Wall -Wmissing-prototypes -Wcast-align -std=c99"
21516
21517 # set -fgnu89-inline for GCC4 compilers
21518 if test -z "$ac_cv_prog_CC"; then
21519   configure_gcc="$CC"
21520 else
21521   configure_gcc="$ac_cv_prog_CC"
21522 fi
21523 if $configure_gcc --version | sed -e 's,\..*,.,' -e q | grep -q 4.$ ; then
21524   CFLAGS="$CFLAGS -fgnu89-inline"
21525 fi
21526
21527
21528
21529
21530
21531 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21532         if test -n "$ac_tool_prefix"; then
21533   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21534 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21537 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21538   echo $ECHO_N "(cached) $ECHO_C" >&6
21539 else
21540   case $PKG_CONFIG in
21541   [\\/]* | ?:[\\/]*)
21542   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21543   ;;
21544   *)
21545   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21546 for as_dir in $PATH
21547 do
21548   IFS=$as_save_IFS
21549   test -z "$as_dir" && as_dir=.
21550   for ac_exec_ext in '' $ac_executable_extensions; do
21551   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21552     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21553     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21554     break 2
21555   fi
21556 done
21557 done
21558 IFS=$as_save_IFS
21559
21560   ;;
21561 esac
21562 fi
21563 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21564 if test -n "$PKG_CONFIG"; then
21565   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21566 echo "${ECHO_T}$PKG_CONFIG" >&6; }
21567 else
21568   { echo "$as_me:$LINENO: result: no" >&5
21569 echo "${ECHO_T}no" >&6; }
21570 fi
21571
21572
21573 fi
21574 if test -z "$ac_cv_path_PKG_CONFIG"; then
21575   ac_pt_PKG_CONFIG=$PKG_CONFIG
21576   # Extract the first word of "pkg-config", so it can be a program name with args.
21577 set dummy pkg-config; ac_word=$2
21578 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21580 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
21581   echo $ECHO_N "(cached) $ECHO_C" >&6
21582 else
21583   case $ac_pt_PKG_CONFIG in
21584   [\\/]* | ?:[\\/]*)
21585   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21586   ;;
21587   *)
21588   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21589 for as_dir in $PATH
21590 do
21591   IFS=$as_save_IFS
21592   test -z "$as_dir" && as_dir=.
21593   for ac_exec_ext in '' $ac_executable_extensions; do
21594   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21595     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21596     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21597     break 2
21598   fi
21599 done
21600 done
21601 IFS=$as_save_IFS
21602
21603   ;;
21604 esac
21605 fi
21606 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21607 if test -n "$ac_pt_PKG_CONFIG"; then
21608   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
21609 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
21610 else
21611   { echo "$as_me:$LINENO: result: no" >&5
21612 echo "${ECHO_T}no" >&6; }
21613 fi
21614
21615   if test "x$ac_pt_PKG_CONFIG" = x; then
21616     PKG_CONFIG=""
21617   else
21618     case $cross_compiling:$ac_tool_warned in
21619 yes:)
21620 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21621 whose name does not start with the host triplet.  If you think this
21622 configuration is useful to you, please write to autoconf@gnu.org." >&5
21623 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21624 whose name does not start with the host triplet.  If you think this
21625 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21626 ac_tool_warned=yes ;;
21627 esac
21628     PKG_CONFIG=$ac_pt_PKG_CONFIG
21629   fi
21630 else
21631   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21632 fi
21633
21634 fi
21635 if test -n "$PKG_CONFIG"; then
21636         _pkg_min_version=0.9.0
21637         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
21638 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
21639         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21640                 { echo "$as_me:$LINENO: result: yes" >&5
21641 echo "${ECHO_T}yes" >&6; }
21642         else
21643                 { echo "$as_me:$LINENO: result: no" >&5
21644 echo "${ECHO_T}no" >&6; }
21645                 PKG_CONFIG=""
21646         fi
21647                 
21648 fi
21649
21650 pkg_failed=no
21651 { echo "$as_me:$LINENO: checking for PACKAGE" >&5
21652 echo $ECHO_N "checking for PACKAGE... $ECHO_C" >&6; }
21653
21654 if test -n "$PKG_CONFIG"; then
21655     if test -n "$PACKAGE_CFLAGS"; then
21656         pkg_cv_PACKAGE_CFLAGS="$PACKAGE_CFLAGS"
21657     else
21658         if test -n "$PKG_CONFIG" && \
21659     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 gtk+-2.0 libsharing conic libxml-2.0 libcurl\"") >&5
21660   ($PKG_CONFIG --exists --print-errors "glib-2.0 gtk+-2.0 libsharing conic libxml-2.0 libcurl") 2>&5
21661   ac_status=$?
21662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21663   (exit $ac_status); }; then
21664   pkg_cv_PACKAGE_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 gtk+-2.0 libsharing conic libxml-2.0 libcurl" 2>/dev/null`
21665 else
21666   pkg_failed=yes
21667 fi
21668     fi
21669 else
21670         pkg_failed=untried
21671 fi
21672 if test -n "$PKG_CONFIG"; then
21673     if test -n "$PACKAGE_LIBS"; then
21674         pkg_cv_PACKAGE_LIBS="$PACKAGE_LIBS"
21675     else
21676         if test -n "$PKG_CONFIG" && \
21677     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 gtk+-2.0 libsharing conic libxml-2.0 libcurl\"") >&5
21678   ($PKG_CONFIG --exists --print-errors "glib-2.0 gtk+-2.0 libsharing conic libxml-2.0 libcurl") 2>&5
21679   ac_status=$?
21680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21681   (exit $ac_status); }; then
21682   pkg_cv_PACKAGE_LIBS=`$PKG_CONFIG --libs "glib-2.0 gtk+-2.0 libsharing conic libxml-2.0 libcurl" 2>/dev/null`
21683 else
21684   pkg_failed=yes
21685 fi
21686     fi
21687 else
21688         pkg_failed=untried
21689 fi
21690
21691
21692
21693 if test $pkg_failed = yes; then
21694         
21695 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21696         _pkg_short_errors_supported=yes
21697 else
21698         _pkg_short_errors_supported=no
21699 fi
21700         if test $_pkg_short_errors_supported = yes; then
21701                 PACKAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0 gtk+-2.0 libsharing conic libxml-2.0 libcurl"`
21702         else 
21703                 PACKAGE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 gtk+-2.0 libsharing conic libxml-2.0 libcurl"`
21704         fi
21705         # Put the nasty error message in config.log where it belongs
21706         echo "$PACKAGE_PKG_ERRORS" >&5
21707
21708         { { echo "$as_me:$LINENO: error: Package requirements (glib-2.0 gtk+-2.0 libsharing conic libxml-2.0 libcurl) were not met:
21709
21710 $PACKAGE_PKG_ERRORS
21711
21712 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21713 installed software in a non-standard prefix.
21714
21715 Alternatively, you may set the environment variables PACKAGE_CFLAGS
21716 and PACKAGE_LIBS to avoid the need to call pkg-config.
21717 See the pkg-config man page for more details.
21718 " >&5
21719 echo "$as_me: error: Package requirements (glib-2.0 gtk+-2.0 libsharing conic libxml-2.0 libcurl) were not met:
21720
21721 $PACKAGE_PKG_ERRORS
21722
21723 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21724 installed software in a non-standard prefix.
21725
21726 Alternatively, you may set the environment variables PACKAGE_CFLAGS
21727 and PACKAGE_LIBS to avoid the need to call pkg-config.
21728 See the pkg-config man page for more details.
21729 " >&2;}
21730    { (exit 1); exit 1; }; }
21731 elif test $pkg_failed = untried; then
21732         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
21733 is in your PATH or set the PKG_CONFIG environment variable to the full
21734 path to pkg-config.
21735
21736 Alternatively, you may set the environment variables PACKAGE_CFLAGS
21737 and PACKAGE_LIBS to avoid the need to call pkg-config.
21738 See the pkg-config man page for more details.
21739
21740 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21741 See \`config.log' for more details." >&5
21742 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
21743 is in your PATH or set the PKG_CONFIG environment variable to the full
21744 path to pkg-config.
21745
21746 Alternatively, you may set the environment variables PACKAGE_CFLAGS
21747 and PACKAGE_LIBS to avoid the need to call pkg-config.
21748 See the pkg-config man page for more details.
21749
21750 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21751 See \`config.log' for more details." >&2;}
21752    { (exit 1); exit 1; }; }
21753 else
21754         PACKAGE_CFLAGS=$pkg_cv_PACKAGE_CFLAGS
21755         PACKAGE_LIBS=$pkg_cv_PACKAGE_LIBS
21756         { echo "$as_me:$LINENO: result: yes" >&5
21757 echo "${ECHO_T}yes" >&6; }
21758         :
21759 fi
21760
21761
21762
21763
21764 pkg_failed=no
21765 { echo "$as_me:$LINENO: checking for SHARING" >&5
21766 echo $ECHO_N "checking for SHARING... $ECHO_C" >&6; }
21767
21768 if test -n "$PKG_CONFIG"; then
21769     if test -n "$SHARING_CFLAGS"; then
21770         pkg_cv_SHARING_CFLAGS="$SHARING_CFLAGS"
21771     else
21772         if test -n "$PKG_CONFIG" && \
21773     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libsharing\"") >&5
21774   ($PKG_CONFIG --exists --print-errors "libsharing") 2>&5
21775   ac_status=$?
21776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21777   (exit $ac_status); }; then
21778   pkg_cv_SHARING_CFLAGS=`$PKG_CONFIG --cflags "libsharing" 2>/dev/null`
21779 else
21780   pkg_failed=yes
21781 fi
21782     fi
21783 else
21784         pkg_failed=untried
21785 fi
21786 if test -n "$PKG_CONFIG"; then
21787     if test -n "$SHARING_LIBS"; then
21788         pkg_cv_SHARING_LIBS="$SHARING_LIBS"
21789     else
21790         if test -n "$PKG_CONFIG" && \
21791     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libsharing\"") >&5
21792   ($PKG_CONFIG --exists --print-errors "libsharing") 2>&5
21793   ac_status=$?
21794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21795   (exit $ac_status); }; then
21796   pkg_cv_SHARING_LIBS=`$PKG_CONFIG --libs "libsharing" 2>/dev/null`
21797 else
21798   pkg_failed=yes
21799 fi
21800     fi
21801 else
21802         pkg_failed=untried
21803 fi
21804
21805
21806
21807 if test $pkg_failed = yes; then
21808         
21809 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21810         _pkg_short_errors_supported=yes
21811 else
21812         _pkg_short_errors_supported=no
21813 fi
21814         if test $_pkg_short_errors_supported = yes; then
21815                 SHARING_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libsharing"`
21816         else 
21817                 SHARING_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libsharing"`
21818         fi
21819         # Put the nasty error message in config.log where it belongs
21820         echo "$SHARING_PKG_ERRORS" >&5
21821
21822         { { echo "$as_me:$LINENO: error: Package requirements (libsharing) were not met:
21823
21824 $SHARING_PKG_ERRORS
21825
21826 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21827 installed software in a non-standard prefix.
21828
21829 Alternatively, you may set the environment variables SHARING_CFLAGS
21830 and SHARING_LIBS to avoid the need to call pkg-config.
21831 See the pkg-config man page for more details.
21832 " >&5
21833 echo "$as_me: error: Package requirements (libsharing) were not met:
21834
21835 $SHARING_PKG_ERRORS
21836
21837 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21838 installed software in a non-standard prefix.
21839
21840 Alternatively, you may set the environment variables SHARING_CFLAGS
21841 and SHARING_LIBS to avoid the need to call pkg-config.
21842 See the pkg-config man page for more details.
21843 " >&2;}
21844    { (exit 1); exit 1; }; }
21845 elif test $pkg_failed = untried; then
21846         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
21847 is in your PATH or set the PKG_CONFIG environment variable to the full
21848 path to pkg-config.
21849
21850 Alternatively, you may set the environment variables SHARING_CFLAGS
21851 and SHARING_LIBS to avoid the need to call pkg-config.
21852 See the pkg-config man page for more details.
21853
21854 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21855 See \`config.log' for more details." >&5
21856 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
21857 is in your PATH or set the PKG_CONFIG environment variable to the full
21858 path to pkg-config.
21859
21860 Alternatively, you may set the environment variables SHARING_CFLAGS
21861 and SHARING_LIBS to avoid the need to call pkg-config.
21862 See the pkg-config man page for more details.
21863
21864 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21865 See \`config.log' for more details." >&2;}
21866    { (exit 1); exit 1; }; }
21867 else
21868         SHARING_CFLAGS=$pkg_cv_SHARING_CFLAGS
21869         SHARING_LIBS=$pkg_cv_SHARING_LIBS
21870         { echo "$as_me:$LINENO: result: yes" >&5
21871 echo "${ECHO_T}yes" >&6; }
21872         :
21873 fi
21874
21875
21876 pkg_failed=no
21877 { echo "$as_me:$LINENO: checking for XML" >&5
21878 echo $ECHO_N "checking for XML... $ECHO_C" >&6; }
21879
21880 if test -n "$PKG_CONFIG"; then
21881     if test -n "$XML_CFLAGS"; then
21882         pkg_cv_XML_CFLAGS="$XML_CFLAGS"
21883     else
21884         if test -n "$PKG_CONFIG" && \
21885     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\"") >&5
21886   ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
21887   ac_status=$?
21888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21889   (exit $ac_status); }; then
21890   pkg_cv_XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null`
21891 else
21892   pkg_failed=yes
21893 fi
21894     fi
21895 else
21896         pkg_failed=untried
21897 fi
21898 if test -n "$PKG_CONFIG"; then
21899     if test -n "$XML_LIBS"; then
21900         pkg_cv_XML_LIBS="$XML_LIBS"
21901     else
21902         if test -n "$PKG_CONFIG" && \
21903     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\"") >&5
21904   ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
21905   ac_status=$?
21906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21907   (exit $ac_status); }; then
21908   pkg_cv_XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null`
21909 else
21910   pkg_failed=yes
21911 fi
21912     fi
21913 else
21914         pkg_failed=untried
21915 fi
21916
21917
21918
21919 if test $pkg_failed = yes; then
21920         
21921 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21922         _pkg_short_errors_supported=yes
21923 else
21924         _pkg_short_errors_supported=no
21925 fi
21926         if test $_pkg_short_errors_supported = yes; then
21927                 XML_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libxml-2.0"`
21928         else 
21929                 XML_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0"`
21930         fi
21931         # Put the nasty error message in config.log where it belongs
21932         echo "$XML_PKG_ERRORS" >&5
21933
21934         { { echo "$as_me:$LINENO: error: Package requirements (libxml-2.0) were not met:
21935
21936 $XML_PKG_ERRORS
21937
21938 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21939 installed software in a non-standard prefix.
21940
21941 Alternatively, you may set the environment variables XML_CFLAGS
21942 and XML_LIBS to avoid the need to call pkg-config.
21943 See the pkg-config man page for more details.
21944 " >&5
21945 echo "$as_me: error: Package requirements (libxml-2.0) were not met:
21946
21947 $XML_PKG_ERRORS
21948
21949 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21950 installed software in a non-standard prefix.
21951
21952 Alternatively, you may set the environment variables XML_CFLAGS
21953 and XML_LIBS to avoid the need to call pkg-config.
21954 See the pkg-config man page for more details.
21955 " >&2;}
21956    { (exit 1); exit 1; }; }
21957 elif test $pkg_failed = untried; then
21958         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
21959 is in your PATH or set the PKG_CONFIG environment variable to the full
21960 path to pkg-config.
21961
21962 Alternatively, you may set the environment variables XML_CFLAGS
21963 and XML_LIBS to avoid the need to call pkg-config.
21964 See the pkg-config man page for more details.
21965
21966 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21967 See \`config.log' for more details." >&5
21968 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
21969 is in your PATH or set the PKG_CONFIG environment variable to the full
21970 path to pkg-config.
21971
21972 Alternatively, you may set the environment variables XML_CFLAGS
21973 and XML_LIBS to avoid the need to call pkg-config.
21974 See the pkg-config man page for more details.
21975
21976 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21977 See \`config.log' for more details." >&2;}
21978    { (exit 1); exit 1; }; }
21979 else
21980         XML_CFLAGS=$pkg_cv_XML_CFLAGS
21981         XML_LIBS=$pkg_cv_XML_LIBS
21982         { echo "$as_me:$LINENO: result: yes" >&5
21983 echo "${ECHO_T}yes" >&6; }
21984         :
21985 fi
21986
21987
21988 pkg_failed=no
21989 { echo "$as_me:$LINENO: checking for CURL" >&5
21990 echo $ECHO_N "checking for CURL... $ECHO_C" >&6; }
21991
21992 if test -n "$PKG_CONFIG"; then
21993     if test -n "$CURL_CFLAGS"; then
21994         pkg_cv_CURL_CFLAGS="$CURL_CFLAGS"
21995     else
21996         if test -n "$PKG_CONFIG" && \
21997     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcurl\"") >&5
21998   ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
21999   ac_status=$?
22000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22001   (exit $ac_status); }; then
22002   pkg_cv_CURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl" 2>/dev/null`
22003 else
22004   pkg_failed=yes
22005 fi
22006     fi
22007 else
22008         pkg_failed=untried
22009 fi
22010 if test -n "$PKG_CONFIG"; then
22011     if test -n "$CURL_LIBS"; then
22012         pkg_cv_CURL_LIBS="$CURL_LIBS"
22013     else
22014         if test -n "$PKG_CONFIG" && \
22015     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcurl\"") >&5
22016   ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
22017   ac_status=$?
22018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22019   (exit $ac_status); }; then
22020   pkg_cv_CURL_LIBS=`$PKG_CONFIG --libs "libcurl" 2>/dev/null`
22021 else
22022   pkg_failed=yes
22023 fi
22024     fi
22025 else
22026         pkg_failed=untried
22027 fi
22028
22029
22030
22031 if test $pkg_failed = yes; then
22032         
22033 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22034         _pkg_short_errors_supported=yes
22035 else
22036         _pkg_short_errors_supported=no
22037 fi
22038         if test $_pkg_short_errors_supported = yes; then
22039                 CURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libcurl"`
22040         else 
22041                 CURL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libcurl"`
22042         fi
22043         # Put the nasty error message in config.log where it belongs
22044         echo "$CURL_PKG_ERRORS" >&5
22045
22046         { { echo "$as_me:$LINENO: error: Package requirements (libcurl) were not met:
22047
22048 $CURL_PKG_ERRORS
22049
22050 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22051 installed software in a non-standard prefix.
22052
22053 Alternatively, you may set the environment variables CURL_CFLAGS
22054 and CURL_LIBS to avoid the need to call pkg-config.
22055 See the pkg-config man page for more details.
22056 " >&5
22057 echo "$as_me: error: Package requirements (libcurl) were not met:
22058
22059 $CURL_PKG_ERRORS
22060
22061 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22062 installed software in a non-standard prefix.
22063
22064 Alternatively, you may set the environment variables CURL_CFLAGS
22065 and CURL_LIBS to avoid the need to call pkg-config.
22066 See the pkg-config man page for more details.
22067 " >&2;}
22068    { (exit 1); exit 1; }; }
22069 elif test $pkg_failed = untried; then
22070         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
22071 is in your PATH or set the PKG_CONFIG environment variable to the full
22072 path to pkg-config.
22073
22074 Alternatively, you may set the environment variables CURL_CFLAGS
22075 and CURL_LIBS to avoid the need to call pkg-config.
22076 See the pkg-config man page for more details.
22077
22078 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22079 See \`config.log' for more details." >&5
22080 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
22081 is in your PATH or set the PKG_CONFIG environment variable to the full
22082 path to pkg-config.
22083
22084 Alternatively, you may set the environment variables CURL_CFLAGS
22085 and CURL_LIBS to avoid the need to call pkg-config.
22086 See the pkg-config man page for more details.
22087
22088 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22089 See \`config.log' for more details." >&2;}
22090    { (exit 1); exit 1; }; }
22091 else
22092         CURL_CFLAGS=$pkg_cv_CURL_CFLAGS
22093         CURL_LIBS=$pkg_cv_CURL_LIBS
22094         { echo "$as_me:$LINENO: result: yes" >&5
22095 echo "${ECHO_T}yes" >&6; }
22096         :
22097 fi
22098
22099
22100 currentdir=`pwd`
22101
22102 pluginsdir=`$PKG_CONFIG libsharing --variable=pluginsdir`
22103
22104
22105
22106 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
22107         if test -n "$ac_tool_prefix"; then
22108   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22109 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22112 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22113   echo $ECHO_N "(cached) $ECHO_C" >&6
22114 else
22115   case $PKG_CONFIG in
22116   [\\/]* | ?:[\\/]*)
22117   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22118   ;;
22119   *)
22120   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22121 for as_dir in $PATH
22122 do
22123   IFS=$as_save_IFS
22124   test -z "$as_dir" && as_dir=.
22125   for ac_exec_ext in '' $ac_executable_extensions; do
22126   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22127     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22128     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22129     break 2
22130   fi
22131 done
22132 done
22133 IFS=$as_save_IFS
22134
22135   ;;
22136 esac
22137 fi
22138 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22139 if test -n "$PKG_CONFIG"; then
22140   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22141 echo "${ECHO_T}$PKG_CONFIG" >&6; }
22142 else
22143   { echo "$as_me:$LINENO: result: no" >&5
22144 echo "${ECHO_T}no" >&6; }
22145 fi
22146
22147
22148 fi
22149 if test -z "$ac_cv_path_PKG_CONFIG"; then
22150   ac_pt_PKG_CONFIG=$PKG_CONFIG
22151   # Extract the first word of "pkg-config", so it can be a program name with args.
22152 set dummy pkg-config; ac_word=$2
22153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22155 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
22156   echo $ECHO_N "(cached) $ECHO_C" >&6
22157 else
22158   case $ac_pt_PKG_CONFIG in
22159   [\\/]* | ?:[\\/]*)
22160   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22161   ;;
22162   *)
22163   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22164 for as_dir in $PATH
22165 do
22166   IFS=$as_save_IFS
22167   test -z "$as_dir" && as_dir=.
22168   for ac_exec_ext in '' $ac_executable_extensions; do
22169   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22170     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22171     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22172     break 2
22173   fi
22174 done
22175 done
22176 IFS=$as_save_IFS
22177
22178   ;;
22179 esac
22180 fi
22181 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22182 if test -n "$ac_pt_PKG_CONFIG"; then
22183   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
22184 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
22185 else
22186   { echo "$as_me:$LINENO: result: no" >&5
22187 echo "${ECHO_T}no" >&6; }
22188 fi
22189
22190   if test "x$ac_pt_PKG_CONFIG" = x; then
22191     PKG_CONFIG=""
22192   else
22193     case $cross_compiling:$ac_tool_warned in
22194 yes:)
22195 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22196 whose name does not start with the host triplet.  If you think this
22197 configuration is useful to you, please write to autoconf@gnu.org." >&5
22198 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22199 whose name does not start with the host triplet.  If you think this
22200 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22201 ac_tool_warned=yes ;;
22202 esac
22203     PKG_CONFIG=$ac_pt_PKG_CONFIG
22204   fi
22205 else
22206   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22207 fi
22208
22209 fi
22210 if test -n "$PKG_CONFIG"; then
22211         _pkg_min_version=0.9.0
22212         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
22213 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
22214         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
22215                 { echo "$as_me:$LINENO: result: yes" >&5
22216 echo "${ECHO_T}yes" >&6; }
22217         else
22218                 { echo "$as_me:$LINENO: result: no" >&5
22219 echo "${ECHO_T}no" >&6; }
22220                 PKG_CONFIG=""
22221         fi
22222                 
22223 fi
22224 servicesdir=`$PKG_CONFIG libsharing --variable=servicesdir`
22225
22226
22227
22228
22229 # Check whether --enable-debug was given.
22230 if test "${enable_debug+set}" = set; then
22231   enableval=$enable_debug; enable_debug=yes
22232 else
22233   enable_debug=no
22234 fi
22235
22236
22237 if test x$enable_debug = xyes; then
22238   DEBUG_CFLAGS="-DOSSOLOG_COMPILE"
22239   
22240 fi
22241
22242
22243
22244 DATADIRNAME="share"
22245 if test "x${prefix}" = "xNONE"; then
22246   
22247 cat >>confdefs.h <<_ACEOF
22248 @%:@define PACKAGE_LOCALE_DIR "${ac_default_prefix}/${DATADIRNAME}/locale"
22249 _ACEOF
22250
22251 else
22252   
22253 cat >>confdefs.h <<_ACEOF
22254 @%:@define PACKAGE_LOCALE_DIR "${prefix}/${DATADIRNAME}/locale"
22255 _ACEOF
22256
22257 fi
22258
22259
22260
22261
22262 ac_config_files="$ac_config_files Makefile data/Makefile data/yandexfotki.service.xml src/Makefile"
22263
22264 cat >confcache <<\_ACEOF
22265 # This file is a shell script that caches the results of configure
22266 # tests run on this system so they can be shared between configure
22267 # scripts and configure runs, see configure's option --config-cache.
22268 # It is not useful on other systems.  If it contains results you don't
22269 # want to keep, you may remove or edit it.
22270 #
22271 # config.status only pays attention to the cache file if you give it
22272 # the --recheck option to rerun configure.
22273 #
22274 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22275 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22276 # following values.
22277
22278 _ACEOF
22279
22280 # The following way of writing the cache mishandles newlines in values,
22281 # but we know of no workaround that is simple, portable, and efficient.
22282 # So, we kill variables containing newlines.
22283 # Ultrix sh set writes to stderr and can't be redirected directly,
22284 # and sets the high bit in the cache file unless we assign to the vars.
22285 (
22286   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22287     eval ac_val=\$$ac_var
22288     case $ac_val in #(
22289     *${as_nl}*)
22290       case $ac_var in #(
22291       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22292 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22293       esac
22294       case $ac_var in #(
22295       _ | IFS | as_nl) ;; #(
22296       *) $as_unset $ac_var ;;
22297       esac ;;
22298     esac
22299   done
22300
22301   (set) 2>&1 |
22302     case $as_nl`(ac_space=' '; set) 2>&1` in #(
22303     *${as_nl}ac_space=\ *)
22304       # `set' does not quote correctly, so add quotes (double-quote
22305       # substitution turns \\\\ into \\, and sed turns \\ into \).
22306       sed -n \
22307         "s/'/'\\\\''/g;
22308           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22309       ;; #(
22310     *)
22311       # `set' quotes correctly as required by POSIX, so do not add quotes.
22312       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22313       ;;
22314     esac |
22315     sort
22316 ) |
22317   sed '
22318      /^ac_cv_env_/b end
22319      t clear
22320      :clear
22321      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22322      t end
22323      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22324      :end' >>confcache
22325 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22326   if test -w "$cache_file"; then
22327     test "x$cache_file" != "x/dev/null" &&
22328       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22329 echo "$as_me: updating cache $cache_file" >&6;}
22330     cat confcache >$cache_file
22331   else
22332     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22333 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22334   fi
22335 fi
22336 rm -f confcache
22337
22338 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22339 # Let make expand exec_prefix.
22340 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22341
22342 DEFS=-DHAVE_CONFIG_H
22343
22344 ac_libobjs=
22345 ac_ltlibobjs=
22346 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
22347   # 1. Remove the extension, and $U if already installed.
22348   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22349   ac_i=`echo "$ac_i" | sed "$ac_script"`
22350   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22351   #    will be set to the directory where LIBOBJS objects are built.
22352   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22353   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22354 done
22355 LIB@&t@OBJS=$ac_libobjs
22356
22357 LTLIBOBJS=$ac_ltlibobjs
22358
22359
22360 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22361   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22362 Usually this means the macro was only invoked conditionally." >&5
22363 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22364 Usually this means the macro was only invoked conditionally." >&2;}
22365    { (exit 1); exit 1; }; }
22366 fi
22367 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22368   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22369 Usually this means the macro was only invoked conditionally." >&5
22370 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22371 Usually this means the macro was only invoked conditionally." >&2;}
22372    { (exit 1); exit 1; }; }
22373 fi
22374 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22375   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22376 Usually this means the macro was only invoked conditionally." >&5
22377 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22378 Usually this means the macro was only invoked conditionally." >&2;}
22379    { (exit 1); exit 1; }; }
22380 fi
22381 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22382   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22383 Usually this means the macro was only invoked conditionally." >&5
22384 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22385 Usually this means the macro was only invoked conditionally." >&2;}
22386    { (exit 1); exit 1; }; }
22387 fi
22388 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22389   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22390 Usually this means the macro was only invoked conditionally." >&5
22391 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22392 Usually this means the macro was only invoked conditionally." >&2;}
22393    { (exit 1); exit 1; }; }
22394 fi
22395 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22396   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22397 Usually this means the macro was only invoked conditionally." >&5
22398 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22399 Usually this means the macro was only invoked conditionally." >&2;}
22400    { (exit 1); exit 1; }; }
22401 fi
22402
22403 : ${CONFIG_STATUS=./config.status}
22404 ac_clean_files_save=$ac_clean_files
22405 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22406 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22407 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22408 cat >$CONFIG_STATUS <<_ACEOF
22409 #! $SHELL
22410 # Generated by $as_me.
22411 # Run this file to recreate the current configuration.
22412 # Compiler output produced by configure, useful for debugging
22413 # configure, is in config.log if it exists.
22414
22415 debug=false
22416 ac_cs_recheck=false
22417 ac_cs_silent=false
22418 SHELL=\${CONFIG_SHELL-$SHELL}
22419 _ACEOF
22420
22421 cat >>$CONFIG_STATUS <<\_ACEOF
22422 ## --------------------- ##
22423 ## M4sh Initialization.  ##
22424 ## --------------------- ##
22425
22426 # Be more Bourne compatible
22427 DUALCASE=1; export DUALCASE # for MKS sh
22428 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22429   emulate sh
22430   NULLCMD=:
22431   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22432   # is contrary to our usage.  Disable this feature.
22433   alias -g '${1+"$@"}'='"$@"'
22434   setopt NO_GLOB_SUBST
22435 else
22436   case `(set -o) 2>/dev/null` in
22437   *posix*) set -o posix ;;
22438 esac
22439
22440 fi
22441
22442
22443
22444
22445 # PATH needs CR
22446 # Avoid depending upon Character Ranges.
22447 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22448 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22449 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22450 as_cr_digits='0123456789'
22451 as_cr_alnum=$as_cr_Letters$as_cr_digits
22452
22453 # The user is always right.
22454 if test "${PATH_SEPARATOR+set}" != set; then
22455   echo "#! /bin/sh" >conf$$.sh
22456   echo  "exit 0"   >>conf$$.sh
22457   chmod +x conf$$.sh
22458   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22459     PATH_SEPARATOR=';'
22460   else
22461     PATH_SEPARATOR=:
22462   fi
22463   rm -f conf$$.sh
22464 fi
22465
22466 # Support unset when possible.
22467 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22468   as_unset=unset
22469 else
22470   as_unset=false
22471 fi
22472
22473
22474 # IFS
22475 # We need space, tab and new line, in precisely that order.  Quoting is
22476 # there to prevent editors from complaining about space-tab.
22477 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22478 # splitting by setting IFS to empty value.)
22479 as_nl='
22480 '
22481 IFS=" ""        $as_nl"
22482
22483 # Find who we are.  Look in the path if we contain no directory separator.
22484 case $0 in
22485   *[\\/]* ) as_myself=$0 ;;
22486   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22487 for as_dir in $PATH
22488 do
22489   IFS=$as_save_IFS
22490   test -z "$as_dir" && as_dir=.
22491   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22492 done
22493 IFS=$as_save_IFS
22494
22495      ;;
22496 esac
22497 # We did not find ourselves, most probably we were run as `sh COMMAND'
22498 # in which case we are not to be found in the path.
22499 if test "x$as_myself" = x; then
22500   as_myself=$0
22501 fi
22502 if test ! -f "$as_myself"; then
22503   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22504   { (exit 1); exit 1; }
22505 fi
22506
22507 # Work around bugs in pre-3.0 UWIN ksh.
22508 for as_var in ENV MAIL MAILPATH
22509 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22510 done
22511 PS1='$ '
22512 PS2='> '
22513 PS4='+ '
22514
22515 # NLS nuisances.
22516 for as_var in \
22517   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22518   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22519   LC_TELEPHONE LC_TIME
22520 do
22521   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22522     eval $as_var=C; export $as_var
22523   else
22524     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22525   fi
22526 done
22527
22528 # Required to use basename.
22529 if expr a : '\(a\)' >/dev/null 2>&1 &&
22530    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22531   as_expr=expr
22532 else
22533   as_expr=false
22534 fi
22535
22536 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22537   as_basename=basename
22538 else
22539   as_basename=false
22540 fi
22541
22542
22543 # Name of the executable.
22544 as_me=`$as_basename -- "$0" ||
22545 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22546          X"$0" : 'X\(//\)$' \| \
22547          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22548 echo X/"$0" |
22549     sed '/^.*\/\([^/][^/]*\)\/*$/{
22550             s//\1/
22551             q
22552           }
22553           /^X\/\(\/\/\)$/{
22554             s//\1/
22555             q
22556           }
22557           /^X\/\(\/\).*/{
22558             s//\1/
22559             q
22560           }
22561           s/.*/./; q'`
22562
22563 # CDPATH.
22564 $as_unset CDPATH
22565
22566
22567
22568   as_lineno_1=$LINENO
22569   as_lineno_2=$LINENO
22570   test "x$as_lineno_1" != "x$as_lineno_2" &&
22571   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22572
22573   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22574   # uniformly replaced by the line number.  The first 'sed' inserts a
22575   # line-number line after each line using $LINENO; the second 'sed'
22576   # does the real work.  The second script uses 'N' to pair each
22577   # line-number line with the line containing $LINENO, and appends
22578   # trailing '-' during substitution so that $LINENO is not a special
22579   # case at line end.
22580   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22581   # scripts with optimization help from Paolo Bonzini.  Blame Lee
22582   # E. McMahon (1931-1989) for sed's syntax.  :-)
22583   sed -n '
22584     p
22585     /[$]LINENO/=
22586   ' <$as_myself |
22587     sed '
22588       s/[$]LINENO.*/&-/
22589       t lineno
22590       b
22591       :lineno
22592       N
22593       :loop
22594       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22595       t loop
22596       s/-\n.*//
22597     ' >$as_me.lineno &&
22598   chmod +x "$as_me.lineno" ||
22599     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22600    { (exit 1); exit 1; }; }
22601
22602   # Don't try to exec as it changes $[0], causing all sort of problems
22603   # (the dirname of $[0] is not the place where we might find the
22604   # original and so on.  Autoconf is especially sensitive to this).
22605   . "./$as_me.lineno"
22606   # Exit status is that of the last command.
22607   exit
22608 }
22609
22610
22611 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22612   as_dirname=dirname
22613 else
22614   as_dirname=false
22615 fi
22616
22617 ECHO_C= ECHO_N= ECHO_T=
22618 case `echo -n x` in
22619 -n*)
22620   case `echo 'x\c'` in
22621   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
22622   *)   ECHO_C='\c';;
22623   esac;;
22624 *)
22625   ECHO_N='-n';;
22626 esac
22627
22628 if expr a : '\(a\)' >/dev/null 2>&1 &&
22629    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22630   as_expr=expr
22631 else
22632   as_expr=false
22633 fi
22634
22635 rm -f conf$$ conf$$.exe conf$$.file
22636 if test -d conf$$.dir; then
22637   rm -f conf$$.dir/conf$$.file
22638 else
22639   rm -f conf$$.dir
22640   mkdir conf$$.dir
22641 fi
22642 echo >conf$$.file
22643 if ln -s conf$$.file conf$$ 2>/dev/null; then
22644   as_ln_s='ln -s'
22645   # ... but there are two gotchas:
22646   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22647   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22648   # In both cases, we have to default to `cp -p'.
22649   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22650     as_ln_s='cp -p'
22651 elif ln conf$$.file conf$$ 2>/dev/null; then
22652   as_ln_s=ln
22653 else
22654   as_ln_s='cp -p'
22655 fi
22656 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22657 rmdir conf$$.dir 2>/dev/null
22658
22659 if mkdir -p . 2>/dev/null; then
22660   as_mkdir_p=:
22661 else
22662   test -d ./-p && rmdir ./-p
22663   as_mkdir_p=false
22664 fi
22665
22666 if test -x / >/dev/null 2>&1; then
22667   as_test_x='test -x'
22668 else
22669   if ls -dL / >/dev/null 2>&1; then
22670     as_ls_L_option=L
22671   else
22672     as_ls_L_option=
22673   fi
22674   as_test_x='
22675     eval sh -c '\''
22676       if test -d "$1"; then
22677         test -d "$1/.";
22678       else
22679         case $1 in
22680         -*)set "./$1";;
22681         esac;
22682         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22683         ???[sx]*):;;*)false;;esac;fi
22684     '\'' sh
22685   '
22686 fi
22687 as_executable_p=$as_test_x
22688
22689 # Sed expression to map a string onto a valid CPP name.
22690 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22691
22692 # Sed expression to map a string onto a valid variable name.
22693 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22694
22695
22696 exec 6>&1
22697
22698 # Save the log message, to keep $[0] and so on meaningful, and to
22699 # report actual input values of CONFIG_FILES etc. instead of their
22700 # values after options handling.
22701 ac_log="
22702 This file was extended by yandex-fotki-sharing-plugin $as_me 0.1, which was
22703 generated by GNU Autoconf 2.61.  Invocation command line was
22704
22705   CONFIG_FILES    = $CONFIG_FILES
22706   CONFIG_HEADERS  = $CONFIG_HEADERS
22707   CONFIG_LINKS    = $CONFIG_LINKS
22708   CONFIG_COMMANDS = $CONFIG_COMMANDS
22709   $ $0 $@
22710
22711 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22712 "
22713
22714 _ACEOF
22715
22716 cat >>$CONFIG_STATUS <<_ACEOF
22717 # Files that config.status was made for.
22718 config_files="$ac_config_files"
22719 config_headers="$ac_config_headers"
22720 config_commands="$ac_config_commands"
22721
22722 _ACEOF
22723
22724 cat >>$CONFIG_STATUS <<\_ACEOF
22725 ac_cs_usage="\
22726 \`$as_me' instantiates files from templates according to the
22727 current configuration.
22728
22729 Usage: $0 [OPTIONS] [FILE]...
22730
22731   -h, --help       print this help, then exit
22732   -V, --version    print version number and configuration settings, then exit
22733   -q, --quiet      do not print progress messages
22734   -d, --debug      don't remove temporary files
22735       --recheck    update $as_me by reconfiguring in the same conditions
22736   --file=FILE[:TEMPLATE]
22737                    instantiate the configuration file FILE
22738   --header=FILE[:TEMPLATE]
22739                    instantiate the configuration header FILE
22740
22741 Configuration files:
22742 $config_files
22743
22744 Configuration headers:
22745 $config_headers
22746
22747 Configuration commands:
22748 $config_commands
22749
22750 Report bugs to <bug-autoconf@gnu.org>."
22751
22752 _ACEOF
22753 cat >>$CONFIG_STATUS <<_ACEOF
22754 ac_cs_version="\\
22755 yandex-fotki-sharing-plugin config.status 0.1
22756 configured by $0, generated by GNU Autoconf 2.61,
22757   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22758
22759 Copyright (C) 2006 Free Software Foundation, Inc.
22760 This config.status script is free software; the Free Software Foundation
22761 gives unlimited permission to copy, distribute and modify it."
22762
22763 ac_pwd='$ac_pwd'
22764 srcdir='$srcdir'
22765 INSTALL='$INSTALL'
22766 _ACEOF
22767
22768 cat >>$CONFIG_STATUS <<\_ACEOF
22769 # If no file are specified by the user, then we need to provide default
22770 # value.  By we need to know if files were specified by the user.
22771 ac_need_defaults=:
22772 while test $# != 0
22773 do
22774   case $1 in
22775   --*=*)
22776     ac_option=`expr "X$1" : 'X\([^=]*\)='`
22777     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22778     ac_shift=:
22779     ;;
22780   *)
22781     ac_option=$1
22782     ac_optarg=$2
22783     ac_shift=shift
22784     ;;
22785   esac
22786
22787   case $ac_option in
22788   # Handling of the options.
22789   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22790     ac_cs_recheck=: ;;
22791   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22792     echo "$ac_cs_version"; exit ;;
22793   --debug | --debu | --deb | --de | --d | -d )
22794     debug=: ;;
22795   --file | --fil | --fi | --f )
22796     $ac_shift
22797     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22798     ac_need_defaults=false;;
22799   --header | --heade | --head | --hea )
22800     $ac_shift
22801     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22802     ac_need_defaults=false;;
22803   --he | --h)
22804     # Conflict between --help and --header
22805     { echo "$as_me: error: ambiguous option: $1
22806 Try \`$0 --help' for more information." >&2
22807    { (exit 1); exit 1; }; };;
22808   --help | --hel | -h )
22809     echo "$ac_cs_usage"; exit ;;
22810   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22811   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22812     ac_cs_silent=: ;;
22813
22814   # This is an error.
22815   -*) { echo "$as_me: error: unrecognized option: $1
22816 Try \`$0 --help' for more information." >&2
22817    { (exit 1); exit 1; }; } ;;
22818
22819   *) ac_config_targets="$ac_config_targets $1"
22820      ac_need_defaults=false ;;
22821
22822   esac
22823   shift
22824 done
22825
22826 ac_configure_extra_args=
22827
22828 if $ac_cs_silent; then
22829   exec 6>/dev/null
22830   ac_configure_extra_args="$ac_configure_extra_args --silent"
22831 fi
22832
22833 _ACEOF
22834 cat >>$CONFIG_STATUS <<_ACEOF
22835 if \$ac_cs_recheck; then
22836   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22837   CONFIG_SHELL=$SHELL
22838   export CONFIG_SHELL
22839   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22840 fi
22841
22842 _ACEOF
22843 cat >>$CONFIG_STATUS <<\_ACEOF
22844 exec 5>>config.log
22845 {
22846   echo
22847   sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
22848 @%:@@%:@ Running $as_me. @%:@@%:@
22849 _ASBOX
22850   echo "$ac_log"
22851 } >&5
22852
22853 _ACEOF
22854 cat >>$CONFIG_STATUS <<_ACEOF
22855 #
22856 # INIT-COMMANDS
22857 #
22858 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22859
22860 _ACEOF
22861
22862 cat >>$CONFIG_STATUS <<\_ACEOF
22863
22864 # Handling of arguments.
22865 for ac_config_target in $ac_config_targets
22866 do
22867   case $ac_config_target in
22868     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22869     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22870     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22871     "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
22872     "data/yandexfotki.service.xml") CONFIG_FILES="$CONFIG_FILES data/yandexfotki.service.xml" ;;
22873     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22874
22875   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22876 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22877    { (exit 1); exit 1; }; };;
22878   esac
22879 done
22880
22881
22882 # If the user did not use the arguments to specify the items to instantiate,
22883 # then the envvar interface is used.  Set only those that are not.
22884 # We use the long form for the default assignment because of an extremely
22885 # bizarre bug on SunOS 4.1.3.
22886 if $ac_need_defaults; then
22887   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22888   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22889   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22890 fi
22891
22892 # Have a temporary directory for convenience.  Make it in the build tree
22893 # simply because there is no reason against having it here, and in addition,
22894 # creating and moving files from /tmp can sometimes cause problems.
22895 # Hook for its removal unless debugging.
22896 # Note that there is a small window in which the directory will not be cleaned:
22897 # after its creation but before its name has been assigned to `$tmp'.
22898 $debug ||
22899 {
22900   tmp=
22901   trap 'exit_status=$?
22902   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22903 ' 0
22904   trap '{ (exit 1); exit 1; }' 1 2 13 15
22905 }
22906 # Create a (secure) tmp directory for tmp files.
22907
22908 {
22909   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22910   test -n "$tmp" && test -d "$tmp"
22911 }  ||
22912 {
22913   tmp=./conf$$-$RANDOM
22914   (umask 077 && mkdir "$tmp")
22915 } ||
22916 {
22917    echo "$me: cannot create a temporary directory in ." >&2
22918    { (exit 1); exit 1; }
22919 }
22920
22921 #
22922 # Set up the sed scripts for CONFIG_FILES section.
22923 #
22924
22925 # No need to generate the scripts if there are no CONFIG_FILES.
22926 # This happens for instance when ./config.status config.h
22927 if test -n "$CONFIG_FILES"; then
22928
22929 _ACEOF
22930
22931
22932
22933 ac_delim='%!_!# '
22934 for ac_last_try in false false false false false :; do
22935   cat >conf$$subs.sed <<_ACEOF
22936 SHELL!$SHELL$ac_delim
22937 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22938 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22939 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22940 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22941 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22942 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22943 exec_prefix!$exec_prefix$ac_delim
22944 prefix!$prefix$ac_delim
22945 program_transform_name!$program_transform_name$ac_delim
22946 bindir!$bindir$ac_delim
22947 sbindir!$sbindir$ac_delim
22948 libexecdir!$libexecdir$ac_delim
22949 datarootdir!$datarootdir$ac_delim
22950 datadir!$datadir$ac_delim
22951 sysconfdir!$sysconfdir$ac_delim
22952 sharedstatedir!$sharedstatedir$ac_delim
22953 localstatedir!$localstatedir$ac_delim
22954 includedir!$includedir$ac_delim
22955 oldincludedir!$oldincludedir$ac_delim
22956 docdir!$docdir$ac_delim
22957 infodir!$infodir$ac_delim
22958 htmldir!$htmldir$ac_delim
22959 dvidir!$dvidir$ac_delim
22960 pdfdir!$pdfdir$ac_delim
22961 psdir!$psdir$ac_delim
22962 libdir!$libdir$ac_delim
22963 localedir!$localedir$ac_delim
22964 mandir!$mandir$ac_delim
22965 DEFS!$DEFS$ac_delim
22966 ECHO_C!$ECHO_C$ac_delim
22967 ECHO_N!$ECHO_N$ac_delim
22968 ECHO_T!$ECHO_T$ac_delim
22969 LIBS!$LIBS$ac_delim
22970 build_alias!$build_alias$ac_delim
22971 host_alias!$host_alias$ac_delim
22972 target_alias!$target_alias$ac_delim
22973 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22974 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22975 INSTALL_DATA!$INSTALL_DATA$ac_delim
22976 CYGPATH_W!$CYGPATH_W$ac_delim
22977 PACKAGE!$PACKAGE$ac_delim
22978 VERSION!$VERSION$ac_delim
22979 ACLOCAL!$ACLOCAL$ac_delim
22980 AUTOCONF!$AUTOCONF$ac_delim
22981 AUTOMAKE!$AUTOMAKE$ac_delim
22982 AUTOHEADER!$AUTOHEADER$ac_delim
22983 MAKEINFO!$MAKEINFO$ac_delim
22984 AMTAR!$AMTAR$ac_delim
22985 install_sh!$install_sh$ac_delim
22986 STRIP!$STRIP$ac_delim
22987 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
22988 mkdir_p!$mkdir_p$ac_delim
22989 AWK!$AWK$ac_delim
22990 SET_MAKE!$SET_MAKE$ac_delim
22991 am__leading_dot!$am__leading_dot$ac_delim
22992 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
22993 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
22994 MAINT!$MAINT$ac_delim
22995 CC!$CC$ac_delim
22996 CFLAGS!$CFLAGS$ac_delim
22997 LDFLAGS!$LDFLAGS$ac_delim
22998 CPPFLAGS!$CPPFLAGS$ac_delim
22999 ac_ct_CC!$ac_ct_CC$ac_delim
23000 EXEEXT!$EXEEXT$ac_delim
23001 OBJEXT!$OBJEXT$ac_delim
23002 DEPDIR!$DEPDIR$ac_delim
23003 am__include!$am__include$ac_delim
23004 am__quote!$am__quote$ac_delim
23005 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
23006 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
23007 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
23008 CCDEPMODE!$CCDEPMODE$ac_delim
23009 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
23010 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
23011 CXX!$CXX$ac_delim
23012 CXXFLAGS!$CXXFLAGS$ac_delim
23013 ac_ct_CXX!$ac_ct_CXX$ac_delim
23014 CXXDEPMODE!$CXXDEPMODE$ac_delim
23015 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
23016 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
23017 CPP!$CPP$ac_delim
23018 GREP!$GREP$ac_delim
23019 EGREP!$EGREP$ac_delim
23020 LN_S!$LN_S$ac_delim
23021 build!$build$ac_delim
23022 build_cpu!$build_cpu$ac_delim
23023 build_vendor!$build_vendor$ac_delim
23024 build_os!$build_os$ac_delim
23025 host!$host$ac_delim
23026 host_cpu!$host_cpu$ac_delim
23027 host_vendor!$host_vendor$ac_delim
23028 host_os!$host_os$ac_delim
23029 SED!$SED$ac_delim
23030 ECHO!$ECHO$ac_delim
23031 AR!$AR$ac_delim
23032 RANLIB!$RANLIB$ac_delim
23033 _ACEOF
23034
23035   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23036     break
23037   elif $ac_last_try; then
23038     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23039 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23040    { (exit 1); exit 1; }; }
23041   else
23042     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23043   fi
23044 done
23045
23046 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23047 if test -n "$ac_eof"; then
23048   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23049   ac_eof=`expr $ac_eof + 1`
23050 fi
23051
23052 cat >>$CONFIG_STATUS <<_ACEOF
23053 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23054 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23055 _ACEOF
23056 sed '
23057 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23058 s/^/s,@/; s/!/@,|#_!!_#|/
23059 :n
23060 t n
23061 s/'"$ac_delim"'$/,g/; t
23062 s/$/\\/; p
23063 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23064 ' >>$CONFIG_STATUS <conf$$subs.sed
23065 rm -f conf$$subs.sed
23066 cat >>$CONFIG_STATUS <<_ACEOF
23067 CEOF$ac_eof
23068 _ACEOF
23069
23070
23071 ac_delim='%!_!# '
23072 for ac_last_try in false false false false false :; do
23073   cat >conf$$subs.sed <<_ACEOF
23074 DSYMUTIL!$DSYMUTIL$ac_delim
23075 NMEDIT!$NMEDIT$ac_delim
23076 CXXCPP!$CXXCPP$ac_delim
23077 F77!$F77$ac_delim
23078 FFLAGS!$FFLAGS$ac_delim
23079 ac_ct_F77!$ac_ct_F77$ac_delim
23080 LIBTOOL!$LIBTOOL$ac_delim
23081 PKG_CONFIG!$PKG_CONFIG$ac_delim
23082 PACKAGE_CFLAGS!$PACKAGE_CFLAGS$ac_delim
23083 PACKAGE_LIBS!$PACKAGE_LIBS$ac_delim
23084 SHARING_CFLAGS!$SHARING_CFLAGS$ac_delim
23085 SHARING_LIBS!$SHARING_LIBS$ac_delim
23086 XML_CFLAGS!$XML_CFLAGS$ac_delim
23087 XML_LIBS!$XML_LIBS$ac_delim
23088 CURL_CFLAGS!$CURL_CFLAGS$ac_delim
23089 CURL_LIBS!$CURL_LIBS$ac_delim
23090 currentdir!$currentdir$ac_delim
23091 pluginsdir!$pluginsdir$ac_delim
23092 servicesdir!$servicesdir$ac_delim
23093 DEBUG_CFLAGS!$DEBUG_CFLAGS$ac_delim
23094 PACKAGE_LOCALE_DIR!$PACKAGE_LOCALE_DIR$ac_delim
23095 LIB@&t@OBJS!$LIB@&t@OBJS$ac_delim
23096 LTLIBOBJS!$LTLIBOBJS$ac_delim
23097 _ACEOF
23098
23099   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 23; then
23100     break
23101   elif $ac_last_try; then
23102     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23103 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23104    { (exit 1); exit 1; }; }
23105   else
23106     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23107   fi
23108 done
23109
23110 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23111 if test -n "$ac_eof"; then
23112   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23113   ac_eof=`expr $ac_eof + 1`
23114 fi
23115
23116 cat >>$CONFIG_STATUS <<_ACEOF
23117 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23118 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23119 _ACEOF
23120 sed '
23121 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23122 s/^/s,@/; s/!/@,|#_!!_#|/
23123 :n
23124 t n
23125 s/'"$ac_delim"'$/,g/; t
23126 s/$/\\/; p
23127 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23128 ' >>$CONFIG_STATUS <conf$$subs.sed
23129 rm -f conf$$subs.sed
23130 cat >>$CONFIG_STATUS <<_ACEOF
23131 :end
23132 s/|#_!!_#|//g
23133 CEOF$ac_eof
23134 _ACEOF
23135
23136
23137 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23138 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23139 # trailing colons and then remove the whole line if VPATH becomes empty
23140 # (actually we leave an empty line to preserve line numbers).
23141 if test "x$srcdir" = x.; then
23142   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23143 s/:*\$(srcdir):*/:/
23144 s/:*\${srcdir}:*/:/
23145 s/:*@srcdir@:*/:/
23146 s/^\([^=]*=[     ]*\):*/\1/
23147 s/:*$//
23148 s/^[^=]*=[       ]*$//
23149 }'
23150 fi
23151
23152 cat >>$CONFIG_STATUS <<\_ACEOF
23153 fi # test -n "$CONFIG_FILES"
23154
23155
23156 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
23157 do
23158   case $ac_tag in
23159   :[FHLC]) ac_mode=$ac_tag; continue;;
23160   esac
23161   case $ac_mode$ac_tag in
23162   :[FHL]*:*);;
23163   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23164 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23165    { (exit 1); exit 1; }; };;
23166   :[FH]-) ac_tag=-:-;;
23167   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23168   esac
23169   ac_save_IFS=$IFS
23170   IFS=:
23171   set x $ac_tag
23172   IFS=$ac_save_IFS
23173   shift
23174   ac_file=$1
23175   shift
23176
23177   case $ac_mode in
23178   :L) ac_source=$1;;
23179   :[FH])
23180     ac_file_inputs=
23181     for ac_f
23182     do
23183       case $ac_f in
23184       -) ac_f="$tmp/stdin";;
23185       *) # Look for the file first in the build tree, then in the source tree
23186          # (if the path is not absolute).  The absolute path cannot be DOS-style,
23187          # because $ac_f cannot contain `:'.
23188          test -f "$ac_f" ||
23189            case $ac_f in
23190            [\\/$]*) false;;
23191            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23192            esac ||
23193            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23194 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23195    { (exit 1); exit 1; }; };;
23196       esac
23197       ac_file_inputs="$ac_file_inputs $ac_f"
23198     done
23199
23200     # Let's still pretend it is `configure' which instantiates (i.e., don't
23201     # use $as_me), people would be surprised to read:
23202     #    /* config.h.  Generated by config.status.  */
23203     configure_input="Generated from "`IFS=:
23204           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23205     if test x"$ac_file" != x-; then
23206       configure_input="$ac_file.  $configure_input"
23207       { echo "$as_me:$LINENO: creating $ac_file" >&5
23208 echo "$as_me: creating $ac_file" >&6;}
23209     fi
23210
23211     case $ac_tag in
23212     *:-:* | *:-) cat >"$tmp/stdin";;
23213     esac
23214     ;;
23215   esac
23216
23217   ac_dir=`$as_dirname -- "$ac_file" ||
23218 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23219          X"$ac_file" : 'X\(//\)[^/]' \| \
23220          X"$ac_file" : 'X\(//\)$' \| \
23221          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23222 echo X"$ac_file" |
23223     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23224             s//\1/
23225             q
23226           }
23227           /^X\(\/\/\)[^/].*/{
23228             s//\1/
23229             q
23230           }
23231           /^X\(\/\/\)$/{
23232             s//\1/
23233             q
23234           }
23235           /^X\(\/\).*/{
23236             s//\1/
23237             q
23238           }
23239           s/.*/./; q'`
23240   { as_dir="$ac_dir"
23241   case $as_dir in #(
23242   -*) as_dir=./$as_dir;;
23243   esac
23244   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23245     as_dirs=
23246     while :; do
23247       case $as_dir in #(
23248       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23249       *) as_qdir=$as_dir;;
23250       esac
23251       as_dirs="'$as_qdir' $as_dirs"
23252       as_dir=`$as_dirname -- "$as_dir" ||
23253 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23254          X"$as_dir" : 'X\(//\)[^/]' \| \
23255          X"$as_dir" : 'X\(//\)$' \| \
23256          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23257 echo X"$as_dir" |
23258     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23259             s//\1/
23260             q
23261           }
23262           /^X\(\/\/\)[^/].*/{
23263             s//\1/
23264             q
23265           }
23266           /^X\(\/\/\)$/{
23267             s//\1/
23268             q
23269           }
23270           /^X\(\/\).*/{
23271             s//\1/
23272             q
23273           }
23274           s/.*/./; q'`
23275       test -d "$as_dir" && break
23276     done
23277     test -z "$as_dirs" || eval "mkdir $as_dirs"
23278   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23279 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23280    { (exit 1); exit 1; }; }; }
23281   ac_builddir=.
23282
23283 case "$ac_dir" in
23284 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23285 *)
23286   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23287   # A ".." for each directory in $ac_dir_suffix.
23288   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23289   case $ac_top_builddir_sub in
23290   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23291   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23292   esac ;;
23293 esac
23294 ac_abs_top_builddir=$ac_pwd
23295 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23296 # for backward compatibility:
23297 ac_top_builddir=$ac_top_build_prefix
23298
23299 case $srcdir in
23300   .)  # We are building in place.
23301     ac_srcdir=.
23302     ac_top_srcdir=$ac_top_builddir_sub
23303     ac_abs_top_srcdir=$ac_pwd ;;
23304   [\\/]* | ?:[\\/]* )  # Absolute name.
23305     ac_srcdir=$srcdir$ac_dir_suffix;
23306     ac_top_srcdir=$srcdir
23307     ac_abs_top_srcdir=$srcdir ;;
23308   *) # Relative name.
23309     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23310     ac_top_srcdir=$ac_top_build_prefix$srcdir
23311     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23312 esac
23313 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23314
23315
23316   case $ac_mode in
23317   :F)
23318   #
23319   # CONFIG_FILE
23320   #
23321
23322   case $INSTALL in
23323   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23324   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23325   esac
23326 _ACEOF
23327
23328 cat >>$CONFIG_STATUS <<\_ACEOF
23329 # If the template does not know about datarootdir, expand it.
23330 # FIXME: This hack should be removed a few years after 2.60.
23331 ac_datarootdir_hack=; ac_datarootdir_seen=
23332
23333 case `sed -n '/datarootdir/ {
23334   p
23335   q
23336 }
23337 /@datadir@/p
23338 /@docdir@/p
23339 /@infodir@/p
23340 /@localedir@/p
23341 /@mandir@/p
23342 ' $ac_file_inputs` in
23343 *datarootdir*) ac_datarootdir_seen=yes;;
23344 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23345   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23346 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23347 _ACEOF
23348 cat >>$CONFIG_STATUS <<_ACEOF
23349   ac_datarootdir_hack='
23350   s&@datadir@&$datadir&g
23351   s&@docdir@&$docdir&g
23352   s&@infodir@&$infodir&g
23353   s&@localedir@&$localedir&g
23354   s&@mandir@&$mandir&g
23355     s&\\\${datarootdir}&$datarootdir&g' ;;
23356 esac
23357 _ACEOF
23358
23359 # Neutralize VPATH when `$srcdir' = `.'.
23360 # Shell code in configure.ac might set extrasub.
23361 # FIXME: do we really want to maintain this feature?
23362 cat >>$CONFIG_STATUS <<_ACEOF
23363   sed "$ac_vpsub
23364 $extrasub
23365 _ACEOF
23366 cat >>$CONFIG_STATUS <<\_ACEOF
23367 :t
23368 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23369 s&@configure_input@&$configure_input&;t t
23370 s&@top_builddir@&$ac_top_builddir_sub&;t t
23371 s&@srcdir@&$ac_srcdir&;t t
23372 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23373 s&@top_srcdir@&$ac_top_srcdir&;t t
23374 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23375 s&@builddir@&$ac_builddir&;t t
23376 s&@abs_builddir@&$ac_abs_builddir&;t t
23377 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23378 s&@INSTALL@&$ac_INSTALL&;t t
23379 $ac_datarootdir_hack
23380 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
23381
23382 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23383   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23384   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23385   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23386 which seems to be undefined.  Please make sure it is defined." >&5
23387 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23388 which seems to be undefined.  Please make sure it is defined." >&2;}
23389
23390   rm -f "$tmp/stdin"
23391   case $ac_file in
23392   -) cat "$tmp/out"; rm -f "$tmp/out";;
23393   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23394   esac
23395  ;;
23396   :H)
23397   #
23398   # CONFIG_HEADER
23399   #
23400 _ACEOF
23401
23402 # Transform confdefs.h into a sed script `conftest.defines', that
23403 # substitutes the proper values into config.h.in to produce config.h.
23404 rm -f conftest.defines conftest.tail
23405 # First, append a space to every undef/define line, to ease matching.
23406 echo 's/$/ /' >conftest.defines
23407 # Then, protect against being on the right side of a sed subst, or in
23408 # an unquoted here document, in config.status.  If some macros were
23409 # called several times there might be several #defines for the same
23410 # symbol, which is useless.  But do not sort them, since the last
23411 # AC_DEFINE must be honored.
23412 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23413 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23414 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23415 # PARAMS is the parameter list in the macro definition--in most cases, it's
23416 # just an empty string.
23417 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
23418 ac_dB='\\)[      (].*,\\1define\\2'
23419 ac_dC=' '
23420 ac_dD=' ,'
23421
23422 uniq confdefs.h |
23423   sed -n '
23424         t rset
23425         :rset
23426         s/^[     ]*#[    ]*define[       ][      ]*//
23427         t ok
23428         d
23429         :ok
23430         s/[\\&,]/\\&/g
23431         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23432         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23433   ' >>conftest.defines
23434
23435 # Remove the space that was appended to ease matching.
23436 # Then replace #undef with comments.  This is necessary, for
23437 # example, in the case of _POSIX_SOURCE, which is predefined and required
23438 # on some systems where configure will not decide to define it.
23439 # (The regexp can be short, since the line contains either #define or #undef.)
23440 echo 's/ $//
23441 s,^[     #]*u.*,/* & */,' >>conftest.defines
23442
23443 # Break up conftest.defines:
23444 ac_max_sed_lines=50
23445
23446 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23447 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23448 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23449 # et cetera.
23450 ac_in='$ac_file_inputs'
23451 ac_out='"$tmp/out1"'
23452 ac_nxt='"$tmp/out2"'
23453
23454 while :
23455 do
23456   # Write a here document:
23457     cat >>$CONFIG_STATUS <<_ACEOF
23458     # First, check the format of the line:
23459     cat >"\$tmp/defines.sed" <<\\CEOF
23460 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
23461 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
23462 b
23463 :def
23464 _ACEOF
23465   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23466   echo 'CEOF
23467     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23468   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23469   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23470   grep . conftest.tail >/dev/null || break
23471   rm -f conftest.defines
23472   mv conftest.tail conftest.defines
23473 done
23474 rm -f conftest.defines conftest.tail
23475
23476 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23477 cat >>$CONFIG_STATUS <<\_ACEOF
23478   if test x"$ac_file" != x-; then
23479     echo "/* $configure_input  */" >"$tmp/config.h"
23480     cat "$ac_result" >>"$tmp/config.h"
23481     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23482       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23483 echo "$as_me: $ac_file is unchanged" >&6;}
23484     else
23485       rm -f $ac_file
23486       mv "$tmp/config.h" $ac_file
23487     fi
23488   else
23489     echo "/* $configure_input  */"
23490     cat "$ac_result"
23491   fi
23492   rm -f "$tmp/out12"
23493 # Compute $ac_file's index in $config_headers.
23494 _am_stamp_count=1
23495 for _am_header in $config_headers :; do
23496   case $_am_header in
23497     $ac_file | $ac_file:* )
23498       break ;;
23499     * )
23500       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23501   esac
23502 done
23503 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
23504 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23505          X$ac_file : 'X\(//\)[^/]' \| \
23506          X$ac_file : 'X\(//\)$' \| \
23507          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
23508 echo X$ac_file |
23509     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23510             s//\1/
23511             q
23512           }
23513           /^X\(\/\/\)[^/].*/{
23514             s//\1/
23515             q
23516           }
23517           /^X\(\/\/\)$/{
23518             s//\1/
23519             q
23520           }
23521           /^X\(\/\).*/{
23522             s//\1/
23523             q
23524           }
23525           s/.*/./; q'`/stamp-h$_am_stamp_count
23526  ;;
23527   
23528   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23529 echo "$as_me: executing $ac_file commands" >&6;}
23530  ;;
23531   esac
23532
23533
23534   case $ac_file$ac_mode in
23535     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23536   # Strip MF so we end up with the name of the file.
23537   mf=`echo "$mf" | sed -e 's/:.*$//'`
23538   # Check whether this is an Automake generated Makefile or not.
23539   # We used to match only the files named `Makefile.in', but
23540   # some people rename them; so instead we look at the file content.
23541   # Grep'ing the first line is not enough: some people post-process
23542   # each Makefile.in and add a new line on top of each file to say so.
23543   # So let's grep whole file.
23544   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23545     dirpart=`$as_dirname -- "$mf" ||
23546 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23547          X"$mf" : 'X\(//\)[^/]' \| \
23548          X"$mf" : 'X\(//\)$' \| \
23549          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23550 echo X"$mf" |
23551     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23552             s//\1/
23553             q
23554           }
23555           /^X\(\/\/\)[^/].*/{
23556             s//\1/
23557             q
23558           }
23559           /^X\(\/\/\)$/{
23560             s//\1/
23561             q
23562           }
23563           /^X\(\/\).*/{
23564             s//\1/
23565             q
23566           }
23567           s/.*/./; q'`
23568   else
23569     continue
23570   fi
23571   grep '^DEP_FILES *= *[^ @%:@]' < "$mf" > /dev/null || continue
23572   # Extract the definition of DEP_FILES from the Makefile without
23573   # running `make'.
23574   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23575   test -z "$DEPDIR" && continue
23576   # When using ansi2knr, U may be empty or an underscore; expand it
23577   U=`sed -n 's/^U = //p' < "$mf"`
23578   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
23579   # We invoke sed twice because it is the simplest approach to
23580   # changing $(DEPDIR) to its actual value in the expansion.
23581   for file in `sed -n '
23582     /^DEP_FILES = .*\\\\$/ {
23583       s/^DEP_FILES = //
23584       :loop
23585         s/\\\\$//
23586         p
23587         n
23588         /\\\\$/ b loop
23589       p
23590     }
23591     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
23592        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23593     # Make sure the directory exists.
23594     test -f "$dirpart/$file" && continue
23595     fdir=`$as_dirname -- "$file" ||
23596 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23597          X"$file" : 'X\(//\)[^/]' \| \
23598          X"$file" : 'X\(//\)$' \| \
23599          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23600 echo X"$file" |
23601     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23602             s//\1/
23603             q
23604           }
23605           /^X\(\/\/\)[^/].*/{
23606             s//\1/
23607             q
23608           }
23609           /^X\(\/\/\)$/{
23610             s//\1/
23611             q
23612           }
23613           /^X\(\/\).*/{
23614             s//\1/
23615             q
23616           }
23617           s/.*/./; q'`
23618     { as_dir=$dirpart/$fdir
23619   case $as_dir in #(
23620   -*) as_dir=./$as_dir;;
23621   esac
23622   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23623     as_dirs=
23624     while :; do
23625       case $as_dir in #(
23626       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23627       *) as_qdir=$as_dir;;
23628       esac
23629       as_dirs="'$as_qdir' $as_dirs"
23630       as_dir=`$as_dirname -- "$as_dir" ||
23631 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23632          X"$as_dir" : 'X\(//\)[^/]' \| \
23633          X"$as_dir" : 'X\(//\)$' \| \
23634          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23635 echo X"$as_dir" |
23636     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23637             s//\1/
23638             q
23639           }
23640           /^X\(\/\/\)[^/].*/{
23641             s//\1/
23642             q
23643           }
23644           /^X\(\/\/\)$/{
23645             s//\1/
23646             q
23647           }
23648           /^X\(\/\).*/{
23649             s//\1/
23650             q
23651           }
23652           s/.*/./; q'`
23653       test -d "$as_dir" && break
23654     done
23655     test -z "$as_dirs" || eval "mkdir $as_dirs"
23656   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23657 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23658    { (exit 1); exit 1; }; }; }
23659     # echo "creating $dirpart/$file"
23660     echo '# dummy' > "$dirpart/$file"
23661   done
23662 done
23663  ;;
23664
23665   esac
23666 done # for ac_tag
23667
23668
23669 { (exit 0); exit 0; }
23670 _ACEOF
23671 chmod +x $CONFIG_STATUS
23672 ac_clean_files=$ac_clean_files_save
23673
23674
23675 # configure is writing to config.log, and then calls config.status.
23676 # config.status does its own redirection, appending to config.log.
23677 # Unfortunately, on DOS this fails, as config.log is still kept open
23678 # by configure, so config.status won't be able to write to it; its
23679 # output is simply discarded.  So we exec the FD to /dev/null,
23680 # effectively closing config.log, so it can be properly (re)opened and
23681 # appended to by config.status.  When coming back to configure, we
23682 # need to make the FD available again.
23683 if test "$no_create" != yes; then
23684   ac_cs_success=:
23685   ac_config_status_args=
23686   test "$silent" = yes &&
23687     ac_config_status_args="$ac_config_status_args --quiet"
23688   exec 5>/dev/null
23689   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23690   exec 5>>config.log
23691   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23692   # would make configure fail if this is the last instruction.
23693   $ac_cs_success || { (exit 1); exit 1; }
23694 fi
23695
23696
23697
23698
23699 echo ""
23700 echo "                  $PACKAGE $VERSION"
23701 echo "                 ==================="
23702 echo ""
23703 echo "           Debug messages:   ${enable_debug}"
23704 echo "       Plug-ins directory:   ${pluginsdir}"
23705 echo "       Services directory:   ${servicesdir}"
23706 echo ""