New build path variable
[freeradius.git] / libltdl / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59c for libltdl 1.2.
4 #
5 # Report bugs to <bug-libtool@gnu.org>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22   setopt NO_GLOB_SUBST
23 elif test -n "${BASH_VERSION+set}${KSH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24   set -o posix
25 fi
26 BIN_SH=xpg4; export BIN_SH # for Tru64
27 DUALCASE=1; export DUALCASE # for MKS sh
28
29
30 # PATH needs CR
31 # Avoid depending upon Character Ranges.
32 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35 as_cr_digits='0123456789'
36 as_cr_alnum=$as_cr_Letters$as_cr_digits
37
38 # The user is always right.
39 if test "${PATH_SEPARATOR+set}" != set; then
40   echo "#! /bin/sh" >conf$$.sh
41   echo  "exit 0"   >>conf$$.sh
42   chmod +x conf$$.sh
43   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44     PATH_SEPARATOR=';'
45   else
46     PATH_SEPARATOR=:
47   fi
48   rm -f conf$$.sh
49 fi
50
51 # Support unset when possible.
52 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53   as_unset=unset
54 else
55   as_unset=false
56 fi
57
58
59 # Find who we are.  Look in the path if we contain no path at all
60 # relative or not.
61 case $0 in
62   *[\\/]* ) as_myself=$0 ;;
63   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
64 for as_dir in $PATH
65 do
66   IFS=$as_save_IFS
67   test -z "$as_dir" && as_dir=.
68   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
69 done
70
71      ;;
72 esac
73 # We did not find ourselves, most probably we were run as `sh COMMAND'
74 # in which case we are not to be found in the path.
75 if test "x$as_myself" = x; then
76   as_myself=$0
77 fi
78 if test ! -f "$as_myself"; then
79   # FIXME: next line outputs $as_me, which is still unset.
80   { echo "$as_me: error: cannot find myself; rerun with an absolute file name" >&2
81    { (exit 1); exit 1; }; }
82 fi
83
84 # Work around bugs in pre-3.0 UWIN ksh.
85 for as_var in ENV MAIL MAILPATH
86 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
87 done
88 PS1='$ '
89 PS2='> '
90 PS4='+ '
91
92 # NLS nuisances.
93 for as_var in \
94   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
95   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
96   LC_TELEPHONE LC_TIME
97 do
98   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
99     eval $as_var=C; export $as_var
100   else
101     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
102   fi
103 done
104
105 # Required to use basename.
106 if expr a : '\(a\)' >/dev/null 2>&1; then
107   as_expr=expr
108 else
109   as_expr=false
110 fi
111
112 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
113   as_basename=basename
114 else
115   as_basename=false
116 fi
117
118
119 # Name of the executable.
120 as_me=`$as_basename "$0" ||
121 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
122          X"$0" : 'X\(//\)$' \| \
123          X"$0" : 'X\(/\)$' \| \
124          .     : '\(.\)' 2>/dev/null ||
125 echo X/"$0" |
126     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
127           /^X\/\(\/\/\)$/{ s//\1/; q; }
128           /^X\/\(\/\).*/{ s//\1/; q; }
129           s/.*/./; q'`
130
131
132
133 if test "x$CONFIG_SHELL" = x; then
134   if (eval ":") 2>/dev/null; then
135   as_have_required=yes
136 else
137   as_have_required=no
138 fi
139
140   if test $as_have_required = yes &&     (eval ":
141 (as_func_return () {
142   (exit \$1)
143 }
144 as_func_success () {
145   as_func_return 0
146 }
147 as_func_failure () {
148   as_func_return 1
149 }
150 as_func_ret_success () {
151   return 0
152 }
153 as_func_ret_failure () {
154   return 1
155 }
156
157 exitcode=0
158 if as_func_success; then
159   :
160 else
161   exitcode=1
162   echo as_func_success failed.
163 fi
164
165 if as_func_failure; then
166   exitcode=1
167   echo as_func_failure succeeded.
168 fi
169
170 if as_func_ret_success; then
171   :
172 else
173   exitcode=1
174   echo as_func_ret_success failed.
175 fi
176
177 if as_func_ret_failure; then
178   exitcode=1
179   echo as_func_ret_failure succeeded.
180 fi
181
182 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
183   :
184 else
185   exitcode=1
186   echo positional parameters were not saved.
187 fi
188
189 test \$exitcode = 0) || { (exit 1); exit 1; }
190
191 (
192   as_lineno_1=\$LINENO
193   as_lineno_2=\$LINENO
194   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
195   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
196 ") 2> /dev/null; then
197   :
198 else
199   as_candidate_shells=
200     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
201 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
202 do
203   IFS=$as_save_IFS
204   test -z "$as_dir" && as_dir=.
205   case $as_dir in
206          /*)
207            for as_base in sh bash ksh sh5; do
208              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
209            done
210        esac
211 done
212
213
214       for as_shell in $as_candidate_shells $SHELL; do
215          if { ($as_shell) 2> /dev/null <<\_ASEOF
216 # Be Bourne compatible
217 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
218   emulate sh
219   NULLCMD=:
220   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
221   # is contrary to our usage.  Disable this feature.
222   alias -g '${1+"$@"}'='"$@"'
223   setopt NO_GLOB_SUBST
224 elif test -n "${BASH_VERSION+set}${KSH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
225   set -o posix
226 fi
227 BIN_SH=xpg4; export BIN_SH # for Tru64
228 DUALCASE=1; export DUALCASE # for MKS sh
229
230 :
231 _ASEOF
232 }; then
233   CONFIG_SHELL=$as_shell
234                as_have_required=yes
235                if { $as_shell 2> /dev/null <<\_ASEOF
236 # Be Bourne compatible
237 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
238   emulate sh
239   NULLCMD=:
240   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
241   # is contrary to our usage.  Disable this feature.
242   alias -g '${1+"$@"}'='"$@"'
243   setopt NO_GLOB_SUBST
244 elif test -n "${BASH_VERSION+set}${KSH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
245   set -o posix
246 fi
247 BIN_SH=xpg4; export BIN_SH # for Tru64
248 DUALCASE=1; export DUALCASE # for MKS sh
249
250 :
251 (as_func_return () {
252   (exit $1)
253 }
254 as_func_success () {
255   as_func_return 0
256 }
257 as_func_failure () {
258   as_func_return 1
259 }
260 as_func_ret_success () {
261   return 0
262 }
263 as_func_ret_failure () {
264   return 1
265 }
266
267 exitcode=0
268 if as_func_success; then
269   :
270 else
271   exitcode=1
272   echo as_func_success failed.
273 fi
274
275 if as_func_failure; then
276   exitcode=1
277   echo as_func_failure succeeded.
278 fi
279
280 if as_func_ret_success; then
281   :
282 else
283   exitcode=1
284   echo as_func_ret_success failed.
285 fi
286
287 if as_func_ret_failure; then
288   exitcode=1
289   echo as_func_ret_failure succeeded.
290 fi
291
292 if ( set x; as_func_ret_success y && test x = "$1" ); then
293   :
294 else
295   exitcode=1
296   echo positional parameters were not saved.
297 fi
298
299 test $exitcode = 0) || { (exit 1); exit 1; }
300
301 (
302   as_lineno_1=$LINENO
303   as_lineno_2=$LINENO
304   test "x$as_lineno_1" != "x$as_lineno_2" &&
305   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
306
307 _ASEOF
308 }; then
309   break
310 fi
311
312 fi
313
314       done
315
316       if test "x$CONFIG_SHELL" != x; then
317   for as_var in BASH_ENV ENV
318         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
319         done
320         export CONFIG_SHELL
321         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
322 fi
323
324
325     if test $as_have_required = no; then
326   echo This script requires a shell more modern than all the
327       echo shells that I found on your system.  Please install a
328       echo modern shell, or manually run the script under such a
329       echo shell if you do have one.
330       { (exit 1); exit 1; }
331 fi
332
333
334 fi
335
336 fi
337
338
339
340 (eval "as_func_return () {
341   (exit \$1)
342 }
343 as_func_success () {
344   as_func_return 0
345 }
346 as_func_failure () {
347   as_func_return 1
348 }
349 as_func_ret_success () {
350   return 0
351 }
352 as_func_ret_failure () {
353   return 1
354 }
355
356 exitcode=0
357 if as_func_success; then
358   :
359 else
360   exitcode=1
361   echo as_func_success failed.
362 fi
363
364 if as_func_failure; then
365   exitcode=1
366   echo as_func_failure succeeded.
367 fi
368
369 if as_func_ret_success; then
370   :
371 else
372   exitcode=1
373   echo as_func_ret_success failed.
374 fi
375
376 if as_func_ret_failure; then
377   exitcode=1
378   echo as_func_ret_failure succeeded.
379 fi
380
381 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
382   :
383 else
384   exitcode=1
385   echo positional parameters were not saved.
386 fi
387
388 test \$exitcode = 0") || {
389   echo No shell found that supports shell functions.
390   echo Please tell autoconf@gnu.org about your system,
391   echo including any error possibly output before this
392   echo message
393 }
394
395
396
397   as_lineno_1=$LINENO
398   as_lineno_2=$LINENO
399   test "x$as_lineno_1" != "x$as_lineno_2" &&
400   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
401
402   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
403   # uniformly replaced by the line number.  The first 'sed' inserts a
404   # line-number line after each line using $LINENO; the second 'sed'
405   # does the real work.  The second script uses 'N' to pair each
406   # line-number line with the line containing $LINENO, and appends
407   # trailing '-' during substitution so that $LINENO is not a special
408   # case at line end.
409   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
410   # scripts with optimization help from Paolo Bonzini.  Blame Lee
411   # E. McMahon (1931-1989) for sed's syntax.  :-)
412   sed -n '
413     p
414     /[$]LINENO/=
415   ' <$as_myself |
416     sed '
417       s,[$]LINENO.*,&-,
418       t lineno
419       b
420       :lineno
421       N
422       :loop
423       s,[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\),\2\1\2,
424       t loop
425       s,-\n.*,,
426     ' >$as_me.lineno &&
427   chmod +x $as_me.lineno ||
428     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
429    { (exit 1); exit 1; }; }
430
431   # Don't try to exec as it changes $[0], causing all sort of problems
432   # (the dirname of $[0] is not the place where we might find the
433   # original and so on.  Autoconf is especially sensible to this).
434   . ./$as_me.lineno
435   # Exit status is that of the last command.
436   exit
437 }
438
439
440 ECHO_C= ECHO_N= ECHO_T=
441 case `echo -n x` in
442 -n*)
443   case `echo 'x\c'` in
444   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
445   *)   ECHO_C='\c';;
446   esac;;
447 *)
448   ECHO_N='-n';;
449 esac
450
451 if expr a : '\(a\)' >/dev/null 2>&1; then
452   as_expr=expr
453 else
454   as_expr=false
455 fi
456
457 rm -f conf$$ conf$$.exe conf$$.file
458 echo >conf$$.file
459 if ln -s conf$$.file conf$$ 2>/dev/null; then
460   # We could just check for DJGPP; but this test a) works b) is more generic
461   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
462   if test -f conf$$.exe; then
463     # Don't use ln at all; we don't have any links
464     as_ln_s='cp -p'
465   else
466     as_ln_s='ln -s'
467   fi
468 elif ln conf$$.file conf$$ 2>/dev/null; then
469   as_ln_s=ln
470 else
471   as_ln_s='cp -p'
472 fi
473 rm -f conf$$ conf$$.exe conf$$.file
474
475 if mkdir -p . 2>/dev/null; then
476   as_mkdir_p=:
477 else
478   test -d ./-p && rmdir ./-p
479   as_mkdir_p=false
480 fi
481
482 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
483 # systems may use methods other than mode bits to determine executability.
484 cat >conf$$.file <<_ASEOF
485 #! /bin/sh
486 exit 0
487 _ASEOF
488 chmod +x conf$$.file
489 if test -x conf$$.file >/dev/null 2>&1; then
490   as_executable_p="test -x"
491 else
492   as_executable_p=:
493 fi
494 rm -f conf$$.file
495
496 # Sed expression to map a string onto a valid CPP name.
497 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
498
499 # Sed expression to map a string onto a valid variable name.
500 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
501
502
503 # IFS
504 # We need space, tab and new line, in precisely that order.
505 as_nl='
506 '
507 IFS="   $as_nl"
508
509 # CDPATH.
510 $as_unset CDPATH
511
512
513
514 # Check that we are running under the correct shell.
515 SHELL=${CONFIG_SHELL-/bin/sh}
516
517 case X$ECHO in
518 X*--fallback-echo)
519   # Remove one level of quotation (which was required for Make).
520   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
521   ;;
522 esac
523
524 echo=${ECHO-echo}
525 if test "X$1" = X--no-reexec; then
526   # Discard the --no-reexec flag, and continue.
527   shift
528 elif test "X$1" = X--fallback-echo; then
529   # Avoid inline document here, it may be left over
530   :
531 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
532   # Yippee, $echo works!
533   :
534 else
535   # Restart under the correct shell.
536   exec $SHELL "$0" --no-reexec ${1+"$@"}
537 fi
538
539 if test "X$1" = X--fallback-echo; then
540   # used as fallback echo
541   shift
542   cat <<EOF
543 $*
544 EOF
545   exit 0
546 fi
547
548 # The HP-UX ksh and POSIX shell print the target directory to stdout
549 # if CDPATH is set.
550 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
551
552 if test -z "$ECHO"; then
553 if test "X${echo_test_string+set}" != Xset; then
554 # find a string as large as possible, as long as the shell can cope with it
555   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
556     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
557     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
558        echo_test_string=`eval $cmd` &&
559        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
560     then
561       break
562     fi
563   done
564 fi
565
566 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
567    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
568    test "X$echo_testing_string" = "X$echo_test_string"; then
569   :
570 else
571   # The Solaris, AIX, and Digital Unix default echo programs unquote
572   # backslashes.  This makes it impossible to quote backslashes using
573   #   echo "$something" | sed 's/\\/\\\\/g'
574   #
575   # So, first we look for a working echo in the user's PATH.
576
577   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
578   for dir in $PATH /usr/ucb; do
579     IFS="$lt_save_ifs"
580     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
581        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
582        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
583        test "X$echo_testing_string" = "X$echo_test_string"; then
584       echo="$dir/echo"
585       break
586     fi
587   done
588   IFS="$lt_save_ifs"
589
590   if test "X$echo" = Xecho; then
591     # We didn't find a better echo, so look for alternatives.
592     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
593        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
594        test "X$echo_testing_string" = "X$echo_test_string"; then
595       # This shell has a builtin print -r that does the trick.
596       echo='print -r'
597     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
598          test "X$CONFIG_SHELL" != X/bin/ksh; then
599       # If we have ksh, try running configure again with it.
600       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
601       export ORIGINAL_CONFIG_SHELL
602       CONFIG_SHELL=/bin/ksh
603       export CONFIG_SHELL
604       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
605     else
606       # Try using printf.
607       echo='printf %s\n'
608       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
609          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
610          test "X$echo_testing_string" = "X$echo_test_string"; then
611         # Cool, printf works
612         :
613       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
614            test "X$echo_testing_string" = 'X\t' &&
615            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
616            test "X$echo_testing_string" = "X$echo_test_string"; then
617         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
618         export CONFIG_SHELL
619         SHELL="$CONFIG_SHELL"
620         export SHELL
621         echo="$CONFIG_SHELL $0 --fallback-echo"
622       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
623            test "X$echo_testing_string" = 'X\t' &&
624            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
625            test "X$echo_testing_string" = "X$echo_test_string"; then
626         echo="$CONFIG_SHELL $0 --fallback-echo"
627       else
628         # maybe with a smaller string...
629         prev=:
630
631         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
632           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
633           then
634             break
635           fi
636           prev="$cmd"
637         done
638
639         if test "$prev" != 'sed 50q "$0"'; then
640           echo_test_string=`eval $prev`
641           export echo_test_string
642           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
643         else
644           # Oops.  We lost completely, so just stick with echo.
645           echo=echo
646         fi
647       fi
648     fi
649   fi
650 fi
651 fi
652
653 # Copy echo and quote the copy suitably for passing to libtool from
654 # the Makefile, instead of quoting the original, which is used later.
655 ECHO=$echo
656 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
657    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
658 fi
659
660
661
662
663 tagnames=${tagnames+${tagnames},}CXX
664
665 tagnames=${tagnames+${tagnames},}F77
666
667 exec 7<&0 </dev/null 6>&1
668
669 # Name of the host.
670 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
671 # so uname gets run too.
672 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
673
674 #
675 # Initializations.
676 #
677 ac_default_prefix=/usr/local
678 ac_clean_files=
679 ac_config_libobj_dir=.
680 LIBOBJS=
681 cross_compiling=no
682 subdirs=
683 MFLAGS=
684 MAKEFLAGS=
685 SHELL=${CONFIG_SHELL-/bin/sh}
686
687 # Identity of this package.
688 PACKAGE_NAME='libltdl'
689 PACKAGE_TARNAME='libltdl'
690 PACKAGE_VERSION='1.2'
691 PACKAGE_STRING='libltdl 1.2'
692 PACKAGE_BUGREPORT='bug-libtool@gnu.org'
693
694 ac_unique_file="ltdl.c"
695 # Factoring default headers for most tests.
696 ac_includes_default="\
697 #include <stdio.h>
698 #if HAVE_SYS_TYPES_H
699 # include <sys/types.h>
700 #endif
701 #if HAVE_SYS_STAT_H
702 # include <sys/stat.h>
703 #endif
704 #if STDC_HEADERS
705 # include <stdlib.h>
706 # include <stddef.h>
707 #else
708 # if HAVE_STDLIB_H
709 #  include <stdlib.h>
710 # endif
711 #endif
712 #if HAVE_STRING_H
713 # if !STDC_HEADERS && HAVE_MEMORY_H
714 #  include <memory.h>
715 # endif
716 # include <string.h>
717 #endif
718 #if HAVE_STRINGS_H
719 # include <strings.h>
720 #endif
721 #if HAVE_INTTYPES_H
722 # include <inttypes.h>
723 #endif
724 #if HAVE_STDINT_H
725 # include <stdint.h>
726 #endif
727 #if HAVE_UNISTD_H
728 # include <unistd.h>
729 #endif"
730
731 ac_subst_vars='SHELL
732 PATH_SEPARATOR
733 PACKAGE_NAME
734 PACKAGE_TARNAME
735 PACKAGE_VERSION
736 PACKAGE_STRING
737 PACKAGE_BUGREPORT
738 exec_prefix
739 prefix
740 program_transform_name
741 bindir
742 sbindir
743 libexecdir
744 datarootdir
745 datadir
746 sysconfdir
747 sharedstatedir
748 localstatedir
749 includedir
750 oldincludedir
751 docdir
752 infodir
753 htmldir
754 dvidir
755 pdfdir
756 psdir
757 libdir
758 localedir
759 mandir
760 DEFS
761 ECHO_C
762 ECHO_N
763 ECHO_T
764 LIBS
765 build_alias
766 host_alias
767 target_alias
768 INSTALL_PROGRAM
769 INSTALL_SCRIPT
770 INSTALL_DATA
771 CYGPATH_W
772 PACKAGE
773 VERSION
774 ACLOCAL
775 AUTOCONF
776 AUTOMAKE
777 AUTOHEADER
778 MAKEINFO
779 install_sh
780 STRIP
781 INSTALL_STRIP_PROGRAM
782 mkdir_p
783 AWK
784 SET_MAKE
785 am__leading_dot
786 AMTAR
787 am__tar
788 am__untar
789 CC
790 CFLAGS
791 LDFLAGS
792 CPPFLAGS
793 ac_ct_CC
794 EXEEXT
795 OBJEXT
796 DEPDIR
797 am__include
798 am__quote
799 AMDEP_TRUE
800 AMDEP_FALSE
801 AMDEPBACKSLASH
802 CCDEPMODE
803 am__fastdepCC_TRUE
804 am__fastdepCC_FALSE
805 build
806 build_cpu
807 build_vendor
808 build_os
809 host
810 host_cpu
811 host_vendor
812 host_os
813 GREP
814 EGREP
815 LN_S
816 ECHO
817 AR
818 RANLIB
819 DLLTOOL
820 AS
821 OBJDUMP
822 CPP
823 CXX
824 CXXFLAGS
825 ac_ct_CXX
826 CXXDEPMODE
827 am__fastdepCXX_TRUE
828 am__fastdepCXX_FALSE
829 CXXCPP
830 F77
831 FFLAGS
832 ac_ct_F77
833 LIBTOOL
834 LIBTOOL_DEPS
835 INSTALL_LTDL_TRUE
836 INSTALL_LTDL_FALSE
837 CONVENIENCE_LTDL_TRUE
838 CONVENIENCE_LTDL_FALSE
839 LIBADD_DL
840 LIBOBJS
841 LTLIBOBJS'
842 ac_subst_files=''
843       ac_precious_vars='build_alias
844 host_alias
845 target_alias
846 CC
847 CFLAGS
848 LDFLAGS
849 CPPFLAGS
850 CPP
851 CXX
852 CXXFLAGS
853 CCC
854 CXXCPP
855 F77
856 FFLAGS'
857
858
859 # Initialize some variables set by options.
860 ac_init_help=
861 ac_init_version=false
862 # The variables have the same names as the options, with
863 # dashes changed to underlines.
864 cache_file=/dev/null
865 exec_prefix=NONE
866 no_create=
867 no_recursion=
868 prefix=NONE
869 program_prefix=NONE
870 program_suffix=NONE
871 program_transform_name=s,x,x,
872 silent=
873 site=
874 srcdir=
875 verbose=
876 x_includes=NONE
877 x_libraries=NONE
878
879 # Installation directory options.
880 # These are left unexpanded so users can "make install exec_prefix=/foo"
881 # and all the variables that are supposed to be based on exec_prefix
882 # by default will actually change.
883 # Use braces instead of parens because sh, perl, etc. also accept them.
884 # (The list follows the same order as the GNU Coding Standards.)
885 bindir='${exec_prefix}/bin'
886 sbindir='${exec_prefix}/sbin'
887 libexecdir='${exec_prefix}/libexec'
888 datarootdir='${prefix}/share'
889 datadir='${datarootdir}'
890 sysconfdir='${prefix}/etc'
891 sharedstatedir='${prefix}/com'
892 localstatedir='${prefix}/var'
893 includedir='${prefix}/include'
894 oldincludedir='/usr/include'
895 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
896 infodir='${datarootdir}/info'
897 htmldir='${docdir}'
898 dvidir='${docdir}'
899 pdfdir='${docdir}'
900 psdir='${docdir}'
901 libdir='${exec_prefix}/lib'
902 localedir='${datarootdir}/locale'
903 mandir='${datarootdir}/man'
904
905 ac_prev=
906 ac_dashdash=
907 for ac_option
908 do
909   # If the previous option needs an argument, assign it.
910   if test -n "$ac_prev"; then
911     eval $ac_prev=\$ac_option
912     ac_prev=
913     continue
914   fi
915
916   case $ac_option in
917   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
918   *)    ac_optarg=yes ;;
919   esac
920
921   # Accept the important Cygnus configure options, so we can diagnose typos.
922
923   case $ac_dashdash$ac_option in
924   --)
925     ac_dashdash=yes ;;
926
927   -bindir | --bindir | --bindi | --bind | --bin | --bi)
928     ac_prev=bindir ;;
929   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
930     bindir=$ac_optarg ;;
931
932   -build | --build | --buil | --bui | --bu)
933     ac_prev=build_alias ;;
934   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
935     build_alias=$ac_optarg ;;
936
937   -cache-file | --cache-file | --cache-fil | --cache-fi \
938   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
939     ac_prev=cache_file ;;
940   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
941   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
942     cache_file=$ac_optarg ;;
943
944   --config-cache | -C)
945     cache_file=config.cache ;;
946
947   -datadir | --datadir | --datadi | --datad)
948     ac_prev=datadir ;;
949   -datadir=* | --datadir=* | --datadi=* | --datad=*)
950     datadir=$ac_optarg ;;
951
952   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
953   | --dataroo | --dataro | --datar)
954     ac_prev=datarootdir ;;
955   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
956   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
957     datarootdir=$ac_optarg ;;
958
959   -disable-* | --disable-*)
960     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
961     # Reject names that are not valid shell variable names.
962     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
963       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
964    { (exit 1); exit 1; }; }
965     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
966     eval enable_$ac_feature=no ;;
967
968   -docdir | --docdir | --docdi | --doc | --do)
969     ac_prev=docdir ;;
970   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
971     docdir=$ac_optarg ;;
972
973   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
974     ac_prev=dvidir ;;
975   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
976     dvidir=$ac_optarg ;;
977
978   -enable-* | --enable-*)
979     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
980     # Reject names that are not valid shell variable names.
981     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
982       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
983    { (exit 1); exit 1; }; }
984     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
985     eval enable_$ac_feature=\$ac_optarg ;;
986
987   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
988   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
989   | --exec | --exe | --ex)
990     ac_prev=exec_prefix ;;
991   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
992   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
993   | --exec=* | --exe=* | --ex=*)
994     exec_prefix=$ac_optarg ;;
995
996   -gas | --gas | --ga | --g)
997     # Obsolete; use --with-gas.
998     with_gas=yes ;;
999
1000   -help | --help | --hel | --he | -h)
1001     ac_init_help=long ;;
1002   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1003     ac_init_help=recursive ;;
1004   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1005     ac_init_help=short ;;
1006
1007   -host | --host | --hos | --ho)
1008     ac_prev=host_alias ;;
1009   -host=* | --host=* | --hos=* | --ho=*)
1010     host_alias=$ac_optarg ;;
1011
1012   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1013     ac_prev=htmldir ;;
1014   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1015   | --ht=*)
1016     htmldir=$ac_optarg ;;
1017
1018   -includedir | --includedir | --includedi | --included | --include \
1019   | --includ | --inclu | --incl | --inc)
1020     ac_prev=includedir ;;
1021   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1022   | --includ=* | --inclu=* | --incl=* | --inc=*)
1023     includedir=$ac_optarg ;;
1024
1025   -infodir | --infodir | --infodi | --infod | --info | --inf)
1026     ac_prev=infodir ;;
1027   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1028     infodir=$ac_optarg ;;
1029
1030   -libdir | --libdir | --libdi | --libd)
1031     ac_prev=libdir ;;
1032   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1033     libdir=$ac_optarg ;;
1034
1035   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1036   | --libexe | --libex | --libe)
1037     ac_prev=libexecdir ;;
1038   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1039   | --libexe=* | --libex=* | --libe=*)
1040     libexecdir=$ac_optarg ;;
1041
1042   -localedir | --localedir | --localedi | --localed | --locale)
1043     ac_prev=localedir ;;
1044   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1045     localedir=$ac_optarg ;;
1046
1047   -localstatedir | --localstatedir | --localstatedi | --localstated \
1048   | --localstate | --localstat | --localsta | --localst | --locals)
1049     ac_prev=localstatedir ;;
1050   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1051   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1052     localstatedir=$ac_optarg ;;
1053
1054   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1055     ac_prev=mandir ;;
1056   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1057     mandir=$ac_optarg ;;
1058
1059   -nfp | --nfp | --nf)
1060     # Obsolete; use --without-fp.
1061     with_fp=no ;;
1062
1063   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1064   | --no-cr | --no-c | -n)
1065     no_create=yes ;;
1066
1067   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1068   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1069     no_recursion=yes ;;
1070
1071   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1072   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1073   | --oldin | --oldi | --old | --ol | --o)
1074     ac_prev=oldincludedir ;;
1075   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1076   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1077   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1078     oldincludedir=$ac_optarg ;;
1079
1080   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1081     ac_prev=prefix ;;
1082   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1083     prefix=$ac_optarg ;;
1084
1085   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1086   | --program-pre | --program-pr | --program-p)
1087     ac_prev=program_prefix ;;
1088   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1089   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1090     program_prefix=$ac_optarg ;;
1091
1092   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1093   | --program-suf | --program-su | --program-s)
1094     ac_prev=program_suffix ;;
1095   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1096   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1097     program_suffix=$ac_optarg ;;
1098
1099   -program-transform-name | --program-transform-name \
1100   | --program-transform-nam | --program-transform-na \
1101   | --program-transform-n | --program-transform- \
1102   | --program-transform | --program-transfor \
1103   | --program-transfo | --program-transf \
1104   | --program-trans | --program-tran \
1105   | --progr-tra | --program-tr | --program-t)
1106     ac_prev=program_transform_name ;;
1107   -program-transform-name=* | --program-transform-name=* \
1108   | --program-transform-nam=* | --program-transform-na=* \
1109   | --program-transform-n=* | --program-transform-=* \
1110   | --program-transform=* | --program-transfor=* \
1111   | --program-transfo=* | --program-transf=* \
1112   | --program-trans=* | --program-tran=* \
1113   | --progr-tra=* | --program-tr=* | --program-t=*)
1114     program_transform_name=$ac_optarg ;;
1115
1116   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1117     ac_prev=pdfdir ;;
1118   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1119     pdfdir=$ac_optarg ;;
1120
1121   -psdir | --psdir | --psdi | --psd | --ps)
1122     ac_prev=psdir ;;
1123   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1124     psdir=$ac_optarg ;;
1125
1126   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1127   | -silent | --silent | --silen | --sile | --sil)
1128     silent=yes ;;
1129
1130   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1131     ac_prev=sbindir ;;
1132   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1133   | --sbi=* | --sb=*)
1134     sbindir=$ac_optarg ;;
1135
1136   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1137   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1138   | --sharedst | --shareds | --shared | --share | --shar \
1139   | --sha | --sh)
1140     ac_prev=sharedstatedir ;;
1141   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1142   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1143   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1144   | --sha=* | --sh=*)
1145     sharedstatedir=$ac_optarg ;;
1146
1147   -site | --site | --sit)
1148     ac_prev=site ;;
1149   -site=* | --site=* | --sit=*)
1150     site=$ac_optarg ;;
1151
1152   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1153     ac_prev=srcdir ;;
1154   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1155     srcdir=$ac_optarg ;;
1156
1157   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1158   | --syscon | --sysco | --sysc | --sys | --sy)
1159     ac_prev=sysconfdir ;;
1160   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1161   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1162     sysconfdir=$ac_optarg ;;
1163
1164   -target | --target | --targe | --targ | --tar | --ta | --t)
1165     ac_prev=target_alias ;;
1166   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1167     target_alias=$ac_optarg ;;
1168
1169   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1170     verbose=yes ;;
1171
1172   -version | --version | --versio | --versi | --vers | -V)
1173     ac_init_version=: ;;
1174
1175   -with-* | --with-*)
1176     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1177     # Reject names that are not valid shell variable names.
1178     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1179       { echo "$as_me: error: invalid package name: $ac_package" >&2
1180    { (exit 1); exit 1; }; }
1181     ac_package=`echo $ac_package| sed 's/-/_/g'`
1182     eval with_$ac_package=\$ac_optarg ;;
1183
1184   -without-* | --without-*)
1185     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1186     # Reject names that are not valid shell variable names.
1187     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1188       { echo "$as_me: error: invalid package name: $ac_package" >&2
1189    { (exit 1); exit 1; }; }
1190     ac_package=`echo $ac_package | sed 's/-/_/g'`
1191     eval with_$ac_package=no ;;
1192
1193   --x)
1194     # Obsolete; use --with-x.
1195     with_x=yes ;;
1196
1197   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1198   | --x-incl | --x-inc | --x-in | --x-i)
1199     ac_prev=x_includes ;;
1200   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1201   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1202     x_includes=$ac_optarg ;;
1203
1204   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1205   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1206     ac_prev=x_libraries ;;
1207   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1208   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1209     x_libraries=$ac_optarg ;;
1210
1211   -*) { echo "$as_me: error: unrecognized option: $ac_option
1212 Try \`$0 --help' for more information." >&2
1213    { (exit 1); exit 1; }; }
1214     ;;
1215
1216   *=*)
1217     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1218     # Reject names that are not valid shell variable names.
1219     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1220       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1221    { (exit 1); exit 1; }; }
1222     eval $ac_envvar=\$ac_optarg
1223     export $ac_envvar ;;
1224
1225   *)
1226     # FIXME: should be removed in autoconf 3.0.
1227     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1228     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1229       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1230     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1231     ;;
1232
1233   esac
1234 done
1235
1236 if test -n "$ac_prev"; then
1237   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1238   { echo "$as_me: error: missing argument to $ac_option" >&2
1239    { (exit 1); exit 1; }; }
1240 fi
1241
1242 # Be sure to have absolute directory names.
1243 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1244                 datadir sysconfdir sharedstatedir localstatedir includedir \
1245                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1246                 libdir localedir mandir
1247 do
1248   eval ac_val=\$$ac_var
1249   case $ac_val in
1250     [\\/$]* | ?:[\\/]* )  continue;;
1251     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1252   esac
1253   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1254    { (exit 1); exit 1; }; }
1255 done
1256
1257 # There might be people who depend on the old broken behavior: `$host'
1258 # used to hold the argument of --host etc.
1259 # FIXME: To remove some day.
1260 build=$build_alias
1261 host=$host_alias
1262 target=$target_alias
1263
1264 # FIXME: To remove some day.
1265 if test "x$host_alias" != x; then
1266   if test "x$build_alias" = x; then
1267     cross_compiling=maybe
1268     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1269     If a cross compiler is detected then cross compile mode will be used." >&2
1270   elif test "x$build_alias" != "x$host_alias"; then
1271     cross_compiling=yes
1272   fi
1273 fi
1274
1275 ac_tool_prefix=
1276 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1277
1278 test "$silent" = yes && exec 6>/dev/null
1279
1280
1281 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1282 ac_ls_di=`ls -di .` &&
1283 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1284   { echo "$as_me: error: Working directory cannot be determined" >&2
1285    { (exit 1); exit 1; }; }
1286 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1287   { echo "$as_me: error: pwd does not report name of working directory" >&2
1288    { (exit 1); exit 1; }; }
1289
1290
1291 # Find the source files, if location was not specified.
1292 if test -z "$srcdir"; then
1293   ac_srcdir_defaulted=yes
1294   # Try the directory containing this script, then the parent directory.
1295   ac_confdir=`(dirname "$0") 2>/dev/null ||
1296 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1297          X"$0" : 'X\(//\)[^/]' \| \
1298          X"$0" : 'X\(//\)$' \| \
1299          X"$0" : 'X\(/\)' \| \
1300          .     : '\(.\)' 2>/dev/null ||
1301 echo X"$0" |
1302     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
1303           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
1304           /^X\(\/\/\)$/{ s//\1/; q; }
1305           /^X\(\/\).*/{ s//\1/; q; }
1306           s/.*/./; q'`
1307   srcdir=$ac_confdir
1308   if test ! -r "$srcdir/$ac_unique_file"; then
1309     srcdir=..
1310   fi
1311 else
1312   ac_srcdir_defaulted=no
1313 fi
1314 if test ! -r "$srcdir/$ac_unique_file"; then
1315   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1316   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1317    { (exit 1); exit 1; }; }
1318 fi
1319 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1320 ac_abs_confdir=`(
1321         cd $srcdir && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1322    { (exit 1); exit 1; }; }
1323         pwd)`
1324 # When building in place, set srcdir=.
1325 if test "$ac_abs_confdir" = "$ac_pwd"; then
1326   srcdir=.
1327 fi
1328 # Remove unnecessary trailing slashes from srcdir.
1329 # Double slashes in file names in object file debugging info
1330 # mess up M-x gdb in Emacs.
1331 case $srcdir in
1332 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1333 esac
1334 for ac_var in $ac_precious_vars; do
1335   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1336   eval ac_env_${ac_var}_value=\$${ac_var}
1337   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1338   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1339 done
1340
1341 #
1342 # Report the --help message.
1343 #
1344 if test "$ac_init_help" = "long"; then
1345   # Omit some internal or obsolete options to make the list less imposing.
1346   # This message is too long to be a string in the A/UX 3.1 sh.
1347   cat <<_ACEOF
1348 \`configure' configures libltdl 1.2 to adapt to many kinds of systems.
1349
1350 Usage: $0 [OPTION]... [VAR=VALUE]...
1351
1352 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1353 VAR=VALUE.  See below for descriptions of some of the useful variables.
1354
1355 Defaults for the options are specified in brackets.
1356
1357 Configuration:
1358   -h, --help              display this help and exit
1359       --help=short        display options specific to this package
1360       --help=recursive    display the short help of all the included packages
1361   -V, --version           display version information and exit
1362   -q, --quiet, --silent   do not print \`checking...' messages
1363       --cache-file=FILE   cache test results in FILE [disabled]
1364   -C, --config-cache      alias for \`--cache-file=config.cache'
1365   -n, --no-create         do not create output files
1366       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1367
1368 Installation directories:
1369   --prefix=PREFIX         install architecture-independent files in PREFIX
1370                           [$ac_default_prefix]
1371   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1372                           [PREFIX]
1373
1374 By default, \`make install' will install all the files in
1375 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1376 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1377 for instance \`--prefix=\$HOME'.
1378
1379 For better control, use the options below.
1380
1381 Fine tuning of the installation directories:
1382   --bindir=DIR           user executables [EPREFIX/bin]
1383   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1384   --libexecdir=DIR       program executables [EPREFIX/libexec]
1385   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1386   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1387   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1388   --libdir=DIR           object code libraries [EPREFIX/lib]
1389   --includedir=DIR       C header files [PREFIX/include]
1390   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1391   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1392   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1393   --infodir=DIR          info documentation [DATAROOTDIR/info]
1394   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1395   --mandir=DIR           man documentation [DATAROOTDIR/man]
1396   --docdir=DIR           documentation root [DATAROOTDIR/doc/libltdl]
1397   --htmldir=DIR          html documentation [DOCDIR]
1398   --dvidir=DIR           dvi documentation [DOCDIR]
1399   --pdfdir=DIR           pdf documentation [DOCDIR]
1400   --psdir=DIR            ps documentation [DOCDIR]
1401 _ACEOF
1402
1403   cat <<\_ACEOF
1404
1405 Program names:
1406   --program-prefix=PREFIX            prepend PREFIX to installed program names
1407   --program-suffix=SUFFIX            append SUFFIX to installed program names
1408   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1409
1410 System types:
1411   --build=BUILD     configure for building on BUILD [guessed]
1412   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1413 _ACEOF
1414 fi
1415
1416 if test -n "$ac_init_help"; then
1417   case $ac_init_help in
1418      short | recursive ) echo "Configuration of libltdl 1.2:";;
1419    esac
1420   cat <<\_ACEOF
1421
1422 Optional Features:
1423   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1424   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1425   --disable-dependency-tracking  speeds up one-time build
1426   --enable-dependency-tracking   do not reject slow dependency extractors
1427   --enable-shared[=PKGS]
1428                           build shared libraries [default=yes]
1429   --enable-static[=PKGS]
1430                           build static libraries [default=yes]
1431   --enable-fast-install[=PKGS]
1432                           optimize for fast installation [default=yes]
1433   --disable-libtool-lock  avoid locking (might break parallel builds)
1434   --enable-ltdl-install   install libltdl
1435
1436 Optional Packages:
1437   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1438   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1439   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1440   --with-pic              try to use only PIC/non-PIC objects [default=use
1441                           both]
1442   --with-tags[=TAGS]
1443                           include additional configurations [automatic]
1444
1445 Some influential environment variables:
1446   CC          C compiler command
1447   CFLAGS      C compiler flags
1448   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1449               nonstandard directory <lib dir>
1450   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1451               headers in a nonstandard directory <include dir>
1452   CPP         C preprocessor
1453   CXX         C++ compiler command
1454   CXXFLAGS    C++ compiler flags
1455   CXXCPP      C++ preprocessor
1456   F77         Fortran 77 compiler command
1457   FFLAGS      Fortran 77 compiler flags
1458
1459 Use these variables to override the choices made by `configure' or to help
1460 it to find libraries and programs with nonstandard names/locations.
1461
1462 Report bugs to <bug-libtool@gnu.org>.
1463 _ACEOF
1464 ac_status=$?
1465 fi
1466
1467 if test "$ac_init_help" = "recursive"; then
1468   # If there are subdirs, report their specific --help.
1469   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1470     test -d $ac_dir || continue
1471     ac_builddir=.
1472
1473 case "$ac_dir" in
1474 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1475 *)
1476   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1477   # A ".." for each directory in $ac_dir_suffix.
1478   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1479   case $ac_top_builddir_sub in
1480   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1481   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1482   esac ;;
1483 esac
1484 ac_abs_top_builddir=$ac_pwd
1485 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1486 # for backward compatibility:
1487 ac_top_builddir=$ac_top_build_prefix
1488
1489 case $srcdir in
1490   .)  # We are building in place.
1491     ac_srcdir=.
1492     ac_top_srcdir=$ac_top_builddir_sub
1493     ac_abs_top_srcdir=$ac_pwd ;;
1494   [\\/]* | ?:[\\/]* )  # Absolute name.
1495     ac_srcdir=$srcdir$ac_dir_suffix;
1496     ac_top_srcdir=$srcdir
1497     ac_abs_top_srcdir=$srcdir ;;
1498   *) # Relative name.
1499     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1500     ac_top_srcdir=$ac_top_build_prefix$srcdir
1501     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1502 esac
1503 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1504
1505     cd $ac_dir || { ac_status=$?; continue; }
1506     # Check for guested configure; otherwise get Cygnus style configure.
1507     if test -f $ac_srcdir/configure.gnu; then
1508       echo &&
1509       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1510     elif test -f $ac_srcdir/configure; then
1511       echo &&
1512       $SHELL $ac_srcdir/configure  --help=recursive
1513     elif test -f $ac_srcdir/configure.ac ||
1514            test -f $ac_srcdir/configure.in; then
1515       echo &&
1516       $ac_configure --help
1517     else
1518       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1519     fi || ac_status=$?
1520     cd "$ac_pwd" || { ac_status=$?; break; }
1521   done
1522 fi
1523
1524 test -n "$ac_init_help" && exit $ac_status
1525 if $ac_init_version; then
1526   cat <<\_ACEOF
1527 libltdl configure 1.2
1528 generated by GNU Autoconf 2.59c
1529
1530 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1531 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
1532 This configure script is free software; the Free Software Foundation
1533 gives unlimited permission to copy, distribute and modify it.
1534 _ACEOF
1535   exit
1536 fi
1537 exec 5>config.log
1538 cat >&5 <<_ACEOF
1539 This file contains any messages produced by compilers while
1540 running configure, to aid debugging if configure makes a mistake.
1541
1542 It was created by libltdl $as_me 1.2, which was
1543 generated by GNU Autoconf 2.59c.  Invocation command line was
1544
1545   $ $0 $@
1546
1547 _ACEOF
1548 {
1549 cat <<_ASUNAME
1550 ## --------- ##
1551 ## Platform. ##
1552 ## --------- ##
1553
1554 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1555 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1556 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1557 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1558 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1559
1560 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1561 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1562
1563 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1564 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1565 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1566 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1567 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1568 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1569 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1570
1571 _ASUNAME
1572
1573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1574 for as_dir in $PATH
1575 do
1576   IFS=$as_save_IFS
1577   test -z "$as_dir" && as_dir=.
1578   echo "PATH: $as_dir"
1579 done
1580
1581 } >&5
1582
1583 cat >&5 <<_ACEOF
1584
1585
1586 ## ----------- ##
1587 ## Core tests. ##
1588 ## ----------- ##
1589
1590 _ACEOF
1591
1592
1593 # Keep a trace of the command line.
1594 # Strip out --no-create and --no-recursion so they do not pile up.
1595 # Strip out --silent because we don't want to record it for future runs.
1596 # Also quote any args containing shell meta-characters.
1597 # Make two passes to allow for proper duplicate-argument suppression.
1598 ac_configure_args=
1599 ac_configure_args0=
1600 ac_configure_args1=
1601 ac_sep=
1602 ac_must_keep_next=false
1603 for ac_pass in 1 2
1604 do
1605   for ac_arg
1606   do
1607     case $ac_arg in
1608     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1609     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1610     | -silent | --silent | --silen | --sile | --sil)
1611       continue ;;
1612     *" "*|*"    "*|*[\\\[\~\#\$\^\&\*\(\)\{\}\|\;\<\>\?\"\']*|*\]*)
1613       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1614     esac
1615     case $ac_pass in
1616     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1617     2)
1618       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1619       if test $ac_must_keep_next = true; then
1620         ac_must_keep_next=false # Got value, back to normal.
1621       else
1622         case $ac_arg in
1623           *=* | --config-cache | -C | -disable-* | --disable-* \
1624           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1625           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1626           | -with-* | --with-* | -without-* | --without-* | --x)
1627             case "$ac_configure_args0 " in
1628               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1629             esac
1630             ;;
1631           -* ) ac_must_keep_next=true ;;
1632         esac
1633       fi
1634       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1635       # Get rid of the leading space.
1636       ac_sep=" "
1637       ;;
1638     esac
1639   done
1640 done
1641 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1642 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1643
1644 # When interrupted or exit'd, cleanup temporary files, and complete
1645 # config.log.  We remove comments because anyway the quotes in there
1646 # would cause problems or look ugly.
1647 # WARNING: Be sure not to use single quotes in there, as some shells,
1648 # such as our DU 5.0 friend, will then `close' the trap.
1649 trap 'exit_status=$?
1650   # Save into config.log some information that might help in debugging.
1651   {
1652     echo
1653
1654     cat <<\_ASBOX
1655 ## ---------------- ##
1656 ## Cache variables. ##
1657 ## ---------------- ##
1658 _ASBOX
1659     echo
1660     # The following way of writing the cache mishandles newlines in values,
1661 {
1662   (set) 2>&1 |
1663     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1664     *ac_space=\ *)
1665       sed -n \
1666         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1667           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1668       ;;
1669     *)
1670       sed -n \
1671         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1672       ;;
1673     esac;
1674 }
1675     echo
1676
1677     cat <<\_ASBOX
1678 ## ----------------- ##
1679 ## Output variables. ##
1680 ## ----------------- ##
1681 _ASBOX
1682     echo
1683     for ac_var in $ac_subst_vars
1684     do
1685       eval ac_val=\$$ac_var
1686       echo "$ac_var='"'"'$ac_val'"'"'"
1687     done | sort
1688     echo
1689
1690     if test -n "$ac_subst_files"; then
1691       cat <<\_ASBOX
1692 ## ------------------- ##
1693 ## File substitutions. ##
1694 ## ------------------- ##
1695 _ASBOX
1696       echo
1697       for ac_var in $ac_subst_files
1698       do
1699         eval ac_val=\$$ac_var
1700         echo "$ac_var='"'"'$ac_val'"'"'"
1701       done | sort
1702       echo
1703     fi
1704
1705     if test -s confdefs.h; then
1706       cat <<\_ASBOX
1707 ## ----------- ##
1708 ## confdefs.h. ##
1709 ## ----------- ##
1710 _ASBOX
1711       echo
1712       sed "/^$/d" confdefs.h | sort
1713       echo
1714     fi
1715     test "$ac_signal" != 0 &&
1716       echo "$as_me: caught signal $ac_signal"
1717     echo "$as_me: exit $exit_status"
1718   } >&5
1719   rm -f core *.core core.conftest.* &&
1720   rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1721     exit $exit_status
1722      ' 0
1723 for ac_signal in 1 2 13 15; do
1724   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1725 done
1726 ac_signal=0
1727
1728 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1729 rm -f -r conftest* confdefs.h
1730
1731 # Predefined preprocessor variables.
1732
1733 cat >>confdefs.h <<_ACEOF
1734 #define PACKAGE_NAME "$PACKAGE_NAME"
1735 _ACEOF
1736
1737
1738 cat >>confdefs.h <<_ACEOF
1739 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1740 _ACEOF
1741
1742
1743 cat >>confdefs.h <<_ACEOF
1744 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1745 _ACEOF
1746
1747
1748 cat >>confdefs.h <<_ACEOF
1749 #define PACKAGE_STRING "$PACKAGE_STRING"
1750 _ACEOF
1751
1752
1753 cat >>confdefs.h <<_ACEOF
1754 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1755 _ACEOF
1756
1757
1758 # Let the site file select an alternate cache file if it wants to.
1759 # Prefer explicitly selected file to automatically selected ones.
1760 if test -n "$CONFIG_SITE"; then
1761   set x "$CONFIG_SITE"
1762 elif test "x$prefix" != xNONE; then
1763   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1764 else
1765   set x "$ac_default_prefix/share/config.site" \
1766         "$ac_default_prefix/etc/config.site"
1767 fi
1768 shift
1769 for ac_site_file
1770 do
1771   if test -r "$ac_site_file"; then
1772     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1773 echo "$as_me: loading site script $ac_site_file" >&6;}
1774     sed 's/^/| /' "$ac_site_file" >&5
1775     . "$ac_site_file"
1776   fi
1777 done
1778
1779 if test -r "$cache_file"; then
1780   # Some versions of bash will fail to source /dev/null (special
1781   # files actually), so we avoid doing that.
1782   if test -f "$cache_file"; then
1783     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1784 echo "$as_me: loading cache $cache_file" >&6;}
1785     case $cache_file in
1786       [\\/]* | ?:[\\/]* ) . $cache_file;;
1787       *)                      . ./$cache_file;;
1788     esac
1789   fi
1790 else
1791   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1792 echo "$as_me: creating cache $cache_file" >&6;}
1793   >$cache_file
1794 fi
1795
1796 # Check that the precious variables saved in the cache have kept the same
1797 # value.
1798 ac_cache_corrupted=false
1799 for ac_var in $ac_precious_vars; do
1800   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1801   eval ac_new_set=\$ac_env_${ac_var}_set
1802   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1803   eval ac_new_val=\$ac_env_${ac_var}_value
1804   case $ac_old_set,$ac_new_set in
1805     set,)
1806       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1807 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1808       ac_cache_corrupted=: ;;
1809     ,set)
1810       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1811 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1812       ac_cache_corrupted=: ;;
1813     ,);;
1814     *)
1815       if test "x$ac_old_val" != "x$ac_new_val"; then
1816         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1817 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1818         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1819 echo "$as_me:   former value:  $ac_old_val" >&2;}
1820         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1821 echo "$as_me:   current value: $ac_new_val" >&2;}
1822         ac_cache_corrupted=:
1823       fi;;
1824   esac
1825   # Pass precious variables to config.status.
1826   if test "$ac_new_set" = set; then
1827     case $ac_new_val in
1828     *" "*|*"    "*|*[\\\[\~\#\$\^\&\*\(\)\{\}\|\;\<\>\?\"\']*|*\]*)
1829       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1830     *) ac_arg=$ac_var=$ac_new_val ;;
1831     esac
1832     case " $ac_configure_args " in
1833       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1834       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1835     esac
1836   fi
1837 done
1838 if $ac_cache_corrupted; then
1839   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1840 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1841   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1842 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1843    { (exit 1); exit 1; }; }
1844 fi
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870 ac_ext=c
1871 ac_cpp='$CPP $CPPFLAGS'
1872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1875
1876
1877
1878
1879
1880 ## ------------------------------- ##
1881 ## Libltdl specific configuration. ##
1882 ## ------------------------------- ##
1883
1884 ac_aux_dir=
1885 for ac_dir in . $srcdir/.; do
1886   if test -f $ac_dir/install-sh; then
1887     ac_aux_dir=$ac_dir
1888     ac_install_sh="$ac_aux_dir/install-sh -c"
1889     break
1890   elif test -f $ac_dir/install.sh; then
1891     ac_aux_dir=$ac_dir
1892     ac_install_sh="$ac_aux_dir/install.sh -c"
1893     break
1894   elif test -f $ac_dir/shtool; then
1895     ac_aux_dir=$ac_dir
1896     ac_install_sh="$ac_aux_dir/shtool install -c"
1897     break
1898   fi
1899 done
1900 if test -z "$ac_aux_dir"; then
1901   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . $srcdir/." >&5
1902 echo "$as_me: error: cannot find install-sh or install.sh in . $srcdir/." >&2;}
1903    { (exit 1); exit 1; }; }
1904 fi
1905 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1906 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1907 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1908
1909
1910 if test -z "$enable_ltdl_install$enable_ltdl_convenience"; then
1911   if test -f ${srcdir}/ltmain.sh; then
1912     # if libltdl is libtoolized, it is assumed to be stand-alone and
1913     # installed unless the command line overrides it (tested above)
1914     enable_ltdl_install=yes
1915   else
1916     { echo "$as_me:$LINENO: WARNING: *** The top-level configure must select either" >&5
1917 echo "$as_me: WARNING: *** The top-level configure must select either" >&2;}
1918     { echo "$as_me:$LINENO: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&5
1919 echo "$as_me: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&2;}
1920     { { echo "$as_me:$LINENO: error: *** Maybe you want to --enable-ltdl-install?" >&5
1921 echo "$as_me: error: *** Maybe you want to --enable-ltdl-install?" >&2;}
1922    { (exit 1); exit 1; }; }
1923   fi
1924 fi
1925
1926
1927 ## ------------------------ ##
1928 ## Automake Initialisation. ##
1929 ## ------------------------ ##
1930 am__api_version='1.9a'
1931
1932 # Find a good install program.  We prefer a C program (faster),
1933 # so one script is as good as another.  But avoid the broken or
1934 # incompatible versions:
1935 # SysV /etc/install, /usr/sbin/install
1936 # SunOS /usr/etc/install
1937 # IRIX /sbin/install
1938 # AIX /bin/install
1939 # AmigaOS /C/install, which installs bootblocks on floppy discs
1940 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1941 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1942 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1943 # OS/2's system install, which has a completely different semantic
1944 # ./install, which can be erroneously created by make from ./install.sh.
1945 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1946 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1947 if test -z "$INSTALL"; then
1948 if test "${ac_cv_path_install+set}" = set; then
1949   echo $ECHO_N "(cached) $ECHO_C" >&6
1950 else
1951   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1952 for as_dir in $PATH
1953 do
1954   IFS=$as_save_IFS
1955   test -z "$as_dir" && as_dir=.
1956   # Account for people who put trailing slashes in PATH elements.
1957 case $as_dir/ in
1958   ./ | .// | /cC/* | \
1959   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1960   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1961   /usr/ucb/* ) ;;
1962   *)
1963     # OSF1 and SCO ODT 3.0 have their own names for install.
1964     # Don't use installbsd from OSF since it installs stuff as root
1965     # by default.
1966     for ac_prog in ginstall scoinst install; do
1967       for ac_exec_ext in '' $ac_executable_extensions; do
1968         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
1969           if test $ac_prog = install &&
1970             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1971             # AIX install.  It has an incompatible calling convention.
1972             :
1973           elif test $ac_prog = install &&
1974             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1975             # program-specific install script used by HP pwplus--don't use.
1976             :
1977           else
1978             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1979             break 3
1980           fi
1981         fi
1982       done
1983     done
1984     ;;
1985 esac
1986 done
1987
1988
1989 fi
1990   if test "${ac_cv_path_install+set}" = set; then
1991     INSTALL=$ac_cv_path_install
1992   else
1993     # As a last resort, use the slow shell script.  Don't cache a
1994     # value for INSTALL within a source directory, because that will
1995     # break other packages using the cache if that directory is
1996     # removed, or if the value is a relative name.
1997     INSTALL=$ac_install_sh
1998   fi
1999 fi
2000 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2001 echo "${ECHO_T}$INSTALL" >&6; }
2002
2003 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2004 # It thinks the first close brace ends the variable substitution.
2005 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2006
2007 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2008
2009 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2010
2011 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2012 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2013 # Just in case
2014 sleep 1
2015 echo timestamp > conftest.file
2016 # Do `set' in a subshell so we don't clobber the current shell's
2017 # arguments.  Must try -L first in case configure is actually a
2018 # symlink; some systems play weird games with the mod time of symlinks
2019 # (eg FreeBSD returns the mod time of the symlink's containing
2020 # directory).
2021 if (
2022    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2023    if test "$*" = "X"; then
2024       # -L didn't work.
2025       set X `ls -t $srcdir/configure conftest.file`
2026    fi
2027    rm -f conftest.file
2028    if test "$*" != "X $srcdir/configure conftest.file" \
2029       && test "$*" != "X conftest.file $srcdir/configure"; then
2030
2031       # If neither matched, then we have a broken ls.  This can happen
2032       # if, for instance, CONFIG_SHELL is bash and it inherits a
2033       # broken ls alias from the environment.  This has actually
2034       # happened.  Such a system could not be considered "sane".
2035       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2036 alias in your environment" >&5
2037 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2038 alias in your environment" >&2;}
2039    { (exit 1); exit 1; }; }
2040    fi
2041
2042    test "$2" = conftest.file
2043    )
2044 then
2045    # Ok.
2046    :
2047 else
2048    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2049 Check your system clock" >&5
2050 echo "$as_me: error: newly created file is older than distributed files!
2051 Check your system clock" >&2;}
2052    { (exit 1); exit 1; }; }
2053 fi
2054 { echo "$as_me:$LINENO: result: yes" >&5
2055 echo "${ECHO_T}yes" >&6; }
2056 test "$program_prefix" != NONE &&
2057   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2058 # Use a double $ so make ignores it.
2059 test "$program_suffix" != NONE &&
2060   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2061 # Double any \ or $.  echo might interpret backslashes.
2062 # By default was `s,x,x', remove it if useless.
2063 cat <<\_ACEOF >conftest.sed
2064 s/[\\$]/&&/g;s/;s,x,x,$//
2065 _ACEOF
2066 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2067 rm -f conftest.sed
2068
2069 # expand $ac_aux_dir to an absolute path
2070 am_aux_dir=`cd $ac_aux_dir && pwd`
2071
2072 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2073 # Use eval to expand $SHELL
2074 if eval "$MISSING --run true"; then
2075   am_missing_run="$MISSING --run "
2076 else
2077   am_missing_run=
2078   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2079 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2080 fi
2081
2082 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2083   # We used to define $(mkdir_p) as `mkdir -p -- .', in order to
2084   # allow $(mkdir_p) to be used without argument.  As in
2085   #   $(mkdir_p) $(somedir)
2086   # where $(somedir) is conditionally defined.  However we don't do
2087   # that anymore.
2088   #  1. before we restricted the check to GNU mkdir, `mkdir -p .' was
2089   #     reported to fail in read-only directories.  The system where this
2090   #     happened has been forgotten.
2091   #  2. in practice we call $(mkdir_p) on directories such as
2092   #       $(mkdir_p) "$(DESTDIR)$(somedir)"
2093   #     and we don't want to create $(DESTDIR) if $(somedir) is empty.
2094   #     To support the latter case, we have to write
2095   #       test -z "$(somedir)" || $(mkdir_p) "$(DESTDIR)$(somedir)"
2096   #     so $(mkdir_p) always has an argument.
2097   #     We will have better chances of detecting a missing test if
2098   #     $(mkdir_p) complains about missing arguments.
2099   #  3. $(mkdir_p) is named after `mkdir -p' and we don't expect this
2100   #     to accept no argument.
2101   #  4. having something like `mkdir .' in the output is unsightly.
2102   mkdir_p='mkdir -p --'
2103 else
2104   # On NextStep and OpenStep, the `mkdir' command does not
2105   # recognize any option.  It will interpret all options as
2106   # directories to create.
2107   for d in ./-p ./--version;
2108   do
2109     test -d $d && rmdir $d
2110   done
2111   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2112   if test -f "$ac_aux_dir/mkinstalldirs"; then
2113     mkdir_p='$(mkinstalldirs)'
2114   else
2115     mkdir_p='$(install_sh) -d'
2116   fi
2117 fi
2118
2119 for ac_prog in gawk mawk nawk awk
2120 do
2121   # Extract the first word of "$ac_prog", so it can be a program name with args.
2122 set dummy $ac_prog; ac_word=$2
2123 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2125 if test "${ac_cv_prog_AWK+set}" = set; then
2126   echo $ECHO_N "(cached) $ECHO_C" >&6
2127 else
2128   if test -n "$AWK"; then
2129   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2130 else
2131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2132 for as_dir in $PATH
2133 do
2134   IFS=$as_save_IFS
2135   test -z "$as_dir" && as_dir=.
2136   for ac_exec_ext in '' $ac_executable_extensions; do
2137   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2138     ac_cv_prog_AWK="$ac_prog"
2139     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2140     break 2
2141   fi
2142 done
2143 done
2144
2145 fi
2146 fi
2147 AWK=$ac_cv_prog_AWK
2148 if test -n "$AWK"; then
2149   { echo "$as_me:$LINENO: result: $AWK" >&5
2150 echo "${ECHO_T}$AWK" >&6; }
2151 else
2152   { echo "$as_me:$LINENO: result: no" >&5
2153 echo "${ECHO_T}no" >&6; }
2154 fi
2155
2156
2157   test -n "$AWK" && break
2158 done
2159
2160 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2161 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2162 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2163 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2164   echo $ECHO_N "(cached) $ECHO_C" >&6
2165 else
2166   cat >conftest.make <<\_ACEOF
2167 SHELL = /bin/sh
2168 all:
2169         @echo 'ac_maketemp=X"$(MAKE)"'
2170 _ACEOF
2171 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2172 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2173 if test "$ac_maketemp" != X ; then
2174   eval ac_cv_prog_make_${ac_make}_set=yes
2175 else
2176   eval ac_cv_prog_make_${ac_make}_set=no
2177 fi
2178 rm -f conftest.make
2179 fi
2180 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2181   { echo "$as_me:$LINENO: result: yes" >&5
2182 echo "${ECHO_T}yes" >&6; }
2183   SET_MAKE=
2184 else
2185   { echo "$as_me:$LINENO: result: no" >&5
2186 echo "${ECHO_T}no" >&6; }
2187   SET_MAKE="MAKE=${MAKE-make}"
2188 fi
2189
2190 rm -rf .tst 2>/dev/null
2191 mkdir .tst 2>/dev/null
2192 if test -d .tst; then
2193   am__leading_dot=.
2194 else
2195   am__leading_dot=_
2196 fi
2197 rmdir .tst 2>/dev/null
2198
2199 # test to see if srcdir already configured
2200 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2201    test -f $srcdir/config.status; then
2202   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2203 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2204    { (exit 1); exit 1; }; }
2205 fi
2206
2207 # test whether we have cygpath
2208 if test -z "$CYGPATH_W"; then
2209   if (cygpath --version) >/dev/null 2>/dev/null; then
2210     CYGPATH_W='cygpath -w'
2211   else
2212     CYGPATH_W=echo
2213   fi
2214 fi
2215
2216
2217 # Define the identity of the package.
2218  PACKAGE=libltdl
2219  VERSION=1.2
2220
2221
2222 # Some tools Automake needs.
2223
2224 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2225
2226
2227 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2228
2229
2230 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2231
2232
2233 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2234
2235
2236 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2237
2238 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2239
2240 # Installed binaries are usually stripped using `strip' when the user
2241 # run `make install-strip'.  However `strip' might not be the right
2242 # tool to use in cross-compilation environments, therefore Automake
2243 # will honor the `STRIP' environment variable to overrule this program.
2244 if test "$cross_compiling" != no; then
2245   if test -n "$ac_tool_prefix"; then
2246   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2247 set dummy ${ac_tool_prefix}strip; ac_word=$2
2248 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2250 if test "${ac_cv_prog_STRIP+set}" = set; then
2251   echo $ECHO_N "(cached) $ECHO_C" >&6
2252 else
2253   if test -n "$STRIP"; then
2254   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2255 else
2256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2257 for as_dir in $PATH
2258 do
2259   IFS=$as_save_IFS
2260   test -z "$as_dir" && as_dir=.
2261   for ac_exec_ext in '' $ac_executable_extensions; do
2262   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2263     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2264     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2265     break 2
2266   fi
2267 done
2268 done
2269
2270 fi
2271 fi
2272 STRIP=$ac_cv_prog_STRIP
2273 if test -n "$STRIP"; then
2274   { echo "$as_me:$LINENO: result: $STRIP" >&5
2275 echo "${ECHO_T}$STRIP" >&6; }
2276 else
2277   { echo "$as_me:$LINENO: result: no" >&5
2278 echo "${ECHO_T}no" >&6; }
2279 fi
2280
2281
2282 fi
2283 if test -z "$ac_cv_prog_STRIP"; then
2284   ac_ct_STRIP=$STRIP
2285   # Extract the first word of "strip", so it can be a program name with args.
2286 set dummy strip; ac_word=$2
2287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2289 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2290   echo $ECHO_N "(cached) $ECHO_C" >&6
2291 else
2292   if test -n "$ac_ct_STRIP"; then
2293   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2294 else
2295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2296 for as_dir in $PATH
2297 do
2298   IFS=$as_save_IFS
2299   test -z "$as_dir" && as_dir=.
2300   for ac_exec_ext in '' $ac_executable_extensions; do
2301   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2302     ac_cv_prog_ac_ct_STRIP="strip"
2303     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2304     break 2
2305   fi
2306 done
2307 done
2308
2309 fi
2310 fi
2311 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2312 if test -n "$ac_ct_STRIP"; then
2313   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2314 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2315 else
2316   { echo "$as_me:$LINENO: result: no" >&5
2317 echo "${ECHO_T}no" >&6; }
2318 fi
2319
2320   if test "x$ac_ct_STRIP" = x; then
2321     STRIP=":"
2322   else
2323     if test "$build" != "$host"; then
2324       { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2325 whose name does not start with the host triplet.  If you think this
2326 configuration is useful to you, please write to autoconf@gnu.org." >&5
2327 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2328 whose name does not start with the host triplet.  If you think this
2329 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2330     fi
2331     STRIP=$ac_ct_STRIP
2332   fi
2333 else
2334   STRIP="$ac_cv_prog_STRIP"
2335 fi
2336
2337 fi
2338 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2339
2340 # We need awk for the "check" target.  The system "awk" is bad on
2341 # some platforms.
2342 # Always define AMTAR for backward compatibility.
2343
2344 AMTAR=${AMTAR-"${am_missing_run}tar"}
2345
2346 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2347
2348
2349
2350
2351
2352 ac_config_headers="$ac_config_headers config.h:config-h.in"
2353
2354
2355
2356 ## ------------------ ##
2357 ## C compiler checks. ##
2358 ## ------------------ ##
2359 ac_ext=c
2360 ac_cpp='$CPP $CPPFLAGS'
2361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2364 if test -n "$ac_tool_prefix"; then
2365   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2366 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2367 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2369 if test "${ac_cv_prog_CC+set}" = set; then
2370   echo $ECHO_N "(cached) $ECHO_C" >&6
2371 else
2372   if test -n "$CC"; then
2373   ac_cv_prog_CC="$CC" # Let the user override the test.
2374 else
2375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2376 for as_dir in $PATH
2377 do
2378   IFS=$as_save_IFS
2379   test -z "$as_dir" && as_dir=.
2380   for ac_exec_ext in '' $ac_executable_extensions; do
2381   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2382     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2383     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2384     break 2
2385   fi
2386 done
2387 done
2388
2389 fi
2390 fi
2391 CC=$ac_cv_prog_CC
2392 if test -n "$CC"; then
2393   { echo "$as_me:$LINENO: result: $CC" >&5
2394 echo "${ECHO_T}$CC" >&6; }
2395 else
2396   { echo "$as_me:$LINENO: result: no" >&5
2397 echo "${ECHO_T}no" >&6; }
2398 fi
2399
2400
2401 fi
2402 if test -z "$ac_cv_prog_CC"; then
2403   ac_ct_CC=$CC
2404   # Extract the first word of "gcc", so it can be a program name with args.
2405 set dummy gcc; ac_word=$2
2406 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2408 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2409   echo $ECHO_N "(cached) $ECHO_C" >&6
2410 else
2411   if test -n "$ac_ct_CC"; then
2412   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2413 else
2414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2415 for as_dir in $PATH
2416 do
2417   IFS=$as_save_IFS
2418   test -z "$as_dir" && as_dir=.
2419   for ac_exec_ext in '' $ac_executable_extensions; do
2420   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2421     ac_cv_prog_ac_ct_CC="gcc"
2422     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2423     break 2
2424   fi
2425 done
2426 done
2427
2428 fi
2429 fi
2430 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2431 if test -n "$ac_ct_CC"; then
2432   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2433 echo "${ECHO_T}$ac_ct_CC" >&6; }
2434 else
2435   { echo "$as_me:$LINENO: result: no" >&5
2436 echo "${ECHO_T}no" >&6; }
2437 fi
2438
2439   if test "x$ac_ct_CC" = x; then
2440     CC=""
2441   else
2442     if test "$build" != "$host"; then
2443       { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2444 whose name does not start with the host triplet.  If you think this
2445 configuration is useful to you, please write to autoconf@gnu.org." >&5
2446 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2447 whose name does not start with the host triplet.  If you think this
2448 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2449     fi
2450     CC=$ac_ct_CC
2451   fi
2452 else
2453   CC="$ac_cv_prog_CC"
2454 fi
2455
2456 if test -z "$CC"; then
2457           if test -n "$ac_tool_prefix"; then
2458     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2459 set dummy ${ac_tool_prefix}cc; ac_word=$2
2460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2462 if test "${ac_cv_prog_CC+set}" = set; then
2463   echo $ECHO_N "(cached) $ECHO_C" >&6
2464 else
2465   if test -n "$CC"; then
2466   ac_cv_prog_CC="$CC" # Let the user override the test.
2467 else
2468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2469 for as_dir in $PATH
2470 do
2471   IFS=$as_save_IFS
2472   test -z "$as_dir" && as_dir=.
2473   for ac_exec_ext in '' $ac_executable_extensions; do
2474   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2475     ac_cv_prog_CC="${ac_tool_prefix}cc"
2476     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2477     break 2
2478   fi
2479 done
2480 done
2481
2482 fi
2483 fi
2484 CC=$ac_cv_prog_CC
2485 if test -n "$CC"; then
2486   { echo "$as_me:$LINENO: result: $CC" >&5
2487 echo "${ECHO_T}$CC" >&6; }
2488 else
2489   { echo "$as_me:$LINENO: result: no" >&5
2490 echo "${ECHO_T}no" >&6; }
2491 fi
2492
2493
2494   fi
2495 fi
2496 if test -z "$CC"; then
2497   # Extract the first word of "cc", so it can be a program name with args.
2498 set dummy cc; ac_word=$2
2499 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2501 if test "${ac_cv_prog_CC+set}" = set; then
2502   echo $ECHO_N "(cached) $ECHO_C" >&6
2503 else
2504   if test -n "$CC"; then
2505   ac_cv_prog_CC="$CC" # Let the user override the test.
2506 else
2507   ac_prog_rejected=no
2508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509 for as_dir in $PATH
2510 do
2511   IFS=$as_save_IFS
2512   test -z "$as_dir" && as_dir=.
2513   for ac_exec_ext in '' $ac_executable_extensions; do
2514   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2515     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2516        ac_prog_rejected=yes
2517        continue
2518      fi
2519     ac_cv_prog_CC="cc"
2520     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2521     break 2
2522   fi
2523 done
2524 done
2525
2526 if test $ac_prog_rejected = yes; then
2527   # We found a bogon in the path, so make sure we never use it.
2528   set dummy $ac_cv_prog_CC
2529   shift
2530   if test $# != 0; then
2531     # We chose a different compiler from the bogus one.
2532     # However, it has the same basename, so the bogon will be chosen
2533     # first if we set CC to just the basename; use the full file name.
2534     shift
2535     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2536   fi
2537 fi
2538 fi
2539 fi
2540 CC=$ac_cv_prog_CC
2541 if test -n "$CC"; then
2542   { echo "$as_me:$LINENO: result: $CC" >&5
2543 echo "${ECHO_T}$CC" >&6; }
2544 else
2545   { echo "$as_me:$LINENO: result: no" >&5
2546 echo "${ECHO_T}no" >&6; }
2547 fi
2548
2549
2550 fi
2551 if test -z "$CC"; then
2552   if test -n "$ac_tool_prefix"; then
2553   for ac_prog in cl.exe
2554   do
2555     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2556 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2559 if test "${ac_cv_prog_CC+set}" = set; then
2560   echo $ECHO_N "(cached) $ECHO_C" >&6
2561 else
2562   if test -n "$CC"; then
2563   ac_cv_prog_CC="$CC" # Let the user override the test.
2564 else
2565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2566 for as_dir in $PATH
2567 do
2568   IFS=$as_save_IFS
2569   test -z "$as_dir" && as_dir=.
2570   for ac_exec_ext in '' $ac_executable_extensions; do
2571   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2572     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2573     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2574     break 2
2575   fi
2576 done
2577 done
2578
2579 fi
2580 fi
2581 CC=$ac_cv_prog_CC
2582 if test -n "$CC"; then
2583   { echo "$as_me:$LINENO: result: $CC" >&5
2584 echo "${ECHO_T}$CC" >&6; }
2585 else
2586   { echo "$as_me:$LINENO: result: no" >&5
2587 echo "${ECHO_T}no" >&6; }
2588 fi
2589
2590
2591     test -n "$CC" && break
2592   done
2593 fi
2594 if test -z "$CC"; then
2595   ac_ct_CC=$CC
2596   for ac_prog in cl.exe
2597 do
2598   # Extract the first word of "$ac_prog", so it can be a program name with args.
2599 set dummy $ac_prog; ac_word=$2
2600 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2602 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2603   echo $ECHO_N "(cached) $ECHO_C" >&6
2604 else
2605   if test -n "$ac_ct_CC"; then
2606   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2607 else
2608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2609 for as_dir in $PATH
2610 do
2611   IFS=$as_save_IFS
2612   test -z "$as_dir" && as_dir=.
2613   for ac_exec_ext in '' $ac_executable_extensions; do
2614   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2615     ac_cv_prog_ac_ct_CC="$ac_prog"
2616     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2617     break 2
2618   fi
2619 done
2620 done
2621
2622 fi
2623 fi
2624 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2625 if test -n "$ac_ct_CC"; then
2626   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2627 echo "${ECHO_T}$ac_ct_CC" >&6; }
2628 else
2629   { echo "$as_me:$LINENO: result: no" >&5
2630 echo "${ECHO_T}no" >&6; }
2631 fi
2632
2633
2634   test -n "$ac_ct_CC" && break
2635 done
2636
2637   if test "x$ac_ct_CC" = x; then
2638     CC=""
2639   else
2640     if test "$build" != "$host"; then
2641       { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2642 whose name does not start with the host triplet.  If you think this
2643 configuration is useful to you, please write to autoconf@gnu.org." >&5
2644 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2645 whose name does not start with the host triplet.  If you think this
2646 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2647     fi
2648     CC=$ac_ct_CC
2649   fi
2650 fi
2651
2652 fi
2653
2654
2655 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2656 See \`config.log' for more details." >&5
2657 echo "$as_me: error: no acceptable C compiler found in \$PATH
2658 See \`config.log' for more details." >&2;}
2659    { (exit 1); exit 1; }; }
2660
2661 # Provide some information about the compiler.
2662 echo "$as_me:$LINENO: checking for C compiler version" >&5
2663 ac_compiler=`set X $ac_compile; echo $2`
2664 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version >&5\"") >&5
2665   (eval $ac_compiler --version >&5) 2>&5
2666   ac_status=$?
2667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668   (exit $ac_status); }
2669 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v >&5\"") >&5
2670   (eval $ac_compiler -v >&5) 2>&5
2671   ac_status=$?
2672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673   (exit $ac_status); }
2674 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V >&5\"") >&5
2675   (eval $ac_compiler -V >&5) 2>&5
2676   ac_status=$?
2677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678   (exit $ac_status); }
2679
2680 cat >conftest.$ac_ext <<_ACEOF
2681 /* confdefs.h.  */
2682 _ACEOF
2683 cat confdefs.h >>conftest.$ac_ext
2684 cat >>conftest.$ac_ext <<_ACEOF
2685 /* end confdefs.h.  */
2686
2687 int
2688 main ()
2689 {
2690
2691   ;
2692   return 0;
2693 }
2694 _ACEOF
2695 ac_clean_files_save=$ac_clean_files
2696 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2697 # Try to create an executable without -o first, disregard a.out.
2698 # It will help us diagnose broken compilers, and finding out an intuition
2699 # of exeext.
2700 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2701 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2702 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2703 #
2704 # List of possible output files, starting from the most likely.
2705 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2706 # only as a last resort.  b.out is created by i960 compilers.
2707 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2708 #
2709 # The IRIX 6 linker writes into existing files which may not be
2710 # executable, retaining their permissions.  Remove them first so a
2711 # subsequent execution test works.
2712 ac_rmfiles=
2713 for ac_file in $ac_files
2714 do
2715   case $ac_file in
2716     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2717     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2718   esac
2719 done
2720 rm -f $ac_rmfiles
2721
2722 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2723   (eval $ac_link_default) 2>&5
2724   ac_status=$?
2725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726   (exit $ac_status); }; then
2727   # Be careful to initialize this variable, since it used to be cached.
2728 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2729 ac_cv_exeext=
2730 for ac_file in $ac_files
2731 do
2732   test -f "$ac_file" || continue
2733   case $ac_file in
2734     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2735         ;;
2736     [ab].out )
2737         # We found the default executable, but exeext='' is most
2738         # certainly right.
2739         break;;
2740     *.* )
2741         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2742         # FIXME: I believe we export ac_cv_exeext for Libtool,
2743         # but it would be cool to find out if it's true.  Does anybody
2744         # maintain Libtool? --akim.
2745         export ac_cv_exeext
2746         break;;
2747     * )
2748         break;;
2749   esac
2750 done
2751 else
2752   echo "$as_me: failed program was:" >&5
2753 sed 's/^/| /' conftest.$ac_ext >&5
2754
2755 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2756 See \`config.log' for more details." >&5
2757 echo "$as_me: error: C compiler cannot create executables
2758 See \`config.log' for more details." >&2;}
2759    { (exit 77); exit 77; }; }
2760 fi
2761
2762 ac_exeext=$ac_cv_exeext
2763 { echo "$as_me:$LINENO: result: $ac_file" >&5
2764 echo "${ECHO_T}$ac_file" >&6; }
2765
2766 # Check the compiler produces executables we can run.  If not, either
2767 # the compiler is broken, or we cross compile.
2768 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2769 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2770 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2771 # If not cross compiling, check that we can run a simple program.
2772 if test "$cross_compiling" != yes; then
2773   if { ac_try='./$ac_file'
2774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2775   (eval $ac_try) 2>&5
2776   ac_status=$?
2777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778   (exit $ac_status); }; }; then
2779     cross_compiling=no
2780   else
2781     if test "$cross_compiling" = maybe; then
2782         cross_compiling=yes
2783     else
2784         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2785 If you meant to cross compile, use \`--host'.
2786 See \`config.log' for more details." >&5
2787 echo "$as_me: error: cannot run C compiled programs.
2788 If you meant to cross compile, use \`--host'.
2789 See \`config.log' for more details." >&2;}
2790    { (exit 1); exit 1; }; }
2791     fi
2792   fi
2793 fi
2794 { echo "$as_me:$LINENO: result: yes" >&5
2795 echo "${ECHO_T}yes" >&6; }
2796
2797 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2798 ac_clean_files=$ac_clean_files_save
2799 # Check the compiler produces executables we can run.  If not, either
2800 # the compiler is broken, or we cross compile.
2801 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2802 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2803 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2804 echo "${ECHO_T}$cross_compiling" >&6; }
2805
2806 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2807 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2809   (eval $ac_link) 2>&5
2810   ac_status=$?
2811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812   (exit $ac_status); }; then
2813   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2814 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2815 # work properly (i.e., refer to `conftest.exe'), while it won't with
2816 # `rm'.
2817 for ac_file in conftest.exe conftest conftest.*; do
2818   test -f "$ac_file" || continue
2819   case $ac_file in
2820     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2821     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2822           export ac_cv_exeext
2823           break;;
2824     * ) break;;
2825   esac
2826 done
2827 else
2828   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2829 See \`config.log' for more details." >&5
2830 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2831 See \`config.log' for more details." >&2;}
2832    { (exit 1); exit 1; }; }
2833 fi
2834
2835 rm -f conftest$ac_cv_exeext
2836 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2837 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2838
2839 rm -f conftest.$ac_ext
2840 EXEEXT=$ac_cv_exeext
2841 ac_exeext=$EXEEXT
2842 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2843 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2844 if test "${ac_cv_objext+set}" = set; then
2845   echo $ECHO_N "(cached) $ECHO_C" >&6
2846 else
2847   cat >conftest.$ac_ext <<_ACEOF
2848 /* confdefs.h.  */
2849 _ACEOF
2850 cat confdefs.h >>conftest.$ac_ext
2851 cat >>conftest.$ac_ext <<_ACEOF
2852 /* end confdefs.h.  */
2853
2854 int
2855 main ()
2856 {
2857
2858   ;
2859   return 0;
2860 }
2861 _ACEOF
2862 rm -f conftest.o conftest.obj
2863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2864   (eval $ac_compile) 2>&5
2865   ac_status=$?
2866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867   (exit $ac_status); }; then
2868   for ac_file in conftest.o conftest.obj conftest.*; do
2869   test -f "$ac_file" || continue;
2870   case $ac_file in
2871     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2872     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2873        break;;
2874   esac
2875 done
2876 else
2877   echo "$as_me: failed program was:" >&5
2878 sed 's/^/| /' conftest.$ac_ext >&5
2879
2880 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2881 See \`config.log' for more details." >&5
2882 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2883 See \`config.log' for more details." >&2;}
2884    { (exit 1); exit 1; }; }
2885 fi
2886
2887 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2888 fi
2889 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2890 echo "${ECHO_T}$ac_cv_objext" >&6; }
2891 OBJEXT=$ac_cv_objext
2892 ac_objext=$OBJEXT
2893 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2894 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2895 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2896   echo $ECHO_N "(cached) $ECHO_C" >&6
2897 else
2898   cat >conftest.$ac_ext <<_ACEOF
2899 /* confdefs.h.  */
2900 _ACEOF
2901 cat confdefs.h >>conftest.$ac_ext
2902 cat >>conftest.$ac_ext <<_ACEOF
2903 /* end confdefs.h.  */
2904
2905 int
2906 main ()
2907 {
2908 #ifndef __GNUC__
2909        choke me
2910 #endif
2911
2912   ;
2913   return 0;
2914 }
2915 _ACEOF
2916 rm -f conftest.$ac_objext
2917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2918   (eval $ac_compile) 2>conftest.er1
2919   ac_status=$?
2920   grep -v '^ *+' conftest.er1 >conftest.err
2921   rm -f conftest.er1
2922   cat conftest.err >&5
2923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924   (exit $ac_status); } &&
2925          { ac_try='test -z "$ac_c_werror_flag"
2926                          || test ! -s conftest.err'
2927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2928   (eval $ac_try) 2>&5
2929   ac_status=$?
2930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931   (exit $ac_status); }; } &&
2932          { ac_try='test -s conftest.$ac_objext'
2933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2934   (eval $ac_try) 2>&5
2935   ac_status=$?
2936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937   (exit $ac_status); }; }; then
2938   ac_compiler_gnu=yes
2939 else
2940   echo "$as_me: failed program was:" >&5
2941 sed 's/^/| /' conftest.$ac_ext >&5
2942
2943         ac_compiler_gnu=no
2944 fi
2945
2946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2947 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2948
2949 fi
2950 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2951 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2952 GCC=`test $ac_compiler_gnu = yes && echo yes`
2953 ac_test_CFLAGS=${CFLAGS+set}
2954 ac_save_CFLAGS=$CFLAGS
2955 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2956 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2957 if test "${ac_cv_prog_cc_g+set}" = set; then
2958   echo $ECHO_N "(cached) $ECHO_C" >&6
2959 else
2960   ac_save_c_werror_flag=$ac_c_werror_flag
2961    ac_c_werror_flag=yes
2962    ac_cv_prog_cc_g=no
2963    CFLAGS="-g"
2964    cat >conftest.$ac_ext <<_ACEOF
2965 /* confdefs.h.  */
2966 _ACEOF
2967 cat confdefs.h >>conftest.$ac_ext
2968 cat >>conftest.$ac_ext <<_ACEOF
2969 /* end confdefs.h.  */
2970
2971 int
2972 main ()
2973 {
2974
2975   ;
2976   return 0;
2977 }
2978 _ACEOF
2979 rm -f conftest.$ac_objext
2980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2981   (eval $ac_compile) 2>conftest.er1
2982   ac_status=$?
2983   grep -v '^ *+' conftest.er1 >conftest.err
2984   rm -f conftest.er1
2985   cat conftest.err >&5
2986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987   (exit $ac_status); } &&
2988          { ac_try='test -z "$ac_c_werror_flag"
2989                          || test ! -s conftest.err'
2990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2991   (eval $ac_try) 2>&5
2992   ac_status=$?
2993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994   (exit $ac_status); }; } &&
2995          { ac_try='test -s conftest.$ac_objext'
2996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2997   (eval $ac_try) 2>&5
2998   ac_status=$?
2999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000   (exit $ac_status); }; }; then
3001   ac_cv_prog_cc_g=yes
3002 else
3003   echo "$as_me: failed program was:" >&5
3004 sed 's/^/| /' conftest.$ac_ext >&5
3005
3006         CFLAGS=""
3007       cat >conftest.$ac_ext <<_ACEOF
3008 /* confdefs.h.  */
3009 _ACEOF
3010 cat confdefs.h >>conftest.$ac_ext
3011 cat >>conftest.$ac_ext <<_ACEOF
3012 /* end confdefs.h.  */
3013
3014 int
3015 main ()
3016 {
3017
3018   ;
3019   return 0;
3020 }
3021 _ACEOF
3022 rm -f conftest.$ac_objext
3023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3024   (eval $ac_compile) 2>conftest.er1
3025   ac_status=$?
3026   grep -v '^ *+' conftest.er1 >conftest.err
3027   rm -f conftest.er1
3028   cat conftest.err >&5
3029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030   (exit $ac_status); } &&
3031          { ac_try='test -z "$ac_c_werror_flag"
3032                          || test ! -s conftest.err'
3033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3034   (eval $ac_try) 2>&5
3035   ac_status=$?
3036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037   (exit $ac_status); }; } &&
3038          { ac_try='test -s conftest.$ac_objext'
3039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3040   (eval $ac_try) 2>&5
3041   ac_status=$?
3042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043   (exit $ac_status); }; }; then
3044   :
3045 else
3046   echo "$as_me: failed program was:" >&5
3047 sed 's/^/| /' conftest.$ac_ext >&5
3048
3049         ac_c_werror_flag=$ac_save_c_werror_flag
3050          CFLAGS="-g"
3051          cat >conftest.$ac_ext <<_ACEOF
3052 /* confdefs.h.  */
3053 _ACEOF
3054 cat confdefs.h >>conftest.$ac_ext
3055 cat >>conftest.$ac_ext <<_ACEOF
3056 /* end confdefs.h.  */
3057
3058 int
3059 main ()
3060 {
3061
3062   ;
3063   return 0;
3064 }
3065 _ACEOF
3066 rm -f conftest.$ac_objext
3067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3068   (eval $ac_compile) 2>conftest.er1
3069   ac_status=$?
3070   grep -v '^ *+' conftest.er1 >conftest.err
3071   rm -f conftest.er1
3072   cat conftest.err >&5
3073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074   (exit $ac_status); } &&
3075          { ac_try='test -z "$ac_c_werror_flag"
3076                          || test ! -s conftest.err'
3077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3078   (eval $ac_try) 2>&5
3079   ac_status=$?
3080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081   (exit $ac_status); }; } &&
3082          { ac_try='test -s conftest.$ac_objext'
3083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3084   (eval $ac_try) 2>&5
3085   ac_status=$?
3086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087   (exit $ac_status); }; }; then
3088   ac_cv_prog_cc_g=yes
3089 else
3090   echo "$as_me: failed program was:" >&5
3091 sed 's/^/| /' conftest.$ac_ext >&5
3092
3093
3094 fi
3095
3096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3097 fi
3098
3099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3100 fi
3101
3102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3103    ac_c_werror_flag=$ac_save_c_werror_flag
3104 fi
3105 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3106 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3107 if test "$ac_test_CFLAGS" = set; then
3108   CFLAGS=$ac_save_CFLAGS
3109 elif test $ac_cv_prog_cc_g = yes; then
3110   if test "$GCC" = yes; then
3111     CFLAGS="-g -O2"
3112   else
3113     CFLAGS="-g"
3114   fi
3115 else
3116   if test "$GCC" = yes; then
3117     CFLAGS="-O2"
3118   else
3119     CFLAGS=
3120   fi
3121 fi
3122 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3123 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3124 if test "${ac_cv_prog_cc_c89+set}" = set; then
3125   echo $ECHO_N "(cached) $ECHO_C" >&6
3126 else
3127   ac_cv_prog_cc_c89=no
3128 ac_save_CC=$CC
3129 cat >conftest.$ac_ext <<_ACEOF
3130 /* confdefs.h.  */
3131 _ACEOF
3132 cat confdefs.h >>conftest.$ac_ext
3133 cat >>conftest.$ac_ext <<_ACEOF
3134 /* end confdefs.h.  */
3135 #include <stdarg.h>
3136 #include <stdio.h>
3137 #include <sys/types.h>
3138 #include <sys/stat.h>
3139 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3140 struct buf { int x; };
3141 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3142 static char *e (p, i)
3143      char **p;
3144      int i;
3145 {
3146   return p[i];
3147 }
3148 static char *f (char * (*g) (char **, int), char **p, ...)
3149 {
3150   char *s;
3151   va_list v;
3152   va_start (v,p);
3153   s = g (p, va_arg (v,int));
3154   va_end (v);
3155   return s;
3156 }
3157
3158 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3159    function prototypes and stuff, but not '\xHH' hex character constants.
3160    These don't provoke an error unfortunately, instead are silently treated
3161    as 'x'.  The following induces an error, until -std is added to get
3162    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3163    array size at least.  It's necessary to write '\x00'==0 to get something
3164    that's true only with -std.  */
3165 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3166
3167 int test (int i, double x);
3168 struct s1 {int (*f) (int a);};
3169 struct s2 {int (*f) (double a);};
3170 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3171 int argc;
3172 char **argv;
3173 int
3174 main ()
3175 {
3176 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3177   ;
3178   return 0;
3179 }
3180 _ACEOF
3181 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3182         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3183 do
3184   CC="$ac_save_CC $ac_arg"
3185   rm -f conftest.$ac_objext
3186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3187   (eval $ac_compile) 2>conftest.er1
3188   ac_status=$?
3189   grep -v '^ *+' conftest.er1 >conftest.err
3190   rm -f conftest.er1
3191   cat conftest.err >&5
3192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193   (exit $ac_status); } &&
3194          { ac_try='test -z "$ac_c_werror_flag"
3195                          || test ! -s conftest.err'
3196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3197   (eval $ac_try) 2>&5
3198   ac_status=$?
3199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200   (exit $ac_status); }; } &&
3201          { ac_try='test -s conftest.$ac_objext'
3202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3203   (eval $ac_try) 2>&5
3204   ac_status=$?
3205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206   (exit $ac_status); }; }; then
3207   ac_cv_prog_cc_c89=$ac_arg
3208 else
3209   echo "$as_me: failed program was:" >&5
3210 sed 's/^/| /' conftest.$ac_ext >&5
3211
3212
3213 fi
3214
3215 rm -f conftest.err conftest.$ac_objext
3216   test "x$ac_cv_prog_cc_c89" != "xno" && break
3217 done
3218 rm -f conftest.$ac_ext
3219 CC=$ac_save_CC
3220
3221 fi
3222 # AC_CACHE_VAL
3223 case "x$ac_cv_prog_cc_c89" in
3224   x)
3225     { echo "$as_me:$LINENO: result: none needed" >&5
3226 echo "${ECHO_T}none needed" >&6; } ;;
3227   xno)
3228     { echo "$as_me:$LINENO: result: unsupported" >&5
3229 echo "${ECHO_T}unsupported" >&6; } ;;
3230   *)
3231     CC="$CC $ac_cv_prog_cc_c89"
3232     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3233 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3234 esac
3235
3236
3237 # Some people use a C++ compiler to compile C.  Since we use `exit',
3238 # in C++ we need to declare it.  In case someone uses the same compiler
3239 # for both compiling C and C++ we need to have the C++ compiler decide
3240 # the declaration of exit, since it's the most demanding environment.
3241 cat >conftest.$ac_ext <<_ACEOF
3242 #ifndef __cplusplus
3243   choke me
3244 #endif
3245 _ACEOF
3246 rm -f conftest.$ac_objext
3247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3248   (eval $ac_compile) 2>conftest.er1
3249   ac_status=$?
3250   grep -v '^ *+' conftest.er1 >conftest.err
3251   rm -f conftest.er1
3252   cat conftest.err >&5
3253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254   (exit $ac_status); } &&
3255          { ac_try='test -z "$ac_c_werror_flag"
3256                          || test ! -s conftest.err'
3257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3258   (eval $ac_try) 2>&5
3259   ac_status=$?
3260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261   (exit $ac_status); }; } &&
3262          { ac_try='test -s conftest.$ac_objext'
3263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3264   (eval $ac_try) 2>&5
3265   ac_status=$?
3266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267   (exit $ac_status); }; }; then
3268   for ac_declaration in \
3269    '' \
3270    'extern "C" void std::exit (int) throw (); using std::exit;' \
3271    'extern "C" void std::exit (int); using std::exit;' \
3272    'extern "C" void exit (int) throw ();' \
3273    'extern "C" void exit (int);' \
3274    'void exit (int);'
3275 do
3276   cat >conftest.$ac_ext <<_ACEOF
3277 /* confdefs.h.  */
3278 _ACEOF
3279 cat confdefs.h >>conftest.$ac_ext
3280 cat >>conftest.$ac_ext <<_ACEOF
3281 /* end confdefs.h.  */
3282 $ac_declaration
3283 #include <stdlib.h>
3284 int
3285 main ()
3286 {
3287 exit (42);
3288   ;
3289   return 0;
3290 }
3291 _ACEOF
3292 rm -f conftest.$ac_objext
3293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3294   (eval $ac_compile) 2>conftest.er1
3295   ac_status=$?
3296   grep -v '^ *+' conftest.er1 >conftest.err
3297   rm -f conftest.er1
3298   cat conftest.err >&5
3299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300   (exit $ac_status); } &&
3301          { ac_try='test -z "$ac_c_werror_flag"
3302                          || test ! -s conftest.err'
3303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3304   (eval $ac_try) 2>&5
3305   ac_status=$?
3306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307   (exit $ac_status); }; } &&
3308          { ac_try='test -s conftest.$ac_objext'
3309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3310   (eval $ac_try) 2>&5
3311   ac_status=$?
3312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313   (exit $ac_status); }; }; then
3314   :
3315 else
3316   echo "$as_me: failed program was:" >&5
3317 sed 's/^/| /' conftest.$ac_ext >&5
3318
3319         continue
3320 fi
3321
3322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3323   cat >conftest.$ac_ext <<_ACEOF
3324 /* confdefs.h.  */
3325 _ACEOF
3326 cat confdefs.h >>conftest.$ac_ext
3327 cat >>conftest.$ac_ext <<_ACEOF
3328 /* end confdefs.h.  */
3329 $ac_declaration
3330 int
3331 main ()
3332 {
3333 exit (42);
3334   ;
3335   return 0;
3336 }
3337 _ACEOF
3338 rm -f conftest.$ac_objext
3339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3340   (eval $ac_compile) 2>conftest.er1
3341   ac_status=$?
3342   grep -v '^ *+' conftest.er1 >conftest.err
3343   rm -f conftest.er1
3344   cat conftest.err >&5
3345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346   (exit $ac_status); } &&
3347          { ac_try='test -z "$ac_c_werror_flag"
3348                          || test ! -s conftest.err'
3349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3350   (eval $ac_try) 2>&5
3351   ac_status=$?
3352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353   (exit $ac_status); }; } &&
3354          { ac_try='test -s conftest.$ac_objext'
3355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3356   (eval $ac_try) 2>&5
3357   ac_status=$?
3358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359   (exit $ac_status); }; }; then
3360   break
3361 else
3362   echo "$as_me: failed program was:" >&5
3363 sed 's/^/| /' conftest.$ac_ext >&5
3364
3365
3366 fi
3367
3368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3369 done
3370 rm -f conftest*
3371 if test -n "$ac_declaration"; then
3372   echo '#ifdef __cplusplus' >>confdefs.h
3373   echo $ac_declaration      >>confdefs.h
3374   echo '#endif'             >>confdefs.h
3375 fi
3376
3377 else
3378   echo "$as_me: failed program was:" >&5
3379 sed 's/^/| /' conftest.$ac_ext >&5
3380
3381
3382 fi
3383
3384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3385 ac_ext=c
3386 ac_cpp='$CPP $CPPFLAGS'
3387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3390 DEPDIR="${am__leading_dot}deps"
3391
3392 ac_config_commands="$ac_config_commands depfiles"
3393
3394
3395 am_make=${MAKE-make}
3396 cat > confinc << 'END'
3397 am__doit:
3398         @echo done
3399 .PHONY: am__doit
3400 END
3401 # If we don't find an include directive, just comment out the code.
3402 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3403 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3404 am__include="#"
3405 am__quote=
3406 _am_result=none
3407 # First try GNU make style include.
3408 echo "include confinc" > confmf
3409 # We grep out `Entering directory' and `Leaving directory'
3410 # messages which can occur if `w' ends up in MAKEFLAGS.
3411 # In particular we don't look at `^make:' because GNU make might
3412 # be invoked under some other name (usually "gmake"), in which
3413 # case it prints its new name instead of `make'.
3414 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3415    am__include=include
3416    am__quote=
3417    _am_result=GNU
3418 fi
3419 # Now try BSD make style include.
3420 if test "$am__include" = "#"; then
3421    echo '.include "confinc"' > confmf
3422    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3423       am__include=.include
3424       am__quote="\""
3425       _am_result=BSD
3426    fi
3427 fi
3428
3429
3430 { echo "$as_me:$LINENO: result: $_am_result" >&5
3431 echo "${ECHO_T}$_am_result" >&6; }
3432 rm -f confinc confmf
3433
3434 # Check whether --enable-dependency-tracking was given.
3435 if test "${enable_dependency_tracking+set}" = set; then
3436   enableval=$enable_dependency_tracking;
3437 fi
3438
3439 if test "x$enable_dependency_tracking" != xno; then
3440   am_depcomp="$ac_aux_dir/depcomp"
3441   AMDEPBACKSLASH='\'
3442 fi
3443
3444
3445 if test "x$enable_dependency_tracking" != xno; then
3446   AMDEP_TRUE=
3447   AMDEP_FALSE='#'
3448 else
3449   AMDEP_TRUE='#'
3450   AMDEP_FALSE=
3451 fi
3452
3453
3454
3455
3456 depcc="$CC"   am_compiler_list=
3457
3458 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3459 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3460 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3461   echo $ECHO_N "(cached) $ECHO_C" >&6
3462 else
3463   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3464   # We make a subdir and do the tests there.  Otherwise we can end up
3465   # making bogus files that we don't know about and never remove.  For
3466   # instance it was reported that on HP-UX the gcc test will end up
3467   # making a dummy file named `D' -- because `-MD' means `put the output
3468   # in D'.
3469   mkdir conftest.dir
3470   # Copy depcomp to subdir because otherwise we won't find it if we're
3471   # using a relative directory.
3472   cp "$am_depcomp" conftest.dir
3473   cd conftest.dir
3474   # We will build objects and dependencies in a subdirectory because
3475   # it helps to detect inapplicable dependency modes.  For instance
3476   # both Tru64's cc and ICC support -MD to output dependencies as a
3477   # side effect of compilation, but ICC will put the dependencies in
3478   # the current directory while Tru64 will put them in the object
3479   # directory.
3480   mkdir sub
3481
3482   am_cv_CC_dependencies_compiler_type=none
3483   if test "$am_compiler_list" = ""; then
3484      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3485   fi
3486   for depmode in $am_compiler_list; do
3487     # Setup a source with many dependencies, because some compilers
3488     # like to wrap large dependency lists on column 80 (with \), and
3489     # we should not choose a depcomp mode which is confused by this.
3490     #
3491     # We need to recreate these files for each test, as the compiler may
3492     # overwrite some of them when testing with obscure command lines.
3493     # This happens at least with the AIX C compiler.
3494     : > sub/conftest.c
3495     for i in 1 2 3 4 5 6; do
3496       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3497       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3498       # Solaris 8's {/usr,}/bin/sh.
3499       touch sub/conftst$i.h
3500     done
3501     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3502
3503     case $depmode in
3504     nosideeffect)
3505       # after this tag, mechanisms are not by side-effect, so they'll
3506       # only be used when explicitly requested
3507       if test "x$enable_dependency_tracking" = xyes; then
3508         continue
3509       else
3510         break
3511       fi
3512       ;;
3513     none) break ;;
3514     esac
3515     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3516     # mode.  It turns out that the SunPro C++ compiler does not properly
3517     # handle `-M -o', and we need to detect this.
3518     if depmode=$depmode \
3519        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3520        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3521        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3522          >/dev/null 2>conftest.err &&
3523        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3524        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3525        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3526       # icc doesn't choke on unknown options, it will just issue warnings
3527       # or remarks (even with -Werror).  So we grep stderr for any message
3528       # that says an option was ignored or not supported.
3529       # When given -MP, icc 7.0 and 7.1 complain thusly:
3530       #   icc: Command line warning: ignoring option '-M'; no argument required
3531       # The diagnosis changed in icc 8.0:
3532       #   icc: Command line remark: option '-MP' not supported
3533       if (grep 'ignoring option' conftest.err ||
3534           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3535         am_cv_CC_dependencies_compiler_type=$depmode
3536         break
3537       fi
3538     fi
3539   done
3540
3541   cd ..
3542   rm -rf conftest.dir
3543 else
3544   am_cv_CC_dependencies_compiler_type=none
3545 fi
3546
3547 fi
3548 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3549 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3550 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3551
3552
3553
3554 if
3555   test "x$enable_dependency_tracking" != xno \
3556   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3557   am__fastdepCC_TRUE=
3558   am__fastdepCC_FALSE='#'
3559 else
3560   am__fastdepCC_TRUE='#'
3561   am__fastdepCC_FALSE=
3562 fi
3563
3564
3565
3566 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3567 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
3568 if test "${ac_cv_c_const+set}" = set; then
3569   echo $ECHO_N "(cached) $ECHO_C" >&6
3570 else
3571   cat >conftest.$ac_ext <<_ACEOF
3572 /* confdefs.h.  */
3573 _ACEOF
3574 cat confdefs.h >>conftest.$ac_ext
3575 cat >>conftest.$ac_ext <<_ACEOF
3576 /* end confdefs.h.  */
3577
3578 int
3579 main ()
3580 {
3581 /* FIXME: Include the comments suggested by Paul. */
3582 #ifndef __cplusplus
3583   /* Ultrix mips cc rejects this.  */
3584   typedef int charset[2];
3585   const charset x;
3586   /* SunOS 4.1.1 cc rejects this.  */
3587   char const *const *ccp;
3588   char **p;
3589   /* NEC SVR4.0.2 mips cc rejects this.  */
3590   struct point {int x, y;};
3591   static struct point const zero = {0,0};
3592   /* AIX XL C 1.02.0.0 rejects this.
3593      It does not let you subtract one const X* pointer from another in
3594      an arm of an if-expression whose if-part is not a constant
3595      expression */
3596   const char *g = "string";
3597   ccp = &g + (g ? g-g : 0);
3598   /* HPUX 7.0 cc rejects these. */
3599   ++ccp;
3600   p = (char**) ccp;
3601   ccp = (char const *const *) p;
3602   { /* SCO 3.2v4 cc rejects this.  */
3603     char *t;
3604     char const *s = 0 ? (char *) 0 : (char const *) 0;
3605
3606     *t++ = 0;
3607   }
3608   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3609     int x[] = {25, 17};
3610     const int *foo = &x[0];
3611     ++foo;
3612   }
3613   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3614     typedef const int *iptr;
3615     iptr p = 0;
3616     ++p;
3617   }
3618   { /* AIX XL C 1.02.0.0 rejects this saying
3619        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3620     struct s { int j; const int *ap[3]; };
3621     struct s *b; b->j = 5;
3622   }
3623   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3624     const int foo = 10;
3625   }
3626 #endif
3627
3628   ;
3629   return 0;
3630 }
3631 _ACEOF
3632 rm -f conftest.$ac_objext
3633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3634   (eval $ac_compile) 2>conftest.er1
3635   ac_status=$?
3636   grep -v '^ *+' conftest.er1 >conftest.err
3637   rm -f conftest.er1
3638   cat conftest.err >&5
3639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640   (exit $ac_status); } &&
3641          { ac_try='test -z "$ac_c_werror_flag"
3642                          || test ! -s conftest.err'
3643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3644   (eval $ac_try) 2>&5
3645   ac_status=$?
3646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647   (exit $ac_status); }; } &&
3648          { ac_try='test -s conftest.$ac_objext'
3649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3650   (eval $ac_try) 2>&5
3651   ac_status=$?
3652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653   (exit $ac_status); }; }; then
3654   ac_cv_c_const=yes
3655 else
3656   echo "$as_me: failed program was:" >&5
3657 sed 's/^/| /' conftest.$ac_ext >&5
3658
3659         ac_cv_c_const=no
3660 fi
3661
3662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3663 fi
3664 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3665 echo "${ECHO_T}$ac_cv_c_const" >&6; }
3666 if test $ac_cv_c_const = no; then
3667
3668 cat >>confdefs.h <<\_ACEOF
3669 #define const
3670 _ACEOF
3671
3672 fi
3673
3674 { echo "$as_me:$LINENO: checking for inline" >&5
3675 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3676 if test "${ac_cv_c_inline+set}" = set; then
3677   echo $ECHO_N "(cached) $ECHO_C" >&6
3678 else
3679   ac_cv_c_inline=no
3680 for ac_kw in inline __inline__ __inline; do
3681   cat >conftest.$ac_ext <<_ACEOF
3682 /* confdefs.h.  */
3683 _ACEOF
3684 cat confdefs.h >>conftest.$ac_ext
3685 cat >>conftest.$ac_ext <<_ACEOF
3686 /* end confdefs.h.  */
3687 #ifndef __cplusplus
3688 typedef int foo_t;
3689 static $ac_kw foo_t static_foo () {return 0; }
3690 $ac_kw foo_t foo () {return 0; }
3691 #endif
3692
3693 _ACEOF
3694 rm -f conftest.$ac_objext
3695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3696   (eval $ac_compile) 2>conftest.er1
3697   ac_status=$?
3698   grep -v '^ *+' conftest.er1 >conftest.err
3699   rm -f conftest.er1
3700   cat conftest.err >&5
3701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702   (exit $ac_status); } &&
3703          { ac_try='test -z "$ac_c_werror_flag"
3704                          || test ! -s conftest.err'
3705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3706   (eval $ac_try) 2>&5
3707   ac_status=$?
3708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709   (exit $ac_status); }; } &&
3710          { ac_try='test -s conftest.$ac_objext'
3711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3712   (eval $ac_try) 2>&5
3713   ac_status=$?
3714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715   (exit $ac_status); }; }; then
3716   ac_cv_c_inline=$ac_kw; break
3717 else
3718   echo "$as_me: failed program was:" >&5
3719 sed 's/^/| /' conftest.$ac_ext >&5
3720
3721
3722 fi
3723
3724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3725 done
3726
3727 fi
3728 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3729 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
3730
3731
3732 case $ac_cv_c_inline in
3733   inline | yes) ;;
3734   *)
3735     case $ac_cv_c_inline in
3736       no) ac_val=;;
3737       *) ac_val=$ac_cv_c_inline;;
3738     esac
3739     cat >>confdefs.h <<_ACEOF
3740 #ifndef __cplusplus
3741 #define inline $ac_val
3742 #endif
3743 _ACEOF
3744     ;;
3745 esac
3746
3747
3748
3749 ## ----------------------- ##
3750 ## Libtool initialisation. ##
3751 ## ----------------------- ##
3752
3753
3754 # Check whether --enable-shared was given.
3755 if test "${enable_shared+set}" = set; then
3756   enableval=$enable_shared; p=${PACKAGE-default}
3757     case $enableval in
3758     yes) enable_shared=yes ;;
3759     no) enable_shared=no ;;
3760     *)
3761       enable_shared=no
3762       # Look at the argument we got.  We use all the common list separators.
3763       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3764       for pkg in $enableval; do
3765         IFS="$lt_save_ifs"
3766         if test "X$pkg" = "X$p"; then
3767           enable_shared=yes
3768         fi
3769       done
3770       IFS="$lt_save_ifs"
3771       ;;
3772     esac
3773 else
3774   enable_shared=yes
3775 fi
3776
3777
3778 # Check whether --enable-static was given.
3779 if test "${enable_static+set}" = set; then
3780   enableval=$enable_static; p=${PACKAGE-default}
3781     case $enableval in
3782     yes) enable_static=yes ;;
3783     no) enable_static=no ;;
3784     *)
3785      enable_static=no
3786       # Look at the argument we got.  We use all the common list separators.
3787       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3788       for pkg in $enableval; do
3789         IFS="$lt_save_ifs"
3790         if test "X$pkg" = "X$p"; then
3791           enable_static=yes
3792         fi
3793       done
3794       IFS="$lt_save_ifs"
3795       ;;
3796     esac
3797 else
3798   enable_static=yes
3799 fi
3800
3801
3802 # Check whether --enable-fast-install was given.
3803 if test "${enable_fast_install+set}" = set; then
3804   enableval=$enable_fast_install; p=${PACKAGE-default}
3805     case $enableval in
3806     yes) enable_fast_install=yes ;;
3807     no) enable_fast_install=no ;;
3808     *)
3809       enable_fast_install=no
3810       # Look at the argument we got.  We use all the common list separators.
3811       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3812       for pkg in $enableval; do
3813         IFS="$lt_save_ifs"
3814         if test "X$pkg" = "X$p"; then
3815           enable_fast_install=yes
3816         fi
3817       done
3818       IFS="$lt_save_ifs"
3819       ;;
3820     esac
3821 else
3822   enable_fast_install=yes
3823 fi
3824
3825
3826 # Make sure we can run config.sub.
3827 $ac_config_sub sun4 >/dev/null 2>&1 ||
3828   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3829 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3830    { (exit 1); exit 1; }; }
3831
3832 { echo "$as_me:$LINENO: checking build system type" >&5
3833 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3834 if test "${ac_cv_build+set}" = set; then
3835   echo $ECHO_N "(cached) $ECHO_C" >&6
3836 else
3837   ac_build_alias=$build_alias
3838 test "x$ac_build_alias" = x &&
3839   ac_build_alias=`$ac_config_guess`
3840 test "x$ac_build_alias" = x &&
3841   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3842 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3843    { (exit 1); exit 1; }; }
3844 ac_cv_build=`$ac_config_sub $ac_build_alias` ||
3845   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_build_alias failed" >&5
3846 echo "$as_me: error: $ac_config_sub $ac_build_alias failed" >&2;}
3847    { (exit 1); exit 1; }; }
3848
3849 fi
3850 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3851 echo "${ECHO_T}$ac_cv_build" >&6; }
3852 case $ac_cv_build in
3853 *-*-*) ;;
3854 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3855 echo "$as_me: error: invalid value of canonical build" >&2;}
3856    { (exit 1); exit 1; }; };;
3857 esac
3858 build=$ac_cv_build
3859 ac_save_IFS=$IFS; IFS='-'
3860 set x $ac_cv_build
3861 shift
3862 build_cpu=$1
3863 build_vendor=$2
3864 shift; shift
3865 build_os=$*
3866 IFS=$ac_save_IFS
3867
3868
3869 { echo "$as_me:$LINENO: checking host system type" >&5
3870 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3871 if test "${ac_cv_host+set}" = set; then
3872   echo $ECHO_N "(cached) $ECHO_C" >&6
3873 else
3874   if test "x$host_alias" = x; then
3875   ac_cv_host=$ac_cv_build
3876 else
3877   ac_cv_host=`$ac_config_sub $host_alias` ||
3878     { { echo "$as_me:$LINENO: error: $ac_config_sub $host_alias failed" >&5
3879 echo "$as_me: error: $ac_config_sub $host_alias failed" >&2;}
3880    { (exit 1); exit 1; }; }
3881 fi
3882
3883 fi
3884 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3885 echo "${ECHO_T}$ac_cv_host" >&6; }
3886 case $ac_cv_host in
3887 *-*-*) ;;
3888 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3889 echo "$as_me: error: invalid value of canonical host" >&2;}
3890    { (exit 1); exit 1; }; };;
3891 esac
3892 host=$ac_cv_host
3893 ac_save_IFS=$IFS; IFS='-'
3894 set x $ac_cv_host
3895 shift
3896 host_cpu=$1
3897 host_vendor=$2
3898 shift; shift
3899 host_os=$*
3900 IFS=$ac_save_IFS
3901
3902
3903 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3904 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3905 if test "${lt_cv_path_SED+set}" = set; then
3906   echo $ECHO_N "(cached) $ECHO_C" >&6
3907 else
3908   # Loop through the user's path and test for sed and gsed.
3909 # Then use that list of sed's as ones to test for truncation.
3910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3911 for as_dir in $PATH
3912 do
3913   IFS=$as_save_IFS
3914   test -z "$as_dir" && as_dir=.
3915   for lt_ac_prog in sed gsed; do
3916     for ac_exec_ext in '' $ac_executable_extensions; do
3917       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3918         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3919       fi
3920     done
3921   done
3922 done
3923 lt_ac_max=0
3924 lt_ac_count=0
3925 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3926 # along with /bin/sed that truncates output.
3927 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3928   test ! -f $lt_ac_sed && continue
3929   cat /dev/null > conftest.in
3930   lt_ac_count=0
3931   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3932   # Check for GNU sed and select it if it is found.
3933   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3934     lt_cv_path_SED=$lt_ac_sed
3935     break
3936   fi
3937   while true; do
3938     cat conftest.in conftest.in >conftest.tmp
3939     mv conftest.tmp conftest.in
3940     cp conftest.in conftest.nl
3941     echo >>conftest.nl
3942     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3943     cmp -s conftest.out conftest.nl || break
3944     # 10000 chars as input seems more than enough
3945     test $lt_ac_count -gt 10 && break
3946     lt_ac_count=`expr $lt_ac_count + 1`
3947     if test $lt_ac_count -gt $lt_ac_max; then
3948       lt_ac_max=$lt_ac_count
3949       lt_cv_path_SED=$lt_ac_sed
3950     fi
3951   done
3952 done
3953
3954 fi
3955
3956 SED=$lt_cv_path_SED
3957 { echo "$as_me:$LINENO: result: $SED" >&5
3958 echo "${ECHO_T}$SED" >&6; }
3959
3960 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3961 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3962 if test "${ac_cv_path_GREP+set}" = set; then
3963   echo $ECHO_N "(cached) $ECHO_C" >&6
3964 else
3965   # Extract the first word of "grep ggrep" to use in msg output
3966 if test -z "$GREP"; then
3967 set dummy grep ggrep; ac_prog_name=$2
3968 if test "${ac_cv_path_GREP+set}" = set; then
3969   echo $ECHO_N "(cached) $ECHO_C" >&6
3970 else
3971   ac_path_GREP_found=false
3972 # Loop through the user's path and test for each of PROGNAME-LIST
3973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974 as_dummy="$PATH:/usr/xpg4/bin"
3975 for as_dir in $as_dummy
3976 do
3977   IFS=$as_save_IFS
3978   test -z "$as_dir" && as_dir=.
3979   for ac_prog in grep ggrep; do
3980   for ac_exec_ext in '' $ac_executable_extensions; do
3981     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3982     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3983     # Check for GNU ac_path_GREP and select it if it is found.
3984   # Check for GNU $ac_path_GREP
3985 case `"$ac_path_GREP" --version 2>&1` in
3986 *GNU*)
3987   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3988 *)
3989   ac_count=0
3990   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3991   while :
3992   do
3993     cat "conftest.in" "conftest.in" >"conftest.tmp"
3994     mv "conftest.tmp" "conftest.in"
3995     cp "conftest.in" "conftest.nl"
3996     echo 'GREP' >> "conftest.nl"
3997     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3998     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3999     ac_count=`expr $ac_count + 1`
4000     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4001       # Best one so far, save it but keep looking for a better one
4002       ac_cv_path_GREP="$ac_path_GREP"
4003       ac_path_GREP_max=$ac_count
4004     fi
4005     # 10*(2^10) chars as input seems more than enough
4006     test $ac_count -gt 10 && break
4007   done
4008   rm -f conftest.*;;
4009 esac
4010
4011
4012     $ac_path_GREP_found && break 3
4013   done
4014 done
4015
4016 done
4017
4018
4019 fi
4020
4021 GREP="$ac_cv_path_GREP"
4022 if test -z "$GREP"; then
4023   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH:/usr/xpg4/bin" >&5
4024 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH:/usr/xpg4/bin" >&2;}
4025    { (exit 1); exit 1; }; }
4026 fi
4027
4028 else
4029   ac_cv_path_GREP=$GREP
4030 fi
4031
4032
4033 fi
4034 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4035 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4036  GREP="$ac_cv_path_GREP"
4037
4038
4039 { echo "$as_me:$LINENO: checking for egrep" >&5
4040 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4041 if test "${ac_cv_path_EGREP+set}" = set; then
4042   echo $ECHO_N "(cached) $ECHO_C" >&6
4043 else
4044   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4045    then ac_cv_path_EGREP="$GREP -E"
4046    else
4047      # Extract the first word of "egrep" to use in msg output
4048 if test -z "$EGREP"; then
4049 set dummy egrep; ac_prog_name=$2
4050 if test "${ac_cv_path_EGREP+set}" = set; then
4051   echo $ECHO_N "(cached) $ECHO_C" >&6
4052 else
4053   ac_path_EGREP_found=false
4054 # Loop through the user's path and test for each of PROGNAME-LIST
4055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4056 as_dummy="$PATH:/usr/xpg4/bin"
4057 for as_dir in $as_dummy
4058 do
4059   IFS=$as_save_IFS
4060   test -z "$as_dir" && as_dir=.
4061   for ac_prog in egrep; do
4062   for ac_exec_ext in '' $ac_executable_extensions; do
4063     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4064     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4065     # Check for GNU ac_path_EGREP and select it if it is found.
4066   # Check for GNU $ac_path_EGREP
4067 case `"$ac_path_EGREP" --version 2>&1` in
4068 *GNU*)
4069   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4070 *)
4071   ac_count=0
4072   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4073   while :
4074   do
4075     cat "conftest.in" "conftest.in" >"conftest.tmp"
4076     mv "conftest.tmp" "conftest.in"
4077     cp "conftest.in" "conftest.nl"
4078     echo 'EGREP' >> "conftest.nl"
4079     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4080     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4081     ac_count=`expr $ac_count + 1`
4082     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4083       # Best one so far, save it but keep looking for a better one
4084       ac_cv_path_EGREP="$ac_path_EGREP"
4085       ac_path_EGREP_max=$ac_count
4086     fi
4087     # 10*(2^10) chars as input seems more than enough
4088     test $ac_count -gt 10 && break
4089   done
4090   rm -f conftest.*;;
4091 esac
4092
4093
4094     $ac_path_EGREP_found && break 3
4095   done
4096 done
4097
4098 done
4099
4100
4101 fi
4102
4103 EGREP="$ac_cv_path_EGREP"
4104 if test -z "$EGREP"; then
4105   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH:/usr/xpg4/bin" >&5
4106 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH:/usr/xpg4/bin" >&2;}
4107    { (exit 1); exit 1; }; }
4108 fi
4109
4110 else
4111   ac_cv_path_EGREP=$EGREP
4112 fi
4113
4114
4115    fi
4116 fi
4117 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4118 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4119  EGREP="$ac_cv_path_EGREP"
4120
4121
4122
4123 # Check whether --with-gnu-ld was given.
4124 if test "${with_gnu_ld+set}" = set; then
4125   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4126 else
4127   with_gnu_ld=no
4128 fi
4129
4130 ac_prog=ld
4131 if test "$GCC" = yes; then
4132   # Check if gcc -print-prog-name=ld gives a path.
4133   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4134 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4135   case $host in
4136   *-*-mingw*)
4137     # gcc leaves a trailing carriage return which upsets mingw
4138     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4139   *)
4140     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4141   esac
4142   case $ac_prog in
4143     # Accept absolute paths.
4144     [\\/]* | ?:[\\/]*)
4145       re_direlt='/[^/][^/]*/\.\./'
4146       # Canonicalize the pathname of ld
4147       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4148       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4149         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4150       done
4151       test -z "$LD" && LD="$ac_prog"
4152       ;;
4153   "")
4154     # If it fails, then pretend we aren't using GCC.
4155     ac_prog=ld
4156     ;;
4157   *)
4158     # If it is relative, then search for the first ld in PATH.
4159     with_gnu_ld=unknown
4160     ;;
4161   esac
4162 elif test "$with_gnu_ld" = yes; then
4163   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4164 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4165 else
4166   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4167 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4168 fi
4169 if test "${lt_cv_path_LD+set}" = set; then
4170   echo $ECHO_N "(cached) $ECHO_C" >&6
4171 else
4172   if test -z "$LD"; then
4173   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4174   for ac_dir in $PATH; do
4175     IFS="$lt_save_ifs"
4176     test -z "$ac_dir" && ac_dir=.
4177     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4178       lt_cv_path_LD="$ac_dir/$ac_prog"
4179       # Check to see if the program is GNU ld.  I'd rather use --version,
4180       # but apparently some variants of GNU ld only accept -v.
4181       # Break only if it was the GNU/non-GNU ld that we prefer.
4182       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4183       *GNU* | *'with BFD'*)
4184         test "$with_gnu_ld" != no && break
4185         ;;
4186       *)
4187         test "$with_gnu_ld" != yes && break
4188         ;;
4189       esac
4190     fi
4191   done
4192   IFS="$lt_save_ifs"
4193 else
4194   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4195 fi
4196 fi
4197
4198 LD="$lt_cv_path_LD"
4199 if test -n "$LD"; then
4200   { echo "$as_me:$LINENO: result: $LD" >&5
4201 echo "${ECHO_T}$LD" >&6; }
4202 else
4203   { echo "$as_me:$LINENO: result: no" >&5
4204 echo "${ECHO_T}no" >&6; }
4205 fi
4206 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4207 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4208    { (exit 1); exit 1; }; }
4209 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4210 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4211 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4212   echo $ECHO_N "(cached) $ECHO_C" >&6
4213 else
4214   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4215 case `$LD -v 2>&1 </dev/null` in
4216 *GNU* | *'with BFD'*)
4217   lt_cv_prog_gnu_ld=yes
4218   ;;
4219 *)
4220   lt_cv_prog_gnu_ld=no
4221   ;;
4222 esac
4223 fi
4224 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4225 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4226 with_gnu_ld=$lt_cv_prog_gnu_ld
4227
4228
4229 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4230 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4231 if test "${lt_cv_ld_reload_flag+set}" = set; then
4232   echo $ECHO_N "(cached) $ECHO_C" >&6
4233 else
4234   lt_cv_ld_reload_flag='-r'
4235 fi
4236 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4237 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4238 reload_flag=$lt_cv_ld_reload_flag
4239 case $reload_flag in
4240 "" | " "*) ;;
4241 *) reload_flag=" $reload_flag" ;;
4242 esac
4243 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4244 case $host_os in
4245   darwin*)
4246     if test "$GCC" = yes; then
4247       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4248     else
4249       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4250     fi
4251     ;;
4252 esac
4253
4254 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4255 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4256 if test "${lt_cv_path_NM+set}" = set; then
4257   echo $ECHO_N "(cached) $ECHO_C" >&6
4258 else
4259   if test -n "$NM"; then
4260   # Let the user override the test.
4261   lt_cv_path_NM="$NM"
4262 else
4263   lt_nm_to_check="${ac_tool_prefix}nm"
4264   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4265     lt_nm_to_check="$lt_nm_to_check nm"
4266   fi
4267   for lt_tmp_nm in $lt_nm_to_check; do
4268     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4269     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4270       IFS="$lt_save_ifs"
4271       test -z "$ac_dir" && ac_dir=.
4272       tmp_nm="$ac_dir/$lt_tmp_nm"
4273       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4274         # Check to see if the nm accepts a BSD-compat flag.
4275         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4276         #   nm: unknown option "B" ignored
4277         # Tru64's nm complains that /dev/null is an invalid object file
4278         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4279         */dev/null* | *'Invalid file or object type'*)
4280           lt_cv_path_NM="$tmp_nm -B"
4281           break
4282           ;;
4283         *)
4284           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4285           */dev/null*)
4286             lt_cv_path_NM="$tmp_nm -p"
4287             break
4288             ;;
4289           *)
4290             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4291             continue # so that we can try to find one that supports BSD flags
4292             ;;
4293           esac
4294           ;;
4295         esac
4296       fi
4297     done
4298     IFS="$lt_save_ifs"
4299   done
4300   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4301 fi
4302 fi
4303 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4304 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4305 NM="$lt_cv_path_NM"
4306
4307 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4308 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4309 LN_S=$as_ln_s
4310 if test "$LN_S" = "ln -s"; then
4311   { echo "$as_me:$LINENO: result: yes" >&5
4312 echo "${ECHO_T}yes" >&6; }
4313 else
4314   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4315 echo "${ECHO_T}no, using $LN_S" >&6; }
4316 fi
4317
4318 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4319 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4320 if test "${lt_cv_deplibs_check_method+set}" = set; then
4321   echo $ECHO_N "(cached) $ECHO_C" >&6
4322 else
4323   lt_cv_file_magic_cmd='$MAGIC_CMD'
4324 lt_cv_file_magic_test_file=
4325 lt_cv_deplibs_check_method='unknown'
4326 # Need to set the preceding variable on all platforms that support
4327 # interlibrary dependencies.
4328 # 'none' -- dependencies not supported.
4329 # `unknown' -- same as none, but documents that we really don't know.
4330 # 'pass_all' -- all dependencies passed with no checks.
4331 # 'test_compile' -- check by making test program.
4332 # 'file_magic [[regex]]' -- check by looking for files in library path
4333 # which responds to the $file_magic_cmd with a given extended regex.
4334 # If you have `file' or equivalent on your system and you're not sure
4335 # whether `pass_all' will *always* work, you probably want this one.
4336
4337 case $host_os in
4338 aix4* | aix5*)
4339   lt_cv_deplibs_check_method=pass_all
4340   ;;
4341
4342 beos*)
4343   lt_cv_deplibs_check_method=pass_all
4344   ;;
4345
4346 bsdi[45]*)
4347   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4348   lt_cv_file_magic_cmd='/usr/bin/file -L'
4349   lt_cv_file_magic_test_file=/shlib/libc.so
4350   ;;
4351
4352 cygwin*)
4353   # func_win32_libid is a shell function defined in ltmain.sh
4354   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4355   lt_cv_file_magic_cmd='func_win32_libid'
4356   ;;
4357
4358 mingw* | pw32*)
4359   # Base MSYS/MinGW do not provide the 'file' command needed by
4360   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4361   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4362   lt_cv_file_magic_cmd='$OBJDUMP -f'
4363   ;;
4364
4365 darwin* | rhapsody*)
4366   lt_cv_deplibs_check_method=pass_all
4367   ;;
4368
4369 freebsd* | kfreebsd*-gnu | dragonfly*)
4370   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4371     case $host_cpu in
4372     i*86 )
4373       # Not sure whether the presence of OpenBSD here was a mistake.
4374       # Let's accept both of them until this is cleared up.
4375       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4376       lt_cv_file_magic_cmd=/usr/bin/file
4377       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4378       ;;
4379     esac
4380   else
4381     lt_cv_deplibs_check_method=pass_all
4382   fi
4383   ;;
4384
4385 gnu*)
4386   lt_cv_deplibs_check_method=pass_all
4387   ;;
4388
4389 hpux10.20* | hpux11*)
4390   lt_cv_file_magic_cmd=/usr/bin/file
4391   case $host_cpu in
4392   ia64*)
4393     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4394     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4395     ;;
4396   hppa*64*)
4397     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]'
4398     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4399     ;;
4400   *)
4401     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4402     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4403     ;;
4404   esac
4405   ;;
4406
4407 interix3*)
4408   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4409   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4410   ;;
4411
4412 irix5* | irix6* | nonstopux*)
4413   case $LD in
4414   *-32|*"-32 ") libmagic=32-bit;;
4415   *-n32|*"-n32 ") libmagic=N32;;
4416   *-64|*"-64 ") libmagic=64-bit;;
4417   *) libmagic=never-match;;
4418   esac
4419   lt_cv_deplibs_check_method=pass_all
4420   ;;
4421
4422 # This must be Linux ELF.
4423 linux*)
4424   lt_cv_deplibs_check_method=pass_all
4425   ;;
4426
4427 netbsd*)
4428   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4429     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4430   else
4431     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4432   fi
4433   ;;
4434
4435 newos6*)
4436   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4437   lt_cv_file_magic_cmd=/usr/bin/file
4438   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4439   ;;
4440
4441 nto-qnx*)
4442   lt_cv_deplibs_check_method=unknown
4443   ;;
4444
4445 openbsd*)
4446   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4447     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4448   else
4449     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4450   fi
4451   ;;
4452
4453 osf3* | osf4* | osf5*)
4454   lt_cv_deplibs_check_method=pass_all
4455   ;;
4456
4457 solaris*)
4458   lt_cv_deplibs_check_method=pass_all
4459   ;;
4460
4461 sysv4 | sysv4.3*)
4462   case $host_vendor in
4463   motorola)
4464     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]'
4465     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4466     ;;
4467   ncr)
4468     lt_cv_deplibs_check_method=pass_all
4469     ;;
4470   sequent)
4471     lt_cv_file_magic_cmd='/bin/file'
4472     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4473     ;;
4474   sni)
4475     lt_cv_file_magic_cmd='/bin/file'
4476     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4477     lt_cv_file_magic_test_file=/lib/libc.so
4478     ;;
4479   siemens)
4480     lt_cv_deplibs_check_method=pass_all
4481     ;;
4482   pc)
4483     lt_cv_deplibs_check_method=pass_all
4484     ;;
4485   esac
4486   ;;
4487
4488 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4489   lt_cv_deplibs_check_method=pass_all
4490   ;;
4491 esac
4492
4493 fi
4494 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4495 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4496 file_magic_cmd=$lt_cv_file_magic_cmd
4497 deplibs_check_method=$lt_cv_deplibs_check_method
4498 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4499
4500
4501
4502
4503 # If no C compiler was specified, use CC.
4504 LTCC=${LTCC-"$CC"}
4505
4506 # If no C compiler flags were specified, use CFLAGS.
4507 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4508
4509 # Allow CC to be a program name with arguments.
4510 compiler=$CC
4511
4512 # Check whether --enable-libtool-lock was given.
4513 if test "${enable_libtool_lock+set}" = set; then
4514   enableval=$enable_libtool_lock;
4515 fi
4516
4517 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4518
4519 # Some flags need to be propagated to the compiler or linker for good
4520 # libtool support.
4521 case $host in
4522 ia64-*-hpux*)
4523   # Find out which ABI we are using.
4524   echo 'int i;' > conftest.$ac_ext
4525   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4526   (eval $ac_compile) 2>&5
4527   ac_status=$?
4528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529   (exit $ac_status); }; then
4530     case `/usr/bin/file conftest.$ac_objext` in
4531     *ELF-32*)
4532       HPUX_IA64_MODE="32"
4533       ;;
4534     *ELF-64*)
4535       HPUX_IA64_MODE="64"
4536       ;;
4537     esac
4538   fi
4539   rm -rf conftest*
4540   ;;
4541 *-*-irix6*)
4542   # Find out which ABI we are using.
4543   echo '#line 4543 "configure"' > conftest.$ac_ext
4544   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4545   (eval $ac_compile) 2>&5
4546   ac_status=$?
4547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548   (exit $ac_status); }; then
4549    if test "$lt_cv_prog_gnu_ld" = yes; then
4550     case `/usr/bin/file conftest.$ac_objext` in
4551     *32-bit*)
4552       LD="${LD-ld} -melf32bsmip"
4553       ;;
4554     *N32*)
4555       LD="${LD-ld} -melf32bmipn32"
4556       ;;
4557     *64-bit*)
4558       LD="${LD-ld} -melf64bmip"
4559       ;;
4560     esac
4561    else
4562     case `/usr/bin/file conftest.$ac_objext` in
4563     *32-bit*)
4564       LD="${LD-ld} -32"
4565       ;;
4566     *N32*)
4567       LD="${LD-ld} -n32"
4568       ;;
4569     *64-bit*)
4570       LD="${LD-ld} -64"
4571       ;;
4572     esac
4573    fi
4574   fi
4575   rm -rf conftest*
4576   ;;
4577
4578 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4579   # Find out which ABI we are using.
4580   echo 'int i;' > conftest.$ac_ext
4581   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4582   (eval $ac_compile) 2>&5
4583   ac_status=$?
4584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585   (exit $ac_status); }; then
4586     case `/usr/bin/file conftest.o` in
4587     *32-bit*)
4588       case $host in
4589         x86_64-*linux*)
4590           LD="${LD-ld} -m elf_i386"
4591           ;;
4592         ppc64-*linux*|powerpc64-*linux*)
4593           LD="${LD-ld} -m elf32ppclinux"
4594           ;;
4595         s390x-*linux*)
4596           LD="${LD-ld} -m elf_s390"
4597           ;;
4598         sparc64-*linux*)
4599           LD="${LD-ld} -m elf32_sparc"
4600           ;;
4601       esac
4602       ;;
4603     *64-bit*)
4604       case $host in
4605         x86_64-*linux*)
4606           LD="${LD-ld} -m elf_x86_64"
4607           ;;
4608         ppc*-*linux*|powerpc*-*linux*)
4609           LD="${LD-ld} -m elf64ppc"
4610           ;;
4611         s390*-*linux*)
4612           LD="${LD-ld} -m elf64_s390"
4613           ;;
4614         sparc*-*linux*)
4615           LD="${LD-ld} -m elf64_sparc"
4616           ;;
4617       esac
4618       ;;
4619     esac
4620   fi
4621   rm -rf conftest*
4622   ;;
4623
4624 *-*-sco3.2v5*)
4625   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4626   SAVE_CFLAGS="$CFLAGS"
4627   CFLAGS="$CFLAGS -belf"
4628   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4629 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4630 if test "${lt_cv_cc_needs_belf+set}" = set; then
4631   echo $ECHO_N "(cached) $ECHO_C" >&6
4632 else
4633   ac_ext=c
4634 ac_cpp='$CPP $CPPFLAGS'
4635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4638
4639      cat >conftest.$ac_ext <<_ACEOF
4640 /* confdefs.h.  */
4641 _ACEOF
4642 cat confdefs.h >>conftest.$ac_ext
4643 cat >>conftest.$ac_ext <<_ACEOF
4644 /* end confdefs.h.  */
4645
4646 int
4647 main ()
4648 {
4649
4650   ;
4651   return 0;
4652 }
4653 _ACEOF
4654 rm -f conftest.$ac_objext conftest$ac_exeext
4655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4656   (eval $ac_link) 2>conftest.er1
4657   ac_status=$?
4658   grep -v '^ *+' conftest.er1 >conftest.err
4659   rm -f conftest.er1
4660   cat conftest.err >&5
4661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662   (exit $ac_status); } &&
4663          { ac_try='test -z "$ac_c_werror_flag"
4664                          || test ! -s conftest.err'
4665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4666   (eval $ac_try) 2>&5
4667   ac_status=$?
4668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669   (exit $ac_status); }; } &&
4670          { ac_try='test -s conftest$ac_exeext'
4671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4672   (eval $ac_try) 2>&5
4673   ac_status=$?
4674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675   (exit $ac_status); }; }; then
4676   lt_cv_cc_needs_belf=yes
4677 else
4678   echo "$as_me: failed program was:" >&5
4679 sed 's/^/| /' conftest.$ac_ext >&5
4680
4681         lt_cv_cc_needs_belf=no
4682 fi
4683
4684 rm -f conftest.err conftest.$ac_objext \
4685       conftest$ac_exeext conftest.$ac_ext
4686      ac_ext=c
4687 ac_cpp='$CPP $CPPFLAGS'
4688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4691
4692 fi
4693 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4694 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4695   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4696     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4697     CFLAGS="$SAVE_CFLAGS"
4698   fi
4699   ;;
4700 sparc*-*solaris*)
4701   # Find out which ABI we are using.
4702   echo 'int i;' > conftest.$ac_ext
4703   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4704   (eval $ac_compile) 2>&5
4705   ac_status=$?
4706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707   (exit $ac_status); }; then
4708     case `/usr/bin/file conftest.o` in
4709     *64-bit*)
4710       case $lt_cv_prog_gnu_ld in
4711       yes*) LD="${LD-ld} -m elf64_sparc" ;;
4712       *)    LD="${LD-ld} -64" ;;
4713       esac
4714       ;;
4715     esac
4716   fi
4717   rm -rf conftest*
4718   ;;
4719
4720 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4721   if test -n "$ac_tool_prefix"; then
4722   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4723 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4724 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4726 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4727   echo $ECHO_N "(cached) $ECHO_C" >&6
4728 else
4729   if test -n "$DLLTOOL"; then
4730   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4731 else
4732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4733 for as_dir in $PATH
4734 do
4735   IFS=$as_save_IFS
4736   test -z "$as_dir" && as_dir=.
4737   for ac_exec_ext in '' $ac_executable_extensions; do
4738   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4739     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4740     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4741     break 2
4742   fi
4743 done
4744 done
4745
4746 fi
4747 fi
4748 DLLTOOL=$ac_cv_prog_DLLTOOL
4749 if test -n "$DLLTOOL"; then
4750   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4751 echo "${ECHO_T}$DLLTOOL" >&6; }
4752 else
4753   { echo "$as_me:$LINENO: result: no" >&5
4754 echo "${ECHO_T}no" >&6; }
4755 fi
4756
4757
4758 fi
4759 if test -z "$ac_cv_prog_DLLTOOL"; then
4760   ac_ct_DLLTOOL=$DLLTOOL
4761   # Extract the first word of "dlltool", so it can be a program name with args.
4762 set dummy dlltool; ac_word=$2
4763 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4765 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4766   echo $ECHO_N "(cached) $ECHO_C" >&6
4767 else
4768   if test -n "$ac_ct_DLLTOOL"; then
4769   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4770 else
4771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4772 for as_dir in $PATH
4773 do
4774   IFS=$as_save_IFS
4775   test -z "$as_dir" && as_dir=.
4776   for ac_exec_ext in '' $ac_executable_extensions; do
4777   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4778     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4779     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4780     break 2
4781   fi
4782 done
4783 done
4784
4785 fi
4786 fi
4787 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4788 if test -n "$ac_ct_DLLTOOL"; then
4789   { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4790 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
4791 else
4792   { echo "$as_me:$LINENO: result: no" >&5
4793 echo "${ECHO_T}no" >&6; }
4794 fi
4795
4796   if test "x$ac_ct_DLLTOOL" = x; then
4797     DLLTOOL="false"
4798   else
4799     if test "$build" != "$host"; then
4800       { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4801 whose name does not start with the host triplet.  If you think this
4802 configuration is useful to you, please write to autoconf@gnu.org." >&5
4803 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4804 whose name does not start with the host triplet.  If you think this
4805 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4806     fi
4807     DLLTOOL=$ac_ct_DLLTOOL
4808   fi
4809 else
4810   DLLTOOL="$ac_cv_prog_DLLTOOL"
4811 fi
4812
4813   if test -n "$ac_tool_prefix"; then
4814   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4815 set dummy ${ac_tool_prefix}as; ac_word=$2
4816 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4818 if test "${ac_cv_prog_AS+set}" = set; then
4819   echo $ECHO_N "(cached) $ECHO_C" >&6
4820 else
4821   if test -n "$AS"; then
4822   ac_cv_prog_AS="$AS" # Let the user override the test.
4823 else
4824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4825 for as_dir in $PATH
4826 do
4827   IFS=$as_save_IFS
4828   test -z "$as_dir" && as_dir=.
4829   for ac_exec_ext in '' $ac_executable_extensions; do
4830   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4831     ac_cv_prog_AS="${ac_tool_prefix}as"
4832     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4833     break 2
4834   fi
4835 done
4836 done
4837
4838 fi
4839 fi
4840 AS=$ac_cv_prog_AS
4841 if test -n "$AS"; then
4842   { echo "$as_me:$LINENO: result: $AS" >&5
4843 echo "${ECHO_T}$AS" >&6; }
4844 else
4845   { echo "$as_me:$LINENO: result: no" >&5
4846 echo "${ECHO_T}no" >&6; }
4847 fi
4848
4849
4850 fi
4851 if test -z "$ac_cv_prog_AS"; then
4852   ac_ct_AS=$AS
4853   # Extract the first word of "as", so it can be a program name with args.
4854 set dummy as; ac_word=$2
4855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4857 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4858   echo $ECHO_N "(cached) $ECHO_C" >&6
4859 else
4860   if test -n "$ac_ct_AS"; then
4861   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4862 else
4863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864 for as_dir in $PATH
4865 do
4866   IFS=$as_save_IFS
4867   test -z "$as_dir" && as_dir=.
4868   for ac_exec_ext in '' $ac_executable_extensions; do
4869   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4870     ac_cv_prog_ac_ct_AS="as"
4871     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4872     break 2
4873   fi
4874 done
4875 done
4876
4877 fi
4878 fi
4879 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4880 if test -n "$ac_ct_AS"; then
4881   { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4882 echo "${ECHO_T}$ac_ct_AS" >&6; }
4883 else
4884   { echo "$as_me:$LINENO: result: no" >&5
4885 echo "${ECHO_T}no" >&6; }
4886 fi
4887
4888   if test "x$ac_ct_AS" = x; then
4889     AS="false"
4890   else
4891     if test "$build" != "$host"; then
4892       { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4893 whose name does not start with the host triplet.  If you think this
4894 configuration is useful to you, please write to autoconf@gnu.org." >&5
4895 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4896 whose name does not start with the host triplet.  If you think this
4897 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4898     fi
4899     AS=$ac_ct_AS
4900   fi
4901 else
4902   AS="$ac_cv_prog_AS"
4903 fi
4904
4905   if test -n "$ac_tool_prefix"; then
4906   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4907 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4908 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4910 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4911   echo $ECHO_N "(cached) $ECHO_C" >&6
4912 else
4913   if test -n "$OBJDUMP"; then
4914   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4915 else
4916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4917 for as_dir in $PATH
4918 do
4919   IFS=$as_save_IFS
4920   test -z "$as_dir" && as_dir=.
4921   for ac_exec_ext in '' $ac_executable_extensions; do
4922   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4923     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4924     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4925     break 2
4926   fi
4927 done
4928 done
4929
4930 fi
4931 fi
4932 OBJDUMP=$ac_cv_prog_OBJDUMP
4933 if test -n "$OBJDUMP"; then
4934   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4935 echo "${ECHO_T}$OBJDUMP" >&6; }
4936 else
4937   { echo "$as_me:$LINENO: result: no" >&5
4938 echo "${ECHO_T}no" >&6; }
4939 fi
4940
4941
4942 fi
4943 if test -z "$ac_cv_prog_OBJDUMP"; then
4944   ac_ct_OBJDUMP=$OBJDUMP
4945   # Extract the first word of "objdump", so it can be a program name with args.
4946 set dummy objdump; ac_word=$2
4947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4949 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4950   echo $ECHO_N "(cached) $ECHO_C" >&6
4951 else
4952   if test -n "$ac_ct_OBJDUMP"; then
4953   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4954 else
4955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4956 for as_dir in $PATH
4957 do
4958   IFS=$as_save_IFS
4959   test -z "$as_dir" && as_dir=.
4960   for ac_exec_ext in '' $ac_executable_extensions; do
4961   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4962     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4963     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4964     break 2
4965   fi
4966 done
4967 done
4968
4969 fi
4970 fi
4971 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4972 if test -n "$ac_ct_OBJDUMP"; then
4973   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4974 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
4975 else
4976   { echo "$as_me:$LINENO: result: no" >&5
4977 echo "${ECHO_T}no" >&6; }
4978 fi
4979
4980   if test "x$ac_ct_OBJDUMP" = x; then
4981     OBJDUMP="false"
4982   else
4983     if test "$build" != "$host"; then
4984       { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4985 whose name does not start with the host triplet.  If you think this
4986 configuration is useful to you, please write to autoconf@gnu.org." >&5
4987 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4988 whose name does not start with the host triplet.  If you think this
4989 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4990     fi
4991     OBJDUMP=$ac_ct_OBJDUMP
4992   fi
4993 else
4994   OBJDUMP="$ac_cv_prog_OBJDUMP"
4995 fi
4996
4997   ;;
4998
4999 esac
5000
5001 need_locks="$enable_libtool_lock"
5002
5003
5004 ac_ext=c
5005 ac_cpp='$CPP $CPPFLAGS'
5006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5009 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5010 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5011 # On Suns, sometimes $CPP names a directory.
5012 if test -n "$CPP" && test -d "$CPP"; then
5013   CPP=
5014 fi
5015 if test -z "$CPP"; then
5016   if test "${ac_cv_prog_CPP+set}" = set; then
5017   echo $ECHO_N "(cached) $ECHO_C" >&6
5018 else
5019       # Double quotes because CPP needs to be expanded
5020     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5021     do
5022       ac_preproc_ok=false
5023 for ac_c_preproc_warn_flag in '' yes
5024 do
5025   # Use a header file that comes with gcc, so configuring glibc
5026   # with a fresh cross-compiler works.
5027   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5028   # <limits.h> exists even on freestanding compilers.
5029   # On the NeXT, cc -E runs the code through the compiler's parser,
5030   # not just through cpp. "Syntax error" is here to catch this case.
5031   cat >conftest.$ac_ext <<_ACEOF
5032 /* confdefs.h.  */
5033 _ACEOF
5034 cat confdefs.h >>conftest.$ac_ext
5035 cat >>conftest.$ac_ext <<_ACEOF
5036 /* end confdefs.h.  */
5037 #ifdef __STDC__
5038 # include <limits.h>
5039 #else
5040 # include <assert.h>
5041 #endif
5042                      Syntax error
5043 _ACEOF
5044 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5045   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5046   ac_status=$?
5047   grep -v '^ *+' conftest.er1 >conftest.err
5048   rm -f conftest.er1
5049   cat conftest.err >&5
5050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051   (exit $ac_status); } >/dev/null; then
5052   if test -s conftest.err; then
5053     ac_cpp_err=$ac_c_preproc_warn_flag
5054     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5055   else
5056     ac_cpp_err=
5057   fi
5058 else
5059   ac_cpp_err=yes
5060 fi
5061 if test -z "$ac_cpp_err"; then
5062   :
5063 else
5064   echo "$as_me: failed program was:" >&5
5065 sed 's/^/| /' conftest.$ac_ext >&5
5066
5067   # Broken: fails on valid input.
5068 continue
5069 fi
5070
5071 rm -f conftest.err conftest.$ac_ext
5072
5073   # OK, works on sane cases.  Now check whether non-existent headers
5074   # can be detected and how.
5075   cat >conftest.$ac_ext <<_ACEOF
5076 /* confdefs.h.  */
5077 _ACEOF
5078 cat confdefs.h >>conftest.$ac_ext
5079 cat >>conftest.$ac_ext <<_ACEOF
5080 /* end confdefs.h.  */
5081 #include <ac_nonexistent.h>
5082 _ACEOF
5083 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5084   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5085   ac_status=$?
5086   grep -v '^ *+' conftest.er1 >conftest.err
5087   rm -f conftest.er1
5088   cat conftest.err >&5
5089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090   (exit $ac_status); } >/dev/null; then
5091   if test -s conftest.err; then
5092     ac_cpp_err=$ac_c_preproc_warn_flag
5093     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5094   else
5095     ac_cpp_err=
5096   fi
5097 else
5098   ac_cpp_err=yes
5099 fi
5100 if test -z "$ac_cpp_err"; then
5101   # Broken: success on invalid input.
5102 continue
5103 else
5104   echo "$as_me: failed program was:" >&5
5105 sed 's/^/| /' conftest.$ac_ext >&5
5106
5107   # Passes both tests.
5108 ac_preproc_ok=:
5109 break
5110 fi
5111
5112 rm -f conftest.err conftest.$ac_ext
5113
5114 done
5115 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5116 rm -f conftest.err conftest.$ac_ext
5117 if $ac_preproc_ok; then
5118   break
5119 fi
5120
5121     done
5122     ac_cv_prog_CPP=$CPP
5123
5124 fi
5125   CPP=$ac_cv_prog_CPP
5126 else
5127   ac_cv_prog_CPP=$CPP
5128 fi
5129 { echo "$as_me:$LINENO: result: $CPP" >&5
5130 echo "${ECHO_T}$CPP" >&6; }
5131 ac_preproc_ok=false
5132 for ac_c_preproc_warn_flag in '' yes
5133 do
5134   # Use a header file that comes with gcc, so configuring glibc
5135   # with a fresh cross-compiler works.
5136   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5137   # <limits.h> exists even on freestanding compilers.
5138   # On the NeXT, cc -E runs the code through the compiler's parser,
5139   # not just through cpp. "Syntax error" is here to catch this case.
5140   cat >conftest.$ac_ext <<_ACEOF
5141 /* confdefs.h.  */
5142 _ACEOF
5143 cat confdefs.h >>conftest.$ac_ext
5144 cat >>conftest.$ac_ext <<_ACEOF
5145 /* end confdefs.h.  */
5146 #ifdef __STDC__
5147 # include <limits.h>
5148 #else
5149 # include <assert.h>
5150 #endif
5151                      Syntax error
5152 _ACEOF
5153 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5154   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5155   ac_status=$?
5156   grep -v '^ *+' conftest.er1 >conftest.err
5157   rm -f conftest.er1
5158   cat conftest.err >&5
5159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5160   (exit $ac_status); } >/dev/null; then
5161   if test -s conftest.err; then
5162     ac_cpp_err=$ac_c_preproc_warn_flag
5163     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5164   else
5165     ac_cpp_err=
5166   fi
5167 else
5168   ac_cpp_err=yes
5169 fi
5170 if test -z "$ac_cpp_err"; then
5171   :
5172 else
5173   echo "$as_me: failed program was:" >&5
5174 sed 's/^/| /' conftest.$ac_ext >&5
5175
5176   # Broken: fails on valid input.
5177 continue
5178 fi
5179
5180 rm -f conftest.err conftest.$ac_ext
5181
5182   # OK, works on sane cases.  Now check whether non-existent headers
5183   # can be detected and how.
5184   cat >conftest.$ac_ext <<_ACEOF
5185 /* confdefs.h.  */
5186 _ACEOF
5187 cat confdefs.h >>conftest.$ac_ext
5188 cat >>conftest.$ac_ext <<_ACEOF
5189 /* end confdefs.h.  */
5190 #include <ac_nonexistent.h>
5191 _ACEOF
5192 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5193   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5194   ac_status=$?
5195   grep -v '^ *+' conftest.er1 >conftest.err
5196   rm -f conftest.er1
5197   cat conftest.err >&5
5198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199   (exit $ac_status); } >/dev/null; then
5200   if test -s conftest.err; then
5201     ac_cpp_err=$ac_c_preproc_warn_flag
5202     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5203   else
5204     ac_cpp_err=
5205   fi
5206 else
5207   ac_cpp_err=yes
5208 fi
5209 if test -z "$ac_cpp_err"; then
5210   # Broken: success on invalid input.
5211 continue
5212 else
5213   echo "$as_me: failed program was:" >&5
5214 sed 's/^/| /' conftest.$ac_ext >&5
5215
5216   # Passes both tests.
5217 ac_preproc_ok=:
5218 break
5219 fi
5220
5221 rm -f conftest.err conftest.$ac_ext
5222
5223 done
5224 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5225 rm -f conftest.err conftest.$ac_ext
5226 if $ac_preproc_ok; then
5227   :
5228 else
5229   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5230 See \`config.log' for more details." >&5
5231 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5232 See \`config.log' for more details." >&2;}
5233    { (exit 1); exit 1; }; }
5234 fi
5235
5236 ac_ext=c
5237 ac_cpp='$CPP $CPPFLAGS'
5238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5241
5242
5243 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5244 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5245 if test "${ac_cv_header_stdc+set}" = set; then
5246   echo $ECHO_N "(cached) $ECHO_C" >&6
5247 else
5248   cat >conftest.$ac_ext <<_ACEOF
5249 /* confdefs.h.  */
5250 _ACEOF
5251 cat confdefs.h >>conftest.$ac_ext
5252 cat >>conftest.$ac_ext <<_ACEOF
5253 /* end confdefs.h.  */
5254 #include <stdlib.h>
5255 #include <stdarg.h>
5256 #include <string.h>
5257 #include <float.h>
5258
5259 int
5260 main ()
5261 {
5262
5263   ;
5264   return 0;
5265 }
5266 _ACEOF
5267 rm -f conftest.$ac_objext
5268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5269   (eval $ac_compile) 2>conftest.er1
5270   ac_status=$?
5271   grep -v '^ *+' conftest.er1 >conftest.err
5272   rm -f conftest.er1
5273   cat conftest.err >&5
5274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275   (exit $ac_status); } &&
5276          { ac_try='test -z "$ac_c_werror_flag"
5277                          || test ! -s conftest.err'
5278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5279   (eval $ac_try) 2>&5
5280   ac_status=$?
5281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282   (exit $ac_status); }; } &&
5283          { ac_try='test -s conftest.$ac_objext'
5284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5285   (eval $ac_try) 2>&5
5286   ac_status=$?
5287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288   (exit $ac_status); }; }; then
5289   ac_cv_header_stdc=yes
5290 else
5291   echo "$as_me: failed program was:" >&5
5292 sed 's/^/| /' conftest.$ac_ext >&5
5293
5294         ac_cv_header_stdc=no
5295 fi
5296
5297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5298
5299 if test $ac_cv_header_stdc = yes; then
5300   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5301   cat >conftest.$ac_ext <<_ACEOF
5302 /* confdefs.h.  */
5303 _ACEOF
5304 cat confdefs.h >>conftest.$ac_ext
5305 cat >>conftest.$ac_ext <<_ACEOF
5306 /* end confdefs.h.  */
5307 #include <string.h>
5308
5309 _ACEOF
5310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5311   $EGREP "memchr" >/dev/null 2>&1; then
5312   :
5313 else
5314   ac_cv_header_stdc=no
5315 fi
5316 rm -f conftest*
5317
5318 fi
5319
5320 if test $ac_cv_header_stdc = yes; then
5321   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5322   cat >conftest.$ac_ext <<_ACEOF
5323 /* confdefs.h.  */
5324 _ACEOF
5325 cat confdefs.h >>conftest.$ac_ext
5326 cat >>conftest.$ac_ext <<_ACEOF
5327 /* end confdefs.h.  */
5328 #include <stdlib.h>
5329
5330 _ACEOF
5331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5332   $EGREP "free" >/dev/null 2>&1; then
5333   :
5334 else
5335   ac_cv_header_stdc=no
5336 fi
5337 rm -f conftest*
5338
5339 fi
5340
5341 if test $ac_cv_header_stdc = yes; then
5342   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5343   if test "$cross_compiling" = yes; then
5344   :
5345 else
5346   cat >conftest.$ac_ext <<_ACEOF
5347 /* confdefs.h.  */
5348 _ACEOF
5349 cat confdefs.h >>conftest.$ac_ext
5350 cat >>conftest.$ac_ext <<_ACEOF
5351 /* end confdefs.h.  */
5352 #include <ctype.h>
5353 #include <stdlib.h>
5354 #if ((' ' & 0x0FF) == 0x020)
5355 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5356 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5357 #else
5358 # define ISLOWER(c) \
5359                    (('a' <= (c) && (c) <= 'i') \
5360                      || ('j' <= (c) && (c) <= 'r') \
5361                      || ('s' <= (c) && (c) <= 'z'))
5362 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5363 #endif
5364
5365 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5366 int
5367 main ()
5368 {
5369   int i;
5370   for (i = 0; i < 256; i++)
5371     if (XOR (islower (i), ISLOWER (i))
5372         || toupper (i) != TOUPPER (i))
5373       exit (2);
5374   exit (0);
5375 }
5376 _ACEOF
5377 rm -f conftest$ac_exeext
5378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5379   (eval $ac_link) 2>&5
5380   ac_status=$?
5381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5384   (eval $ac_try) 2>&5
5385   ac_status=$?
5386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387   (exit $ac_status); }; }; then
5388   :
5389 else
5390   echo "$as_me: program exited with status $ac_status" >&5
5391 echo "$as_me: failed program was:" >&5
5392 sed 's/^/| /' conftest.$ac_ext >&5
5393
5394 ( exit $ac_status )
5395 ac_cv_header_stdc=no
5396 fi
5397 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5398 fi
5399
5400
5401 fi
5402 fi
5403 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5404 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5405 if test $ac_cv_header_stdc = yes; then
5406
5407 cat >>confdefs.h <<\_ACEOF
5408 #define STDC_HEADERS 1
5409 _ACEOF
5410
5411 fi
5412
5413 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5424                   inttypes.h stdint.h unistd.h
5425 do
5426 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5427 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5429 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5430   echo $ECHO_N "(cached) $ECHO_C" >&6
5431 else
5432   cat >conftest.$ac_ext <<_ACEOF
5433 /* confdefs.h.  */
5434 _ACEOF
5435 cat confdefs.h >>conftest.$ac_ext
5436 cat >>conftest.$ac_ext <<_ACEOF
5437 /* end confdefs.h.  */
5438 $ac_includes_default
5439
5440 #include <$ac_header>
5441 _ACEOF
5442 rm -f conftest.$ac_objext
5443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5444   (eval $ac_compile) 2>conftest.er1
5445   ac_status=$?
5446   grep -v '^ *+' conftest.er1 >conftest.err
5447   rm -f conftest.er1
5448   cat conftest.err >&5
5449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450   (exit $ac_status); } &&
5451          { ac_try='test -z "$ac_c_werror_flag"
5452                          || test ! -s conftest.err'
5453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5454   (eval $ac_try) 2>&5
5455   ac_status=$?
5456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457   (exit $ac_status); }; } &&
5458          { ac_try='test -s conftest.$ac_objext'
5459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5460   (eval $ac_try) 2>&5
5461   ac_status=$?
5462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5463   (exit $ac_status); }; }; then
5464   eval "$as_ac_Header=yes"
5465 else
5466   echo "$as_me: failed program was:" >&5
5467 sed 's/^/| /' conftest.$ac_ext >&5
5468
5469         eval "$as_ac_Header=no"
5470 fi
5471
5472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5473 fi
5474 ac_res=`eval echo '${'$as_ac_Header'}'`
5475                { echo "$as_me:$LINENO: result: $ac_res" >&5
5476 echo "${ECHO_T}$ac_res" >&6; }
5477 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5478   cat >>confdefs.h <<_ACEOF
5479 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5480 _ACEOF
5481
5482 fi
5483
5484 done
5485
5486
5487
5488 for ac_header in dlfcn.h
5489 do
5490 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5492   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5495   echo $ECHO_N "(cached) $ECHO_C" >&6
5496 fi
5497 ac_res=`eval echo '${'$as_ac_Header'}'`
5498                { echo "$as_me:$LINENO: result: $ac_res" >&5
5499 echo "${ECHO_T}$ac_res" >&6; }
5500 else
5501   # Is the header compilable?
5502 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5503 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5504 cat >conftest.$ac_ext <<_ACEOF
5505 /* confdefs.h.  */
5506 _ACEOF
5507 cat confdefs.h >>conftest.$ac_ext
5508 cat >>conftest.$ac_ext <<_ACEOF
5509 /* end confdefs.h.  */
5510 $ac_includes_default
5511 #include <$ac_header>
5512 _ACEOF
5513 rm -f conftest.$ac_objext
5514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5515   (eval $ac_compile) 2>conftest.er1
5516   ac_status=$?
5517   grep -v '^ *+' conftest.er1 >conftest.err
5518   rm -f conftest.er1
5519   cat conftest.err >&5
5520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521   (exit $ac_status); } &&
5522          { ac_try='test -z "$ac_c_werror_flag"
5523                          || test ! -s conftest.err'
5524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5525   (eval $ac_try) 2>&5
5526   ac_status=$?
5527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528   (exit $ac_status); }; } &&
5529          { ac_try='test -s conftest.$ac_objext'
5530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5531   (eval $ac_try) 2>&5
5532   ac_status=$?
5533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534   (exit $ac_status); }; }; then
5535   ac_header_compiler=yes
5536 else
5537   echo "$as_me: failed program was:" >&5
5538 sed 's/^/| /' conftest.$ac_ext >&5
5539
5540         ac_header_compiler=no
5541 fi
5542
5543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5544 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5545 echo "${ECHO_T}$ac_header_compiler" >&6; }
5546
5547 # Is the header present?
5548 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5549 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5550 cat >conftest.$ac_ext <<_ACEOF
5551 /* confdefs.h.  */
5552 _ACEOF
5553 cat confdefs.h >>conftest.$ac_ext
5554 cat >>conftest.$ac_ext <<_ACEOF
5555 /* end confdefs.h.  */
5556 #include <$ac_header>
5557 _ACEOF
5558 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5559   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5560   ac_status=$?
5561   grep -v '^ *+' conftest.er1 >conftest.err
5562   rm -f conftest.er1
5563   cat conftest.err >&5
5564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565   (exit $ac_status); } >/dev/null; then
5566   if test -s conftest.err; then
5567     ac_cpp_err=$ac_c_preproc_warn_flag
5568     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5569   else
5570     ac_cpp_err=
5571   fi
5572 else
5573   ac_cpp_err=yes
5574 fi
5575 if test -z "$ac_cpp_err"; then
5576   ac_header_preproc=yes
5577 else
5578   echo "$as_me: failed program was:" >&5
5579 sed 's/^/| /' conftest.$ac_ext >&5
5580
5581   ac_header_preproc=no
5582 fi
5583
5584 rm -f conftest.err conftest.$ac_ext
5585 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5586 echo "${ECHO_T}$ac_header_preproc" >&6; }
5587
5588 # So?  What about this header?
5589 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5590   yes:no: )
5591     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5592 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5593     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5594 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5595     ac_header_preproc=yes
5596     ;;
5597   no:yes:* )
5598     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5599 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5600     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5601 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5602     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5603 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5604     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5605 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5606     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5607 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5608     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5609 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5610     (
5611       cat <<\_ASBOX
5612 ## ---------------------------------- ##
5613 ## Report this to bug-libtool@gnu.org ##
5614 ## ---------------------------------- ##
5615 _ASBOX
5616     ) |
5617       sed "s/^/$as_me: WARNING:     /" >&2
5618     ;;
5619 esac
5620 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5623   echo $ECHO_N "(cached) $ECHO_C" >&6
5624 else
5625   eval "$as_ac_Header=\$ac_header_preproc"
5626 fi
5627 ac_res=`eval echo '${'$as_ac_Header'}'`
5628                { echo "$as_me:$LINENO: result: $ac_res" >&5
5629 echo "${ECHO_T}$ac_res" >&6; }
5630
5631 fi
5632 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5633   cat >>confdefs.h <<_ACEOF
5634 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5635 _ACEOF
5636
5637 fi
5638
5639 done
5640
5641 ac_ext=cpp
5642 ac_cpp='$CXXCPP $CPPFLAGS'
5643 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5644 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5645 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5646 if test -z "$CXX"; then
5647   if test -n "$CCC"; then
5648     CXX=$CCC
5649   else
5650     if test -n "$ac_tool_prefix"; then
5651   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5652   do
5653     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5654 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5655 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5657 if test "${ac_cv_prog_CXX+set}" = set; then
5658   echo $ECHO_N "(cached) $ECHO_C" >&6
5659 else
5660   if test -n "$CXX"; then
5661   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5662 else
5663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5664 for as_dir in $PATH
5665 do
5666   IFS=$as_save_IFS
5667   test -z "$as_dir" && as_dir=.
5668   for ac_exec_ext in '' $ac_executable_extensions; do
5669   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5670     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5671     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5672     break 2
5673   fi
5674 done
5675 done
5676
5677 fi
5678 fi
5679 CXX=$ac_cv_prog_CXX
5680 if test -n "$CXX"; then
5681   { echo "$as_me:$LINENO: result: $CXX" >&5
5682 echo "${ECHO_T}$CXX" >&6; }
5683 else
5684   { echo "$as_me:$LINENO: result: no" >&5
5685 echo "${ECHO_T}no" >&6; }
5686 fi
5687
5688
5689     test -n "$CXX" && break
5690   done
5691 fi
5692 if test -z "$CXX"; then
5693   ac_ct_CXX=$CXX
5694   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5695 do
5696   # Extract the first word of "$ac_prog", so it can be a program name with args.
5697 set dummy $ac_prog; ac_word=$2
5698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5700 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5701   echo $ECHO_N "(cached) $ECHO_C" >&6
5702 else
5703   if test -n "$ac_ct_CXX"; then
5704   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5705 else
5706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5707 for as_dir in $PATH
5708 do
5709   IFS=$as_save_IFS
5710   test -z "$as_dir" && as_dir=.
5711   for ac_exec_ext in '' $ac_executable_extensions; do
5712   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5713     ac_cv_prog_ac_ct_CXX="$ac_prog"
5714     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5715     break 2
5716   fi
5717 done
5718 done
5719
5720 fi
5721 fi
5722 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5723 if test -n "$ac_ct_CXX"; then
5724   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5725 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5726 else
5727   { echo "$as_me:$LINENO: result: no" >&5
5728 echo "${ECHO_T}no" >&6; }
5729 fi
5730
5731
5732   test -n "$ac_ct_CXX" && break
5733 done
5734
5735   if test "x$ac_ct_CXX" = x; then
5736     CXX="g++"
5737   else
5738     if test "$build" != "$host"; then
5739       { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5740 whose name does not start with the host triplet.  If you think this
5741 configuration is useful to you, please write to autoconf@gnu.org." >&5
5742 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5743 whose name does not start with the host triplet.  If you think this
5744 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5745     fi
5746     CXX=$ac_ct_CXX
5747   fi
5748 fi
5749
5750   fi
5751 fi
5752 # Provide some information about the compiler.
5753 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5754 ac_compiler=`set X $ac_compile; echo $2`
5755 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version >&5\"") >&5
5756   (eval $ac_compiler --version >&5) 2>&5
5757   ac_status=$?
5758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759   (exit $ac_status); }
5760 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v >&5\"") >&5
5761   (eval $ac_compiler -v >&5) 2>&5
5762   ac_status=$?
5763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764   (exit $ac_status); }
5765 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V >&5\"") >&5
5766   (eval $ac_compiler -V >&5) 2>&5
5767   ac_status=$?
5768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769   (exit $ac_status); }
5770
5771 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5772 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5773 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5774   echo $ECHO_N "(cached) $ECHO_C" >&6
5775 else
5776   cat >conftest.$ac_ext <<_ACEOF
5777 /* confdefs.h.  */
5778 _ACEOF
5779 cat confdefs.h >>conftest.$ac_ext
5780 cat >>conftest.$ac_ext <<_ACEOF
5781 /* end confdefs.h.  */
5782
5783 int
5784 main ()
5785 {
5786 #ifndef __GNUC__
5787        choke me
5788 #endif
5789
5790   ;
5791   return 0;
5792 }
5793 _ACEOF
5794 rm -f conftest.$ac_objext
5795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5796   (eval $ac_compile) 2>conftest.er1
5797   ac_status=$?
5798   grep -v '^ *+' conftest.er1 >conftest.err
5799   rm -f conftest.er1
5800   cat conftest.err >&5
5801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802   (exit $ac_status); } &&
5803          { ac_try='test -z "$ac_cxx_werror_flag"
5804                          || test ! -s conftest.err'
5805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5806   (eval $ac_try) 2>&5
5807   ac_status=$?
5808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809   (exit $ac_status); }; } &&
5810          { ac_try='test -s conftest.$ac_objext'
5811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5812   (eval $ac_try) 2>&5
5813   ac_status=$?
5814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815   (exit $ac_status); }; }; then
5816   ac_compiler_gnu=yes
5817 else
5818   echo "$as_me: failed program was:" >&5
5819 sed 's/^/| /' conftest.$ac_ext >&5
5820
5821         ac_compiler_gnu=no
5822 fi
5823
5824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5825 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5826
5827 fi
5828 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5829 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5830 GXX=`test $ac_compiler_gnu = yes && echo yes`
5831 ac_test_CXXFLAGS=${CXXFLAGS+set}
5832 ac_save_CXXFLAGS=$CXXFLAGS
5833 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5834 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5835 if test "${ac_cv_prog_cxx_g+set}" = set; then
5836   echo $ECHO_N "(cached) $ECHO_C" >&6
5837 else
5838   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5839    ac_cxx_werror_flag=yes
5840    ac_cv_prog_cxx_g=no
5841    CXXFLAGS="-g"
5842    cat >conftest.$ac_ext <<_ACEOF
5843 /* confdefs.h.  */
5844 _ACEOF
5845 cat confdefs.h >>conftest.$ac_ext
5846 cat >>conftest.$ac_ext <<_ACEOF
5847 /* end confdefs.h.  */
5848
5849 int
5850 main ()
5851 {
5852
5853   ;
5854   return 0;
5855 }
5856 _ACEOF
5857 rm -f conftest.$ac_objext
5858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5859   (eval $ac_compile) 2>conftest.er1
5860   ac_status=$?
5861   grep -v '^ *+' conftest.er1 >conftest.err
5862   rm -f conftest.er1
5863   cat conftest.err >&5
5864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865   (exit $ac_status); } &&
5866          { ac_try='test -z "$ac_cxx_werror_flag"
5867                          || test ! -s conftest.err'
5868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5869   (eval $ac_try) 2>&5
5870   ac_status=$?
5871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872   (exit $ac_status); }; } &&
5873          { ac_try='test -s conftest.$ac_objext'
5874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5875   (eval $ac_try) 2>&5
5876   ac_status=$?
5877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878   (exit $ac_status); }; }; then
5879   ac_cv_prog_cxx_g=yes
5880 else
5881   echo "$as_me: failed program was:" >&5
5882 sed 's/^/| /' conftest.$ac_ext >&5
5883
5884         CXXFLAGS=""
5885       cat >conftest.$ac_ext <<_ACEOF
5886 /* confdefs.h.  */
5887 _ACEOF
5888 cat confdefs.h >>conftest.$ac_ext
5889 cat >>conftest.$ac_ext <<_ACEOF
5890 /* end confdefs.h.  */
5891
5892 int
5893 main ()
5894 {
5895
5896   ;
5897   return 0;
5898 }
5899 _ACEOF
5900 rm -f conftest.$ac_objext
5901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5902   (eval $ac_compile) 2>conftest.er1
5903   ac_status=$?
5904   grep -v '^ *+' conftest.er1 >conftest.err
5905   rm -f conftest.er1
5906   cat conftest.err >&5
5907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908   (exit $ac_status); } &&
5909          { ac_try='test -z "$ac_cxx_werror_flag"
5910                          || test ! -s conftest.err'
5911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5912   (eval $ac_try) 2>&5
5913   ac_status=$?
5914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915   (exit $ac_status); }; } &&
5916          { ac_try='test -s conftest.$ac_objext'
5917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5918   (eval $ac_try) 2>&5
5919   ac_status=$?
5920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921   (exit $ac_status); }; }; then
5922   :
5923 else
5924   echo "$as_me: failed program was:" >&5
5925 sed 's/^/| /' conftest.$ac_ext >&5
5926
5927         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5928          CXXFLAGS="-g"
5929          cat >conftest.$ac_ext <<_ACEOF
5930 /* confdefs.h.  */
5931 _ACEOF
5932 cat confdefs.h >>conftest.$ac_ext
5933 cat >>conftest.$ac_ext <<_ACEOF
5934 /* end confdefs.h.  */
5935
5936 int
5937 main ()
5938 {
5939
5940   ;
5941   return 0;
5942 }
5943 _ACEOF
5944 rm -f conftest.$ac_objext
5945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5946   (eval $ac_compile) 2>conftest.er1
5947   ac_status=$?
5948   grep -v '^ *+' conftest.er1 >conftest.err
5949   rm -f conftest.er1
5950   cat conftest.err >&5
5951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952   (exit $ac_status); } &&
5953          { ac_try='test -z "$ac_cxx_werror_flag"
5954                          || test ! -s conftest.err'
5955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5956   (eval $ac_try) 2>&5
5957   ac_status=$?
5958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959   (exit $ac_status); }; } &&
5960          { ac_try='test -s conftest.$ac_objext'
5961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5962   (eval $ac_try) 2>&5
5963   ac_status=$?
5964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965   (exit $ac_status); }; }; then
5966   ac_cv_prog_cxx_g=yes
5967 else
5968   echo "$as_me: failed program was:" >&5
5969 sed 's/^/| /' conftest.$ac_ext >&5
5970
5971
5972 fi
5973
5974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5975 fi
5976
5977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5978 fi
5979
5980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5981    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5982 fi
5983 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5984 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5985 if test "$ac_test_CXXFLAGS" = set; then
5986   CXXFLAGS=$ac_save_CXXFLAGS
5987 elif test $ac_cv_prog_cxx_g = yes; then
5988   if test "$GXX" = yes; then
5989     CXXFLAGS="-g -O2"
5990   else
5991     CXXFLAGS="-g"
5992   fi
5993 else
5994   if test "$GXX" = yes; then
5995     CXXFLAGS="-O2"
5996   else
5997     CXXFLAGS=
5998   fi
5999 fi
6000 for ac_declaration in \
6001    '' \
6002    'extern "C" void std::exit (int) throw (); using std::exit;' \
6003    'extern "C" void std::exit (int); using std::exit;' \
6004    'extern "C" void exit (int) throw ();' \
6005    'extern "C" void exit (int);' \
6006    'void exit (int);'
6007 do
6008   cat >conftest.$ac_ext <<_ACEOF
6009 /* confdefs.h.  */
6010 _ACEOF
6011 cat confdefs.h >>conftest.$ac_ext
6012 cat >>conftest.$ac_ext <<_ACEOF
6013 /* end confdefs.h.  */
6014 $ac_declaration
6015 #include <stdlib.h>
6016 int
6017 main ()
6018 {
6019 exit (42);
6020   ;
6021   return 0;
6022 }
6023 _ACEOF
6024 rm -f conftest.$ac_objext
6025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6026   (eval $ac_compile) 2>conftest.er1
6027   ac_status=$?
6028   grep -v '^ *+' conftest.er1 >conftest.err
6029   rm -f conftest.er1
6030   cat conftest.err >&5
6031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032   (exit $ac_status); } &&
6033          { ac_try='test -z "$ac_cxx_werror_flag"
6034                          || test ! -s conftest.err'
6035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6036   (eval $ac_try) 2>&5
6037   ac_status=$?
6038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039   (exit $ac_status); }; } &&
6040          { ac_try='test -s conftest.$ac_objext'
6041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6042   (eval $ac_try) 2>&5
6043   ac_status=$?
6044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045   (exit $ac_status); }; }; then
6046   :
6047 else
6048   echo "$as_me: failed program was:" >&5
6049 sed 's/^/| /' conftest.$ac_ext >&5
6050
6051         continue
6052 fi
6053
6054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6055   cat >conftest.$ac_ext <<_ACEOF
6056 /* confdefs.h.  */
6057 _ACEOF
6058 cat confdefs.h >>conftest.$ac_ext
6059 cat >>conftest.$ac_ext <<_ACEOF
6060 /* end confdefs.h.  */
6061 $ac_declaration
6062 int
6063 main ()
6064 {
6065 exit (42);
6066   ;
6067   return 0;
6068 }
6069 _ACEOF
6070 rm -f conftest.$ac_objext
6071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6072   (eval $ac_compile) 2>conftest.er1
6073   ac_status=$?
6074   grep -v '^ *+' conftest.er1 >conftest.err
6075   rm -f conftest.er1
6076   cat conftest.err >&5
6077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078   (exit $ac_status); } &&
6079          { ac_try='test -z "$ac_cxx_werror_flag"
6080                          || test ! -s conftest.err'
6081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6082   (eval $ac_try) 2>&5
6083   ac_status=$?
6084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085   (exit $ac_status); }; } &&
6086          { ac_try='test -s conftest.$ac_objext'
6087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6088   (eval $ac_try) 2>&5
6089   ac_status=$?
6090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091   (exit $ac_status); }; }; then
6092   break
6093 else
6094   echo "$as_me: failed program was:" >&5
6095 sed 's/^/| /' conftest.$ac_ext >&5
6096
6097
6098 fi
6099
6100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6101 done
6102 rm -f conftest*
6103 if test -n "$ac_declaration"; then
6104   echo '#ifdef __cplusplus' >>confdefs.h
6105   echo $ac_declaration      >>confdefs.h
6106   echo '#endif'             >>confdefs.h
6107 fi
6108
6109 ac_ext=cpp
6110 ac_cpp='$CXXCPP $CPPFLAGS'
6111 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6112 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6113 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6114
6115 depcc="$CXX"  am_compiler_list=
6116
6117 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6118 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6119 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6120   echo $ECHO_N "(cached) $ECHO_C" >&6
6121 else
6122   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6123   # We make a subdir and do the tests there.  Otherwise we can end up
6124   # making bogus files that we don't know about and never remove.  For
6125   # instance it was reported that on HP-UX the gcc test will end up
6126   # making a dummy file named `D' -- because `-MD' means `put the output
6127   # in D'.
6128   mkdir conftest.dir
6129   # Copy depcomp to subdir because otherwise we won't find it if we're
6130   # using a relative directory.
6131   cp "$am_depcomp" conftest.dir
6132   cd conftest.dir
6133   # We will build objects and dependencies in a subdirectory because
6134   # it helps to detect inapplicable dependency modes.  For instance
6135   # both Tru64's cc and ICC support -MD to output dependencies as a
6136   # side effect of compilation, but ICC will put the dependencies in
6137   # the current directory while Tru64 will put them in the object
6138   # directory.
6139   mkdir sub
6140
6141   am_cv_CXX_dependencies_compiler_type=none
6142   if test "$am_compiler_list" = ""; then
6143      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6144   fi
6145   for depmode in $am_compiler_list; do
6146     # Setup a source with many dependencies, because some compilers
6147     # like to wrap large dependency lists on column 80 (with \), and
6148     # we should not choose a depcomp mode which is confused by this.
6149     #
6150     # We need to recreate these files for each test, as the compiler may
6151     # overwrite some of them when testing with obscure command lines.
6152     # This happens at least with the AIX C compiler.
6153     : > sub/conftest.c
6154     for i in 1 2 3 4 5 6; do
6155       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6156       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6157       # Solaris 8's {/usr,}/bin/sh.
6158       touch sub/conftst$i.h
6159     done
6160     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6161
6162     case $depmode in
6163     nosideeffect)
6164       # after this tag, mechanisms are not by side-effect, so they'll
6165       # only be used when explicitly requested
6166       if test "x$enable_dependency_tracking" = xyes; then
6167         continue
6168       else
6169         break
6170       fi
6171       ;;
6172     none) break ;;
6173     esac
6174     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6175     # mode.  It turns out that the SunPro C++ compiler does not properly
6176     # handle `-M -o', and we need to detect this.
6177     if depmode=$depmode \
6178        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6179        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6180        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6181          >/dev/null 2>conftest.err &&
6182        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6183        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6184        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6185       # icc doesn't choke on unknown options, it will just issue warnings
6186       # or remarks (even with -Werror).  So we grep stderr for any message
6187       # that says an option was ignored or not supported.
6188       # When given -MP, icc 7.0 and 7.1 complain thusly:
6189       #   icc: Command line warning: ignoring option '-M'; no argument required
6190       # The diagnosis changed in icc 8.0:
6191       #   icc: Command line remark: option '-MP' not supported
6192       if (grep 'ignoring option' conftest.err ||
6193           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6194         am_cv_CXX_dependencies_compiler_type=$depmode
6195         break
6196       fi
6197     fi
6198   done
6199
6200   cd ..
6201   rm -rf conftest.dir
6202 else
6203   am_cv_CXX_dependencies_compiler_type=none
6204 fi
6205
6206 fi
6207 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6208 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6209 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6210
6211
6212
6213 if
6214   test "x$enable_dependency_tracking" != xno \
6215   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6216   am__fastdepCXX_TRUE=
6217   am__fastdepCXX_FALSE='#'
6218 else
6219   am__fastdepCXX_TRUE='#'
6220   am__fastdepCXX_FALSE=
6221 fi
6222
6223
6224
6225
6226 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6227     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6228     (test "X$CXX" != "Xg++"))) ; then
6229   ac_ext=cpp
6230 ac_cpp='$CXXCPP $CPPFLAGS'
6231 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6232 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6233 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6234 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6235 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6236 if test -z "$CXXCPP"; then
6237   if test "${ac_cv_prog_CXXCPP+set}" = set; then
6238   echo $ECHO_N "(cached) $ECHO_C" >&6
6239 else
6240       # Double quotes because CXXCPP needs to be expanded
6241     for CXXCPP in "$CXX -E" "/lib/cpp"
6242     do
6243       ac_preproc_ok=false
6244 for ac_cxx_preproc_warn_flag in '' yes
6245 do
6246   # Use a header file that comes with gcc, so configuring glibc
6247   # with a fresh cross-compiler works.
6248   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6249   # <limits.h> exists even on freestanding compilers.
6250   # On the NeXT, cc -E runs the code through the compiler's parser,
6251   # not just through cpp. "Syntax error" is here to catch this case.
6252   cat >conftest.$ac_ext <<_ACEOF
6253 /* confdefs.h.  */
6254 _ACEOF
6255 cat confdefs.h >>conftest.$ac_ext
6256 cat >>conftest.$ac_ext <<_ACEOF
6257 /* end confdefs.h.  */
6258 #ifdef __STDC__
6259 # include <limits.h>
6260 #else
6261 # include <assert.h>
6262 #endif
6263                      Syntax error
6264 _ACEOF
6265 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6266   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6267   ac_status=$?
6268   grep -v '^ *+' conftest.er1 >conftest.err
6269   rm -f conftest.er1
6270   cat conftest.err >&5
6271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272   (exit $ac_status); } >/dev/null; then
6273   if test -s conftest.err; then
6274     ac_cpp_err=$ac_cxx_preproc_warn_flag
6275     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6276   else
6277     ac_cpp_err=
6278   fi
6279 else
6280   ac_cpp_err=yes
6281 fi
6282 if test -z "$ac_cpp_err"; then
6283   :
6284 else
6285   echo "$as_me: failed program was:" >&5
6286 sed 's/^/| /' conftest.$ac_ext >&5
6287
6288   # Broken: fails on valid input.
6289 continue
6290 fi
6291
6292 rm -f conftest.err conftest.$ac_ext
6293
6294   # OK, works on sane cases.  Now check whether non-existent headers
6295   # can be detected and how.
6296   cat >conftest.$ac_ext <<_ACEOF
6297 /* confdefs.h.  */
6298 _ACEOF
6299 cat confdefs.h >>conftest.$ac_ext
6300 cat >>conftest.$ac_ext <<_ACEOF
6301 /* end confdefs.h.  */
6302 #include <ac_nonexistent.h>
6303 _ACEOF
6304 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6305   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6306   ac_status=$?
6307   grep -v '^ *+' conftest.er1 >conftest.err
6308   rm -f conftest.er1
6309   cat conftest.err >&5
6310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311   (exit $ac_status); } >/dev/null; then
6312   if test -s conftest.err; then
6313     ac_cpp_err=$ac_cxx_preproc_warn_flag
6314     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6315   else
6316     ac_cpp_err=
6317   fi
6318 else
6319   ac_cpp_err=yes
6320 fi
6321 if test -z "$ac_cpp_err"; then
6322   # Broken: success on invalid input.
6323 continue
6324 else
6325   echo "$as_me: failed program was:" >&5
6326 sed 's/^/| /' conftest.$ac_ext >&5
6327
6328   # Passes both tests.
6329 ac_preproc_ok=:
6330 break
6331 fi
6332
6333 rm -f conftest.err conftest.$ac_ext
6334
6335 done
6336 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6337 rm -f conftest.err conftest.$ac_ext
6338 if $ac_preproc_ok; then
6339   break
6340 fi
6341
6342     done
6343     ac_cv_prog_CXXCPP=$CXXCPP
6344
6345 fi
6346   CXXCPP=$ac_cv_prog_CXXCPP
6347 else
6348   ac_cv_prog_CXXCPP=$CXXCPP
6349 fi
6350 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6351 echo "${ECHO_T}$CXXCPP" >&6; }
6352 ac_preproc_ok=false
6353 for ac_cxx_preproc_warn_flag in '' yes
6354 do
6355   # Use a header file that comes with gcc, so configuring glibc
6356   # with a fresh cross-compiler works.
6357   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6358   # <limits.h> exists even on freestanding compilers.
6359   # On the NeXT, cc -E runs the code through the compiler's parser,
6360   # not just through cpp. "Syntax error" is here to catch this case.
6361   cat >conftest.$ac_ext <<_ACEOF
6362 /* confdefs.h.  */
6363 _ACEOF
6364 cat confdefs.h >>conftest.$ac_ext
6365 cat >>conftest.$ac_ext <<_ACEOF
6366 /* end confdefs.h.  */
6367 #ifdef __STDC__
6368 # include <limits.h>
6369 #else
6370 # include <assert.h>
6371 #endif
6372                      Syntax error
6373 _ACEOF
6374 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6375   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6376   ac_status=$?
6377   grep -v '^ *+' conftest.er1 >conftest.err
6378   rm -f conftest.er1
6379   cat conftest.err >&5
6380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381   (exit $ac_status); } >/dev/null; then
6382   if test -s conftest.err; then
6383     ac_cpp_err=$ac_cxx_preproc_warn_flag
6384     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6385   else
6386     ac_cpp_err=
6387   fi
6388 else
6389   ac_cpp_err=yes
6390 fi
6391 if test -z "$ac_cpp_err"; then
6392   :
6393 else
6394   echo "$as_me: failed program was:" >&5
6395 sed 's/^/| /' conftest.$ac_ext >&5
6396
6397   # Broken: fails on valid input.
6398 continue
6399 fi
6400
6401 rm -f conftest.err conftest.$ac_ext
6402
6403   # OK, works on sane cases.  Now check whether non-existent headers
6404   # can be detected and how.
6405   cat >conftest.$ac_ext <<_ACEOF
6406 /* confdefs.h.  */
6407 _ACEOF
6408 cat confdefs.h >>conftest.$ac_ext
6409 cat >>conftest.$ac_ext <<_ACEOF
6410 /* end confdefs.h.  */
6411 #include <ac_nonexistent.h>
6412 _ACEOF
6413 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6414   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6415   ac_status=$?
6416   grep -v '^ *+' conftest.er1 >conftest.err
6417   rm -f conftest.er1
6418   cat conftest.err >&5
6419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420   (exit $ac_status); } >/dev/null; then
6421   if test -s conftest.err; then
6422     ac_cpp_err=$ac_cxx_preproc_warn_flag
6423     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6424   else
6425     ac_cpp_err=
6426   fi
6427 else
6428   ac_cpp_err=yes
6429 fi
6430 if test -z "$ac_cpp_err"; then
6431   # Broken: success on invalid input.
6432 continue
6433 else
6434   echo "$as_me: failed program was:" >&5
6435 sed 's/^/| /' conftest.$ac_ext >&5
6436
6437   # Passes both tests.
6438 ac_preproc_ok=:
6439 break
6440 fi
6441
6442 rm -f conftest.err conftest.$ac_ext
6443
6444 done
6445 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6446 rm -f conftest.err conftest.$ac_ext
6447 if $ac_preproc_ok; then
6448   :
6449 else
6450   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6451 See \`config.log' for more details." >&5
6452 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6453 See \`config.log' for more details." >&2;}
6454    { (exit 1); exit 1; }; }
6455 fi
6456
6457 ac_ext=cpp
6458 ac_cpp='$CXXCPP $CPPFLAGS'
6459 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6460 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6461 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6462
6463 fi
6464
6465
6466 ac_ext=f
6467 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6468 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6469 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6470 if test -n "$ac_tool_prefix"; then
6471   for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
6472   do
6473     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6474 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6475 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6477 if test "${ac_cv_prog_F77+set}" = set; then
6478   echo $ECHO_N "(cached) $ECHO_C" >&6
6479 else
6480   if test -n "$F77"; then
6481   ac_cv_prog_F77="$F77" # Let the user override the test.
6482 else
6483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6484 for as_dir in $PATH
6485 do
6486   IFS=$as_save_IFS
6487   test -z "$as_dir" && as_dir=.
6488   for ac_exec_ext in '' $ac_executable_extensions; do
6489   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6490     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6491     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6492     break 2
6493   fi
6494 done
6495 done
6496
6497 fi
6498 fi
6499 F77=$ac_cv_prog_F77
6500 if test -n "$F77"; then
6501   { echo "$as_me:$LINENO: result: $F77" >&5
6502 echo "${ECHO_T}$F77" >&6; }
6503 else
6504   { echo "$as_me:$LINENO: result: no" >&5
6505 echo "${ECHO_T}no" >&6; }
6506 fi
6507
6508
6509     test -n "$F77" && break
6510   done
6511 fi
6512 if test -z "$F77"; then
6513   ac_ct_F77=$F77
6514   for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
6515 do
6516   # Extract the first word of "$ac_prog", so it can be a program name with args.
6517 set dummy $ac_prog; ac_word=$2
6518 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6520 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6521   echo $ECHO_N "(cached) $ECHO_C" >&6
6522 else
6523   if test -n "$ac_ct_F77"; then
6524   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6525 else
6526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6527 for as_dir in $PATH
6528 do
6529   IFS=$as_save_IFS
6530   test -z "$as_dir" && as_dir=.
6531   for ac_exec_ext in '' $ac_executable_extensions; do
6532   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6533     ac_cv_prog_ac_ct_F77="$ac_prog"
6534     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6535     break 2
6536   fi
6537 done
6538 done
6539
6540 fi
6541 fi
6542 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6543 if test -n "$ac_ct_F77"; then
6544   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6545 echo "${ECHO_T}$ac_ct_F77" >&6; }
6546 else
6547   { echo "$as_me:$LINENO: result: no" >&5
6548 echo "${ECHO_T}no" >&6; }
6549 fi
6550
6551
6552   test -n "$ac_ct_F77" && break
6553 done
6554
6555   if test "x$ac_ct_F77" = x; then
6556     F77=""
6557   else
6558     if test "$build" != "$host"; then
6559       { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6560 whose name does not start with the host triplet.  If you think this
6561 configuration is useful to you, please write to autoconf@gnu.org." >&5
6562 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6563 whose name does not start with the host triplet.  If you think this
6564 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6565     fi
6566     F77=$ac_ct_F77
6567   fi
6568 fi
6569
6570
6571 # Provide some information about the compiler.
6572 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6573 ac_compiler=`set X $ac_compile; echo $2`
6574 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version >&5\"") >&5
6575   (eval $ac_compiler --version >&5) 2>&5
6576   ac_status=$?
6577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578   (exit $ac_status); }
6579 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v >&5\"") >&5
6580   (eval $ac_compiler -v >&5) 2>&5
6581   ac_status=$?
6582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583   (exit $ac_status); }
6584 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V >&5\"") >&5
6585   (eval $ac_compiler -V >&5) 2>&5
6586   ac_status=$?
6587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588   (exit $ac_status); }
6589 rm -f a.out
6590
6591 # If we don't use `.F' as extension, the preprocessor is not run on the
6592 # input file.  (Note that this only needs to work for GNU compilers.)
6593 ac_save_ext=$ac_ext
6594 ac_ext=F
6595 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6596 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6597 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6598   echo $ECHO_N "(cached) $ECHO_C" >&6
6599 else
6600   cat >conftest.$ac_ext <<_ACEOF
6601       program main
6602 #ifndef __GNUC__
6603        choke me
6604 #endif
6605
6606       end
6607 _ACEOF
6608 rm -f conftest.$ac_objext
6609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6610   (eval $ac_compile) 2>conftest.er1
6611   ac_status=$?
6612   grep -v '^ *+' conftest.er1 >conftest.err
6613   rm -f conftest.er1
6614   cat conftest.err >&5
6615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616   (exit $ac_status); } &&
6617          { ac_try='test -z "$ac_f77_werror_flag"
6618                          || test ! -s conftest.err'
6619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6620   (eval $ac_try) 2>&5
6621   ac_status=$?
6622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623   (exit $ac_status); }; } &&
6624          { ac_try='test -s conftest.$ac_objext'
6625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6626   (eval $ac_try) 2>&5
6627   ac_status=$?
6628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6629   (exit $ac_status); }; }; then
6630   ac_compiler_gnu=yes
6631 else
6632   echo "$as_me: failed program was:" >&5
6633 sed 's/^/| /' conftest.$ac_ext >&5
6634
6635         ac_compiler_gnu=no
6636 fi
6637
6638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6639 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6640
6641 fi
6642 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6643 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6644 ac_ext=$ac_save_ext
6645 ac_test_FFLAGS=${FFLAGS+set}
6646 ac_save_FFLAGS=$FFLAGS
6647 FFLAGS=
6648 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6649 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6650 if test "${ac_cv_prog_f77_g+set}" = set; then
6651   echo $ECHO_N "(cached) $ECHO_C" >&6
6652 else
6653   FFLAGS=-g
6654 cat >conftest.$ac_ext <<_ACEOF
6655       program main
6656
6657       end
6658 _ACEOF
6659 rm -f conftest.$ac_objext
6660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6661   (eval $ac_compile) 2>conftest.er1
6662   ac_status=$?
6663   grep -v '^ *+' conftest.er1 >conftest.err
6664   rm -f conftest.er1
6665   cat conftest.err >&5
6666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667   (exit $ac_status); } &&
6668          { ac_try='test -z "$ac_f77_werror_flag"
6669                          || test ! -s conftest.err'
6670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6671   (eval $ac_try) 2>&5
6672   ac_status=$?
6673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674   (exit $ac_status); }; } &&
6675          { ac_try='test -s conftest.$ac_objext'
6676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6677   (eval $ac_try) 2>&5
6678   ac_status=$?
6679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680   (exit $ac_status); }; }; then
6681   ac_cv_prog_f77_g=yes
6682 else
6683   echo "$as_me: failed program was:" >&5
6684 sed 's/^/| /' conftest.$ac_ext >&5
6685
6686         ac_cv_prog_f77_g=no
6687 fi
6688
6689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6690
6691 fi
6692 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6693 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6694 if test "$ac_test_FFLAGS" = set; then
6695   FFLAGS=$ac_save_FFLAGS
6696 elif test $ac_cv_prog_f77_g = yes; then
6697   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6698     FFLAGS="-g -O2"
6699   else
6700     FFLAGS="-g"
6701   fi
6702 else
6703   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6704     FFLAGS="-O2"
6705   else
6706     FFLAGS=
6707   fi
6708 fi
6709
6710 G77=`test $ac_compiler_gnu = yes && echo yes`
6711 ac_ext=c
6712 ac_cpp='$CPP $CPPFLAGS'
6713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6716
6717
6718
6719 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6720
6721 # find the maximum length of command line arguments
6722 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6723 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6724 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6725   echo $ECHO_N "(cached) $ECHO_C" >&6
6726 else
6727     i=0
6728   teststring="ABCD"
6729
6730   case $build_os in
6731   msdosdjgpp*)
6732     # On DJGPP, this test can blow up pretty badly due to problems in libc
6733     # (any single argument exceeding 2000 bytes causes a buffer overrun
6734     # during glob expansion).  Even if it were fixed, the result of this
6735     # check would be larger than it should be.
6736     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6737     ;;
6738
6739   gnu*)
6740     # Under GNU Hurd, this test is not required because there is
6741     # no limit to the length of command line arguments.
6742     # Libtool will interpret -1 as no limit whatsoever
6743     lt_cv_sys_max_cmd_len=-1;
6744     ;;
6745
6746   cygwin* | mingw*)
6747     # On Win9x/ME, this test blows up -- it succeeds, but takes
6748     # about 5 minutes as the teststring grows exponentially.
6749     # Worse, since 9x/ME are not pre-emptively multitasking,
6750     # you end up with a "frozen" computer, even though with patience
6751     # the test eventually succeeds (with a max line length of 256k).
6752     # Instead, let's just punt: use the minimum linelength reported by
6753     # all of the supported platforms: 8192 (on NT/2K/XP).
6754     lt_cv_sys_max_cmd_len=8192;
6755     ;;
6756
6757   amigaos*)
6758     # On AmigaOS with pdksh, this test takes hours, literally.
6759     # So we just punt and use a minimum line length of 8192.
6760     lt_cv_sys_max_cmd_len=8192;
6761     ;;
6762
6763   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6764     # This has been around since 386BSD, at least.  Likely further.
6765     if test -x /sbin/sysctl; then
6766       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6767     elif test -x /usr/sbin/sysctl; then
6768       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6769     else
6770       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6771     fi
6772     # And add a safety zone
6773     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6774     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6775     ;;
6776
6777   interix*)
6778     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6779     lt_cv_sys_max_cmd_len=196608
6780     ;;
6781
6782   osf*)
6783     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6784     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6785     # nice to cause kernel panics so lets avoid the loop below.
6786     # First set a reasonable default.
6787     lt_cv_sys_max_cmd_len=16384
6788     #
6789     if test -x /sbin/sysconfig; then
6790       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6791         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6792       esac
6793     fi
6794     ;;
6795   sco3.2v5*)
6796     lt_cv_sys_max_cmd_len=102400
6797     ;;
6798   sysv5* | sco5v6* | sysv4.2uw2*)
6799     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6800     if test -n "$kargmax"; then
6801       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6802     else
6803       lt_cv_sys_max_cmd_len=32768
6804     fi
6805     ;;
6806   *)
6807     # If test is not a shell built-in, we'll probably end up computing a
6808     # maximum length that is only half of the actual maximum length, but
6809     # we can't tell.
6810     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6811     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6812                = "XX$teststring") >/dev/null 2>&1 &&
6813             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6814             lt_cv_sys_max_cmd_len=$new_result &&
6815             test $i != 17 # 1/2 MB should be enough
6816     do
6817       i=`expr $i + 1`
6818       teststring=$teststring$teststring
6819     done
6820     teststring=
6821     # Add a significant safety factor because C++ compilers can tack on massive
6822     # amounts of additional arguments before passing them to the linker.
6823     # It appears as though 1/2 is a usable value.
6824     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6825     ;;
6826   esac
6827
6828 fi
6829
6830 if test -n $lt_cv_sys_max_cmd_len ; then
6831   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6832 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6833 else
6834   { echo "$as_me:$LINENO: result: none" >&5
6835 echo "${ECHO_T}none" >&6; }
6836 fi
6837
6838
6839
6840
6841 # Check for command to grab the raw symbol name followed by C symbol from nm.
6842 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6843 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6844 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6845   echo $ECHO_N "(cached) $ECHO_C" >&6
6846 else
6847
6848 # These are sane defaults that work on at least a few old systems.
6849 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6850
6851 # Character class describing NM global symbol codes.
6852 symcode='[BCDEGRST]'
6853
6854 # Regexp to match symbols that can be accessed directly from C.
6855 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6856
6857 # Transform an extracted symbol line into a proper C declaration
6858 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6859
6860 # Transform an extracted symbol line into symbol name and symbol address
6861 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'"
6862
6863 # Define system-specific variables.
6864 case $host_os in
6865 aix*)
6866   symcode='[BCDT]'
6867   ;;
6868 cygwin* | mingw* | pw32*)
6869   symcode='[ABCDGISTW]'
6870   ;;
6871 hpux*) # Its linker distinguishes data from code symbols
6872   if test "$host_cpu" = ia64; then
6873     symcode='[ABCDEGRST]'
6874   fi
6875   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6876   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'"
6877   ;;
6878 linux*)
6879   if test "$host_cpu" = ia64; then
6880     symcode='[ABCDGIRSTW]'
6881     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6882     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'"
6883   fi
6884   ;;
6885 irix* | nonstopux*)
6886   symcode='[BCDEGRST]'
6887   ;;
6888 osf*)
6889   symcode='[BCDEGQRST]'
6890   ;;
6891 solaris*)
6892   symcode='[BDRT]'
6893   ;;
6894 sco3.2v5*)
6895   symcode='[DT]'
6896   ;;
6897 sysv4.2uw2*)
6898   symcode='[DT]'
6899   ;;
6900 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6901   symcode='[ABDT]'
6902   ;;
6903 sysv4)
6904   symcode='[DFNSTU]'
6905   ;;
6906 esac
6907
6908 # Handle CRLF in mingw tool chain
6909 opt_cr=
6910 case $build_os in
6911 mingw*)
6912   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6913   ;;
6914 esac
6915
6916 # If we're using GNU nm, then use its standard symbol codes.
6917 case `$NM -V 2>&1` in
6918 *GNU* | *'with BFD'*)
6919   symcode='[ABCDGIRSTW]' ;;
6920 esac
6921
6922 # Try without a prefix undercore, then with it.
6923 for ac_symprfx in "" "_"; do
6924
6925   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6926   symxfrm="\\1 $ac_symprfx\\2 \\2"
6927
6928   # Write the raw and C identifiers.
6929   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6930
6931   # Check to see that the pipe works correctly.
6932   pipe_works=no
6933
6934   rm -f conftest*
6935   cat > conftest.$ac_ext <<EOF
6936 #ifdef __cplusplus
6937 extern "C" {
6938 #endif
6939 char nm_test_var;
6940 void nm_test_func(){}
6941 #ifdef __cplusplus
6942 }
6943 #endif
6944 int main(){nm_test_var='a';nm_test_func();return(0);}
6945 EOF
6946
6947   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6948   (eval $ac_compile) 2>&5
6949   ac_status=$?
6950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951   (exit $ac_status); }; then
6952     # Now try to grab the symbols.
6953     nlist=conftest.nm
6954     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6955   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6956   ac_status=$?
6957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958   (exit $ac_status); } && test -s "$nlist"; then
6959       # Try sorting and uniquifying the output.
6960       if sort "$nlist" | uniq > "$nlist"T; then
6961         mv -f "$nlist"T "$nlist"
6962       else
6963         rm -f "$nlist"T
6964       fi
6965
6966       # Make sure that we snagged all the symbols we need.
6967       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6968         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6969           cat <<EOF > conftest.$ac_ext
6970 #ifdef __cplusplus
6971 extern "C" {
6972 #endif
6973
6974 EOF
6975           # Now generate the symbol file.
6976           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6977
6978           cat <<EOF >> conftest.$ac_ext
6979 #if defined (__STDC__) && __STDC__
6980 # define lt_ptr_t void *
6981 #else
6982 # define lt_ptr_t char *
6983 # define const
6984 #endif
6985
6986 /* The mapping between symbol names and symbols. */
6987 const struct {
6988   const char *name;
6989   lt_ptr_t address;
6990 }
6991 lt_preloaded_symbols[] =
6992 {
6993 EOF
6994           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6995           cat <<\EOF >> conftest.$ac_ext
6996   {0, (lt_ptr_t) 0}
6997 };
6998
6999 #ifdef __cplusplus
7000 }
7001 #endif
7002 EOF
7003           # Now try linking the two files.
7004           mv conftest.$ac_objext conftstm.$ac_objext
7005           lt_save_LIBS="$LIBS"
7006           lt_save_CFLAGS="$CFLAGS"
7007           LIBS="conftstm.$ac_objext"
7008           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7009           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7010   (eval $ac_link) 2>&5
7011   ac_status=$?
7012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7014             pipe_works=yes
7015           fi
7016           LIBS="$lt_save_LIBS"
7017           CFLAGS="$lt_save_CFLAGS"
7018         else
7019           echo "cannot find nm_test_func in $nlist" >&5
7020         fi
7021       else
7022         echo "cannot find nm_test_var in $nlist" >&5
7023       fi
7024     else
7025       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7026     fi
7027   else
7028     echo "$progname: failed program was:" >&5
7029     cat conftest.$ac_ext >&5
7030   fi
7031   rm -f conftest* conftst*
7032
7033   # Do not use the global_symbol_pipe unless it works.
7034   if test "$pipe_works" = yes; then
7035     break
7036   else
7037     lt_cv_sys_global_symbol_pipe=
7038   fi
7039 done
7040
7041 fi
7042
7043 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7044   lt_cv_sys_global_symbol_to_cdecl=
7045 fi
7046 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7047   { echo "$as_me:$LINENO: result: failed" >&5
7048 echo "${ECHO_T}failed" >&6; }
7049 else
7050   { echo "$as_me:$LINENO: result: ok" >&5
7051 echo "${ECHO_T}ok" >&6; }
7052 fi
7053
7054 { echo "$as_me:$LINENO: checking for objdir" >&5
7055 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7056 if test "${lt_cv_objdir+set}" = set; then
7057   echo $ECHO_N "(cached) $ECHO_C" >&6
7058 else
7059   rm -f .libs 2>/dev/null
7060 mkdir .libs 2>/dev/null
7061 if test -d .libs; then
7062   lt_cv_objdir=.libs
7063 else
7064   # MS-DOS does not allow filenames that begin with a dot.
7065   lt_cv_objdir=_libs
7066 fi
7067 rmdir .libs 2>/dev/null
7068 fi
7069 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7070 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7071 objdir=$lt_cv_objdir
7072
7073
7074
7075
7076
7077 case $host_os in
7078 aix3*)
7079   # AIX sometimes has problems with the GCC collect2 program.  For some
7080   # reason, if we set the COLLECT_NAMES environment variable, the problems
7081   # vanish in a puff of smoke.
7082   if test "X${COLLECT_NAMES+set}" != Xset; then
7083     COLLECT_NAMES=
7084     export COLLECT_NAMES
7085   fi
7086   ;;
7087 esac
7088
7089 # Sed substitution that helps us do robust quoting.  It backslashifies
7090 # metacharacters that are still active within double-quoted strings.
7091 Xsed='sed -e 1s/^X//'
7092 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7093
7094 # Same as above, but do not quote variable references.
7095 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7096
7097 # Sed substitution to delay expansion of an escaped shell variable in a
7098 # double_quote_subst'ed string.
7099 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7100
7101 # Sed substitution to avoid accidental globbing in evaled expressions
7102 no_glob_subst='s/\*/\\\*/g'
7103
7104 # Constants:
7105 rm="rm -f"
7106
7107 # Global variables:
7108 default_ofile=libtool
7109 can_build_shared=yes
7110
7111 # All known linkers require a `.a' archive for static linking (except MSVC,
7112 # which needs '.lib').
7113 libext=a
7114 ltmain="$ac_aux_dir/ltmain.sh"
7115 ofile="$default_ofile"
7116 with_gnu_ld="$lt_cv_prog_gnu_ld"
7117
7118 if test -n "$ac_tool_prefix"; then
7119   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7120 set dummy ${ac_tool_prefix}ar; ac_word=$2
7121 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7123 if test "${ac_cv_prog_AR+set}" = set; then
7124   echo $ECHO_N "(cached) $ECHO_C" >&6
7125 else
7126   if test -n "$AR"; then
7127   ac_cv_prog_AR="$AR" # Let the user override the test.
7128 else
7129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7130 for as_dir in $PATH
7131 do
7132   IFS=$as_save_IFS
7133   test -z "$as_dir" && as_dir=.
7134   for ac_exec_ext in '' $ac_executable_extensions; do
7135   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7136     ac_cv_prog_AR="${ac_tool_prefix}ar"
7137     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7138     break 2
7139   fi
7140 done
7141 done
7142
7143 fi
7144 fi
7145 AR=$ac_cv_prog_AR
7146 if test -n "$AR"; then
7147   { echo "$as_me:$LINENO: result: $AR" >&5
7148 echo "${ECHO_T}$AR" >&6; }
7149 else
7150   { echo "$as_me:$LINENO: result: no" >&5
7151 echo "${ECHO_T}no" >&6; }
7152 fi
7153
7154
7155 fi
7156 if test -z "$ac_cv_prog_AR"; then
7157   ac_ct_AR=$AR
7158   # Extract the first word of "ar", so it can be a program name with args.
7159 set dummy ar; ac_word=$2
7160 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7162 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7163   echo $ECHO_N "(cached) $ECHO_C" >&6
7164 else
7165   if test -n "$ac_ct_AR"; then
7166   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7167 else
7168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7169 for as_dir in $PATH
7170 do
7171   IFS=$as_save_IFS
7172   test -z "$as_dir" && as_dir=.
7173   for ac_exec_ext in '' $ac_executable_extensions; do
7174   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7175     ac_cv_prog_ac_ct_AR="ar"
7176     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7177     break 2
7178   fi
7179 done
7180 done
7181
7182 fi
7183 fi
7184 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7185 if test -n "$ac_ct_AR"; then
7186   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7187 echo "${ECHO_T}$ac_ct_AR" >&6; }
7188 else
7189   { echo "$as_me:$LINENO: result: no" >&5
7190 echo "${ECHO_T}no" >&6; }
7191 fi
7192
7193   if test "x$ac_ct_AR" = x; then
7194     AR="false"
7195   else
7196     if test "$build" != "$host"; then
7197       { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7198 whose name does not start with the host triplet.  If you think this
7199 configuration is useful to you, please write to autoconf@gnu.org." >&5
7200 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7201 whose name does not start with the host triplet.  If you think this
7202 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7203     fi
7204     AR=$ac_ct_AR
7205   fi
7206 else
7207   AR="$ac_cv_prog_AR"
7208 fi
7209
7210 if test -n "$ac_tool_prefix"; then
7211   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7212 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7215 if test "${ac_cv_prog_RANLIB+set}" = set; then
7216   echo $ECHO_N "(cached) $ECHO_C" >&6
7217 else
7218   if test -n "$RANLIB"; then
7219   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7220 else
7221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7222 for as_dir in $PATH
7223 do
7224   IFS=$as_save_IFS
7225   test -z "$as_dir" && as_dir=.
7226   for ac_exec_ext in '' $ac_executable_extensions; do
7227   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7228     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7229     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7230     break 2
7231   fi
7232 done
7233 done
7234
7235 fi
7236 fi
7237 RANLIB=$ac_cv_prog_RANLIB
7238 if test -n "$RANLIB"; then
7239   { echo "$as_me:$LINENO: result: $RANLIB" >&5
7240 echo "${ECHO_T}$RANLIB" >&6; }
7241 else
7242   { echo "$as_me:$LINENO: result: no" >&5
7243 echo "${ECHO_T}no" >&6; }
7244 fi
7245
7246
7247 fi
7248 if test -z "$ac_cv_prog_RANLIB"; then
7249   ac_ct_RANLIB=$RANLIB
7250   # Extract the first word of "ranlib", so it can be a program name with args.
7251 set dummy ranlib; ac_word=$2
7252 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7254 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7255   echo $ECHO_N "(cached) $ECHO_C" >&6
7256 else
7257   if test -n "$ac_ct_RANLIB"; then
7258   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7259 else
7260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7261 for as_dir in $PATH
7262 do
7263   IFS=$as_save_IFS
7264   test -z "$as_dir" && as_dir=.
7265   for ac_exec_ext in '' $ac_executable_extensions; do
7266   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7267     ac_cv_prog_ac_ct_RANLIB="ranlib"
7268     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7269     break 2
7270   fi
7271 done
7272 done
7273
7274 fi
7275 fi
7276 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7277 if test -n "$ac_ct_RANLIB"; then
7278   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7279 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7280 else
7281   { echo "$as_me:$LINENO: result: no" >&5
7282 echo "${ECHO_T}no" >&6; }
7283 fi
7284
7285   if test "x$ac_ct_RANLIB" = x; then
7286     RANLIB=":"
7287   else
7288     if test "$build" != "$host"; then
7289       { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7290 whose name does not start with the host triplet.  If you think this
7291 configuration is useful to you, please write to autoconf@gnu.org." >&5
7292 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7293 whose name does not start with the host triplet.  If you think this
7294 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7295     fi
7296     RANLIB=$ac_ct_RANLIB
7297   fi
7298 else
7299   RANLIB="$ac_cv_prog_RANLIB"
7300 fi
7301
7302 if test -n "$ac_tool_prefix"; then
7303   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7304 set dummy ${ac_tool_prefix}strip; ac_word=$2
7305 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7307 if test "${ac_cv_prog_STRIP+set}" = set; then
7308   echo $ECHO_N "(cached) $ECHO_C" >&6
7309 else
7310   if test -n "$STRIP"; then
7311   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7312 else
7313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7314 for as_dir in $PATH
7315 do
7316   IFS=$as_save_IFS
7317   test -z "$as_dir" && as_dir=.
7318   for ac_exec_ext in '' $ac_executable_extensions; do
7319   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7320     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7321     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7322     break 2
7323   fi
7324 done
7325 done
7326
7327 fi
7328 fi
7329 STRIP=$ac_cv_prog_STRIP
7330 if test -n "$STRIP"; then
7331   { echo "$as_me:$LINENO: result: $STRIP" >&5
7332 echo "${ECHO_T}$STRIP" >&6; }
7333 else
7334   { echo "$as_me:$LINENO: result: no" >&5
7335 echo "${ECHO_T}no" >&6; }
7336 fi
7337
7338
7339 fi
7340 if test -z "$ac_cv_prog_STRIP"; then
7341   ac_ct_STRIP=$STRIP
7342   # Extract the first word of "strip", so it can be a program name with args.
7343 set dummy strip; ac_word=$2
7344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7346 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7347   echo $ECHO_N "(cached) $ECHO_C" >&6
7348 else
7349   if test -n "$ac_ct_STRIP"; then
7350   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7351 else
7352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7353 for as_dir in $PATH
7354 do
7355   IFS=$as_save_IFS
7356   test -z "$as_dir" && as_dir=.
7357   for ac_exec_ext in '' $ac_executable_extensions; do
7358   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7359     ac_cv_prog_ac_ct_STRIP="strip"
7360     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7361     break 2
7362   fi
7363 done
7364 done
7365
7366 fi
7367 fi
7368 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7369 if test -n "$ac_ct_STRIP"; then
7370   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7371 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7372 else
7373   { echo "$as_me:$LINENO: result: no" >&5
7374 echo "${ECHO_T}no" >&6; }
7375 fi
7376
7377   if test "x$ac_ct_STRIP" = x; then
7378     STRIP=":"
7379   else
7380     if test "$build" != "$host"; then
7381       { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7382 whose name does not start with the host triplet.  If you think this
7383 configuration is useful to you, please write to autoconf@gnu.org." >&5
7384 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7385 whose name does not start with the host triplet.  If you think this
7386 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7387     fi
7388     STRIP=$ac_ct_STRIP
7389   fi
7390 else
7391   STRIP="$ac_cv_prog_STRIP"
7392 fi
7393
7394
7395 old_CC="$CC"
7396 old_CFLAGS="$CFLAGS"
7397
7398 # Set sane defaults for various variables
7399 test -z "$AR" && AR=ar
7400 test -z "$AR_FLAGS" && AR_FLAGS=cru
7401 test -z "$AS" && AS=as
7402 test -z "$CC" && CC=cc
7403 test -z "$LTCC" && LTCC=$CC
7404 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7405 test -z "$DLLTOOL" && DLLTOOL=dlltool
7406 test -z "$LD" && LD=ld
7407 test -z "$LN_S" && LN_S="ln -s"
7408 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7409 test -z "$NM" && NM=nm
7410 test -z "$SED" && SED=sed
7411 test -z "$OBJDUMP" && OBJDUMP=objdump
7412 test -z "$RANLIB" && RANLIB=:
7413 test -z "$STRIP" && STRIP=:
7414 test -z "$ac_objext" && ac_objext=o
7415
7416 # Determine commands to create old-style static archives.
7417 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7418 old_postinstall_cmds='chmod 644 $oldlib'
7419 old_postuninstall_cmds=
7420
7421 if test -n "$RANLIB"; then
7422   case $host_os in
7423   openbsd*)
7424     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7425     ;;
7426   *)
7427     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7428     ;;
7429   esac
7430   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7431 fi
7432
7433 for cc_temp in $compiler""; do
7434   case $cc_temp in
7435     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7436     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7437     \-*) ;;
7438     *) break;;
7439   esac
7440 done
7441 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7442
7443
7444 # Only perform the check for file, if the check method requires it
7445 case $deplibs_check_method in
7446 file_magic*)
7447   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7448     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7449 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7450 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7451   echo $ECHO_N "(cached) $ECHO_C" >&6
7452 else
7453   case $MAGIC_CMD in
7454 [\\/*] |  ?:[\\/]*)
7455   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7456   ;;
7457 *)
7458   lt_save_MAGIC_CMD="$MAGIC_CMD"
7459   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7460   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7461   for ac_dir in $ac_dummy; do
7462     IFS="$lt_save_ifs"
7463     test -z "$ac_dir" && ac_dir=.
7464     if test -f $ac_dir/${ac_tool_prefix}file; then
7465       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7466       if test -n "$file_magic_test_file"; then
7467         case $deplibs_check_method in
7468         "file_magic "*)
7469           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7470           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7471           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7472             $EGREP "$file_magic_regex" > /dev/null; then
7473             :
7474           else
7475             cat <<EOF 1>&2
7476
7477 *** Warning: the command libtool uses to detect shared libraries,
7478 *** $file_magic_cmd, produces output that libtool cannot recognize.
7479 *** The result is that libtool may fail to recognize shared libraries
7480 *** as such.  This will affect the creation of libtool libraries that
7481 *** depend on shared libraries, but programs linked with such libtool
7482 *** libraries will work regardless of this problem.  Nevertheless, you
7483 *** may want to report the problem to your system manager and/or to
7484 *** bug-libtool@gnu.org
7485
7486 EOF
7487           fi ;;
7488         esac
7489       fi
7490       break
7491     fi
7492   done
7493   IFS="$lt_save_ifs"
7494   MAGIC_CMD="$lt_save_MAGIC_CMD"
7495   ;;
7496 esac
7497 fi
7498
7499 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7500 if test -n "$MAGIC_CMD"; then
7501   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7502 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7503 else
7504   { echo "$as_me:$LINENO: result: no" >&5
7505 echo "${ECHO_T}no" >&6; }
7506 fi
7507
7508 if test -z "$lt_cv_path_MAGIC_CMD"; then
7509   if test -n "$ac_tool_prefix"; then
7510     { echo "$as_me:$LINENO: checking for file" >&5
7511 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7512 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7513   echo $ECHO_N "(cached) $ECHO_C" >&6
7514 else
7515   case $MAGIC_CMD in
7516 [\\/*] |  ?:[\\/]*)
7517   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7518   ;;
7519 *)
7520   lt_save_MAGIC_CMD="$MAGIC_CMD"
7521   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7522   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7523   for ac_dir in $ac_dummy; do
7524     IFS="$lt_save_ifs"
7525     test -z "$ac_dir" && ac_dir=.
7526     if test -f $ac_dir/file; then
7527       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7528       if test -n "$file_magic_test_file"; then
7529         case $deplibs_check_method in
7530         "file_magic "*)
7531           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7532           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7533           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7534             $EGREP "$file_magic_regex" > /dev/null; then
7535             :
7536           else
7537             cat <<EOF 1>&2
7538
7539 *** Warning: the command libtool uses to detect shared libraries,
7540 *** $file_magic_cmd, produces output that libtool cannot recognize.
7541 *** The result is that libtool may fail to recognize shared libraries
7542 *** as such.  This will affect the creation of libtool libraries that
7543 *** depend on shared libraries, but programs linked with such libtool
7544 *** libraries will work regardless of this problem.  Nevertheless, you
7545 *** may want to report the problem to your system manager and/or to
7546 *** bug-libtool@gnu.org
7547
7548 EOF
7549           fi ;;
7550         esac
7551       fi
7552       break
7553     fi
7554   done
7555   IFS="$lt_save_ifs"
7556   MAGIC_CMD="$lt_save_MAGIC_CMD"
7557   ;;
7558 esac
7559 fi
7560
7561 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7562 if test -n "$MAGIC_CMD"; then
7563   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7564 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7565 else
7566   { echo "$as_me:$LINENO: result: no" >&5
7567 echo "${ECHO_T}no" >&6; }
7568 fi
7569
7570   else
7571     MAGIC_CMD=:
7572   fi
7573 fi
7574
7575   fi
7576   ;;
7577 esac
7578
7579 enable_dlopen=no
7580 enable_win32_dll=yes
7581
7582 # Check whether --enable-libtool-lock was given.
7583 if test "${enable_libtool_lock+set}" = set; then
7584   enableval=$enable_libtool_lock;
7585 fi
7586
7587 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7588
7589
7590 # Check whether --with-pic was given.
7591 if test "${with_pic+set}" = set; then
7592   withval=$with_pic; pic_mode="$withval"
7593 else
7594   pic_mode=default
7595 fi
7596
7597 test -z "$pic_mode" && pic_mode=default
7598
7599 # Use C for the default configuration in the libtool script
7600 tagname=
7601 lt_save_CC="$CC"
7602 ac_ext=c
7603 ac_cpp='$CPP $CPPFLAGS'
7604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7607
7608
7609 # Source file extension for C test sources.
7610 ac_ext=c
7611
7612 # Object file extension for compiled C test sources.
7613 objext=o
7614 objext=$objext
7615
7616 # Code to be used in simple compile tests
7617 lt_simple_compile_test_code="int some_variable = 0;\n"
7618
7619 # Code to be used in simple link tests
7620 lt_simple_link_test_code='int main(){return(0);}\n'
7621
7622
7623 # If no C compiler was specified, use CC.
7624 LTCC=${LTCC-"$CC"}
7625
7626 # If no C compiler flags were specified, use CFLAGS.
7627 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7628
7629 # Allow CC to be a program name with arguments.
7630 compiler=$CC
7631
7632
7633 # save warnings/boilerplate of simple test code
7634 ac_outfile=conftest.$ac_objext
7635 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7636 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7637 _lt_compiler_boilerplate=`cat conftest.err`
7638 $rm conftest*
7639
7640 ac_outfile=conftest.$ac_objext
7641 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7642 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7643 _lt_linker_boilerplate=`cat conftest.err`
7644 $rm conftest*
7645
7646
7647 ## CAVEAT EMPTOR:
7648 ## There is no encapsulation within the following macros, do not change
7649 ## the running order or otherwise move them around unless you know exactly
7650 ## what you are doing...
7651
7652 lt_prog_compiler_no_builtin_flag=
7653
7654 if test "$GCC" = yes; then
7655   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7656
7657
7658 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7659 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7660 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7661   echo $ECHO_N "(cached) $ECHO_C" >&6
7662 else
7663   lt_cv_prog_compiler_rtti_exceptions=no
7664   ac_outfile=conftest.$ac_objext
7665    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7666    lt_compiler_flag="-fno-rtti -fno-exceptions"
7667    # Insert the option either (1) after the last *FLAGS variable, or
7668    # (2) before a word containing "conftest.", or (3) at the end.
7669    # Note that $ac_compile itself does not contain backslashes and begins
7670    # with a dollar sign (not a hyphen), so the echo should work correctly.
7671    # The option is referenced via a variable to avoid confusing sed.
7672    lt_compile=`echo "$ac_compile" | $SED \
7673    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7674    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7675    -e 's:$: $lt_compiler_flag:'`
7676    (eval echo "\"\$as_me:7676: $lt_compile\"" >&5)
7677    (eval "$lt_compile" 2>conftest.err)
7678    ac_status=$?
7679    cat conftest.err >&5
7680    echo "$as_me:7680: \$? = $ac_status" >&5
7681    if (exit $ac_status) && test -s "$ac_outfile"; then
7682      # The compiler can only warn and ignore the option if not recognized
7683      # So say no if there are warnings other than the usual output.
7684      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7685      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7686      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7687        lt_cv_prog_compiler_rtti_exceptions=yes
7688      fi
7689    fi
7690    $rm conftest*
7691
7692 fi
7693 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7694 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7695
7696 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7697     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7698 else
7699     :
7700 fi
7701
7702 fi
7703
7704 lt_prog_compiler_wl=
7705 lt_prog_compiler_pic=
7706 lt_prog_compiler_static=
7707
7708 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7709 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7710
7711   if test "$GCC" = yes; then
7712     lt_prog_compiler_wl='-Wl,'
7713     lt_prog_compiler_static='-static'
7714
7715     case $host_os in
7716       aix*)
7717       # All AIX code is PIC.
7718       if test "$host_cpu" = ia64; then
7719         # AIX 5 now supports IA64 processor
7720         lt_prog_compiler_static='-Bstatic'
7721       fi
7722       ;;
7723
7724     amigaos*)
7725       # FIXME: we need at least 68020 code to build shared libraries, but
7726       # adding the `-m68020' flag to GCC prevents building anything better,
7727       # like `-m68040'.
7728       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7729       ;;
7730
7731     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7732       # PIC is the default for these OSes.
7733       ;;
7734
7735     mingw* | pw32* | os2*)
7736       # This hack is so that the source file can tell whether it is being
7737       # built for inclusion in a dll (and should export symbols for example).
7738       lt_prog_compiler_pic='-DDLL_EXPORT'
7739       ;;
7740
7741     darwin* | rhapsody*)
7742       # PIC is the default on this platform
7743       # Common symbols not allowed in MH_DYLIB files
7744       lt_prog_compiler_pic='-fno-common'
7745       ;;
7746
7747     interix3*)
7748       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7749       # Instead, we relocate shared libraries at runtime.
7750       ;;
7751
7752     msdosdjgpp*)
7753       # Just because we use GCC doesn't mean we suddenly get shared libraries
7754       # on systems that don't support them.
7755       lt_prog_compiler_can_build_shared=no
7756       enable_shared=no
7757       ;;
7758
7759     sysv4*MP*)
7760       if test -d /usr/nec; then
7761         lt_prog_compiler_pic=-Kconform_pic
7762       fi
7763       ;;
7764
7765     hpux*)
7766       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7767       # not for PA HP-UX.
7768       case $host_cpu in
7769       hppa*64*|ia64*)
7770         # +Z the default
7771         ;;
7772       *)
7773         lt_prog_compiler_pic='-fPIC'
7774         ;;
7775       esac
7776       ;;
7777
7778     *)
7779       lt_prog_compiler_pic='-fPIC'
7780       ;;
7781     esac
7782   else
7783     # PORTME Check for flag to pass linker flags through the system compiler.
7784     case $host_os in
7785     aix*)
7786       lt_prog_compiler_wl='-Wl,'
7787       if test "$host_cpu" = ia64; then
7788         # AIX 5 now supports IA64 processor
7789         lt_prog_compiler_static='-Bstatic'
7790       else
7791         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7792       fi
7793       ;;
7794       darwin*)
7795         # PIC is the default on this platform
7796         # Common symbols not allowed in MH_DYLIB files
7797        case $cc_basename in
7798          xlc*)
7799          lt_prog_compiler_pic='-qnocommon'
7800          lt_prog_compiler_wl='-Wl,'
7801          ;;
7802        esac
7803        ;;
7804
7805     mingw* | pw32* | os2*)
7806       # This hack is so that the source file can tell whether it is being
7807       # built for inclusion in a dll (and should export symbols for example).
7808       lt_prog_compiler_pic='-DDLL_EXPORT'
7809       ;;
7810
7811     hpux9* | hpux10* | hpux11*)
7812       lt_prog_compiler_wl='-Wl,'
7813       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7814       # not for PA HP-UX.
7815       case $host_cpu in
7816       hppa*64*|ia64*)
7817         # +Z the default
7818         ;;
7819       *)
7820         lt_prog_compiler_pic='+Z'
7821         ;;
7822       esac
7823       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7824       lt_prog_compiler_static='${wl}-a ${wl}archive'
7825       ;;
7826
7827     irix5* | irix6* | nonstopux*)
7828       lt_prog_compiler_wl='-Wl,'
7829       # PIC (with -KPIC) is the default.
7830       lt_prog_compiler_static='-non_shared'
7831       ;;
7832
7833     newsos6)
7834       lt_prog_compiler_pic='-KPIC'
7835       lt_prog_compiler_static='-Bstatic'
7836       ;;
7837
7838     linux*)
7839       case $cc_basename in
7840       icc* | ecc*)
7841         lt_prog_compiler_wl='-Wl,'
7842         lt_prog_compiler_pic='-KPIC'
7843         lt_prog_compiler_static='-static'
7844         ;;
7845       pgcc* | pgf77* | pgf90* | pgf95*)
7846         # Portland Group compilers (*not* the Pentium gcc compiler,
7847         # which looks to be a dead project)
7848         lt_prog_compiler_wl='-Wl,'
7849         lt_prog_compiler_pic='-fpic'
7850         lt_prog_compiler_static='-Bstatic'
7851         ;;
7852       ccc*)
7853         lt_prog_compiler_wl='-Wl,'
7854         # All Alpha code is PIC.
7855         lt_prog_compiler_static='-non_shared'
7856         ;;
7857       esac
7858       ;;
7859
7860     osf3* | osf4* | osf5*)
7861       lt_prog_compiler_wl='-Wl,'
7862       # All OSF/1 code is PIC.
7863       lt_prog_compiler_static='-non_shared'
7864       ;;
7865
7866     solaris*)
7867       lt_prog_compiler_pic='-KPIC'
7868       lt_prog_compiler_static='-Bstatic'
7869       case $cc_basename in
7870       f77* | f90* | f95*)
7871         lt_prog_compiler_wl='-Qoption ld ';;
7872       *)
7873         lt_prog_compiler_wl='-Wl,';;
7874       esac
7875       ;;
7876
7877     sunos4*)
7878       lt_prog_compiler_wl='-Qoption ld '
7879       lt_prog_compiler_pic='-PIC'
7880       lt_prog_compiler_static='-Bstatic'
7881       ;;
7882
7883     sysv4 | sysv4.2uw2* | sysv4.3*)
7884       lt_prog_compiler_wl='-Wl,'
7885       lt_prog_compiler_pic='-KPIC'
7886       lt_prog_compiler_static='-Bstatic'
7887       ;;
7888
7889     sysv4*MP*)
7890       if test -d /usr/nec ;then
7891         lt_prog_compiler_pic='-Kconform_pic'
7892         lt_prog_compiler_static='-Bstatic'
7893       fi
7894       ;;
7895
7896     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7897       lt_prog_compiler_wl='-Wl,'
7898       lt_prog_compiler_pic='-KPIC'
7899       lt_prog_compiler_static='-Bstatic'
7900       ;;
7901
7902     unicos*)
7903       lt_prog_compiler_wl='-Wl,'
7904       lt_prog_compiler_can_build_shared=no
7905       ;;
7906
7907     uts4*)
7908       lt_prog_compiler_pic='-pic'
7909       lt_prog_compiler_static='-Bstatic'
7910       ;;
7911
7912     *)
7913       lt_prog_compiler_can_build_shared=no
7914       ;;
7915     esac
7916   fi
7917
7918 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7919 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7920
7921 #
7922 # Check to make sure the PIC flag actually works.
7923 #
7924 if test -n "$lt_prog_compiler_pic"; then
7925
7926 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7927 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7928 if test "${lt_prog_compiler_pic_works+set}" = set; then
7929   echo $ECHO_N "(cached) $ECHO_C" >&6
7930 else
7931   lt_prog_compiler_pic_works=no
7932   ac_outfile=conftest.$ac_objext
7933    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7934    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7935    # Insert the option either (1) after the last *FLAGS variable, or
7936    # (2) before a word containing "conftest.", or (3) at the end.
7937    # Note that $ac_compile itself does not contain backslashes and begins
7938    # with a dollar sign (not a hyphen), so the echo should work correctly.
7939    # The option is referenced via a variable to avoid confusing sed.
7940    lt_compile=`echo "$ac_compile" | $SED \
7941    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7942    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7943    -e 's:$: $lt_compiler_flag:'`
7944    (eval echo "\"\$as_me:7944: $lt_compile\"" >&5)
7945    (eval "$lt_compile" 2>conftest.err)
7946    ac_status=$?
7947    cat conftest.err >&5
7948    echo "$as_me:7948: \$? = $ac_status" >&5
7949    if (exit $ac_status) && test -s "$ac_outfile"; then
7950      # The compiler can only warn and ignore the option if not recognized
7951      # So say no if there are warnings other than the usual output.
7952      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7953      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7954      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7955        lt_prog_compiler_pic_works=yes
7956      fi
7957    fi
7958    $rm conftest*
7959
7960 fi
7961 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7962 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7963
7964 if test x"$lt_prog_compiler_pic_works" = xyes; then
7965     case $lt_prog_compiler_pic in
7966      "" | " "*) ;;
7967      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7968      esac
7969 else
7970     lt_prog_compiler_pic=
7971      lt_prog_compiler_can_build_shared=no
7972 fi
7973
7974 fi
7975 case $host_os in
7976   # For platforms which do not support PIC, -DPIC is meaningless:
7977   *djgpp*)
7978     lt_prog_compiler_pic=
7979     ;;
7980   *)
7981     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7982     ;;
7983 esac
7984
7985 #
7986 # Check to make sure the static flag actually works.
7987 #
7988 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7989 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7990 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7991 if test "${lt_prog_compiler_static_works+set}" = set; then
7992   echo $ECHO_N "(cached) $ECHO_C" >&6
7993 else
7994   lt_prog_compiler_static_works=no
7995    save_LDFLAGS="$LDFLAGS"
7996    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7997    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7998    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7999      # The linker can only warn and ignore the option if not recognized
8000      # So say no if there are warnings
8001      if test -s conftest.err; then
8002        # Append any errors to the config.log.
8003        cat conftest.err 1>&5
8004        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8005        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8006        if diff conftest.exp conftest.er2 >/dev/null; then
8007          lt_prog_compiler_static_works=yes
8008        fi
8009      else
8010        lt_prog_compiler_static_works=yes
8011      fi
8012    fi
8013    $rm conftest*
8014    LDFLAGS="$save_LDFLAGS"
8015
8016 fi
8017 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8018 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8019
8020 if test x"$lt_prog_compiler_static_works" = xyes; then
8021     :
8022 else
8023     lt_prog_compiler_static=
8024 fi
8025
8026
8027 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8028 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8029 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8030   echo $ECHO_N "(cached) $ECHO_C" >&6
8031 else
8032   lt_cv_prog_compiler_c_o=no
8033    $rm -r conftest 2>/dev/null
8034    mkdir conftest
8035    cd conftest
8036    mkdir out
8037    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8038
8039    lt_compiler_flag="-o out/conftest2.$ac_objext"
8040    # Insert the option either (1) after the last *FLAGS variable, or
8041    # (2) before a word containing "conftest.", or (3) at the end.
8042    # Note that $ac_compile itself does not contain backslashes and begins
8043    # with a dollar sign (not a hyphen), so the echo should work correctly.
8044    lt_compile=`echo "$ac_compile" | $SED \
8045    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8046    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8047    -e 's:$: $lt_compiler_flag:'`
8048    (eval echo "\"\$as_me:8048: $lt_compile\"" >&5)
8049    (eval "$lt_compile" 2>out/conftest.err)
8050    ac_status=$?
8051    cat out/conftest.err >&5
8052    echo "$as_me:8052: \$? = $ac_status" >&5
8053    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8054    then
8055      # The compiler can only warn and ignore the option if not recognized
8056      # So say no if there are warnings
8057      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8058      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8059      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8060        lt_cv_prog_compiler_c_o=yes
8061      fi
8062    fi
8063    chmod u+w . 2>&5
8064    $rm conftest*
8065    # SGI C++ compiler will create directory out/ii_files/ for
8066    # template instantiation
8067    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8068    $rm out/* && rmdir out
8069    cd ..
8070    rmdir conftest
8071    $rm conftest*
8072
8073 fi
8074 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8075 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8076
8077
8078 hard_links="nottested"
8079 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8080   # do not overwrite the value of need_locks provided by the user
8081   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8082 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8083   hard_links=yes
8084   $rm conftest*
8085   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8086   touch conftest.a
8087   ln conftest.a conftest.b 2>&5 || hard_links=no
8088   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8089   { echo "$as_me:$LINENO: result: $hard_links" >&5
8090 echo "${ECHO_T}$hard_links" >&6; }
8091   if test "$hard_links" = no; then
8092     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8093 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8094     need_locks=warn
8095   fi
8096 else
8097   need_locks=no
8098 fi
8099
8100 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8101 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8102
8103   runpath_var=
8104   allow_undefined_flag=
8105   enable_shared_with_static_runtimes=no
8106   archive_cmds=
8107   archive_expsym_cmds=
8108   old_archive_From_new_cmds=
8109   old_archive_from_expsyms_cmds=
8110   export_dynamic_flag_spec=
8111   whole_archive_flag_spec=
8112   thread_safe_flag_spec=
8113   hardcode_libdir_flag_spec=
8114   hardcode_libdir_flag_spec_ld=
8115   hardcode_libdir_separator=
8116   hardcode_direct=no
8117   hardcode_minus_L=no
8118   hardcode_shlibpath_var=unsupported
8119   link_all_deplibs=unknown
8120   hardcode_automatic=no
8121   module_cmds=
8122   module_expsym_cmds=
8123   always_export_symbols=no
8124   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8125   # include_expsyms should be a list of space-separated symbols to be *always*
8126   # included in the symbol list
8127   include_expsyms=
8128   # exclude_expsyms can be an extended regexp of symbols to exclude
8129   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8130   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8131   # as well as any symbol that contains `d'.
8132   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8133   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8134   # platforms (ab)use it in PIC code, but their linkers get confused if
8135   # the symbol is explicitly referenced.  Since portable code cannot
8136   # rely on this symbol name, it's probably fine to never include it in
8137   # preloaded symbol tables.
8138   extract_expsyms_cmds=
8139   # Just being paranoid about ensuring that cc_basename is set.
8140   for cc_temp in $compiler""; do
8141   case $cc_temp in
8142     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8143     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8144     \-*) ;;
8145     *) break;;
8146   esac
8147 done
8148 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8149
8150   case $host_os in
8151   cygwin* | mingw* | pw32*)
8152     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8153     # When not using gcc, we currently assume that we are using
8154     # Microsoft Visual C++.
8155     if test "$GCC" != yes; then
8156       with_gnu_ld=no
8157     fi
8158     ;;
8159   interix*)
8160     # we just hope/assume this is gcc and not c89 (= MSVC++)
8161     with_gnu_ld=yes
8162     ;;
8163   openbsd*)
8164     with_gnu_ld=no
8165     ;;
8166   esac
8167
8168   ld_shlibs=yes
8169   if test "$with_gnu_ld" = yes; then
8170     # If archive_cmds runs LD, not CC, wlarc should be empty
8171     wlarc='${wl}'
8172
8173     # Set some defaults for GNU ld with shared library support. These
8174     # are reset later if shared libraries are not supported. Putting them
8175     # here allows them to be overridden if necessary.
8176     runpath_var=LD_RUN_PATH
8177     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8178     export_dynamic_flag_spec='${wl}--export-dynamic'
8179     # ancient GNU ld didn't support --whole-archive et. al.
8180     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8181         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8182       else
8183         whole_archive_flag_spec=
8184     fi
8185     supports_anon_versioning=no
8186     case `$LD -v 2>/dev/null` in
8187       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8188       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8189       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8190       *\ 2.11.*) ;; # other 2.11 versions
8191       *) supports_anon_versioning=yes ;;
8192     esac
8193
8194     # See if GNU ld supports shared libraries.
8195     case $host_os in
8196     aix3* | aix4* | aix5*)
8197       # On AIX/PPC, the GNU linker is very broken
8198       if test "$host_cpu" != ia64; then
8199         ld_shlibs=no
8200         cat <<EOF 1>&2
8201
8202 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8203 *** to be unable to reliably create shared libraries on AIX.
8204 *** Therefore, libtool is disabling shared libraries support.  If you
8205 *** really care for shared libraries, you may want to modify your PATH
8206 *** so that a non-GNU linker is found, and then restart.
8207
8208 EOF
8209       fi
8210       ;;
8211
8212     amigaos*)
8213       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)'
8214       hardcode_libdir_flag_spec='-L$libdir'
8215       hardcode_minus_L=yes
8216
8217       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8218       # that the semantics of dynamic libraries on AmigaOS, at least up
8219       # to version 4, is to share data among multiple programs linked
8220       # with the same dynamic library.  Since this doesn't match the
8221       # behavior of shared libraries on other platforms, we can't use
8222       # them.
8223       ld_shlibs=no
8224       ;;
8225
8226     beos*)
8227       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8228         allow_undefined_flag=unsupported
8229         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8230         # support --undefined.  This deserves some investigation.  FIXME
8231         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8232       else
8233         ld_shlibs=no
8234       fi
8235       ;;
8236
8237     cygwin* | mingw* | pw32*)
8238       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8239       # as there is no search path for DLLs.
8240       hardcode_libdir_flag_spec='-L$libdir'
8241       allow_undefined_flag=unsupported
8242       always_export_symbols=no
8243       enable_shared_with_static_runtimes=yes
8244       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8245
8246       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8247         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8248         # If the export-symbols file already is a .def file (1st line
8249         # is EXPORTS), use it as is; otherwise, prepend...
8250         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8251           cp $export_symbols $output_objdir/$soname.def;
8252         else
8253           echo EXPORTS > $output_objdir/$soname.def;
8254           cat $export_symbols >> $output_objdir/$soname.def;
8255         fi~
8256         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8257       else
8258         ld_shlibs=no
8259       fi
8260       ;;
8261
8262     interix3*)
8263       hardcode_direct=no
8264       hardcode_shlibpath_var=no
8265       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8266       export_dynamic_flag_spec='${wl}-E'
8267       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8268       # Instead, shared libraries are loaded at an image base (0x10000000 by
8269       # default) and relocated if they conflict, which is a slow very memory
8270       # consuming and fragmenting process.  To avoid this, we pick a random,
8271       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8272       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8273       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8274       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'
8275       ;;
8276
8277     linux*)
8278       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8279         tmp_addflag=
8280         case $cc_basename,$host_cpu in
8281         pgcc*)                          # Portland Group C compiler
8282           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'
8283           tmp_addflag=' $pic_flag'
8284           ;;
8285         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8286           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'
8287           tmp_addflag=' $pic_flag -Mnomain' ;;
8288         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8289           tmp_addflag=' -i_dynamic' ;;
8290         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8291           tmp_addflag=' -i_dynamic -nofor_main' ;;
8292         ifc* | ifort*)                  # Intel Fortran compiler
8293           tmp_addflag=' -nofor_main' ;;
8294         esac
8295         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8296
8297         if test $supports_anon_versioning = yes; then
8298           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8299   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8300   $echo "local: *; };" >> $output_objdir/$libname.ver~
8301           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8302         fi
8303       else
8304         ld_shlibs=no
8305       fi
8306       ;;
8307
8308     netbsd*)
8309       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8310         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8311         wlarc=
8312       else
8313         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8314         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8315       fi
8316       ;;
8317
8318     solaris*)
8319       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8320         ld_shlibs=no
8321         cat <<EOF 1>&2
8322
8323 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8324 *** create shared libraries on Solaris systems.  Therefore, libtool
8325 *** is disabling shared libraries support.  We urge you to upgrade GNU
8326 *** binutils to release 2.9.1 or newer.  Another option is to modify
8327 *** your PATH or compiler configuration so that the native linker is
8328 *** used, and then restart.
8329
8330 EOF
8331       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8332         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8333         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8334       else
8335         ld_shlibs=no
8336       fi
8337       ;;
8338
8339     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8340       case `$LD -v 2>&1` in
8341         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8342         ld_shlibs=no
8343         cat <<_LT_EOF 1>&2
8344
8345 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8346 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8347 *** is disabling shared libraries support.  We urge you to upgrade GNU
8348 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8349 *** your PATH or compiler configuration so that the native linker is
8350 *** used, and then restart.
8351
8352 _LT_EOF
8353         ;;
8354         *)
8355           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8356             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8357             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8358             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8359           else
8360             ld_shlibs=no
8361           fi
8362         ;;
8363       esac
8364       ;;
8365
8366     sunos4*)
8367       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8368       wlarc=
8369       hardcode_direct=yes
8370       hardcode_shlibpath_var=no
8371       ;;
8372
8373     *)
8374       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8375         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8376         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8377       else
8378         ld_shlibs=no
8379       fi
8380       ;;
8381     esac
8382
8383     if test "$ld_shlibs" = no; then
8384       runpath_var=
8385       hardcode_libdir_flag_spec=
8386       export_dynamic_flag_spec=
8387       whole_archive_flag_spec=
8388     fi
8389   else
8390     # PORTME fill in a description of your system's linker (not GNU ld)
8391     case $host_os in
8392     aix3*)
8393       allow_undefined_flag=unsupported
8394       always_export_symbols=yes
8395       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'
8396       # Note: this linker hardcodes the directories in LIBPATH if there
8397       # are no directories specified by -L.
8398       hardcode_minus_L=yes
8399       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8400         # Neither direct hardcoding nor static linking is supported with a
8401         # broken collect2.
8402         hardcode_direct=unsupported
8403       fi
8404       ;;
8405
8406     aix4* | aix5*)
8407       if test "$host_cpu" = ia64; then
8408         # On IA64, the linker does run time linking by default, so we don't
8409         # have to do anything special.
8410         aix_use_runtimelinking=no
8411         exp_sym_flag='-Bexport'
8412         no_entry_flag=""
8413       else
8414         # If we're using GNU nm, then we don't want the "-C" option.
8415         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8416         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8417           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'
8418         else
8419           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'
8420         fi
8421         aix_use_runtimelinking=no
8422
8423         # Test if we are trying to use run time linking or normal
8424         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8425         # need to do runtime linking.
8426         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8427           for ld_flag in $LDFLAGS; do
8428           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8429             aix_use_runtimelinking=yes
8430             break
8431           fi
8432           done
8433           ;;
8434         esac
8435
8436         exp_sym_flag='-bexport'
8437         no_entry_flag='-bnoentry'
8438       fi
8439
8440       # When large executables or shared objects are built, AIX ld can
8441       # have problems creating the table of contents.  If linking a library
8442       # or program results in "error TOC overflow" add -mminimal-toc to
8443       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8444       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8445
8446       archive_cmds=''
8447       hardcode_direct=yes
8448       hardcode_libdir_separator=':'
8449       link_all_deplibs=yes
8450
8451       if test "$GCC" = yes; then
8452         case $host_os in aix4.[012]|aix4.[012].*)
8453         # We only want to do this on AIX 4.2 and lower, the check
8454         # below for broken collect2 doesn't work under 4.3+
8455           collect2name=`${CC} -print-prog-name=collect2`
8456           if test -f "$collect2name" && \
8457            strings "$collect2name" | grep resolve_lib_name >/dev/null
8458           then
8459           # We have reworked collect2
8460           hardcode_direct=yes
8461           else
8462           # We have old collect2
8463           hardcode_direct=unsupported
8464           # It fails to find uninstalled libraries when the uninstalled
8465           # path is not listed in the libpath.  Setting hardcode_minus_L
8466           # to unsupported forces relinking
8467           hardcode_minus_L=yes
8468           hardcode_libdir_flag_spec='-L$libdir'
8469           hardcode_libdir_separator=
8470           fi
8471           ;;
8472         esac
8473         shared_flag='-shared'
8474         if test "$aix_use_runtimelinking" = yes; then
8475           shared_flag="$shared_flag "'${wl}-G'
8476         fi
8477       else
8478         # not using gcc
8479         if test "$host_cpu" = ia64; then
8480         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8481         # chokes on -Wl,-G. The following line is correct:
8482           shared_flag='-G'
8483         else
8484           if test "$aix_use_runtimelinking" = yes; then
8485             shared_flag='${wl}-G'
8486           else
8487             shared_flag='${wl}-bM:SRE'
8488           fi
8489         fi
8490       fi
8491
8492       # It seems that -bexpall does not export symbols beginning with
8493       # underscore (_), so it is better to generate a list of symbols to export.
8494       always_export_symbols=yes
8495       if test "$aix_use_runtimelinking" = yes; then
8496         # Warning - without using the other runtime loading flags (-brtl),
8497         # -berok will link without error, but may produce a broken library.
8498         allow_undefined_flag='-berok'
8499        # Determine the default libpath from the value encoded in an empty executable.
8500        cat >conftest.$ac_ext <<_ACEOF
8501 /* confdefs.h.  */
8502 _ACEOF
8503 cat confdefs.h >>conftest.$ac_ext
8504 cat >>conftest.$ac_ext <<_ACEOF
8505 /* end confdefs.h.  */
8506
8507 int
8508 main ()
8509 {
8510
8511   ;
8512   return 0;
8513 }
8514 _ACEOF
8515 rm -f conftest.$ac_objext conftest$ac_exeext
8516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8517   (eval $ac_link) 2>conftest.er1
8518   ac_status=$?
8519   grep -v '^ *+' conftest.er1 >conftest.err
8520   rm -f conftest.er1
8521   cat conftest.err >&5
8522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523   (exit $ac_status); } &&
8524          { ac_try='test -z "$ac_c_werror_flag"
8525                          || test ! -s conftest.err'
8526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8527   (eval $ac_try) 2>&5
8528   ac_status=$?
8529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530   (exit $ac_status); }; } &&
8531          { ac_try='test -s conftest$ac_exeext'
8532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8533   (eval $ac_try) 2>&5
8534   ac_status=$?
8535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536   (exit $ac_status); }; }; then
8537
8538 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8539 }'`
8540 # Check for a 64-bit object if we didn't find anything.
8541 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8542 }'`; fi
8543 else
8544   echo "$as_me: failed program was:" >&5
8545 sed 's/^/| /' conftest.$ac_ext >&5
8546
8547
8548 fi
8549
8550 rm -f conftest.err conftest.$ac_objext \
8551       conftest$ac_exeext conftest.$ac_ext
8552 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8553
8554        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8555         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"
8556        else
8557         if test "$host_cpu" = ia64; then
8558           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8559           allow_undefined_flag="-z nodefs"
8560           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"
8561         else
8562          # Determine the default libpath from the value encoded in an empty executable.
8563          cat >conftest.$ac_ext <<_ACEOF
8564 /* confdefs.h.  */
8565 _ACEOF
8566 cat confdefs.h >>conftest.$ac_ext
8567 cat >>conftest.$ac_ext <<_ACEOF
8568 /* end confdefs.h.  */
8569
8570 int
8571 main ()
8572 {
8573
8574   ;
8575   return 0;
8576 }
8577 _ACEOF
8578 rm -f conftest.$ac_objext conftest$ac_exeext
8579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8580   (eval $ac_link) 2>conftest.er1
8581   ac_status=$?
8582   grep -v '^ *+' conftest.er1 >conftest.err
8583   rm -f conftest.er1
8584   cat conftest.err >&5
8585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586   (exit $ac_status); } &&
8587          { ac_try='test -z "$ac_c_werror_flag"
8588                          || test ! -s conftest.err'
8589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8590   (eval $ac_try) 2>&5
8591   ac_status=$?
8592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593   (exit $ac_status); }; } &&
8594          { ac_try='test -s conftest$ac_exeext'
8595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8596   (eval $ac_try) 2>&5
8597   ac_status=$?
8598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599   (exit $ac_status); }; }; then
8600
8601 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8602 }'`
8603 # Check for a 64-bit object if we didn't find anything.
8604 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8605 }'`; fi
8606 else
8607   echo "$as_me: failed program was:" >&5
8608 sed 's/^/| /' conftest.$ac_ext >&5
8609
8610
8611 fi
8612
8613 rm -f conftest.err conftest.$ac_objext \
8614       conftest$ac_exeext conftest.$ac_ext
8615 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8616
8617          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8618           # Warning - without using the other run time loading flags,
8619           # -berok will link without error, but may produce a broken library.
8620           no_undefined_flag=' ${wl}-bernotok'
8621           allow_undefined_flag=' ${wl}-berok'
8622           # Exported symbols can be pulled into shared objects from archives
8623           whole_archive_flag_spec='$convenience'
8624           archive_cmds_need_lc=yes
8625           # This is similar to how AIX traditionally builds its shared libraries.
8626           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'
8627         fi
8628       fi
8629       ;;
8630
8631     amigaos*)
8632       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)'
8633       hardcode_libdir_flag_spec='-L$libdir'
8634       hardcode_minus_L=yes
8635       # see comment about different semantics on the GNU ld section
8636       ld_shlibs=no
8637       ;;
8638
8639     bsdi[45]*)
8640       export_dynamic_flag_spec=-rdynamic
8641       ;;
8642
8643     cygwin* | mingw* | pw32*)
8644       # When not using gcc, we currently assume that we are using
8645       # Microsoft Visual C++.
8646       # hardcode_libdir_flag_spec is actually meaningless, as there is
8647       # no search path for DLLs.
8648       hardcode_libdir_flag_spec=' '
8649       allow_undefined_flag=unsupported
8650       # Tell ltmain to make .lib files, not .a files.
8651       libext=lib
8652       # Tell ltmain to make .dll files, not .so files.
8653       shrext_cmds=".dll"
8654       # FIXME: Setting linknames here is a bad hack.
8655       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8656       # The linker will automatically build a .lib file if we build a DLL.
8657       old_archive_From_new_cmds='true'
8658       # FIXME: Should let the user specify the lib program.
8659       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8660       fix_srcfile_path='`cygpath -w "$srcfile"`'
8661       enable_shared_with_static_runtimes=yes
8662       ;;
8663
8664     darwin* | rhapsody*)
8665       case $host_os in
8666         rhapsody* | darwin1.[012])
8667          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8668          ;;
8669        *) # Darwin 1.3 on
8670          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8671            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8672          else
8673            case ${MACOSX_DEPLOYMENT_TARGET} in
8674              10.[012])
8675                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8676                ;;
8677              10.*)
8678                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8679                ;;
8680            esac
8681          fi
8682          ;;
8683       esac
8684       archive_cmds_need_lc=no
8685       hardcode_direct=no
8686       hardcode_automatic=yes
8687       hardcode_shlibpath_var=unsupported
8688       whole_archive_flag_spec=''
8689       link_all_deplibs=yes
8690     if test "$GCC" = yes ; then
8691         output_verbose_link_cmd='echo'
8692         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8693       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8694       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8695       archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8696       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}'
8697     else
8698       case $cc_basename in
8699         xlc*)
8700          output_verbose_link_cmd='echo'
8701          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8702          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8703           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8704          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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8705           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}'
8706           ;;
8707        *)
8708          ld_shlibs=no
8709           ;;
8710       esac
8711     fi
8712       ;;
8713
8714     dgux*)
8715       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8716       hardcode_libdir_flag_spec='-L$libdir'
8717       hardcode_shlibpath_var=no
8718       ;;
8719
8720     freebsd1*)
8721       ld_shlibs=no
8722       ;;
8723
8724     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8725     # support.  Future versions do this automatically, but an explicit c++rt0.o
8726     # does not break anything, and helps significantly (at the cost of a little
8727     # extra space).
8728     freebsd2.2*)
8729       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8730       hardcode_libdir_flag_spec='-R$libdir'
8731       hardcode_direct=yes
8732       hardcode_shlibpath_var=no
8733       ;;
8734
8735     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8736     freebsd2*)
8737       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8738       hardcode_direct=yes
8739       hardcode_minus_L=yes
8740       hardcode_shlibpath_var=no
8741       ;;
8742
8743     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8744     freebsd* | kfreebsd*-gnu | dragonfly*)
8745       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8746       hardcode_libdir_flag_spec='-R$libdir'
8747       hardcode_direct=yes
8748       hardcode_shlibpath_var=no
8749       ;;
8750
8751     hpux9*)
8752       if test "$GCC" = yes; then
8753         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'
8754       else
8755         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'
8756       fi
8757       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8758       hardcode_libdir_separator=:
8759       hardcode_direct=yes
8760
8761       # hardcode_minus_L: Not really in the search PATH,
8762       # but as the default location of the library.
8763       hardcode_minus_L=yes
8764       export_dynamic_flag_spec='${wl}-E'
8765       ;;
8766
8767     hpux10*)
8768       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8769         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8770       else
8771         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8772       fi
8773       if test "$with_gnu_ld" = no; then
8774         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8775         hardcode_libdir_separator=:
8776
8777         hardcode_direct=yes
8778         export_dynamic_flag_spec='${wl}-E'
8779
8780         # hardcode_minus_L: Not really in the search PATH,
8781         # but as the default location of the library.
8782         hardcode_minus_L=yes
8783       fi
8784       ;;
8785
8786     hpux11*)
8787       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8788         case $host_cpu in
8789         hppa*64*)
8790           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8791           ;;
8792         ia64*)
8793           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8794           ;;
8795         *)
8796           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8797           ;;
8798         esac
8799       else
8800         case $host_cpu in
8801         hppa*64*)
8802           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8803           ;;
8804         ia64*)
8805           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8806           ;;
8807         *)
8808           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8809           ;;
8810         esac
8811       fi
8812       if test "$with_gnu_ld" = no; then
8813         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8814         hardcode_libdir_separator=:
8815
8816         case $host_cpu in
8817         hppa*64*|ia64*)
8818           hardcode_libdir_flag_spec_ld='+b $libdir'
8819           hardcode_direct=no
8820           hardcode_shlibpath_var=no
8821           ;;
8822         *)
8823           hardcode_direct=yes
8824           export_dynamic_flag_spec='${wl}-E'
8825
8826           # hardcode_minus_L: Not really in the search PATH,
8827           # but as the default location of the library.
8828           hardcode_minus_L=yes
8829           ;;
8830         esac
8831       fi
8832       ;;
8833
8834     irix5* | irix6* | nonstopux*)
8835       if test "$GCC" = yes; then
8836         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'
8837       else
8838         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'
8839         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8840       fi
8841       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8842       hardcode_libdir_separator=:
8843       link_all_deplibs=yes
8844       ;;
8845
8846     netbsd*)
8847       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8848         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8849       else
8850         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8851       fi
8852       hardcode_libdir_flag_spec='-R$libdir'
8853       hardcode_direct=yes
8854       hardcode_shlibpath_var=no
8855       ;;
8856
8857     newsos6)
8858       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8859       hardcode_direct=yes
8860       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8861       hardcode_libdir_separator=:
8862       hardcode_shlibpath_var=no
8863       ;;
8864
8865     openbsd*)
8866       hardcode_direct=yes
8867       hardcode_shlibpath_var=no
8868       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8869         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8870         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8871         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8872         export_dynamic_flag_spec='${wl}-E'
8873       else
8874        case $host_os in
8875          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8876            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8877            hardcode_libdir_flag_spec='-R$libdir'
8878            ;;
8879          *)
8880            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8881            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8882            ;;
8883        esac
8884       fi
8885       ;;
8886
8887     os2*)
8888       hardcode_libdir_flag_spec='-L$libdir'
8889       hardcode_minus_L=yes
8890       allow_undefined_flag=unsupported
8891       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'
8892       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8893       ;;
8894
8895     osf3*)
8896       if test "$GCC" = yes; then
8897         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8898         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'
8899       else
8900         allow_undefined_flag=' -expect_unresolved \*'
8901         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'
8902       fi
8903       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8904       hardcode_libdir_separator=:
8905       ;;
8906
8907     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8908       if test "$GCC" = yes; then
8909         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8910         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'
8911         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8912       else
8913         allow_undefined_flag=' -expect_unresolved \*'
8914         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'
8915         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8916         $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'
8917
8918         # Both c and cxx compiler support -rpath directly
8919         hardcode_libdir_flag_spec='-rpath $libdir'
8920       fi
8921       hardcode_libdir_separator=:
8922       ;;
8923
8924     solaris*)
8925       no_undefined_flag=' -z text'
8926       if test "$GCC" = yes; then
8927         wlarc='${wl}'
8928         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8929         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8930           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8931       else
8932         wlarc=''
8933         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8934         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8935         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8936       fi
8937       hardcode_libdir_flag_spec='-R$libdir'
8938       hardcode_shlibpath_var=no
8939       case $host_os in
8940       solaris2.[0-5] | solaris2.[0-5].*) ;;
8941       *)
8942         # The compiler driver will combine linker options so we
8943         # cannot just pass the convience library names through
8944         # without $wl, iff we do not link with $LD.
8945         # Luckily, gcc supports the same syntax we need for Sun Studio.
8946         # Supported since Solaris 2.6 (maybe 2.5.1?)
8947         case $wlarc in
8948         '')
8949           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8950         *)
8951           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8952         esac ;;
8953       esac
8954       link_all_deplibs=yes
8955       ;;
8956
8957     sunos4*)
8958       if test "x$host_vendor" = xsequent; then
8959         # Use $CC to link under sequent, because it throws in some extra .o
8960         # files that make .init and .fini sections work.
8961         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8962       else
8963         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8964       fi
8965       hardcode_libdir_flag_spec='-L$libdir'
8966       hardcode_direct=yes
8967       hardcode_minus_L=yes
8968       hardcode_shlibpath_var=no
8969       ;;
8970
8971     sysv4)
8972       case $host_vendor in
8973         sni)
8974           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8975           hardcode_direct=yes # is this really true???
8976         ;;
8977         siemens)
8978           ## LD is ld it makes a PLAMLIB
8979           ## CC just makes a GrossModule.
8980           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8981           reload_cmds='$CC -r -o $output$reload_objs'
8982           hardcode_direct=no
8983         ;;
8984         motorola)
8985           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8986           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8987         ;;
8988       esac
8989       runpath_var='LD_RUN_PATH'
8990       hardcode_shlibpath_var=no
8991       ;;
8992
8993     sysv4.3*)
8994       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8995       hardcode_shlibpath_var=no
8996       export_dynamic_flag_spec='-Bexport'
8997       ;;
8998
8999     sysv4*MP*)
9000       if test -d /usr/nec; then
9001         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9002         hardcode_shlibpath_var=no
9003         runpath_var=LD_RUN_PATH
9004         hardcode_runpath_var=yes
9005         ld_shlibs=yes
9006       fi
9007       ;;
9008
9009     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9010       no_undefined_flag='${wl}-z,text'
9011       archive_cmds_need_lc=no
9012       hardcode_shlibpath_var=no
9013       runpath_var='LD_RUN_PATH'
9014
9015       if test "$GCC" = yes; then
9016         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9017         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9018       else
9019         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9020         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9021       fi
9022       ;;
9023
9024     sysv5* | sco3.2v5* | sco5v6*)
9025       # Note: We can NOT use -z defs as we might desire, because we do not
9026       # link with -lc, and that would cause any symbols used from libc to
9027       # always be unresolved, which means just about no library would
9028       # ever link correctly.  If we're not using GNU ld we use -z text
9029       # though, which does catch some bad symbols but isn't as heavy-handed
9030       # as -z defs.
9031       no_undefined_flag='${wl}-z,text'
9032       allow_undefined_flag='${wl}-z,nodefs'
9033       archive_cmds_need_lc=no
9034       hardcode_shlibpath_var=no
9035       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9036       hardcode_libdir_separator=':'
9037       link_all_deplibs=yes
9038       export_dynamic_flag_spec='${wl}-Bexport'
9039       runpath_var='LD_RUN_PATH'
9040
9041       if test "$GCC" = yes; then
9042         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9043         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9044       else
9045         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9046         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9047       fi
9048       ;;
9049
9050     uts4*)
9051       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9052       hardcode_libdir_flag_spec='-L$libdir'
9053       hardcode_shlibpath_var=no
9054       ;;
9055
9056     *)
9057       ld_shlibs=no
9058       ;;
9059     esac
9060   fi
9061
9062 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9063 echo "${ECHO_T}$ld_shlibs" >&6; }
9064 test "$ld_shlibs" = no && can_build_shared=no
9065
9066 #
9067 # Do we need to explicitly link libc?
9068 #
9069 case "x$archive_cmds_need_lc" in
9070 x|xyes)
9071   # Assume -lc should be added
9072   archive_cmds_need_lc=yes
9073
9074   if test "$enable_shared" = yes && test "$GCC" = yes; then
9075     case $archive_cmds in
9076     *'~'*)
9077       # FIXME: we may have to deal with multi-command sequences.
9078       ;;
9079     '$CC '*)
9080       # Test whether the compiler implicitly links with -lc since on some
9081       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9082       # to ld, don't add -lc before -lgcc.
9083       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9084 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9085       $rm conftest*
9086       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9087
9088       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9089   (eval $ac_compile) 2>&5
9090   ac_status=$?
9091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092   (exit $ac_status); } 2>conftest.err; then
9093         soname=conftest
9094         lib=conftest
9095         libobjs=conftest.$ac_objext
9096         deplibs=
9097         wl=$lt_prog_compiler_wl
9098         pic_flag=$lt_prog_compiler_pic
9099         compiler_flags=-v
9100         linker_flags=-v
9101         verstring=
9102         output_objdir=.
9103         libname=conftest
9104         lt_save_allow_undefined_flag=$allow_undefined_flag
9105         allow_undefined_flag=
9106         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9107   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9108   ac_status=$?
9109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110   (exit $ac_status); }
9111         then
9112           archive_cmds_need_lc=no
9113         else
9114           archive_cmds_need_lc=yes
9115         fi
9116         allow_undefined_flag=$lt_save_allow_undefined_flag
9117       else
9118         cat conftest.err 1>&5
9119       fi
9120       $rm conftest*
9121       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9122 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9123       ;;
9124     esac
9125   fi
9126   ;;
9127 esac
9128
9129 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9130 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9131 library_names_spec=
9132 libname_spec='lib$name'
9133 soname_spec=
9134 shrext_cmds=".so"
9135 postinstall_cmds=
9136 postuninstall_cmds=
9137 finish_cmds=
9138 finish_eval=
9139 shlibpath_var=
9140 shlibpath_overrides_runpath=unknown
9141 version_type=none
9142 dynamic_linker="$host_os ld.so"
9143 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9144 if test "$GCC" = yes; then
9145   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9146   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9147     # if the path contains ";" then we assume it to be the separator
9148     # otherwise default to the standard path separator (i.e. ":") - it is
9149     # assumed that no part of a normal pathname contains ";" but that should
9150     # okay in the real world where ";" in dirpaths is itself problematic.
9151     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9152   else
9153     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9154   fi
9155 else
9156   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9157 fi
9158 need_lib_prefix=unknown
9159 hardcode_into_libs=no
9160
9161 # when you set need_version to no, make sure it does not cause -set_version
9162 # flags to be left without arguments
9163 need_version=unknown
9164
9165 case $host_os in
9166 aix3*)
9167   version_type=linux
9168   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9169   shlibpath_var=LIBPATH
9170
9171   # AIX 3 has no versioning support, so we append a major version to the name.
9172   soname_spec='${libname}${release}${shared_ext}$major'
9173   ;;
9174
9175 aix4* | aix5*)
9176   version_type=linux
9177   need_lib_prefix=no
9178   need_version=no
9179   hardcode_into_libs=yes
9180   if test "$host_cpu" = ia64; then
9181     # AIX 5 supports IA64
9182     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9183     shlibpath_var=LD_LIBRARY_PATH
9184   else
9185     # With GCC up to 2.95.x, collect2 would create an import file
9186     # for dependence libraries.  The import file would start with
9187     # the line `#! .'.  This would cause the generated library to
9188     # depend on `.', always an invalid library.  This was fixed in
9189     # development snapshots of GCC prior to 3.0.
9190     case $host_os in
9191       aix4 | aix4.[01] | aix4.[01].*)
9192       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9193            echo ' yes '
9194            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9195         :
9196       else
9197         can_build_shared=no
9198       fi
9199       ;;
9200     esac
9201     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9202     # soname into executable. Probably we can add versioning support to
9203     # collect2, so additional links can be useful in future.
9204     if test "$aix_use_runtimelinking" = yes; then
9205       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9206       # instead of lib<name>.a to let people know that these are not
9207       # typical AIX shared libraries.
9208       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9209     else
9210       # We preserve .a as extension for shared libraries through AIX4.2
9211       # and later when we are not doing run time linking.
9212       library_names_spec='${libname}${release}.a $libname.a'
9213       soname_spec='${libname}${release}${shared_ext}$major'
9214     fi
9215     shlibpath_var=LIBPATH
9216   fi
9217   ;;
9218
9219 amigaos*)
9220   library_names_spec='$libname.ixlibrary $libname.a'
9221   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9222   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'
9223   ;;
9224
9225 beos*)
9226   library_names_spec='${libname}${shared_ext}'
9227   dynamic_linker="$host_os ld.so"
9228   shlibpath_var=LIBRARY_PATH
9229   ;;
9230
9231 bsdi[45]*)
9232   version_type=linux
9233   need_version=no
9234   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9235   soname_spec='${libname}${release}${shared_ext}$major'
9236   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9237   shlibpath_var=LD_LIBRARY_PATH
9238   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9239   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9240   # the default ld.so.conf also contains /usr/contrib/lib and
9241   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9242   # libtool to hard-code these into programs
9243   ;;
9244
9245 cygwin* | mingw* | pw32*)
9246   version_type=windows
9247   shrext_cmds=".dll"
9248   need_version=no
9249   need_lib_prefix=no
9250
9251   case $GCC,$host_os in
9252   yes,cygwin* | yes,mingw* | yes,pw32*)
9253     library_names_spec='$libname.dll.a'
9254     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9255     postinstall_cmds='base_file=`basename \${file}`~
9256       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9257       dldir=$destdir/`dirname \$dlpath`~
9258       test -d \$dldir || mkdir -p \$dldir~
9259       $install_prog $dir/$dlname \$dldir/$dlname~
9260       chmod a+x \$dldir/$dlname'
9261     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9262       dlpath=$dir/\$dldll~
9263        $rm \$dlpath'
9264     shlibpath_overrides_runpath=yes
9265
9266     case $host_os in
9267     cygwin*)
9268       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9269       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9270       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9271       ;;
9272     mingw*)
9273       # MinGW DLLs use traditional 'lib' prefix
9274       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9275       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9276       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9277         # It is most probably a Windows format PATH printed by
9278         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9279         # path with ; separators, and with drive letters. We can handle the
9280         # drive letters (cygwin fileutils understands them), so leave them,
9281         # especially as we might pass files found there to a mingw objdump,
9282         # which wouldn't understand a cygwinified path. Ahh.
9283         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9284       else
9285         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9286       fi
9287       ;;
9288     pw32*)
9289       # pw32 DLLs use 'pw' prefix rather than 'lib'
9290       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9291       ;;
9292     esac
9293     ;;
9294
9295   *)
9296     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9297     ;;
9298   esac
9299   dynamic_linker='Win32 ld.exe'
9300   # FIXME: first we should search . and the directory the executable is in
9301   shlibpath_var=PATH
9302   ;;
9303
9304 darwin* | rhapsody*)
9305   dynamic_linker="$host_os dyld"
9306   version_type=darwin
9307   need_lib_prefix=no
9308   need_version=no
9309   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9310   soname_spec='${libname}${release}${major}$shared_ext'
9311   shlibpath_overrides_runpath=yes
9312   shlibpath_var=DYLD_LIBRARY_PATH
9313   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9314   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9315   if test "$GCC" = yes; then
9316     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9317   else
9318     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9319   fi
9320   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9321   ;;
9322
9323 dgux*)
9324   version_type=linux
9325   need_lib_prefix=no
9326   need_version=no
9327   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9328   soname_spec='${libname}${release}${shared_ext}$major'
9329   shlibpath_var=LD_LIBRARY_PATH
9330   ;;
9331
9332 freebsd1*)
9333   dynamic_linker=no
9334   ;;
9335
9336 kfreebsd*-gnu)
9337   version_type=linux
9338   need_lib_prefix=no
9339   need_version=no
9340   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9341   soname_spec='${libname}${release}${shared_ext}$major'
9342   shlibpath_var=LD_LIBRARY_PATH
9343   shlibpath_overrides_runpath=no
9344   hardcode_into_libs=yes
9345   dynamic_linker='GNU ld.so'
9346   ;;
9347
9348 freebsd* | dragonfly*)
9349   # DragonFly does not have aout.  When/if they implement a new
9350   # versioning mechanism, adjust this.
9351   if test -x /usr/bin/objformat; then
9352     objformat=`/usr/bin/objformat`
9353   else
9354     case $host_os in
9355     freebsd[123]*) objformat=aout ;;
9356     *) objformat=elf ;;
9357     esac
9358   fi
9359   version_type=freebsd-$objformat
9360   case $version_type in
9361     freebsd-elf*)
9362       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9363       need_version=no
9364       need_lib_prefix=no
9365       ;;
9366     freebsd-*)
9367       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9368       need_version=yes
9369       ;;
9370   esac
9371   shlibpath_var=LD_LIBRARY_PATH
9372   case $host_os in
9373   freebsd2*)
9374     shlibpath_overrides_runpath=yes
9375     ;;
9376   freebsd3.[01]* | freebsdelf3.[01]*)
9377     shlibpath_overrides_runpath=yes
9378     hardcode_into_libs=yes
9379     ;;
9380   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9381   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9382     shlibpath_overrides_runpath=no
9383     hardcode_into_libs=yes
9384     ;;
9385   freebsd*) # from 4.6 on
9386     shlibpath_overrides_runpath=yes
9387     hardcode_into_libs=yes
9388     ;;
9389   esac
9390   ;;
9391
9392 gnu*)
9393   version_type=linux
9394   need_lib_prefix=no
9395   need_version=no
9396   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9397   soname_spec='${libname}${release}${shared_ext}$major'
9398   shlibpath_var=LD_LIBRARY_PATH
9399   hardcode_into_libs=yes
9400   ;;
9401
9402 hpux9* | hpux10* | hpux11*)
9403   # Give a soname corresponding to the major version so that dld.sl refuses to
9404   # link against other versions.
9405   version_type=sunos
9406   need_lib_prefix=no
9407   need_version=no
9408   case $host_cpu in
9409   ia64*)
9410     shrext_cmds='.so'
9411     hardcode_into_libs=yes
9412     dynamic_linker="$host_os dld.so"
9413     shlibpath_var=LD_LIBRARY_PATH
9414     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9415     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9416     soname_spec='${libname}${release}${shared_ext}$major'
9417     if test "X$HPUX_IA64_MODE" = X32; then
9418       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9419     else
9420       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9421     fi
9422     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9423     ;;
9424    hppa*64*)
9425      shrext_cmds='.sl'
9426      hardcode_into_libs=yes
9427      dynamic_linker="$host_os dld.sl"
9428      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9429      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9430      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9431      soname_spec='${libname}${release}${shared_ext}$major'
9432      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9433      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9434      ;;
9435    *)
9436     shrext_cmds='.sl'
9437     dynamic_linker="$host_os dld.sl"
9438     shlibpath_var=SHLIB_PATH
9439     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9440     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9441     soname_spec='${libname}${release}${shared_ext}$major'
9442     ;;
9443   esac
9444   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9445   postinstall_cmds='chmod 555 $lib'
9446   ;;
9447
9448 interix3*)
9449   version_type=linux
9450   need_lib_prefix=no
9451   need_version=no
9452   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9453   soname_spec='${libname}${release}${shared_ext}$major'
9454   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9455   shlibpath_var=LD_LIBRARY_PATH
9456   shlibpath_overrides_runpath=no
9457   hardcode_into_libs=yes
9458   ;;
9459
9460 irix5* | irix6* | nonstopux*)
9461   case $host_os in
9462     nonstopux*) version_type=nonstopux ;;
9463     *)
9464         if test "$lt_cv_prog_gnu_ld" = yes; then
9465                 version_type=linux
9466         else
9467                 version_type=irix
9468         fi ;;
9469   esac
9470   need_lib_prefix=no
9471   need_version=no
9472   soname_spec='${libname}${release}${shared_ext}$major'
9473   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9474   case $host_os in
9475   irix5* | nonstopux*)
9476     libsuff= shlibsuff=
9477     ;;
9478   *)
9479     case $LD in # libtool.m4 will add one of these switches to LD
9480     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9481       libsuff= shlibsuff= libmagic=32-bit;;
9482     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9483       libsuff=32 shlibsuff=N32 libmagic=N32;;
9484     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9485       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9486     *) libsuff= shlibsuff= libmagic=never-match;;
9487     esac
9488     ;;
9489   esac
9490   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9491   shlibpath_overrides_runpath=no
9492   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9493   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9494   hardcode_into_libs=yes
9495   ;;
9496
9497 # No shared lib support for Linux oldld, aout, or coff.
9498 linux*oldld* | linux*aout* | linux*coff*)
9499   dynamic_linker=no
9500   ;;
9501
9502 # This must be Linux ELF.
9503 linux*)
9504   version_type=linux
9505   need_lib_prefix=no
9506   need_version=no
9507   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9508   soname_spec='${libname}${release}${shared_ext}$major'
9509   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9510   shlibpath_var=LD_LIBRARY_PATH
9511   shlibpath_overrides_runpath=no
9512   # This implies no fast_install, which is unacceptable.
9513   # Some rework will be needed to allow for fast_install
9514   # before this can be enabled.
9515   hardcode_into_libs=yes
9516
9517   # Append ld.so.conf contents to the search path
9518   if test -f /etc/ld.so.conf; then
9519     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9520     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9521   fi
9522
9523   # We used to test for /lib/ld.so.1 and disable shared libraries on
9524   # powerpc, because MkLinux only supported shared libraries with the
9525   # GNU dynamic linker.  Since this was broken with cross compilers,
9526   # most powerpc-linux boxes support dynamic linking these days and
9527   # people can always --disable-shared, the test was removed, and we
9528   # assume the GNU/Linux dynamic linker is in use.
9529   dynamic_linker='GNU/Linux ld.so'
9530   ;;
9531
9532 knetbsd*-gnu)
9533   version_type=linux
9534   need_lib_prefix=no
9535   need_version=no
9536   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9537   soname_spec='${libname}${release}${shared_ext}$major'
9538   shlibpath_var=LD_LIBRARY_PATH
9539   shlibpath_overrides_runpath=no
9540   hardcode_into_libs=yes
9541   dynamic_linker='GNU ld.so'
9542   ;;
9543
9544 netbsd*)
9545   version_type=sunos
9546   need_lib_prefix=no
9547   need_version=no
9548   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9549     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9550     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9551     dynamic_linker='NetBSD (a.out) ld.so'
9552   else
9553     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9554     soname_spec='${libname}${release}${shared_ext}$major'
9555     dynamic_linker='NetBSD ld.elf_so'
9556   fi
9557   shlibpath_var=LD_LIBRARY_PATH
9558   shlibpath_overrides_runpath=yes
9559   hardcode_into_libs=yes
9560   ;;
9561
9562 newsos6)
9563   version_type=linux
9564   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9565   shlibpath_var=LD_LIBRARY_PATH
9566   shlibpath_overrides_runpath=yes
9567   ;;
9568
9569 nto-qnx*)
9570   version_type=linux
9571   need_lib_prefix=no
9572   need_version=no
9573   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9574   soname_spec='${libname}${release}${shared_ext}$major'
9575   shlibpath_var=LD_LIBRARY_PATH
9576   shlibpath_overrides_runpath=yes
9577   ;;
9578
9579 openbsd*)
9580   version_type=sunos
9581   sys_lib_dlsearch_path_spec="/usr/lib"
9582   need_lib_prefix=no
9583   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9584   case $host_os in
9585     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9586     *)                         need_version=no  ;;
9587   esac
9588   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9589   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9590   shlibpath_var=LD_LIBRARY_PATH
9591   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9592     case $host_os in
9593       openbsd2.[89] | openbsd2.[89].*)
9594         shlibpath_overrides_runpath=no
9595         ;;
9596       *)
9597         shlibpath_overrides_runpath=yes
9598         ;;
9599       esac
9600   else
9601     shlibpath_overrides_runpath=yes
9602   fi
9603   ;;
9604
9605 os2*)
9606   libname_spec='$name'
9607   shrext_cmds=".dll"
9608   need_lib_prefix=no
9609   library_names_spec='$libname${shared_ext} $libname.a'
9610   dynamic_linker='OS/2 ld.exe'
9611   shlibpath_var=LIBPATH
9612   ;;
9613
9614 osf3* | osf4* | osf5*)
9615   version_type=osf
9616   need_lib_prefix=no
9617   need_version=no
9618   soname_spec='${libname}${release}${shared_ext}$major'
9619   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9620   shlibpath_var=LD_LIBRARY_PATH
9621   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9622   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9623   ;;
9624
9625 solaris*)
9626   version_type=linux
9627   need_lib_prefix=no
9628   need_version=no
9629   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9630   soname_spec='${libname}${release}${shared_ext}$major'
9631   shlibpath_var=LD_LIBRARY_PATH
9632   shlibpath_overrides_runpath=yes
9633   hardcode_into_libs=yes
9634   # ldd complains unless libraries are executable
9635   postinstall_cmds='chmod +x $lib'
9636   ;;
9637
9638 sunos4*)
9639   version_type=sunos
9640   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9641   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9642   shlibpath_var=LD_LIBRARY_PATH
9643   shlibpath_overrides_runpath=yes
9644   if test "$with_gnu_ld" = yes; then
9645     need_lib_prefix=no
9646   fi
9647   need_version=yes
9648   ;;
9649
9650 sysv4 | sysv4.3*)
9651   version_type=linux
9652   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9653   soname_spec='${libname}${release}${shared_ext}$major'
9654   shlibpath_var=LD_LIBRARY_PATH
9655   case $host_vendor in
9656     sni)
9657       shlibpath_overrides_runpath=no
9658       need_lib_prefix=no
9659       export_dynamic_flag_spec='${wl}-Blargedynsym'
9660       runpath_var=LD_RUN_PATH
9661       ;;
9662     siemens)
9663       need_lib_prefix=no
9664       ;;
9665     motorola)
9666       need_lib_prefix=no
9667       need_version=no
9668       shlibpath_overrides_runpath=no
9669       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9670       ;;
9671   esac
9672   ;;
9673
9674 sysv4*MP*)
9675   if test -d /usr/nec ;then
9676     version_type=linux
9677     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9678     soname_spec='$libname${shared_ext}.$major'
9679     shlibpath_var=LD_LIBRARY_PATH
9680   fi
9681   ;;
9682
9683 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9684   version_type=freebsd-elf
9685   need_lib_prefix=no
9686   need_version=no
9687   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9688   soname_spec='${libname}${release}${shared_ext}$major'
9689   shlibpath_var=LD_LIBRARY_PATH
9690   hardcode_into_libs=yes
9691   if test "$with_gnu_ld" = yes; then
9692     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9693     shlibpath_overrides_runpath=no
9694   else
9695     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9696     shlibpath_overrides_runpath=yes
9697     case $host_os in
9698       sco3.2v5*)
9699         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9700         ;;
9701     esac
9702   fi
9703   sys_lib_dlsearch_path_spec='/usr/lib'
9704   ;;
9705
9706 uts4*)
9707   version_type=linux
9708   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9709   soname_spec='${libname}${release}${shared_ext}$major'
9710   shlibpath_var=LD_LIBRARY_PATH
9711   ;;
9712
9713 *)
9714   dynamic_linker=no
9715   ;;
9716 esac
9717 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9718 echo "${ECHO_T}$dynamic_linker" >&6; }
9719 test "$dynamic_linker" = no && can_build_shared=no
9720
9721 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9722 if test "$GCC" = yes; then
9723   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9724 fi
9725
9726 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9727 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9728 hardcode_action=
9729 if test -n "$hardcode_libdir_flag_spec" || \
9730    test -n "$runpath_var" || \
9731    test "X$hardcode_automatic" = "Xyes" ; then
9732
9733   # We can hardcode non-existant directories.
9734   if test "$hardcode_direct" != no &&
9735      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9736      # have to relink, otherwise we might link with an installed library
9737      # when we should be linking with a yet-to-be-installed one
9738      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9739      test "$hardcode_minus_L" != no; then
9740     # Linking always hardcodes the temporary library directory.
9741     hardcode_action=relink
9742   else
9743     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9744     hardcode_action=immediate
9745   fi
9746 else
9747   # We cannot hardcode anything, or else we can only hardcode existing
9748   # directories.
9749   hardcode_action=unsupported
9750 fi
9751 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9752 echo "${ECHO_T}$hardcode_action" >&6; }
9753
9754 if test "$hardcode_action" = relink; then
9755   # Fast installation is not supported
9756   enable_fast_install=no
9757 elif test "$shlibpath_overrides_runpath" = yes ||
9758      test "$enable_shared" = no; then
9759   # Fast installation is not necessary
9760   enable_fast_install=needless
9761 fi
9762
9763 striplib=
9764 old_striplib=
9765 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9766 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9767 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9768   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9769   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9770   { echo "$as_me:$LINENO: result: yes" >&5
9771 echo "${ECHO_T}yes" >&6; }
9772 else
9773 # FIXME - insert some real tests, host_os isn't really good enough
9774   case $host_os in
9775    darwin*)
9776        if test -n "$STRIP" ; then
9777          striplib="$STRIP -x"
9778          { echo "$as_me:$LINENO: result: yes" >&5
9779 echo "${ECHO_T}yes" >&6; }
9780        else
9781   { echo "$as_me:$LINENO: result: no" >&5
9782 echo "${ECHO_T}no" >&6; }
9783 fi
9784        ;;
9785    *)
9786   { echo "$as_me:$LINENO: result: no" >&5
9787 echo "${ECHO_T}no" >&6; }
9788     ;;
9789   esac
9790 fi
9791
9792 if test "x$enable_dlopen" != xyes; then
9793   enable_dlopen=unknown
9794   enable_dlopen_self=unknown
9795   enable_dlopen_self_static=unknown
9796 else
9797   lt_cv_dlopen=no
9798   lt_cv_dlopen_libs=
9799
9800   case $host_os in
9801   beos*)
9802     lt_cv_dlopen="load_add_on"
9803     lt_cv_dlopen_libs=
9804     lt_cv_dlopen_self=yes
9805     ;;
9806
9807   mingw* | pw32*)
9808     lt_cv_dlopen="LoadLibrary"
9809     lt_cv_dlopen_libs=
9810    ;;
9811
9812   cygwin*)
9813     lt_cv_dlopen="dlopen"
9814     lt_cv_dlopen_libs=
9815    ;;
9816
9817   darwin*)
9818   # if libdl is installed we need to link against it
9819     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9820 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9821 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9822   echo $ECHO_N "(cached) $ECHO_C" >&6
9823 else
9824   ac_check_lib_save_LIBS=$LIBS
9825 LIBS="-ldl  $LIBS"
9826 cat >conftest.$ac_ext <<_ACEOF
9827 /* confdefs.h.  */
9828 _ACEOF
9829 cat confdefs.h >>conftest.$ac_ext
9830 cat >>conftest.$ac_ext <<_ACEOF
9831 /* end confdefs.h.  */
9832
9833 /* Override any GCC internal prototype to avoid an error.
9834    Use char because int might match the return type of a GCC
9835    builtin and then its argument prototype would still apply.  */
9836 #ifdef __cplusplus
9837 extern "C"
9838 #endif
9839 char dlopen ();
9840 int
9841 main ()
9842 {
9843 return dlopen ();
9844   ;
9845   return 0;
9846 }
9847 _ACEOF
9848 rm -f conftest.$ac_objext conftest$ac_exeext
9849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9850   (eval $ac_link) 2>conftest.er1
9851   ac_status=$?
9852   grep -v '^ *+' conftest.er1 >conftest.err
9853   rm -f conftest.er1
9854   cat conftest.err >&5
9855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856   (exit $ac_status); } &&
9857          { ac_try='test -z "$ac_c_werror_flag"
9858                          || test ! -s conftest.err'
9859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9860   (eval $ac_try) 2>&5
9861   ac_status=$?
9862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863   (exit $ac_status); }; } &&
9864          { ac_try='test -s conftest$ac_exeext'
9865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9866   (eval $ac_try) 2>&5
9867   ac_status=$?
9868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869   (exit $ac_status); }; }; then
9870   ac_cv_lib_dl_dlopen=yes
9871 else
9872   echo "$as_me: failed program was:" >&5
9873 sed 's/^/| /' conftest.$ac_ext >&5
9874
9875         ac_cv_lib_dl_dlopen=no
9876 fi
9877
9878 rm -f conftest.err conftest.$ac_objext \
9879       conftest$ac_exeext conftest.$ac_ext
9880 LIBS=$ac_check_lib_save_LIBS
9881 fi
9882 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9883 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9884 if test $ac_cv_lib_dl_dlopen = yes; then
9885   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9886 else
9887
9888     lt_cv_dlopen="dyld"
9889     lt_cv_dlopen_libs=
9890     lt_cv_dlopen_self=yes
9891
9892 fi
9893
9894    ;;
9895
9896   *)
9897     { echo "$as_me:$LINENO: checking for shl_load" >&5
9898 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9899 if test "${ac_cv_func_shl_load+set}" = set; then
9900   echo $ECHO_N "(cached) $ECHO_C" >&6
9901 else
9902   cat >conftest.$ac_ext <<_ACEOF
9903 /* confdefs.h.  */
9904 _ACEOF
9905 cat confdefs.h >>conftest.$ac_ext
9906 cat >>conftest.$ac_ext <<_ACEOF
9907 /* end confdefs.h.  */
9908 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9909    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9910 #define shl_load innocuous_shl_load
9911
9912 /* System header to define __stub macros and hopefully few prototypes,
9913     which can conflict with char shl_load (); below.
9914     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9915     <limits.h> exists even on freestanding compilers.  */
9916
9917 #ifdef __STDC__
9918 # include <limits.h>
9919 #else
9920 # include <assert.h>
9921 #endif
9922
9923 #undef shl_load
9924
9925 /* Override any GCC internal prototype to avoid an error.
9926    Use char because int might match the return type of a GCC
9927    builtin and then its argument prototype would still apply.  */
9928 #ifdef __cplusplus
9929 extern "C"
9930 #endif
9931 char shl_load ();
9932 /* The GNU C library defines this for functions which it implements
9933     to always fail with ENOSYS.  Some functions are actually named
9934     something starting with __ and the normal name is an alias.  */
9935 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9936 choke me
9937 #endif
9938
9939 int
9940 main ()
9941 {
9942 return shl_load ();
9943   ;
9944   return 0;
9945 }
9946 _ACEOF
9947 rm -f conftest.$ac_objext conftest$ac_exeext
9948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9949   (eval $ac_link) 2>conftest.er1
9950   ac_status=$?
9951   grep -v '^ *+' conftest.er1 >conftest.err
9952   rm -f conftest.er1
9953   cat conftest.err >&5
9954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955   (exit $ac_status); } &&
9956          { ac_try='test -z "$ac_c_werror_flag"
9957                          || test ! -s conftest.err'
9958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9959   (eval $ac_try) 2>&5
9960   ac_status=$?
9961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962   (exit $ac_status); }; } &&
9963          { ac_try='test -s conftest$ac_exeext'
9964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9965   (eval $ac_try) 2>&5
9966   ac_status=$?
9967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968   (exit $ac_status); }; }; then
9969   ac_cv_func_shl_load=yes
9970 else
9971   echo "$as_me: failed program was:" >&5
9972 sed 's/^/| /' conftest.$ac_ext >&5
9973
9974         ac_cv_func_shl_load=no
9975 fi
9976
9977 rm -f conftest.err conftest.$ac_objext \
9978       conftest$ac_exeext conftest.$ac_ext
9979 fi
9980 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9981 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9982 if test $ac_cv_func_shl_load = yes; then
9983   lt_cv_dlopen="shl_load"
9984 else
9985   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9986 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9987 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9988   echo $ECHO_N "(cached) $ECHO_C" >&6
9989 else
9990   ac_check_lib_save_LIBS=$LIBS
9991 LIBS="-ldld  $LIBS"
9992 cat >conftest.$ac_ext <<_ACEOF
9993 /* confdefs.h.  */
9994 _ACEOF
9995 cat confdefs.h >>conftest.$ac_ext
9996 cat >>conftest.$ac_ext <<_ACEOF
9997 /* end confdefs.h.  */
9998
9999 /* Override any GCC internal prototype to avoid an error.
10000    Use char because int might match the return type of a GCC
10001    builtin and then its argument prototype would still apply.  */
10002 #ifdef __cplusplus
10003 extern "C"
10004 #endif
10005 char shl_load ();
10006 int
10007 main ()
10008 {
10009 return shl_load ();
10010   ;
10011   return 0;
10012 }
10013 _ACEOF
10014 rm -f conftest.$ac_objext conftest$ac_exeext
10015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10016   (eval $ac_link) 2>conftest.er1
10017   ac_status=$?
10018   grep -v '^ *+' conftest.er1 >conftest.err
10019   rm -f conftest.er1
10020   cat conftest.err >&5
10021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022   (exit $ac_status); } &&
10023          { ac_try='test -z "$ac_c_werror_flag"
10024                          || test ! -s conftest.err'
10025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10026   (eval $ac_try) 2>&5
10027   ac_status=$?
10028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029   (exit $ac_status); }; } &&
10030          { ac_try='test -s conftest$ac_exeext'
10031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10032   (eval $ac_try) 2>&5
10033   ac_status=$?
10034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035   (exit $ac_status); }; }; then
10036   ac_cv_lib_dld_shl_load=yes
10037 else
10038   echo "$as_me: failed program was:" >&5
10039 sed 's/^/| /' conftest.$ac_ext >&5
10040
10041         ac_cv_lib_dld_shl_load=no
10042 fi
10043
10044 rm -f conftest.err conftest.$ac_objext \
10045       conftest$ac_exeext conftest.$ac_ext
10046 LIBS=$ac_check_lib_save_LIBS
10047 fi
10048 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10049 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10050 if test $ac_cv_lib_dld_shl_load = yes; then
10051   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10052 else
10053   { echo "$as_me:$LINENO: checking for dlopen" >&5
10054 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10055 if test "${ac_cv_func_dlopen+set}" = set; then
10056   echo $ECHO_N "(cached) $ECHO_C" >&6
10057 else
10058   cat >conftest.$ac_ext <<_ACEOF
10059 /* confdefs.h.  */
10060 _ACEOF
10061 cat confdefs.h >>conftest.$ac_ext
10062 cat >>conftest.$ac_ext <<_ACEOF
10063 /* end confdefs.h.  */
10064 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10065    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10066 #define dlopen innocuous_dlopen
10067
10068 /* System header to define __stub macros and hopefully few prototypes,
10069     which can conflict with char dlopen (); below.
10070     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10071     <limits.h> exists even on freestanding compilers.  */
10072
10073 #ifdef __STDC__
10074 # include <limits.h>
10075 #else
10076 # include <assert.h>
10077 #endif
10078
10079 #undef dlopen
10080
10081 /* Override any GCC internal prototype to avoid an error.
10082    Use char because int might match the return type of a GCC
10083    builtin and then its argument prototype would still apply.  */
10084 #ifdef __cplusplus
10085 extern "C"
10086 #endif
10087 char dlopen ();
10088 /* The GNU C library defines this for functions which it implements
10089     to always fail with ENOSYS.  Some functions are actually named
10090     something starting with __ and the normal name is an alias.  */
10091 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10092 choke me
10093 #endif
10094
10095 int
10096 main ()
10097 {
10098 return dlopen ();
10099   ;
10100   return 0;
10101 }
10102 _ACEOF
10103 rm -f conftest.$ac_objext conftest$ac_exeext
10104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10105   (eval $ac_link) 2>conftest.er1
10106   ac_status=$?
10107   grep -v '^ *+' conftest.er1 >conftest.err
10108   rm -f conftest.er1
10109   cat conftest.err >&5
10110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111   (exit $ac_status); } &&
10112          { ac_try='test -z "$ac_c_werror_flag"
10113                          || test ! -s conftest.err'
10114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10115   (eval $ac_try) 2>&5
10116   ac_status=$?
10117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118   (exit $ac_status); }; } &&
10119          { ac_try='test -s conftest$ac_exeext'
10120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10121   (eval $ac_try) 2>&5
10122   ac_status=$?
10123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10124   (exit $ac_status); }; }; then
10125   ac_cv_func_dlopen=yes
10126 else
10127   echo "$as_me: failed program was:" >&5
10128 sed 's/^/| /' conftest.$ac_ext >&5
10129
10130         ac_cv_func_dlopen=no
10131 fi
10132
10133 rm -f conftest.err conftest.$ac_objext \
10134       conftest$ac_exeext conftest.$ac_ext
10135 fi
10136 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10137 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10138 if test $ac_cv_func_dlopen = yes; then
10139   lt_cv_dlopen="dlopen"
10140 else
10141   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10142 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10143 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10144   echo $ECHO_N "(cached) $ECHO_C" >&6
10145 else
10146   ac_check_lib_save_LIBS=$LIBS
10147 LIBS="-ldl  $LIBS"
10148 cat >conftest.$ac_ext <<_ACEOF
10149 /* confdefs.h.  */
10150 _ACEOF
10151 cat confdefs.h >>conftest.$ac_ext
10152 cat >>conftest.$ac_ext <<_ACEOF
10153 /* end confdefs.h.  */
10154
10155 /* Override any GCC internal prototype to avoid an error.
10156    Use char because int might match the return type of a GCC
10157    builtin and then its argument prototype would still apply.  */
10158 #ifdef __cplusplus
10159 extern "C"
10160 #endif
10161 char dlopen ();
10162 int
10163 main ()
10164 {
10165 return dlopen ();
10166   ;
10167   return 0;
10168 }
10169 _ACEOF
10170 rm -f conftest.$ac_objext conftest$ac_exeext
10171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10172   (eval $ac_link) 2>conftest.er1
10173   ac_status=$?
10174   grep -v '^ *+' conftest.er1 >conftest.err
10175   rm -f conftest.er1
10176   cat conftest.err >&5
10177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178   (exit $ac_status); } &&
10179          { ac_try='test -z "$ac_c_werror_flag"
10180                          || test ! -s conftest.err'
10181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10182   (eval $ac_try) 2>&5
10183   ac_status=$?
10184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185   (exit $ac_status); }; } &&
10186          { ac_try='test -s conftest$ac_exeext'
10187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10188   (eval $ac_try) 2>&5
10189   ac_status=$?
10190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191   (exit $ac_status); }; }; then
10192   ac_cv_lib_dl_dlopen=yes
10193 else
10194   echo "$as_me: failed program was:" >&5
10195 sed 's/^/| /' conftest.$ac_ext >&5
10196
10197         ac_cv_lib_dl_dlopen=no
10198 fi
10199
10200 rm -f conftest.err conftest.$ac_objext \
10201       conftest$ac_exeext conftest.$ac_ext
10202 LIBS=$ac_check_lib_save_LIBS
10203 fi
10204 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10205 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10206 if test $ac_cv_lib_dl_dlopen = yes; then
10207   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10208 else
10209   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10210 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10211 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10212   echo $ECHO_N "(cached) $ECHO_C" >&6
10213 else
10214   ac_check_lib_save_LIBS=$LIBS
10215 LIBS="-lsvld  $LIBS"
10216 cat >conftest.$ac_ext <<_ACEOF
10217 /* confdefs.h.  */
10218 _ACEOF
10219 cat confdefs.h >>conftest.$ac_ext
10220 cat >>conftest.$ac_ext <<_ACEOF
10221 /* end confdefs.h.  */
10222
10223 /* Override any GCC internal prototype to avoid an error.
10224    Use char because int might match the return type of a GCC
10225    builtin and then its argument prototype would still apply.  */
10226 #ifdef __cplusplus
10227 extern "C"
10228 #endif
10229 char dlopen ();
10230 int
10231 main ()
10232 {
10233 return dlopen ();
10234   ;
10235   return 0;
10236 }
10237 _ACEOF
10238 rm -f conftest.$ac_objext conftest$ac_exeext
10239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10240   (eval $ac_link) 2>conftest.er1
10241   ac_status=$?
10242   grep -v '^ *+' conftest.er1 >conftest.err
10243   rm -f conftest.er1
10244   cat conftest.err >&5
10245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246   (exit $ac_status); } &&
10247          { ac_try='test -z "$ac_c_werror_flag"
10248                          || test ! -s conftest.err'
10249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10250   (eval $ac_try) 2>&5
10251   ac_status=$?
10252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253   (exit $ac_status); }; } &&
10254          { ac_try='test -s conftest$ac_exeext'
10255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10256   (eval $ac_try) 2>&5
10257   ac_status=$?
10258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259   (exit $ac_status); }; }; then
10260   ac_cv_lib_svld_dlopen=yes
10261 else
10262   echo "$as_me: failed program was:" >&5
10263 sed 's/^/| /' conftest.$ac_ext >&5
10264
10265         ac_cv_lib_svld_dlopen=no
10266 fi
10267
10268 rm -f conftest.err conftest.$ac_objext \
10269       conftest$ac_exeext conftest.$ac_ext
10270 LIBS=$ac_check_lib_save_LIBS
10271 fi
10272 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10273 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10274 if test $ac_cv_lib_svld_dlopen = yes; then
10275   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10276 else
10277   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10278 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10279 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10280   echo $ECHO_N "(cached) $ECHO_C" >&6
10281 else
10282   ac_check_lib_save_LIBS=$LIBS
10283 LIBS="-ldld  $LIBS"
10284 cat >conftest.$ac_ext <<_ACEOF
10285 /* confdefs.h.  */
10286 _ACEOF
10287 cat confdefs.h >>conftest.$ac_ext
10288 cat >>conftest.$ac_ext <<_ACEOF
10289 /* end confdefs.h.  */
10290
10291 /* Override any GCC internal prototype to avoid an error.
10292    Use char because int might match the return type of a GCC
10293    builtin and then its argument prototype would still apply.  */
10294 #ifdef __cplusplus
10295 extern "C"
10296 #endif
10297 char dld_link ();
10298 int
10299 main ()
10300 {
10301 return dld_link ();
10302   ;
10303   return 0;
10304 }
10305 _ACEOF
10306 rm -f conftest.$ac_objext conftest$ac_exeext
10307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10308   (eval $ac_link) 2>conftest.er1
10309   ac_status=$?
10310   grep -v '^ *+' conftest.er1 >conftest.err
10311   rm -f conftest.er1
10312   cat conftest.err >&5
10313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314   (exit $ac_status); } &&
10315          { ac_try='test -z "$ac_c_werror_flag"
10316                          || test ! -s conftest.err'
10317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10318   (eval $ac_try) 2>&5
10319   ac_status=$?
10320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321   (exit $ac_status); }; } &&
10322          { ac_try='test -s conftest$ac_exeext'
10323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10324   (eval $ac_try) 2>&5
10325   ac_status=$?
10326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327   (exit $ac_status); }; }; then
10328   ac_cv_lib_dld_dld_link=yes
10329 else
10330   echo "$as_me: failed program was:" >&5
10331 sed 's/^/| /' conftest.$ac_ext >&5
10332
10333         ac_cv_lib_dld_dld_link=no
10334 fi
10335
10336 rm -f conftest.err conftest.$ac_objext \
10337       conftest$ac_exeext conftest.$ac_ext
10338 LIBS=$ac_check_lib_save_LIBS
10339 fi
10340 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10341 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10342 if test $ac_cv_lib_dld_dld_link = yes; then
10343   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10344 fi
10345
10346
10347 fi
10348
10349
10350 fi
10351
10352
10353 fi
10354
10355
10356 fi
10357
10358
10359 fi
10360
10361     ;;
10362   esac
10363
10364   if test "x$lt_cv_dlopen" != xno; then
10365     enable_dlopen=yes
10366   else
10367     enable_dlopen=no
10368   fi
10369
10370   case $lt_cv_dlopen in
10371   dlopen)
10372     save_CPPFLAGS="$CPPFLAGS"
10373     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10374
10375     save_LDFLAGS="$LDFLAGS"
10376     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10377
10378     save_LIBS="$LIBS"
10379     LIBS="$lt_cv_dlopen_libs $LIBS"
10380
10381     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10382 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10383 if test "${lt_cv_dlopen_self+set}" = set; then
10384   echo $ECHO_N "(cached) $ECHO_C" >&6
10385 else
10386           if test "$cross_compiling" = yes; then :
10387   lt_cv_dlopen_self=cross
10388 else
10389   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10390   lt_status=$lt_dlunknown
10391   cat > conftest.$ac_ext <<EOF
10392 #line 10392 "configure"
10393 #include "confdefs.h"
10394
10395 #if HAVE_DLFCN_H
10396 #include <dlfcn.h>
10397 #endif
10398
10399 #include <stdio.h>
10400
10401 #ifdef RTLD_GLOBAL
10402 #  define LT_DLGLOBAL           RTLD_GLOBAL
10403 #else
10404 #  ifdef DL_GLOBAL
10405 #    define LT_DLGLOBAL         DL_GLOBAL
10406 #  else
10407 #    define LT_DLGLOBAL         0
10408 #  endif
10409 #endif
10410
10411 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10412    find out it does not work in some platform. */
10413 #ifndef LT_DLLAZY_OR_NOW
10414 #  ifdef RTLD_LAZY
10415 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10416 #  else
10417 #    ifdef DL_LAZY
10418 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10419 #    else
10420 #      ifdef RTLD_NOW
10421 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10422 #      else
10423 #        ifdef DL_NOW
10424 #          define LT_DLLAZY_OR_NOW      DL_NOW
10425 #        else
10426 #          define LT_DLLAZY_OR_NOW      0
10427 #        endif
10428 #      endif
10429 #    endif
10430 #  endif
10431 #endif
10432
10433 #ifdef __cplusplus
10434 extern "C" void exit (int);
10435 #endif
10436
10437 void fnord() { int i=42;}
10438 int main ()
10439 {
10440   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10441   int status = $lt_dlunknown;
10442
10443   if (self)
10444     {
10445       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10446       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10447       /* dlclose (self); */
10448     }
10449   else
10450     puts (dlerror ());
10451
10452     exit (status);
10453 }
10454 EOF
10455   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10456   (eval $ac_link) 2>&5
10457   ac_status=$?
10458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10460     (./conftest; exit; ) >&5 2>/dev/null
10461     lt_status=$?
10462     case x$lt_status in
10463       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10464       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10465       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10466     esac
10467   else :
10468     # compilation failed
10469     lt_cv_dlopen_self=no
10470   fi
10471 fi
10472 rm -fr conftest*
10473
10474
10475 fi
10476 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10477 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10478
10479     if test "x$lt_cv_dlopen_self" = xyes; then
10480       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10481       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10482 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10483 if test "${lt_cv_dlopen_self_static+set}" = set; then
10484   echo $ECHO_N "(cached) $ECHO_C" >&6
10485 else
10486           if test "$cross_compiling" = yes; then :
10487   lt_cv_dlopen_self_static=cross
10488 else
10489   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10490   lt_status=$lt_dlunknown
10491   cat > conftest.$ac_ext <<EOF
10492 #line 10492 "configure"
10493 #include "confdefs.h"
10494
10495 #if HAVE_DLFCN_H
10496 #include <dlfcn.h>
10497 #endif
10498
10499 #include <stdio.h>
10500
10501 #ifdef RTLD_GLOBAL
10502 #  define LT_DLGLOBAL           RTLD_GLOBAL
10503 #else
10504 #  ifdef DL_GLOBAL
10505 #    define LT_DLGLOBAL         DL_GLOBAL
10506 #  else
10507 #    define LT_DLGLOBAL         0
10508 #  endif
10509 #endif
10510
10511 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10512    find out it does not work in some platform. */
10513 #ifndef LT_DLLAZY_OR_NOW
10514 #  ifdef RTLD_LAZY
10515 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10516 #  else
10517 #    ifdef DL_LAZY
10518 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10519 #    else
10520 #      ifdef RTLD_NOW
10521 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10522 #      else
10523 #        ifdef DL_NOW
10524 #          define LT_DLLAZY_OR_NOW      DL_NOW
10525 #        else
10526 #          define LT_DLLAZY_OR_NOW      0
10527 #        endif
10528 #      endif
10529 #    endif
10530 #  endif
10531 #endif
10532
10533 #ifdef __cplusplus
10534 extern "C" void exit (int);
10535 #endif
10536
10537 void fnord() { int i=42;}
10538 int main ()
10539 {
10540   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10541   int status = $lt_dlunknown;
10542
10543   if (self)
10544     {
10545       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10546       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10547       /* dlclose (self); */
10548     }
10549   else
10550     puts (dlerror ());
10551
10552     exit (status);
10553 }
10554 EOF
10555   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10556   (eval $ac_link) 2>&5
10557   ac_status=$?
10558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10560     (./conftest; exit; ) >&5 2>/dev/null
10561     lt_status=$?
10562     case x$lt_status in
10563       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10564       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10565       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10566     esac
10567   else :
10568     # compilation failed
10569     lt_cv_dlopen_self_static=no
10570   fi
10571 fi
10572 rm -fr conftest*
10573
10574
10575 fi
10576 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10577 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10578     fi
10579
10580     CPPFLAGS="$save_CPPFLAGS"
10581     LDFLAGS="$save_LDFLAGS"
10582     LIBS="$save_LIBS"
10583     ;;
10584   esac
10585
10586   case $lt_cv_dlopen_self in
10587   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10588   *) enable_dlopen_self=unknown ;;
10589   esac
10590
10591   case $lt_cv_dlopen_self_static in
10592   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10593   *) enable_dlopen_self_static=unknown ;;
10594   esac
10595 fi
10596
10597
10598 # Report which library types will actually be built
10599 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10600 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10601 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10602 echo "${ECHO_T}$can_build_shared" >&6; }
10603
10604 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10605 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10606 test "$can_build_shared" = "no" && enable_shared=no
10607
10608 # On AIX, shared libraries and static libraries use the same namespace, and
10609 # are all built from PIC.
10610 case $host_os in
10611 aix3*)
10612   test "$enable_shared" = yes && enable_static=no
10613   if test -n "$RANLIB"; then
10614     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10615     postinstall_cmds='$RANLIB $lib'
10616   fi
10617   ;;
10618
10619 aix4* | aix5*)
10620   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10621     test "$enable_shared" = yes && enable_static=no
10622   fi
10623     ;;
10624 esac
10625 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10626 echo "${ECHO_T}$enable_shared" >&6; }
10627
10628 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10629 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10630 # Make sure either enable_shared or enable_static is yes.
10631 test "$enable_shared" = yes || enable_static=yes
10632 { echo "$as_me:$LINENO: result: $enable_static" >&5
10633 echo "${ECHO_T}$enable_static" >&6; }
10634
10635 # The else clause should only fire when bootstrapping the
10636 # libtool distribution, otherwise you forgot to ship ltmain.sh
10637 # with your package, and you will get complaints that there are
10638 # no rules to generate ltmain.sh.
10639 if test -f "$ltmain"; then
10640   # See if we are running on zsh, and set the options which allow our commands through
10641   # without removal of \ escapes.
10642   if test -n "${ZSH_VERSION+set}" ; then
10643     setopt NO_GLOB_SUBST
10644   fi
10645   # Now quote all the things that may contain metacharacters while being
10646   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10647   # variables and quote the copies for generation of the libtool script.
10648   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10649     SED SHELL STRIP \
10650     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10651     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10652     deplibs_check_method reload_flag reload_cmds need_locks \
10653     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10654     lt_cv_sys_global_symbol_to_c_name_address \
10655     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10656     old_postinstall_cmds old_postuninstall_cmds \
10657     compiler \
10658     CC \
10659     LD \
10660     lt_prog_compiler_wl \
10661     lt_prog_compiler_pic \
10662     lt_prog_compiler_static \
10663     lt_prog_compiler_no_builtin_flag \
10664     export_dynamic_flag_spec \
10665     thread_safe_flag_spec \
10666     whole_archive_flag_spec \
10667     enable_shared_with_static_runtimes \
10668     old_archive_cmds \
10669     old_archive_from_new_cmds \
10670     predep_objects \
10671     postdep_objects \
10672     predeps \
10673     postdeps \
10674     compiler_lib_search_path \
10675     archive_cmds \
10676     archive_expsym_cmds \
10677     postinstall_cmds \
10678     postuninstall_cmds \
10679     old_archive_from_expsyms_cmds \
10680     allow_undefined_flag \
10681     no_undefined_flag \
10682     export_symbols_cmds \
10683     hardcode_libdir_flag_spec \
10684     hardcode_libdir_flag_spec_ld \
10685     hardcode_libdir_separator \
10686     hardcode_automatic \
10687     module_cmds \
10688     module_expsym_cmds \
10689     lt_cv_prog_compiler_c_o \
10690     exclude_expsyms \
10691     include_expsyms; do
10692
10693     case $var in
10694     old_archive_cmds | \
10695     old_archive_from_new_cmds | \
10696     archive_cmds | \
10697     archive_expsym_cmds | \
10698     module_cmds | \
10699     module_expsym_cmds | \
10700     old_archive_from_expsyms_cmds | \
10701     export_symbols_cmds | \
10702     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10703     postinstall_cmds | postuninstall_cmds | \
10704     old_postinstall_cmds | old_postuninstall_cmds | \
10705     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10706       # Double-quote double-evaled strings.
10707       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10708       ;;
10709     *)
10710       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10711       ;;
10712     esac
10713   done
10714
10715   case $lt_echo in
10716   *'\$0 --fallback-echo"')
10717     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10718     ;;
10719   esac
10720
10721 cfgfile="${ofile}T"
10722   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10723   $rm -f "$cfgfile"
10724   { echo "$as_me:$LINENO: creating $ofile" >&5
10725 echo "$as_me: creating $ofile" >&6;}
10726
10727   cat <<__EOF__ >> "$cfgfile"
10728 #! $SHELL
10729
10730 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10731 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10732 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10733 #
10734 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10735 # Free Software Foundation, Inc.
10736 #
10737 # This file is part of GNU Libtool:
10738 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10739 #
10740 # This program is free software; you can redistribute it and/or modify
10741 # it under the terms of the GNU General Public License as published by
10742 # the Free Software Foundation; either version 2 of the License, or
10743 # (at your option) any later version.
10744 #
10745 # This program is distributed in the hope that it will be useful, but
10746 # WITHOUT ANY WARRANTY; without even the implied warranty of
10747 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10748 # General Public License for more details.
10749 #
10750 # You should have received a copy of the GNU General Public License
10751 # along with this program; if not, write to the Free Software
10752 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10753 #
10754 # As a special exception to the GNU General Public License, if you
10755 # distribute this file as part of a program that contains a
10756 # configuration script generated by Autoconf, you may include it under
10757 # the same distribution terms that you use for the rest of that program.
10758
10759 # A sed program that does not truncate output.
10760 SED=$lt_SED
10761
10762 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10763 Xsed="$SED -e 1s/^X//"
10764
10765 # The HP-UX ksh and POSIX shell print the target directory to stdout
10766 # if CDPATH is set.
10767 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10768
10769 # The names of the tagged configurations supported by this script.
10770 available_tags=
10771
10772 # ### BEGIN LIBTOOL CONFIG
10773
10774 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10775
10776 # Shell to use when invoking shell scripts.
10777 SHELL=$lt_SHELL
10778
10779 # Whether or not to build shared libraries.
10780 build_libtool_libs=$enable_shared
10781
10782 # Whether or not to build static libraries.
10783 build_old_libs=$enable_static
10784
10785 # Whether or not to add -lc for building shared libraries.
10786 build_libtool_need_lc=$archive_cmds_need_lc
10787
10788 # Whether or not to disallow shared libs when runtime libs are static
10789 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10790
10791 # Whether or not to optimize for fast installation.
10792 fast_install=$enable_fast_install
10793
10794 # The host system.
10795 host_alias=$host_alias
10796 host=$host
10797 host_os=$host_os
10798
10799 # The build system.
10800 build_alias=$build_alias
10801 build=$build
10802 build_os=$build_os
10803
10804 # An echo program that does not interpret backslashes.
10805 echo=$lt_echo
10806
10807 # The archiver.
10808 AR=$lt_AR
10809 AR_FLAGS=$lt_AR_FLAGS
10810
10811 # A C compiler.
10812 LTCC=$lt_LTCC
10813
10814 # LTCC compiler flags.
10815 LTCFLAGS=$lt_LTCFLAGS
10816
10817 # A language-specific compiler.
10818 CC=$lt_compiler
10819
10820 # Is the compiler the GNU C compiler?
10821 with_gcc=$GCC
10822
10823 # An ERE matcher.
10824 EGREP=$lt_EGREP
10825
10826 # The linker used to build libraries.
10827 LD=$lt_LD
10828
10829 # Whether we need hard or soft links.
10830 LN_S=$lt_LN_S
10831
10832 # A BSD-compatible nm program.
10833 NM=$lt_NM
10834
10835 # A symbol stripping program
10836 STRIP=$lt_STRIP
10837
10838 # Used to examine libraries when file_magic_cmd begins "file"
10839 MAGIC_CMD=$MAGIC_CMD
10840
10841 # Used on cygwin: DLL creation program.
10842 DLLTOOL="$DLLTOOL"
10843
10844 # Used on cygwin: object dumper.
10845 OBJDUMP="$OBJDUMP"
10846
10847 # Used on cygwin: assembler.
10848 AS="$AS"
10849
10850 # The name of the directory that contains temporary libtool files.
10851 objdir=$objdir
10852
10853 # How to create reloadable object files.
10854 reload_flag=$lt_reload_flag
10855 reload_cmds=$lt_reload_cmds
10856
10857 # How to pass a linker flag through the compiler.
10858 wl=$lt_lt_prog_compiler_wl
10859
10860 # Object file suffix (normally "o").
10861 objext="$ac_objext"
10862
10863 # Old archive suffix (normally "a").
10864 libext="$libext"
10865
10866 # Shared library suffix (normally ".so").
10867 shrext_cmds='$shrext_cmds'
10868
10869 # Executable file suffix (normally "").
10870 exeext="$exeext"
10871
10872 # Additional compiler flags for building library objects.
10873 pic_flag=$lt_lt_prog_compiler_pic
10874 pic_mode=$pic_mode
10875
10876 # What is the maximum length of a command?
10877 max_cmd_len=$lt_cv_sys_max_cmd_len
10878
10879 # Does compiler simultaneously support -c and -o options?
10880 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10881
10882 # Must we lock files when doing compilation?
10883 need_locks=$lt_need_locks
10884
10885 # Do we need the lib prefix for modules?
10886 need_lib_prefix=$need_lib_prefix
10887
10888 # Do we need a version for libraries?
10889 need_version=$need_version
10890
10891 # Whether dlopen is supported.
10892 dlopen_support=$enable_dlopen
10893
10894 # Whether dlopen of programs is supported.
10895 dlopen_self=$enable_dlopen_self
10896
10897 # Whether dlopen of statically linked programs is supported.
10898 dlopen_self_static=$enable_dlopen_self_static
10899
10900 # Compiler flag to prevent dynamic linking.
10901 link_static_flag=$lt_lt_prog_compiler_static
10902
10903 # Compiler flag to turn off builtin functions.
10904 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10905
10906 # Compiler flag to allow reflexive dlopens.
10907 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10908
10909 # Compiler flag to generate shared objects directly from archives.
10910 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10911
10912 # Compiler flag to generate thread-safe objects.
10913 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10914
10915 # Library versioning type.
10916 version_type=$version_type
10917
10918 # Format of library name prefix.
10919 libname_spec=$lt_libname_spec
10920
10921 # List of archive names.  First name is the real one, the rest are links.
10922 # The last name is the one that the linker finds with -lNAME.
10923 library_names_spec=$lt_library_names_spec
10924
10925 # The coded name of the library, if different from the real name.
10926 soname_spec=$lt_soname_spec
10927
10928 # Commands used to build and install an old-style archive.
10929 RANLIB=$lt_RANLIB
10930 old_archive_cmds=$lt_old_archive_cmds
10931 old_postinstall_cmds=$lt_old_postinstall_cmds
10932 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10933
10934 # Create an old-style archive from a shared archive.
10935 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10936
10937 # Create a temporary old-style archive to link instead of a shared archive.
10938 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10939
10940 # Commands used to build and install a shared archive.
10941 archive_cmds=$lt_archive_cmds
10942 archive_expsym_cmds=$lt_archive_expsym_cmds
10943 postinstall_cmds=$lt_postinstall_cmds
10944 postuninstall_cmds=$lt_postuninstall_cmds
10945
10946 # Commands used to build a loadable module (assumed same as above if empty)
10947 module_cmds=$lt_module_cmds
10948 module_expsym_cmds=$lt_module_expsym_cmds
10949
10950 # Commands to strip libraries.
10951 old_striplib=$lt_old_striplib
10952 striplib=$lt_striplib
10953
10954 # Dependencies to place before the objects being linked to create a
10955 # shared library.
10956 predep_objects=$lt_predep_objects
10957
10958 # Dependencies to place after the objects being linked to create a
10959 # shared library.
10960 postdep_objects=$lt_postdep_objects
10961
10962 # Dependencies to place before the objects being linked to create a
10963 # shared library.
10964 predeps=$lt_predeps
10965
10966 # Dependencies to place after the objects being linked to create a
10967 # shared library.
10968 postdeps=$lt_postdeps
10969
10970 # The library search path used internally by the compiler when linking
10971 # a shared library.
10972 compiler_lib_search_path=$lt_compiler_lib_search_path
10973
10974 # Method to check whether dependent libraries are shared objects.
10975 deplibs_check_method=$lt_deplibs_check_method
10976
10977 # Command to use when deplibs_check_method == file_magic.
10978 file_magic_cmd=$lt_file_magic_cmd
10979
10980 # Flag that allows shared libraries with undefined symbols to be built.
10981 allow_undefined_flag=$lt_allow_undefined_flag
10982
10983 # Flag that forces no undefined symbols.
10984 no_undefined_flag=$lt_no_undefined_flag
10985
10986 # Commands used to finish a libtool library installation in a directory.
10987 finish_cmds=$lt_finish_cmds
10988
10989 # Same as above, but a single script fragment to be evaled but not shown.
10990 finish_eval=$lt_finish_eval
10991
10992 # Take the output of nm and produce a listing of raw symbols and C names.
10993 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10994
10995 # Transform the output of nm in a proper C declaration
10996 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10997
10998 # Transform the output of nm in a C name address pair
10999 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11000
11001 # This is the shared library runtime path variable.
11002 runpath_var=$runpath_var
11003
11004 # This is the shared library path variable.
11005 shlibpath_var=$shlibpath_var
11006
11007 # Is shlibpath searched before the hard-coded library search path?
11008 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11009
11010 # How to hardcode a shared library path into an executable.
11011 hardcode_action=$hardcode_action
11012
11013 # Whether we should hardcode library paths into libraries.
11014 hardcode_into_libs=$hardcode_into_libs
11015
11016 # Flag to hardcode \$libdir into a binary during linking.
11017 # This must work even if \$libdir does not exist.
11018 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11019
11020 # If ld is used when linking, flag to hardcode \$libdir into
11021 # a binary during linking. This must work even if \$libdir does
11022 # not exist.
11023 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11024
11025 # Whether we need a single -rpath flag with a separated argument.
11026 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11027
11028 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11029 # resulting binary.
11030 hardcode_direct=$hardcode_direct
11031
11032 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11033 # resulting binary.
11034 hardcode_minus_L=$hardcode_minus_L
11035
11036 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11037 # the resulting binary.
11038 hardcode_shlibpath_var=$hardcode_shlibpath_var
11039
11040 # Set to yes if building a shared library automatically hardcodes DIR into the library
11041 # and all subsequent libraries and executables linked against it.
11042 hardcode_automatic=$hardcode_automatic
11043
11044 # Variables whose values should be saved in libtool wrapper scripts and
11045 # restored at relink time.
11046 variables_saved_for_relink="$variables_saved_for_relink"
11047
11048 # Whether libtool must link a program against all its dependency libraries.
11049 link_all_deplibs=$link_all_deplibs
11050
11051 # Compile-time system search path for libraries
11052 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11053
11054 # Run-time system search path for libraries
11055 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11056
11057 # Fix the shell variable \$srcfile for the compiler.
11058 fix_srcfile_path="$fix_srcfile_path"
11059
11060 # Set to yes if exported symbols are required.
11061 always_export_symbols=$always_export_symbols
11062
11063 # The commands to list exported symbols.
11064 export_symbols_cmds=$lt_export_symbols_cmds
11065
11066 # The commands to extract the exported symbol list from a shared archive.
11067 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11068
11069 # Symbols that should not be listed in the preloaded symbols.
11070 exclude_expsyms=$lt_exclude_expsyms
11071
11072 # Symbols that must always be exported.
11073 include_expsyms=$lt_include_expsyms
11074
11075 # ### END LIBTOOL CONFIG
11076
11077 __EOF__
11078
11079
11080   case $host_os in
11081   aix3*)
11082     cat <<\EOF >> "$cfgfile"
11083
11084 # AIX sometimes has problems with the GCC collect2 program.  For some
11085 # reason, if we set the COLLECT_NAMES environment variable, the problems
11086 # vanish in a puff of smoke.
11087 if test "X${COLLECT_NAMES+set}" != Xset; then
11088   COLLECT_NAMES=
11089   export COLLECT_NAMES
11090 fi
11091 EOF
11092     ;;
11093   esac
11094
11095   # We use sed instead of cat because bash on DJGPP gets confused if
11096   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11097   # text mode, it properly converts lines to CR/LF.  This bash problem
11098   # is reportedly fixed, but why not run on old versions too?
11099   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11100
11101   mv -f "$cfgfile" "$ofile" || \
11102     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11103   chmod +x "$ofile"
11104
11105 else
11106   # If there is no Makefile yet, we rely on a make rule to execute
11107   # `config.status --recheck' to rerun these tests and create the
11108   # libtool script then.
11109   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11110   if test -f "$ltmain_in"; then
11111     test -f Makefile && make "$ltmain"
11112   fi
11113 fi
11114
11115
11116 ac_ext=c
11117 ac_cpp='$CPP $CPPFLAGS'
11118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11121
11122 CC="$lt_save_CC"
11123
11124
11125 # Check whether --with-tags was given.
11126 if test "${with_tags+set}" = set; then
11127   withval=$with_tags; tagnames="$withval"
11128 fi
11129
11130
11131 if test -f "$ltmain" && test -n "$tagnames"; then
11132   if test ! -f "${ofile}"; then
11133     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11134 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11135   fi
11136
11137   if test -z "$LTCC"; then
11138     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11139     if test -z "$LTCC"; then
11140       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11141 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11142     else
11143       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11144 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11145     fi
11146   fi
11147   if test -z "$LTCFLAGS"; then
11148     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11149   fi
11150
11151   # Extract list of available tagged configurations in $ofile.
11152   # Note that this assumes the entire list is on one line.
11153   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11154
11155   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11156   for tagname in $tagnames; do
11157     IFS="$lt_save_ifs"
11158     # Check whether tagname contains only valid characters
11159     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11160     "") ;;
11161     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11162 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11163    { (exit 1); exit 1; }; }
11164         ;;
11165     esac
11166
11167     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11168     then
11169       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11170 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11171    { (exit 1); exit 1; }; }
11172     fi
11173
11174     # Update the list of available tags.
11175     if test -n "$tagname"; then
11176       echo appending configuration tag \"$tagname\" to $ofile
11177
11178       case $tagname in
11179       CXX)
11180         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11181             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11182             (test "X$CXX" != "Xg++"))) ; then
11183           ac_ext=cpp
11184 ac_cpp='$CXXCPP $CPPFLAGS'
11185 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11186 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11187 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11188
11189
11190
11191
11192 archive_cmds_need_lc_CXX=no
11193 allow_undefined_flag_CXX=
11194 always_export_symbols_CXX=no
11195 archive_expsym_cmds_CXX=
11196 export_dynamic_flag_spec_CXX=
11197 hardcode_direct_CXX=no
11198 hardcode_libdir_flag_spec_CXX=
11199 hardcode_libdir_flag_spec_ld_CXX=
11200 hardcode_libdir_separator_CXX=
11201 hardcode_minus_L_CXX=no
11202 hardcode_shlibpath_var_CXX=unsupported
11203 hardcode_automatic_CXX=no
11204 module_cmds_CXX=
11205 module_expsym_cmds_CXX=
11206 link_all_deplibs_CXX=unknown
11207 old_archive_cmds_CXX=$old_archive_cmds
11208 no_undefined_flag_CXX=
11209 whole_archive_flag_spec_CXX=
11210 enable_shared_with_static_runtimes_CXX=no
11211
11212 # Dependencies to place before and after the object being linked:
11213 predep_objects_CXX=
11214 postdep_objects_CXX=
11215 predeps_CXX=
11216 postdeps_CXX=
11217 compiler_lib_search_path_CXX=
11218
11219 # Source file extension for C++ test sources.
11220 ac_ext=cpp
11221
11222 # Object file extension for compiled C++ test sources.
11223 objext=o
11224 objext_CXX=$objext
11225
11226 # Code to be used in simple compile tests
11227 lt_simple_compile_test_code="int some_variable = 0;\n"
11228
11229 # Code to be used in simple link tests
11230 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11231
11232 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11233
11234 # If no C compiler was specified, use CC.
11235 LTCC=${LTCC-"$CC"}
11236
11237 # If no C compiler flags were specified, use CFLAGS.
11238 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11239
11240 # Allow CC to be a program name with arguments.
11241 compiler=$CC
11242
11243
11244 # save warnings/boilerplate of simple test code
11245 ac_outfile=conftest.$ac_objext
11246 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11247 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11248 _lt_compiler_boilerplate=`cat conftest.err`
11249 $rm conftest*
11250
11251 ac_outfile=conftest.$ac_objext
11252 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11253 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11254 _lt_linker_boilerplate=`cat conftest.err`
11255 $rm conftest*
11256
11257
11258 # Allow CC to be a program name with arguments.
11259 lt_save_CC=$CC
11260 lt_save_LD=$LD
11261 lt_save_GCC=$GCC
11262 GCC=$GXX
11263 lt_save_with_gnu_ld=$with_gnu_ld
11264 lt_save_path_LD=$lt_cv_path_LD
11265 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11266   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11267 else
11268   $as_unset lt_cv_prog_gnu_ld
11269 fi
11270 if test -n "${lt_cv_path_LDCXX+set}"; then
11271   lt_cv_path_LD=$lt_cv_path_LDCXX
11272 else
11273   $as_unset lt_cv_path_LD
11274 fi
11275 test -z "${LDCXX+set}" || LD=$LDCXX
11276 CC=${CXX-"c++"}
11277 compiler=$CC
11278 compiler_CXX=$CC
11279 for cc_temp in $compiler""; do
11280   case $cc_temp in
11281     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11282     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11283     \-*) ;;
11284     *) break;;
11285   esac
11286 done
11287 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11288
11289
11290 # We don't want -fno-exception wen compiling C++ code, so set the
11291 # no_builtin_flag separately
11292 if test "$GXX" = yes; then
11293   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11294 else
11295   lt_prog_compiler_no_builtin_flag_CXX=
11296 fi
11297
11298 if test "$GXX" = yes; then
11299   # Set up default GNU C++ configuration
11300
11301
11302 # Check whether --with-gnu-ld was given.
11303 if test "${with_gnu_ld+set}" = set; then
11304   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11305 else
11306   with_gnu_ld=no
11307 fi
11308
11309 ac_prog=ld
11310 if test "$GCC" = yes; then
11311   # Check if gcc -print-prog-name=ld gives a path.
11312   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11313 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11314   case $host in
11315   *-*-mingw*)
11316     # gcc leaves a trailing carriage return which upsets mingw
11317     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11318   *)
11319     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11320   esac
11321   case $ac_prog in
11322     # Accept absolute paths.
11323     [\\/]* | ?:[\\/]*)
11324       re_direlt='/[^/][^/]*/\.\./'
11325       # Canonicalize the pathname of ld
11326       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11327       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11328         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11329       done
11330       test -z "$LD" && LD="$ac_prog"
11331       ;;
11332   "")
11333     # If it fails, then pretend we aren't using GCC.
11334     ac_prog=ld
11335     ;;
11336   *)
11337     # If it is relative, then search for the first ld in PATH.
11338     with_gnu_ld=unknown
11339     ;;
11340   esac
11341 elif test "$with_gnu_ld" = yes; then
11342   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11343 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11344 else
11345   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11346 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11347 fi
11348 if test "${lt_cv_path_LD+set}" = set; then
11349   echo $ECHO_N "(cached) $ECHO_C" >&6
11350 else
11351   if test -z "$LD"; then
11352   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11353   for ac_dir in $PATH; do
11354     IFS="$lt_save_ifs"
11355     test -z "$ac_dir" && ac_dir=.
11356     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11357       lt_cv_path_LD="$ac_dir/$ac_prog"
11358       # Check to see if the program is GNU ld.  I'd rather use --version,
11359       # but apparently some variants of GNU ld only accept -v.
11360       # Break only if it was the GNU/non-GNU ld that we prefer.
11361       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11362       *GNU* | *'with BFD'*)
11363         test "$with_gnu_ld" != no && break
11364         ;;
11365       *)
11366         test "$with_gnu_ld" != yes && break
11367         ;;
11368       esac
11369     fi
11370   done
11371   IFS="$lt_save_ifs"
11372 else
11373   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11374 fi
11375 fi
11376
11377 LD="$lt_cv_path_LD"
11378 if test -n "$LD"; then
11379   { echo "$as_me:$LINENO: result: $LD" >&5
11380 echo "${ECHO_T}$LD" >&6; }
11381 else
11382   { echo "$as_me:$LINENO: result: no" >&5
11383 echo "${ECHO_T}no" >&6; }
11384 fi
11385 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11386 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11387    { (exit 1); exit 1; }; }
11388 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11389 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11390 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11391   echo $ECHO_N "(cached) $ECHO_C" >&6
11392 else
11393   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11394 case `$LD -v 2>&1 </dev/null` in
11395 *GNU* | *'with BFD'*)
11396   lt_cv_prog_gnu_ld=yes
11397   ;;
11398 *)
11399   lt_cv_prog_gnu_ld=no
11400   ;;
11401 esac
11402 fi
11403 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11404 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11405 with_gnu_ld=$lt_cv_prog_gnu_ld
11406
11407
11408
11409   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11410   # archiving commands below assume that GNU ld is being used.
11411   if test "$with_gnu_ld" = yes; then
11412     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11413     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'
11414
11415     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11416     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11417
11418     # If archive_cmds runs LD, not CC, wlarc should be empty
11419     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11420     #     investigate it a little bit more. (MM)
11421     wlarc='${wl}'
11422
11423     # ancient GNU ld didn't support --whole-archive et. al.
11424     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11425         grep 'no-whole-archive' > /dev/null; then
11426       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11427     else
11428       whole_archive_flag_spec_CXX=
11429     fi
11430   else
11431     with_gnu_ld=no
11432     wlarc=
11433
11434     # A generic and very simple default shared library creation
11435     # command for GNU C++ for the case where it uses the native
11436     # linker, instead of GNU ld.  If possible, this setting should
11437     # overridden to take advantage of the native linker features on
11438     # the platform it is being used on.
11439     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11440   fi
11441
11442   # Commands to make compiler produce verbose output that lists
11443   # what "hidden" libraries, object files and flags are used when
11444   # linking a shared library.
11445   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11446
11447 else
11448   GXX=no
11449   with_gnu_ld=no
11450   wlarc=
11451 fi
11452
11453 # PORTME: fill in a description of your system's C++ link characteristics
11454 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11455 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11456 ld_shlibs_CXX=yes
11457 case $host_os in
11458   aix3*)
11459     # FIXME: insert proper C++ library support
11460     ld_shlibs_CXX=no
11461     ;;
11462   aix4* | aix5*)
11463     if test "$host_cpu" = ia64; then
11464       # On IA64, the linker does run time linking by default, so we don't
11465       # have to do anything special.
11466       aix_use_runtimelinking=no
11467       exp_sym_flag='-Bexport'
11468       no_entry_flag=""
11469     else
11470       aix_use_runtimelinking=no
11471
11472       # Test if we are trying to use run time linking or normal
11473       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11474       # need to do runtime linking.
11475       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11476         for ld_flag in $LDFLAGS; do
11477           case $ld_flag in
11478           *-brtl*)
11479             aix_use_runtimelinking=yes
11480             break
11481             ;;
11482           esac
11483         done
11484         ;;
11485       esac
11486
11487       exp_sym_flag='-bexport'
11488       no_entry_flag='-bnoentry'
11489     fi
11490
11491     # When large executables or shared objects are built, AIX ld can
11492     # have problems creating the table of contents.  If linking a library
11493     # or program results in "error TOC overflow" add -mminimal-toc to
11494     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11495     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11496
11497     archive_cmds_CXX=''
11498     hardcode_direct_CXX=yes
11499     hardcode_libdir_separator_CXX=':'
11500     link_all_deplibs_CXX=yes
11501
11502     if test "$GXX" = yes; then
11503       case $host_os in aix4.[012]|aix4.[012].*)
11504       # We only want to do this on AIX 4.2 and lower, the check
11505       # below for broken collect2 doesn't work under 4.3+
11506         collect2name=`${CC} -print-prog-name=collect2`
11507         if test -f "$collect2name" && \
11508            strings "$collect2name" | grep resolve_lib_name >/dev/null
11509         then
11510           # We have reworked collect2
11511           hardcode_direct_CXX=yes
11512         else
11513           # We have old collect2
11514           hardcode_direct_CXX=unsupported
11515           # It fails to find uninstalled libraries when the uninstalled
11516           # path is not listed in the libpath.  Setting hardcode_minus_L
11517           # to unsupported forces relinking
11518           hardcode_minus_L_CXX=yes
11519           hardcode_libdir_flag_spec_CXX='-L$libdir'
11520           hardcode_libdir_separator_CXX=
11521         fi
11522         ;;
11523       esac
11524       shared_flag='-shared'
11525       if test "$aix_use_runtimelinking" = yes; then
11526         shared_flag="$shared_flag "'${wl}-G'
11527       fi
11528     else
11529       # not using gcc
11530       if test "$host_cpu" = ia64; then
11531         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11532         # chokes on -Wl,-G. The following line is correct:
11533         shared_flag='-G'
11534       else
11535         if test "$aix_use_runtimelinking" = yes; then
11536           shared_flag='${wl}-G'
11537         else
11538           shared_flag='${wl}-bM:SRE'
11539         fi
11540       fi
11541     fi
11542
11543     # It seems that -bexpall does not export symbols beginning with
11544     # underscore (_), so it is better to generate a list of symbols to export.
11545     always_export_symbols_CXX=yes
11546     if test "$aix_use_runtimelinking" = yes; then
11547       # Warning - without using the other runtime loading flags (-brtl),
11548       # -berok will link without error, but may produce a broken library.
11549       allow_undefined_flag_CXX='-berok'
11550       # Determine the default libpath from the value encoded in an empty executable.
11551       cat >conftest.$ac_ext <<_ACEOF
11552 /* confdefs.h.  */
11553 _ACEOF
11554 cat confdefs.h >>conftest.$ac_ext
11555 cat >>conftest.$ac_ext <<_ACEOF
11556 /* end confdefs.h.  */
11557
11558 int
11559 main ()
11560 {
11561
11562   ;
11563   return 0;
11564 }
11565 _ACEOF
11566 rm -f conftest.$ac_objext conftest$ac_exeext
11567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11568   (eval $ac_link) 2>conftest.er1
11569   ac_status=$?
11570   grep -v '^ *+' conftest.er1 >conftest.err
11571   rm -f conftest.er1
11572   cat conftest.err >&5
11573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574   (exit $ac_status); } &&
11575          { ac_try='test -z "$ac_cxx_werror_flag"
11576                          || test ! -s conftest.err'
11577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11578   (eval $ac_try) 2>&5
11579   ac_status=$?
11580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581   (exit $ac_status); }; } &&
11582          { ac_try='test -s conftest$ac_exeext'
11583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11584   (eval $ac_try) 2>&5
11585   ac_status=$?
11586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587   (exit $ac_status); }; }; then
11588
11589 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11590 }'`
11591 # Check for a 64-bit object if we didn't find anything.
11592 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11593 }'`; fi
11594 else
11595   echo "$as_me: failed program was:" >&5
11596 sed 's/^/| /' conftest.$ac_ext >&5
11597
11598
11599 fi
11600
11601 rm -f conftest.err conftest.$ac_objext \
11602       conftest$ac_exeext conftest.$ac_ext
11603 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11604
11605       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11606
11607       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"
11608      else
11609       if test "$host_cpu" = ia64; then
11610         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11611         allow_undefined_flag_CXX="-z nodefs"
11612         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"
11613       else
11614         # Determine the default libpath from the value encoded in an empty executable.
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
11622 int
11623 main ()
11624 {
11625
11626   ;
11627   return 0;
11628 }
11629 _ACEOF
11630 rm -f conftest.$ac_objext conftest$ac_exeext
11631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11632   (eval $ac_link) 2>conftest.er1
11633   ac_status=$?
11634   grep -v '^ *+' conftest.er1 >conftest.err
11635   rm -f conftest.er1
11636   cat conftest.err >&5
11637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638   (exit $ac_status); } &&
11639          { ac_try='test -z "$ac_cxx_werror_flag"
11640                          || test ! -s conftest.err'
11641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11642   (eval $ac_try) 2>&5
11643   ac_status=$?
11644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11645   (exit $ac_status); }; } &&
11646          { ac_try='test -s conftest$ac_exeext'
11647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11648   (eval $ac_try) 2>&5
11649   ac_status=$?
11650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651   (exit $ac_status); }; }; then
11652
11653 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11654 }'`
11655 # Check for a 64-bit object if we didn't find anything.
11656 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11657 }'`; fi
11658 else
11659   echo "$as_me: failed program was:" >&5
11660 sed 's/^/| /' conftest.$ac_ext >&5
11661
11662
11663 fi
11664
11665 rm -f conftest.err conftest.$ac_objext \
11666       conftest$ac_exeext conftest.$ac_ext
11667 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11668
11669         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11670         # Warning - without using the other run time loading flags,
11671         # -berok will link without error, but may produce a broken library.
11672         no_undefined_flag_CXX=' ${wl}-bernotok'
11673         allow_undefined_flag_CXX=' ${wl}-berok'
11674         # Exported symbols can be pulled into shared objects from archives
11675         whole_archive_flag_spec_CXX='$convenience'
11676         archive_cmds_need_lc_CXX=yes
11677         # This is similar to how AIX traditionally builds its shared libraries.
11678         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'
11679       fi
11680     fi
11681     ;;
11682
11683   beos*)
11684     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11685       allow_undefined_flag_CXX=unsupported
11686       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11687       # support --undefined.  This deserves some investigation.  FIXME
11688       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11689     else
11690       ld_shlibs_CXX=no
11691     fi
11692     ;;
11693
11694   chorus*)
11695     case $cc_basename in
11696       *)
11697         # FIXME: insert proper C++ library support
11698         ld_shlibs_CXX=no
11699         ;;
11700     esac
11701     ;;
11702
11703   cygwin* | mingw* | pw32*)
11704     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11705     # as there is no search path for DLLs.
11706     hardcode_libdir_flag_spec_CXX='-L$libdir'
11707     allow_undefined_flag_CXX=unsupported
11708     always_export_symbols_CXX=no
11709     enable_shared_with_static_runtimes_CXX=yes
11710
11711     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11712       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'
11713       # If the export-symbols file already is a .def file (1st line
11714       # is EXPORTS), use it as is; otherwise, prepend...
11715       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11716         cp $export_symbols $output_objdir/$soname.def;
11717       else
11718         echo EXPORTS > $output_objdir/$soname.def;
11719         cat $export_symbols >> $output_objdir/$soname.def;
11720       fi~
11721       $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'
11722     else
11723       ld_shlibs_CXX=no
11724     fi
11725   ;;
11726       darwin* | rhapsody*)
11727         case $host_os in
11728         rhapsody* | darwin1.[012])
11729          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11730          ;;
11731        *) # Darwin 1.3 on
11732          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11733            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11734          else
11735            case ${MACOSX_DEPLOYMENT_TARGET} in
11736              10.[012])
11737                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11738                ;;
11739              10.*)
11740                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11741                ;;
11742            esac
11743          fi
11744          ;;
11745         esac
11746       archive_cmds_need_lc_CXX=no
11747       hardcode_direct_CXX=no
11748       hardcode_automatic_CXX=yes
11749       hardcode_shlibpath_var_CXX=unsupported
11750       whole_archive_flag_spec_CXX=''
11751       link_all_deplibs_CXX=yes
11752
11753     if test "$GXX" = yes ; then
11754       lt_int_apple_cc_single_mod=no
11755       output_verbose_link_cmd='echo'
11756       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11757        lt_int_apple_cc_single_mod=yes
11758       fi
11759       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11760        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11761       else
11762           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'
11763         fi
11764         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11765         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11766           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11767             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11768           else
11769             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11770           fi
11771             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}'
11772       else
11773       case $cc_basename in
11774         xlc*)
11775          output_verbose_link_cmd='echo'
11776           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11777           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11778           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11779           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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11780           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}'
11781           ;;
11782        *)
11783          ld_shlibs_CXX=no
11784           ;;
11785       esac
11786       fi
11787         ;;
11788
11789   dgux*)
11790     case $cc_basename in
11791       ec++*)
11792         # FIXME: insert proper C++ library support
11793         ld_shlibs_CXX=no
11794         ;;
11795       ghcx*)
11796         # Green Hills C++ Compiler
11797         # FIXME: insert proper C++ library support
11798         ld_shlibs_CXX=no
11799         ;;
11800       *)
11801         # FIXME: insert proper C++ library support
11802         ld_shlibs_CXX=no
11803         ;;
11804     esac
11805     ;;
11806   freebsd[12]*)
11807     # C++ shared libraries reported to be fairly broken before switch to ELF
11808     ld_shlibs_CXX=no
11809     ;;
11810   freebsd-elf*)
11811     archive_cmds_need_lc_CXX=no
11812     ;;
11813   freebsd* | kfreebsd*-gnu | dragonfly*)
11814     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11815     # conventions
11816     ld_shlibs_CXX=yes
11817     ;;
11818   gnu*)
11819     ;;
11820   hpux9*)
11821     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11822     hardcode_libdir_separator_CXX=:
11823     export_dynamic_flag_spec_CXX='${wl}-E'
11824     hardcode_direct_CXX=yes
11825     hardcode_minus_L_CXX=yes # Not in the search PATH,
11826                                 # but as the default
11827                                 # location of the library.
11828
11829     case $cc_basename in
11830     CC*)
11831       # FIXME: insert proper C++ library support
11832       ld_shlibs_CXX=no
11833       ;;
11834     aCC*)
11835       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'
11836       # Commands to make compiler produce verbose output that lists
11837       # what "hidden" libraries, object files and flags are used when
11838       # linking a shared library.
11839       #
11840       # There doesn't appear to be a way to prevent this compiler from
11841       # explicitly linking system object files so we need to strip them
11842       # from the output so that they don't get included in the library
11843       # dependencies.
11844       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'
11845       ;;
11846     *)
11847       if test "$GXX" = yes; then
11848         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'
11849       else
11850         # FIXME: insert proper C++ library support
11851         ld_shlibs_CXX=no
11852       fi
11853       ;;
11854     esac
11855     ;;
11856   hpux10*|hpux11*)
11857     if test $with_gnu_ld = no; then
11858       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11859       hardcode_libdir_separator_CXX=:
11860
11861       case $host_cpu in
11862       hppa*64*|ia64*)
11863         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11864         ;;
11865       *)
11866         export_dynamic_flag_spec_CXX='${wl}-E'
11867         ;;
11868       esac
11869     fi
11870     case $host_cpu in
11871     hppa*64*|ia64*)
11872       hardcode_direct_CXX=no
11873       hardcode_shlibpath_var_CXX=no
11874       ;;
11875     *)
11876       hardcode_direct_CXX=yes
11877       hardcode_minus_L_CXX=yes # Not in the search PATH,
11878                                               # but as the default
11879                                               # location of the library.
11880       ;;
11881     esac
11882
11883     case $cc_basename in
11884       CC*)
11885         # FIXME: insert proper C++ library support
11886         ld_shlibs_CXX=no
11887         ;;
11888       aCC*)
11889         case $host_cpu in
11890         hppa*64*)
11891           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11892           ;;
11893         ia64*)
11894           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11895           ;;
11896         *)
11897           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11898           ;;
11899         esac
11900         # Commands to make compiler produce verbose output that lists
11901         # what "hidden" libraries, object files and flags are used when
11902         # linking a shared library.
11903         #
11904         # There doesn't appear to be a way to prevent this compiler from
11905         # explicitly linking system object files so we need to strip them
11906         # from the output so that they don't get included in the library
11907         # dependencies.
11908         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'
11909         ;;
11910       *)
11911         if test "$GXX" = yes; then
11912           if test $with_gnu_ld = no; then
11913             case $host_cpu in
11914             hppa*64*)
11915               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11916               ;;
11917             ia64*)
11918               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11919               ;;
11920             *)
11921               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'
11922               ;;
11923             esac
11924           fi
11925         else
11926           # FIXME: insert proper C++ library support
11927           ld_shlibs_CXX=no
11928         fi
11929         ;;
11930     esac
11931     ;;
11932   interix3*)
11933     hardcode_direct_CXX=no
11934     hardcode_shlibpath_var_CXX=no
11935     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11936     export_dynamic_flag_spec_CXX='${wl}-E'
11937     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11938     # Instead, shared libraries are loaded at an image base (0x10000000 by
11939     # default) and relocated if they conflict, which is a slow very memory
11940     # consuming and fragmenting process.  To avoid this, we pick a random,
11941     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11942     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11943     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'
11944     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'
11945     ;;
11946   irix5* | irix6*)
11947     case $cc_basename in
11948       CC*)
11949         # SGI C++
11950         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'
11951
11952         # Archives containing C++ object files must be created using
11953         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11954         # necessary to make sure instantiated templates are included
11955         # in the archive.
11956         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11957         ;;
11958       *)
11959         if test "$GXX" = yes; then
11960           if test "$with_gnu_ld" = no; then
11961             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'
11962           else
11963             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'
11964           fi
11965         fi
11966         link_all_deplibs_CXX=yes
11967         ;;
11968     esac
11969     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11970     hardcode_libdir_separator_CXX=:
11971     ;;
11972   linux*)
11973     case $cc_basename in
11974       KCC*)
11975         # Kuck and Associates, Inc. (KAI) C++ Compiler
11976
11977         # KCC will only create a shared library if the output file
11978         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11979         # to its proper name (with version) after linking.
11980         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'
11981         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'
11982         # Commands to make compiler produce verbose output that lists
11983         # what "hidden" libraries, object files and flags are used when
11984         # linking a shared library.
11985         #
11986         # There doesn't appear to be a way to prevent this compiler from
11987         # explicitly linking system object files so we need to strip them
11988         # from the output so that they don't get included in the library
11989         # dependencies.
11990         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'
11991
11992         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11993         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11994
11995         # Archives containing C++ object files must be created using
11996         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11997         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11998         ;;
11999       icpc*)
12000         # Intel C++
12001         with_gnu_ld=yes
12002         # version 8.0 and above of icpc choke on multiply defined symbols
12003         # if we add $predep_objects and $postdep_objects, however 7.1 and
12004         # earlier do not add the objects themselves.
12005         case `$CC -V 2>&1` in
12006         *"Version 7."*)
12007           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12008           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'
12009           ;;
12010         *)  # Version 8.0 or newer
12011           tmp_idyn=
12012           case $host_cpu in
12013             ia64*) tmp_idyn=' -i_dynamic';;
12014           esac
12015           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12016           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'
12017           ;;
12018         esac
12019         archive_cmds_need_lc_CXX=no
12020         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12021         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12022         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12023         ;;
12024       pgCC*)
12025         # Portland Group C++ compiler
12026         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12027         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'
12028
12029         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12030         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12031         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'
12032         ;;
12033       cxx*)
12034         # Compaq C++
12035         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12036         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'
12037
12038         runpath_var=LD_RUN_PATH
12039         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12040         hardcode_libdir_separator_CXX=:
12041
12042         # Commands to make compiler produce verbose output that lists
12043         # what "hidden" libraries, object files and flags are used when
12044         # linking a shared library.
12045         #
12046         # There doesn't appear to be a way to prevent this compiler from
12047         # explicitly linking system object files so we need to strip them
12048         # from the output so that they don't get included in the library
12049         # dependencies.
12050         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'
12051         ;;
12052     esac
12053     ;;
12054   lynxos*)
12055     # FIXME: insert proper C++ library support
12056     ld_shlibs_CXX=no
12057     ;;
12058   m88k*)
12059     # FIXME: insert proper C++ library support
12060     ld_shlibs_CXX=no
12061     ;;
12062   mvs*)
12063     case $cc_basename in
12064       cxx*)
12065         # FIXME: insert proper C++ library support
12066         ld_shlibs_CXX=no
12067         ;;
12068       *)
12069         # FIXME: insert proper C++ library support
12070         ld_shlibs_CXX=no
12071         ;;
12072     esac
12073     ;;
12074   netbsd*)
12075     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12076       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12077       wlarc=
12078       hardcode_libdir_flag_spec_CXX='-R$libdir'
12079       hardcode_direct_CXX=yes
12080       hardcode_shlibpath_var_CXX=no
12081     fi
12082     # Workaround some broken pre-1.5 toolchains
12083     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12084     ;;
12085   openbsd2*)
12086     # C++ shared libraries are fairly broken
12087     ld_shlibs_CXX=no
12088     ;;
12089   openbsd*)
12090     hardcode_direct_CXX=yes
12091     hardcode_shlibpath_var_CXX=no
12092     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12093     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12094     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12095       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12096       export_dynamic_flag_spec_CXX='${wl}-E'
12097       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12098     fi
12099     output_verbose_link_cmd='echo'
12100     ;;
12101   osf3*)
12102     case $cc_basename in
12103       KCC*)
12104         # Kuck and Associates, Inc. (KAI) C++ Compiler
12105
12106         # KCC will only create a shared library if the output file
12107         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12108         # to its proper name (with version) after linking.
12109         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'
12110
12111         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12112         hardcode_libdir_separator_CXX=:
12113
12114         # Archives containing C++ object files must be created using
12115         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12116         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12117
12118         ;;
12119       RCC*)
12120         # Rational C++ 2.4.1
12121         # FIXME: insert proper C++ library support
12122         ld_shlibs_CXX=no
12123         ;;
12124       cxx*)
12125         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12126         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'
12127
12128         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12129         hardcode_libdir_separator_CXX=:
12130
12131         # Commands to make compiler produce verbose output that lists
12132         # what "hidden" libraries, object files and flags are used when
12133         # linking a shared library.
12134         #
12135         # There doesn't appear to be a way to prevent this compiler from
12136         # explicitly linking system object files so we need to strip them
12137         # from the output so that they don't get included in the library
12138         # dependencies.
12139         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'
12140         ;;
12141       *)
12142         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12143           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12144           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'
12145
12146           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12147           hardcode_libdir_separator_CXX=:
12148
12149           # Commands to make compiler produce verbose output that lists
12150           # what "hidden" libraries, object files and flags are used when
12151           # linking a shared library.
12152           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12153
12154         else
12155           # FIXME: insert proper C++ library support
12156           ld_shlibs_CXX=no
12157         fi
12158         ;;
12159     esac
12160     ;;
12161   osf4* | osf5*)
12162     case $cc_basename in
12163       KCC*)
12164         # Kuck and Associates, Inc. (KAI) C++ Compiler
12165
12166         # KCC will only create a shared library if the output file
12167         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12168         # to its proper name (with version) after linking.
12169         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'
12170
12171         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12172         hardcode_libdir_separator_CXX=:
12173
12174         # Archives containing C++ object files must be created using
12175         # the KAI C++ compiler.
12176         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12177         ;;
12178       RCC*)
12179         # Rational C++ 2.4.1
12180         # FIXME: insert proper C++ library support
12181         ld_shlibs_CXX=no
12182         ;;
12183       cxx*)
12184         allow_undefined_flag_CXX=' -expect_unresolved \*'
12185         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'
12186         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12187           echo "-hidden">> $lib.exp~
12188           $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~
12189           $rm $lib.exp'
12190
12191         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12192         hardcode_libdir_separator_CXX=:
12193
12194         # Commands to make compiler produce verbose output that lists
12195         # what "hidden" libraries, object files and flags are used when
12196         # linking a shared library.
12197         #
12198         # There doesn't appear to be a way to prevent this compiler from
12199         # explicitly linking system object files so we need to strip them
12200         # from the output so that they don't get included in the library
12201         # dependencies.
12202         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'
12203         ;;
12204       *)
12205         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12206           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12207          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'
12208
12209           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12210           hardcode_libdir_separator_CXX=:
12211
12212           # Commands to make compiler produce verbose output that lists
12213           # what "hidden" libraries, object files and flags are used when
12214           # linking a shared library.
12215           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12216
12217         else
12218           # FIXME: insert proper C++ library support
12219           ld_shlibs_CXX=no
12220         fi
12221         ;;
12222     esac
12223     ;;
12224   psos*)
12225     # FIXME: insert proper C++ library support
12226     ld_shlibs_CXX=no
12227     ;;
12228   sunos4*)
12229     case $cc_basename in
12230       CC*)
12231         # Sun C++ 4.x
12232         # FIXME: insert proper C++ library support
12233         ld_shlibs_CXX=no
12234         ;;
12235       lcc*)
12236         # Lucid
12237         # FIXME: insert proper C++ library support
12238         ld_shlibs_CXX=no
12239         ;;
12240       *)
12241         # FIXME: insert proper C++ library support
12242         ld_shlibs_CXX=no
12243         ;;
12244     esac
12245     ;;
12246   solaris*)
12247     case $cc_basename in
12248       CC*)
12249         # Sun C++ 4.2, 5.x and Centerline C++
12250         archive_cmds_need_lc_CXX=yes
12251         no_undefined_flag_CXX=' -zdefs'
12252         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12253         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12254         $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'
12255
12256         hardcode_libdir_flag_spec_CXX='-R$libdir'
12257         hardcode_shlibpath_var_CXX=no
12258         case $host_os in
12259           solaris2.[0-5] | solaris2.[0-5].*) ;;
12260           *)
12261             # The C++ compiler is used as linker so we must use $wl
12262             # flag to pass the commands to the underlying system
12263             # linker. We must also pass each convience library through
12264             # to the system linker between allextract/defaultextract.
12265             # The C++ compiler will combine linker options so we
12266             # cannot just pass the convience library names through
12267             # without $wl.
12268             # Supported since Solaris 2.6 (maybe 2.5.1?)
12269             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
12270             ;;
12271         esac
12272         link_all_deplibs_CXX=yes
12273
12274         output_verbose_link_cmd='echo'
12275
12276         # Archives containing C++ object files must be created using
12277         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12278         # necessary to make sure instantiated templates are included
12279         # in the archive.
12280         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12281         ;;
12282       gcx*)
12283         # Green Hills C++ Compiler
12284         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12285
12286         # The C++ compiler must be used to create the archive.
12287         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12288         ;;
12289       *)
12290         # GNU C++ compiler with Solaris linker
12291         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12292           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12293           if $CC --version | grep -v '^2\.7' > /dev/null; then
12294             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12295             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12296                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12297
12298             # Commands to make compiler produce verbose output that lists
12299             # what "hidden" libraries, object files and flags are used when
12300             # linking a shared library.
12301             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12302           else
12303             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12304             # platform.
12305             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12306             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12307                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12308
12309             # Commands to make compiler produce verbose output that lists
12310             # what "hidden" libraries, object files and flags are used when
12311             # linking a shared library.
12312             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12313           fi
12314
12315           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12316         fi
12317         ;;
12318     esac
12319     ;;
12320   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12321     no_undefined_flag_CXX='${wl}-z,text'
12322     archive_cmds_need_lc_CXX=no
12323     hardcode_shlibpath_var_CXX=no
12324     runpath_var='LD_RUN_PATH'
12325
12326     case $cc_basename in
12327       CC*)
12328         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12329         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12330         ;;
12331       *)
12332         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12333         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12334         ;;
12335     esac
12336     ;;
12337   sysv5* | sco3.2v5* | sco5v6*)
12338     # Note: We can NOT use -z defs as we might desire, because we do not
12339     # link with -lc, and that would cause any symbols used from libc to
12340     # always be unresolved, which means just about no library would
12341     # ever link correctly.  If we're not using GNU ld we use -z text
12342     # though, which does catch some bad symbols but isn't as heavy-handed
12343     # as -z defs.
12344     # For security reasons, it is highly recommended that you always
12345     # use absolute paths for naming shared libraries, and exclude the
12346     # DT_RUNPATH tag from executables and libraries.  But doing so
12347     # requires that you compile everything twice, which is a pain.
12348     # So that behaviour is only enabled if SCOABSPATH is set to a
12349     # non-empty value in the environment.  Most likely only useful for
12350     # creating official distributions of packages.
12351     # This is a hack until libtool officially supports absolute path
12352     # names for shared libraries.
12353     no_undefined_flag_CXX='${wl}-z,text'
12354     allow_undefined_flag_CXX='${wl}-z,nodefs'
12355     archive_cmds_need_lc_CXX=no
12356     hardcode_shlibpath_var_CXX=no
12357     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12358     hardcode_libdir_separator_CXX=':'
12359     link_all_deplibs_CXX=yes
12360     export_dynamic_flag_spec_CXX='${wl}-Bexport'
12361     runpath_var='LD_RUN_PATH'
12362
12363     case $cc_basename in
12364       CC*)
12365         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12366         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12367         ;;
12368       *)
12369         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12370         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12371         ;;
12372     esac
12373     ;;
12374   tandem*)
12375     case $cc_basename in
12376       NCC*)
12377         # NonStop-UX NCC 3.20
12378         # FIXME: insert proper C++ library support
12379         ld_shlibs_CXX=no
12380         ;;
12381       *)
12382         # FIXME: insert proper C++ library support
12383         ld_shlibs_CXX=no
12384         ;;
12385     esac
12386     ;;
12387   vxworks*)
12388     # FIXME: insert proper C++ library support
12389     ld_shlibs_CXX=no
12390     ;;
12391   *)
12392     # FIXME: insert proper C++ library support
12393     ld_shlibs_CXX=no
12394     ;;
12395 esac
12396 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12397 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12398 test "$ld_shlibs_CXX" = no && can_build_shared=no
12399
12400 GCC_CXX="$GXX"
12401 LD_CXX="$LD"
12402
12403 ## CAVEAT EMPTOR:
12404 ## There is no encapsulation within the following macros, do not change
12405 ## the running order or otherwise move them around unless you know exactly
12406 ## what you are doing...
12407
12408 cat > conftest.$ac_ext <<EOF
12409 class Foo
12410 {
12411 public:
12412   Foo (void) { a = 0; }
12413 private:
12414   int a;
12415 };
12416 EOF
12417
12418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12419   (eval $ac_compile) 2>&5
12420   ac_status=$?
12421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422   (exit $ac_status); }; then
12423   # Parse the compiler output and extract the necessary
12424   # objects, libraries and library flags.
12425
12426   # Sentinel used to keep track of whether or not we are before
12427   # the conftest object file.
12428   pre_test_object_deps_done=no
12429
12430   # The `*' in the case matches for architectures that use `case' in
12431   # $output_verbose_cmd can trigger glob expansion during the loop
12432   # eval without this substitution.
12433   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12434
12435   for p in `eval $output_verbose_link_cmd`; do
12436     case $p in
12437
12438     -L* | -R* | -l*)
12439        # Some compilers place space between "-{L,R}" and the path.
12440        # Remove the space.
12441        if test $p = "-L" \
12442           || test $p = "-R"; then
12443          prev=$p
12444          continue
12445        else
12446          prev=
12447        fi
12448
12449        if test "$pre_test_object_deps_done" = no; then
12450          case $p in
12451          -L* | -R*)
12452            # Internal compiler library paths should come after those
12453            # provided the user.  The postdeps already come after the
12454            # user supplied libs so there is no need to process them.
12455            if test -z "$compiler_lib_search_path_CXX"; then
12456              compiler_lib_search_path_CXX="${prev}${p}"
12457            else
12458              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12459            fi
12460            ;;
12461          # The "-l" case would never come before the object being
12462          # linked, so don't bother handling this case.
12463          esac
12464        else
12465          if test -z "$postdeps_CXX"; then
12466            postdeps_CXX="${prev}${p}"
12467          else
12468            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12469          fi
12470        fi
12471        ;;
12472
12473     *.$objext)
12474        # This assumes that the test object file only shows up
12475        # once in the compiler output.
12476        if test "$p" = "conftest.$objext"; then
12477          pre_test_object_deps_done=yes
12478          continue
12479        fi
12480
12481        if test "$pre_test_object_deps_done" = no; then
12482          if test -z "$predep_objects_CXX"; then
12483            predep_objects_CXX="$p"
12484          else
12485            predep_objects_CXX="$predep_objects_CXX $p"
12486          fi
12487        else
12488          if test -z "$postdep_objects_CXX"; then
12489            postdep_objects_CXX="$p"
12490          else
12491            postdep_objects_CXX="$postdep_objects_CXX $p"
12492          fi
12493        fi
12494        ;;
12495
12496     *) ;; # Ignore the rest.
12497
12498     esac
12499   done
12500
12501   # Clean up.
12502   rm -f a.out a.exe
12503 else
12504   echo "libtool.m4: error: problem compiling CXX test program"
12505 fi
12506
12507 $rm -f confest.$objext
12508
12509 # PORTME: override above test on systems where it is broken
12510 case $host_os in
12511 interix3*)
12512   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12513   # hack all around it, let's just trust "g++" to DTRT.
12514   predep_objects_CXX=
12515   postdep_objects_CXX=
12516   postdeps_CXX=
12517   ;;
12518
12519 solaris*)
12520   case $cc_basename in
12521   CC*)
12522     # Adding this requires a known-good setup of shared libraries for
12523     # Sun compiler versions before 5.6, else PIC objects from an old
12524     # archive will be linked into the output, leading to subtle bugs.
12525     postdeps_CXX='-lCstd -lCrun'
12526     ;;
12527   esac
12528   ;;
12529 esac
12530
12531
12532 case " $postdeps_CXX " in
12533 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12534 esac
12535
12536 lt_prog_compiler_wl_CXX=
12537 lt_prog_compiler_pic_CXX=
12538 lt_prog_compiler_static_CXX=
12539
12540 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12541 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12542
12543   # C++ specific cases for pic, static, wl, etc.
12544   if test "$GXX" = yes; then
12545     lt_prog_compiler_wl_CXX='-Wl,'
12546     lt_prog_compiler_static_CXX='-static'
12547
12548     case $host_os in
12549     aix*)
12550       # All AIX code is PIC.
12551       if test "$host_cpu" = ia64; then
12552         # AIX 5 now supports IA64 processor
12553         lt_prog_compiler_static_CXX='-Bstatic'
12554       fi
12555       ;;
12556     amigaos*)
12557       # FIXME: we need at least 68020 code to build shared libraries, but
12558       # adding the `-m68020' flag to GCC prevents building anything better,
12559       # like `-m68040'.
12560       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12561       ;;
12562     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12563       # PIC is the default for these OSes.
12564       ;;
12565     mingw* | os2* | pw32*)
12566       # This hack is so that the source file can tell whether it is being
12567       # built for inclusion in a dll (and should export symbols for example).
12568       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12569       ;;
12570     darwin* | rhapsody*)
12571       # PIC is the default on this platform
12572       # Common symbols not allowed in MH_DYLIB files
12573       lt_prog_compiler_pic_CXX='-fno-common'
12574       ;;
12575     *djgpp*)
12576       # DJGPP does not support shared libraries at all
12577       lt_prog_compiler_pic_CXX=
12578       ;;
12579     interix3*)
12580       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12581       # Instead, we relocate shared libraries at runtime.
12582       ;;
12583     sysv4*MP*)
12584       if test -d /usr/nec; then
12585         lt_prog_compiler_pic_CXX=-Kconform_pic
12586       fi
12587       ;;
12588     hpux*)
12589       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12590       # not for PA HP-UX.
12591       case $host_cpu in
12592       hppa*64*|ia64*)
12593         ;;
12594       *)
12595         lt_prog_compiler_pic_CXX='-fPIC'
12596         ;;
12597       esac
12598       ;;
12599     *)
12600       lt_prog_compiler_pic_CXX='-fPIC'
12601       ;;
12602     esac
12603   else
12604     case $host_os in
12605       aix4* | aix5*)
12606         # All AIX code is PIC.
12607         if test "$host_cpu" = ia64; then
12608           # AIX 5 now supports IA64 processor
12609           lt_prog_compiler_static_CXX='-Bstatic'
12610         else
12611           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12612         fi
12613         ;;
12614       chorus*)
12615         case $cc_basename in
12616         cxch68*)
12617           # Green Hills C++ Compiler
12618           # _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"
12619           ;;
12620         esac
12621         ;;
12622        darwin*)
12623          # PIC is the default on this platform
12624          # Common symbols not allowed in MH_DYLIB files
12625          case $cc_basename in
12626            xlc*)
12627            lt_prog_compiler_pic_CXX='-qnocommon'
12628            lt_prog_compiler_wl_CXX='-Wl,'
12629            ;;
12630          esac
12631        ;;
12632       dgux*)
12633         case $cc_basename in
12634           ec++*)
12635             lt_prog_compiler_pic_CXX='-KPIC'
12636             ;;
12637           ghcx*)
12638             # Green Hills C++ Compiler
12639             lt_prog_compiler_pic_CXX='-pic'
12640             ;;
12641           *)
12642             ;;
12643         esac
12644         ;;
12645       freebsd* | kfreebsd*-gnu | dragonfly*)
12646         # FreeBSD uses GNU C++
12647         ;;
12648       hpux9* | hpux10* | hpux11*)
12649         case $cc_basename in
12650           CC*)
12651             lt_prog_compiler_wl_CXX='-Wl,'
12652             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12653             if test "$host_cpu" != ia64; then
12654               lt_prog_compiler_pic_CXX='+Z'
12655             fi
12656             ;;
12657           aCC*)
12658             lt_prog_compiler_wl_CXX='-Wl,'
12659             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12660             case $host_cpu in
12661             hppa*64*|ia64*)
12662               # +Z the default
12663               ;;
12664             *)
12665               lt_prog_compiler_pic_CXX='+Z'
12666               ;;
12667             esac
12668             ;;
12669           *)
12670             ;;
12671         esac
12672         ;;
12673       interix*)
12674         # This is c89, which is MS Visual C++ (no shared libs)
12675         # Anyone wants to do a port?
12676         ;;
12677       irix5* | irix6* | nonstopux*)
12678         case $cc_basename in
12679           CC*)
12680             lt_prog_compiler_wl_CXX='-Wl,'
12681             lt_prog_compiler_static_CXX='-non_shared'
12682             # CC pic flag -KPIC is the default.
12683             ;;
12684           *)
12685             ;;
12686         esac
12687         ;;
12688       linux*)
12689         case $cc_basename in
12690           KCC*)
12691             # KAI C++ Compiler
12692             lt_prog_compiler_wl_CXX='--backend -Wl,'
12693             lt_prog_compiler_pic_CXX='-fPIC'
12694             ;;
12695           icpc* | ecpc*)
12696             # Intel C++
12697             lt_prog_compiler_wl_CXX='-Wl,'
12698             lt_prog_compiler_pic_CXX='-KPIC'
12699             lt_prog_compiler_static_CXX='-static'
12700             ;;
12701           pgCC*)
12702             # Portland Group C++ compiler.
12703             lt_prog_compiler_wl_CXX='-Wl,'
12704             lt_prog_compiler_pic_CXX='-fpic'
12705             lt_prog_compiler_static_CXX='-Bstatic'
12706             ;;
12707           cxx*)
12708             # Compaq C++
12709             # Make sure the PIC flag is empty.  It appears that all Alpha
12710             # Linux and Compaq Tru64 Unix objects are PIC.
12711             lt_prog_compiler_pic_CXX=
12712             lt_prog_compiler_static_CXX='-non_shared'
12713             ;;
12714           *)
12715             ;;
12716         esac
12717         ;;
12718       lynxos*)
12719         ;;
12720       m88k*)
12721         ;;
12722       mvs*)
12723         case $cc_basename in
12724           cxx*)
12725             lt_prog_compiler_pic_CXX='-W c,exportall'
12726             ;;
12727           *)
12728             ;;
12729         esac
12730         ;;
12731       netbsd*)
12732         ;;
12733       osf3* | osf4* | osf5*)
12734         case $cc_basename in
12735           KCC*)
12736             lt_prog_compiler_wl_CXX='--backend -Wl,'
12737             ;;
12738           RCC*)
12739             # Rational C++ 2.4.1
12740             lt_prog_compiler_pic_CXX='-pic'
12741             ;;
12742           cxx*)
12743             # Digital/Compaq C++
12744             lt_prog_compiler_wl_CXX='-Wl,'
12745             # Make sure the PIC flag is empty.  It appears that all Alpha
12746             # Linux and Compaq Tru64 Unix objects are PIC.
12747             lt_prog_compiler_pic_CXX=
12748             lt_prog_compiler_static_CXX='-non_shared'
12749             ;;
12750           *)
12751             ;;
12752         esac
12753         ;;
12754       psos*)
12755         ;;
12756       solaris*)
12757         case $cc_basename in
12758           CC*)
12759             # Sun C++ 4.2, 5.x and Centerline C++
12760             lt_prog_compiler_pic_CXX='-KPIC'
12761             lt_prog_compiler_static_CXX='-Bstatic'
12762             lt_prog_compiler_wl_CXX='-Qoption ld '
12763             ;;
12764           gcx*)
12765             # Green Hills C++ Compiler
12766             lt_prog_compiler_pic_CXX='-PIC'
12767             ;;
12768           *)
12769             ;;
12770         esac
12771         ;;
12772       sunos4*)
12773         case $cc_basename in
12774           CC*)
12775             # Sun C++ 4.x
12776             lt_prog_compiler_pic_CXX='-pic'
12777             lt_prog_compiler_static_CXX='-Bstatic'
12778             ;;
12779           lcc*)
12780             # Lucid
12781             lt_prog_compiler_pic_CXX='-pic'
12782             ;;
12783           *)
12784             ;;
12785         esac
12786         ;;
12787       tandem*)
12788         case $cc_basename in
12789           NCC*)
12790             # NonStop-UX NCC 3.20
12791             lt_prog_compiler_pic_CXX='-KPIC'
12792             ;;
12793           *)
12794             ;;
12795         esac
12796         ;;
12797       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12798         case $cc_basename in
12799           CC*)
12800             lt_prog_compiler_wl_CXX='-Wl,'
12801             lt_prog_compiler_pic_CXX='-KPIC'
12802             lt_prog_compiler_static_CXX='-Bstatic'
12803             ;;
12804         esac
12805         ;;
12806       vxworks*)
12807         ;;
12808       *)
12809         lt_prog_compiler_can_build_shared_CXX=no
12810         ;;
12811     esac
12812   fi
12813
12814 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12815 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12816
12817 #
12818 # Check to make sure the PIC flag actually works.
12819 #
12820 if test -n "$lt_prog_compiler_pic_CXX"; then
12821
12822 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12823 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12824 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12825   echo $ECHO_N "(cached) $ECHO_C" >&6
12826 else
12827   lt_prog_compiler_pic_works_CXX=no
12828   ac_outfile=conftest.$ac_objext
12829    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12830    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12831    # Insert the option either (1) after the last *FLAGS variable, or
12832    # (2) before a word containing "conftest.", or (3) at the end.
12833    # Note that $ac_compile itself does not contain backslashes and begins
12834    # with a dollar sign (not a hyphen), so the echo should work correctly.
12835    # The option is referenced via a variable to avoid confusing sed.
12836    lt_compile=`echo "$ac_compile" | $SED \
12837    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12838    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12839    -e 's:$: $lt_compiler_flag:'`
12840    (eval echo "\"\$as_me:12840: $lt_compile\"" >&5)
12841    (eval "$lt_compile" 2>conftest.err)
12842    ac_status=$?
12843    cat conftest.err >&5
12844    echo "$as_me:12844: \$? = $ac_status" >&5
12845    if (exit $ac_status) && test -s "$ac_outfile"; then
12846      # The compiler can only warn and ignore the option if not recognized
12847      # So say no if there are warnings other than the usual output.
12848      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12849      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12850      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12851        lt_prog_compiler_pic_works_CXX=yes
12852      fi
12853    fi
12854    $rm conftest*
12855
12856 fi
12857 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12858 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12859
12860 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12861     case $lt_prog_compiler_pic_CXX in
12862      "" | " "*) ;;
12863      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12864      esac
12865 else
12866     lt_prog_compiler_pic_CXX=
12867      lt_prog_compiler_can_build_shared_CXX=no
12868 fi
12869
12870 fi
12871 case $host_os in
12872   # For platforms which do not support PIC, -DPIC is meaningless:
12873   *djgpp*)
12874     lt_prog_compiler_pic_CXX=
12875     ;;
12876   *)
12877     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12878     ;;
12879 esac
12880
12881 #
12882 # Check to make sure the static flag actually works.
12883 #
12884 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12885 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12886 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12887 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12888   echo $ECHO_N "(cached) $ECHO_C" >&6
12889 else
12890   lt_prog_compiler_static_works_CXX=no
12891    save_LDFLAGS="$LDFLAGS"
12892    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12893    printf "$lt_simple_link_test_code" > conftest.$ac_ext
12894    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12895      # The linker can only warn and ignore the option if not recognized
12896      # So say no if there are warnings
12897      if test -s conftest.err; then
12898        # Append any errors to the config.log.
12899        cat conftest.err 1>&5
12900        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12901        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12902        if diff conftest.exp conftest.er2 >/dev/null; then
12903          lt_prog_compiler_static_works_CXX=yes
12904        fi
12905      else
12906        lt_prog_compiler_static_works_CXX=yes
12907      fi
12908    fi
12909    $rm conftest*
12910    LDFLAGS="$save_LDFLAGS"
12911
12912 fi
12913 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12914 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12915
12916 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12917     :
12918 else
12919     lt_prog_compiler_static_CXX=
12920 fi
12921
12922
12923 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12924 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12925 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12926   echo $ECHO_N "(cached) $ECHO_C" >&6
12927 else
12928   lt_cv_prog_compiler_c_o_CXX=no
12929    $rm -r conftest 2>/dev/null
12930    mkdir conftest
12931    cd conftest
12932    mkdir out
12933    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12934
12935    lt_compiler_flag="-o out/conftest2.$ac_objext"
12936    # Insert the option either (1) after the last *FLAGS variable, or
12937    # (2) before a word containing "conftest.", or (3) at the end.
12938    # Note that $ac_compile itself does not contain backslashes and begins
12939    # with a dollar sign (not a hyphen), so the echo should work correctly.
12940    lt_compile=`echo "$ac_compile" | $SED \
12941    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12942    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12943    -e 's:$: $lt_compiler_flag:'`
12944    (eval echo "\"\$as_me:12944: $lt_compile\"" >&5)
12945    (eval "$lt_compile" 2>out/conftest.err)
12946    ac_status=$?
12947    cat out/conftest.err >&5
12948    echo "$as_me:12948: \$? = $ac_status" >&5
12949    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12950    then
12951      # The compiler can only warn and ignore the option if not recognized
12952      # So say no if there are warnings
12953      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12954      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12955      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12956        lt_cv_prog_compiler_c_o_CXX=yes
12957      fi
12958    fi
12959    chmod u+w . 2>&5
12960    $rm conftest*
12961    # SGI C++ compiler will create directory out/ii_files/ for
12962    # template instantiation
12963    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12964    $rm out/* && rmdir out
12965    cd ..
12966    rmdir conftest
12967    $rm conftest*
12968
12969 fi
12970 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12971 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12972
12973
12974 hard_links="nottested"
12975 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12976   # do not overwrite the value of need_locks provided by the user
12977   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12978 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12979   hard_links=yes
12980   $rm conftest*
12981   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12982   touch conftest.a
12983   ln conftest.a conftest.b 2>&5 || hard_links=no
12984   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12985   { echo "$as_me:$LINENO: result: $hard_links" >&5
12986 echo "${ECHO_T}$hard_links" >&6; }
12987   if test "$hard_links" = no; then
12988     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12989 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12990     need_locks=warn
12991   fi
12992 else
12993   need_locks=no
12994 fi
12995
12996 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12997 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12998
12999   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13000   case $host_os in
13001   aix4* | aix5*)
13002     # If we're using GNU nm, then we don't want the "-C" option.
13003     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13004     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13005       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'
13006     else
13007       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'
13008     fi
13009     ;;
13010   pw32*)
13011     export_symbols_cmds_CXX="$ltdll_cmds"
13012   ;;
13013   cygwin* | mingw*)
13014     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'
13015   ;;
13016   *)
13017     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13018   ;;
13019   esac
13020
13021 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13022 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13023 test "$ld_shlibs_CXX" = no && can_build_shared=no
13024
13025 #
13026 # Do we need to explicitly link libc?
13027 #
13028 case "x$archive_cmds_need_lc_CXX" in
13029 x|xyes)
13030   # Assume -lc should be added
13031   archive_cmds_need_lc_CXX=yes
13032
13033   if test "$enable_shared" = yes && test "$GCC" = yes; then
13034     case $archive_cmds_CXX in
13035     *'~'*)
13036       # FIXME: we may have to deal with multi-command sequences.
13037       ;;
13038     '$CC '*)
13039       # Test whether the compiler implicitly links with -lc since on some
13040       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13041       # to ld, don't add -lc before -lgcc.
13042       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13043 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13044       $rm conftest*
13045       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13046
13047       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13048   (eval $ac_compile) 2>&5
13049   ac_status=$?
13050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051   (exit $ac_status); } 2>conftest.err; then
13052         soname=conftest
13053         lib=conftest
13054         libobjs=conftest.$ac_objext
13055         deplibs=
13056         wl=$lt_prog_compiler_wl_CXX
13057         pic_flag=$lt_prog_compiler_pic_CXX
13058         compiler_flags=-v
13059         linker_flags=-v
13060         verstring=
13061         output_objdir=.
13062         libname=conftest
13063         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13064         allow_undefined_flag_CXX=
13065         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13066   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13067   ac_status=$?
13068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069   (exit $ac_status); }
13070         then
13071           archive_cmds_need_lc_CXX=no
13072         else
13073           archive_cmds_need_lc_CXX=yes
13074         fi
13075         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13076       else
13077         cat conftest.err 1>&5
13078       fi
13079       $rm conftest*
13080       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13081 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13082       ;;
13083     esac
13084   fi
13085   ;;
13086 esac
13087
13088 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13089 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13090 library_names_spec=
13091 libname_spec='lib$name'
13092 soname_spec=
13093 shrext_cmds=".so"
13094 postinstall_cmds=
13095 postuninstall_cmds=
13096 finish_cmds=
13097 finish_eval=
13098 shlibpath_var=
13099 shlibpath_overrides_runpath=unknown
13100 version_type=none
13101 dynamic_linker="$host_os ld.so"
13102 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13103 if test "$GCC" = yes; then
13104   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13105   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13106     # if the path contains ";" then we assume it to be the separator
13107     # otherwise default to the standard path separator (i.e. ":") - it is
13108     # assumed that no part of a normal pathname contains ";" but that should
13109     # okay in the real world where ";" in dirpaths is itself problematic.
13110     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13111   else
13112     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13113   fi
13114 else
13115   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13116 fi
13117 need_lib_prefix=unknown
13118 hardcode_into_libs=no
13119
13120 # when you set need_version to no, make sure it does not cause -set_version
13121 # flags to be left without arguments
13122 need_version=unknown
13123
13124 case $host_os in
13125 aix3*)
13126   version_type=linux
13127   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13128   shlibpath_var=LIBPATH
13129
13130   # AIX 3 has no versioning support, so we append a major version to the name.
13131   soname_spec='${libname}${release}${shared_ext}$major'
13132   ;;
13133
13134 aix4* | aix5*)
13135   version_type=linux
13136   need_lib_prefix=no
13137   need_version=no
13138   hardcode_into_libs=yes
13139   if test "$host_cpu" = ia64; then
13140     # AIX 5 supports IA64
13141     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13142     shlibpath_var=LD_LIBRARY_PATH
13143   else
13144     # With GCC up to 2.95.x, collect2 would create an import file
13145     # for dependence libraries.  The import file would start with
13146     # the line `#! .'.  This would cause the generated library to
13147     # depend on `.', always an invalid library.  This was fixed in
13148     # development snapshots of GCC prior to 3.0.
13149     case $host_os in
13150       aix4 | aix4.[01] | aix4.[01].*)
13151       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13152            echo ' yes '
13153            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13154         :
13155       else
13156         can_build_shared=no
13157       fi
13158       ;;
13159     esac
13160     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13161     # soname into executable. Probably we can add versioning support to
13162     # collect2, so additional links can be useful in future.
13163     if test "$aix_use_runtimelinking" = yes; then
13164       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13165       # instead of lib<name>.a to let people know that these are not
13166       # typical AIX shared libraries.
13167       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13168     else
13169       # We preserve .a as extension for shared libraries through AIX4.2
13170       # and later when we are not doing run time linking.
13171       library_names_spec='${libname}${release}.a $libname.a'
13172       soname_spec='${libname}${release}${shared_ext}$major'
13173     fi
13174     shlibpath_var=LIBPATH
13175   fi
13176   ;;
13177
13178 amigaos*)
13179   library_names_spec='$libname.ixlibrary $libname.a'
13180   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13181   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'
13182   ;;
13183
13184 beos*)
13185   library_names_spec='${libname}${shared_ext}'
13186   dynamic_linker="$host_os ld.so"
13187   shlibpath_var=LIBRARY_PATH
13188   ;;
13189
13190 bsdi[45]*)
13191   version_type=linux
13192   need_version=no
13193   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13194   soname_spec='${libname}${release}${shared_ext}$major'
13195   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13196   shlibpath_var=LD_LIBRARY_PATH
13197   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13198   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13199   # the default ld.so.conf also contains /usr/contrib/lib and
13200   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13201   # libtool to hard-code these into programs
13202   ;;
13203
13204 cygwin* | mingw* | pw32*)
13205   version_type=windows
13206   shrext_cmds=".dll"
13207   need_version=no
13208   need_lib_prefix=no
13209
13210   case $GCC,$host_os in
13211   yes,cygwin* | yes,mingw* | yes,pw32*)
13212     library_names_spec='$libname.dll.a'
13213     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13214     postinstall_cmds='base_file=`basename \${file}`~
13215       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13216       dldir=$destdir/`dirname \$dlpath`~
13217       test -d \$dldir || mkdir -p \$dldir~
13218       $install_prog $dir/$dlname \$dldir/$dlname~
13219       chmod a+x \$dldir/$dlname'
13220     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13221       dlpath=$dir/\$dldll~
13222        $rm \$dlpath'
13223     shlibpath_overrides_runpath=yes
13224
13225     case $host_os in
13226     cygwin*)
13227       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13228       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13229       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13230       ;;
13231     mingw*)
13232       # MinGW DLLs use traditional 'lib' prefix
13233       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13234       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13235       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13236         # It is most probably a Windows format PATH printed by
13237         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13238         # path with ; separators, and with drive letters. We can handle the
13239         # drive letters (cygwin fileutils understands them), so leave them,
13240         # especially as we might pass files found there to a mingw objdump,
13241         # which wouldn't understand a cygwinified path. Ahh.
13242         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13243       else
13244         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13245       fi
13246       ;;
13247     pw32*)
13248       # pw32 DLLs use 'pw' prefix rather than 'lib'
13249       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13250       ;;
13251     esac
13252     ;;
13253
13254   *)
13255     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13256     ;;
13257   esac
13258   dynamic_linker='Win32 ld.exe'
13259   # FIXME: first we should search . and the directory the executable is in
13260   shlibpath_var=PATH
13261   ;;
13262
13263 darwin* | rhapsody*)
13264   dynamic_linker="$host_os dyld"
13265   version_type=darwin
13266   need_lib_prefix=no
13267   need_version=no
13268   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13269   soname_spec='${libname}${release}${major}$shared_ext'
13270   shlibpath_overrides_runpath=yes
13271   shlibpath_var=DYLD_LIBRARY_PATH
13272   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13273   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13274   if test "$GCC" = yes; then
13275     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
13276   else
13277     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13278   fi
13279   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13280   ;;
13281
13282 dgux*)
13283   version_type=linux
13284   need_lib_prefix=no
13285   need_version=no
13286   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13287   soname_spec='${libname}${release}${shared_ext}$major'
13288   shlibpath_var=LD_LIBRARY_PATH
13289   ;;
13290
13291 freebsd1*)
13292   dynamic_linker=no
13293   ;;
13294
13295 kfreebsd*-gnu)
13296   version_type=linux
13297   need_lib_prefix=no
13298   need_version=no
13299   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13300   soname_spec='${libname}${release}${shared_ext}$major'
13301   shlibpath_var=LD_LIBRARY_PATH
13302   shlibpath_overrides_runpath=no
13303   hardcode_into_libs=yes
13304   dynamic_linker='GNU ld.so'
13305   ;;
13306
13307 freebsd* | dragonfly*)
13308   # DragonFly does not have aout.  When/if they implement a new
13309   # versioning mechanism, adjust this.
13310   if test -x /usr/bin/objformat; then
13311     objformat=`/usr/bin/objformat`
13312   else
13313     case $host_os in
13314     freebsd[123]*) objformat=aout ;;
13315     *) objformat=elf ;;
13316     esac
13317   fi
13318   version_type=freebsd-$objformat
13319   case $version_type in
13320     freebsd-elf*)
13321       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13322       need_version=no
13323       need_lib_prefix=no
13324       ;;
13325     freebsd-*)
13326       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13327       need_version=yes
13328       ;;
13329   esac
13330   shlibpath_var=LD_LIBRARY_PATH
13331   case $host_os in
13332   freebsd2*)
13333     shlibpath_overrides_runpath=yes
13334     ;;
13335   freebsd3.[01]* | freebsdelf3.[01]*)
13336     shlibpath_overrides_runpath=yes
13337     hardcode_into_libs=yes
13338     ;;
13339   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13340   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13341     shlibpath_overrides_runpath=no
13342     hardcode_into_libs=yes
13343     ;;
13344   freebsd*) # from 4.6 on
13345     shlibpath_overrides_runpath=yes
13346     hardcode_into_libs=yes
13347     ;;
13348   esac
13349   ;;
13350
13351 gnu*)
13352   version_type=linux
13353   need_lib_prefix=no
13354   need_version=no
13355   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13356   soname_spec='${libname}${release}${shared_ext}$major'
13357   shlibpath_var=LD_LIBRARY_PATH
13358   hardcode_into_libs=yes
13359   ;;
13360
13361 hpux9* | hpux10* | hpux11*)
13362   # Give a soname corresponding to the major version so that dld.sl refuses to
13363   # link against other versions.
13364   version_type=sunos
13365   need_lib_prefix=no
13366   need_version=no
13367   case $host_cpu in
13368   ia64*)
13369     shrext_cmds='.so'
13370     hardcode_into_libs=yes
13371     dynamic_linker="$host_os dld.so"
13372     shlibpath_var=LD_LIBRARY_PATH
13373     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13374     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13375     soname_spec='${libname}${release}${shared_ext}$major'
13376     if test "X$HPUX_IA64_MODE" = X32; then
13377       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13378     else
13379       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13380     fi
13381     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13382     ;;
13383    hppa*64*)
13384      shrext_cmds='.sl'
13385      hardcode_into_libs=yes
13386      dynamic_linker="$host_os dld.sl"
13387      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13388      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13389      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13390      soname_spec='${libname}${release}${shared_ext}$major'
13391      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13392      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13393      ;;
13394    *)
13395     shrext_cmds='.sl'
13396     dynamic_linker="$host_os dld.sl"
13397     shlibpath_var=SHLIB_PATH
13398     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13399     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13400     soname_spec='${libname}${release}${shared_ext}$major'
13401     ;;
13402   esac
13403   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13404   postinstall_cmds='chmod 555 $lib'
13405   ;;
13406
13407 interix3*)
13408   version_type=linux
13409   need_lib_prefix=no
13410   need_version=no
13411   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13412   soname_spec='${libname}${release}${shared_ext}$major'
13413   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13414   shlibpath_var=LD_LIBRARY_PATH
13415   shlibpath_overrides_runpath=no
13416   hardcode_into_libs=yes
13417   ;;
13418
13419 irix5* | irix6* | nonstopux*)
13420   case $host_os in
13421     nonstopux*) version_type=nonstopux ;;
13422     *)
13423         if test "$lt_cv_prog_gnu_ld" = yes; then
13424                 version_type=linux
13425         else
13426                 version_type=irix
13427         fi ;;
13428   esac
13429   need_lib_prefix=no
13430   need_version=no
13431   soname_spec='${libname}${release}${shared_ext}$major'
13432   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13433   case $host_os in
13434   irix5* | nonstopux*)
13435     libsuff= shlibsuff=
13436     ;;
13437   *)
13438     case $LD in # libtool.m4 will add one of these switches to LD
13439     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13440       libsuff= shlibsuff= libmagic=32-bit;;
13441     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13442       libsuff=32 shlibsuff=N32 libmagic=N32;;
13443     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13444       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13445     *) libsuff= shlibsuff= libmagic=never-match;;
13446     esac
13447     ;;
13448   esac
13449   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13450   shlibpath_overrides_runpath=no
13451   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13452   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13453   hardcode_into_libs=yes
13454   ;;
13455
13456 # No shared lib support for Linux oldld, aout, or coff.
13457 linux*oldld* | linux*aout* | linux*coff*)
13458   dynamic_linker=no
13459   ;;
13460
13461 # This must be Linux ELF.
13462 linux*)
13463   version_type=linux
13464   need_lib_prefix=no
13465   need_version=no
13466   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13467   soname_spec='${libname}${release}${shared_ext}$major'
13468   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13469   shlibpath_var=LD_LIBRARY_PATH
13470   shlibpath_overrides_runpath=no
13471   # This implies no fast_install, which is unacceptable.
13472   # Some rework will be needed to allow for fast_install
13473   # before this can be enabled.
13474   hardcode_into_libs=yes
13475
13476   # Append ld.so.conf contents to the search path
13477   if test -f /etc/ld.so.conf; then
13478     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13479     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13480   fi
13481
13482   # We used to test for /lib/ld.so.1 and disable shared libraries on
13483   # powerpc, because MkLinux only supported shared libraries with the
13484   # GNU dynamic linker.  Since this was broken with cross compilers,
13485   # most powerpc-linux boxes support dynamic linking these days and
13486   # people can always --disable-shared, the test was removed, and we
13487   # assume the GNU/Linux dynamic linker is in use.
13488   dynamic_linker='GNU/Linux ld.so'
13489   ;;
13490
13491 knetbsd*-gnu)
13492   version_type=linux
13493   need_lib_prefix=no
13494   need_version=no
13495   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13496   soname_spec='${libname}${release}${shared_ext}$major'
13497   shlibpath_var=LD_LIBRARY_PATH
13498   shlibpath_overrides_runpath=no
13499   hardcode_into_libs=yes
13500   dynamic_linker='GNU ld.so'
13501   ;;
13502
13503 netbsd*)
13504   version_type=sunos
13505   need_lib_prefix=no
13506   need_version=no
13507   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13508     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13509     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13510     dynamic_linker='NetBSD (a.out) ld.so'
13511   else
13512     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13513     soname_spec='${libname}${release}${shared_ext}$major'
13514     dynamic_linker='NetBSD ld.elf_so'
13515   fi
13516   shlibpath_var=LD_LIBRARY_PATH
13517   shlibpath_overrides_runpath=yes
13518   hardcode_into_libs=yes
13519   ;;
13520
13521 newsos6)
13522   version_type=linux
13523   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13524   shlibpath_var=LD_LIBRARY_PATH
13525   shlibpath_overrides_runpath=yes
13526   ;;
13527
13528 nto-qnx*)
13529   version_type=linux
13530   need_lib_prefix=no
13531   need_version=no
13532   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13533   soname_spec='${libname}${release}${shared_ext}$major'
13534   shlibpath_var=LD_LIBRARY_PATH
13535   shlibpath_overrides_runpath=yes
13536   ;;
13537
13538 openbsd*)
13539   version_type=sunos
13540   sys_lib_dlsearch_path_spec="/usr/lib"
13541   need_lib_prefix=no
13542   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13543   case $host_os in
13544     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13545     *)                         need_version=no  ;;
13546   esac
13547   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13548   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13549   shlibpath_var=LD_LIBRARY_PATH
13550   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13551     case $host_os in
13552       openbsd2.[89] | openbsd2.[89].*)
13553         shlibpath_overrides_runpath=no
13554         ;;
13555       *)
13556         shlibpath_overrides_runpath=yes
13557         ;;
13558       esac
13559   else
13560     shlibpath_overrides_runpath=yes
13561   fi
13562   ;;
13563
13564 os2*)
13565   libname_spec='$name'
13566   shrext_cmds=".dll"
13567   need_lib_prefix=no
13568   library_names_spec='$libname${shared_ext} $libname.a'
13569   dynamic_linker='OS/2 ld.exe'
13570   shlibpath_var=LIBPATH
13571   ;;
13572
13573 osf3* | osf4* | osf5*)
13574   version_type=osf
13575   need_lib_prefix=no
13576   need_version=no
13577   soname_spec='${libname}${release}${shared_ext}$major'
13578   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13579   shlibpath_var=LD_LIBRARY_PATH
13580   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13581   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13582   ;;
13583
13584 solaris*)
13585   version_type=linux
13586   need_lib_prefix=no
13587   need_version=no
13588   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13589   soname_spec='${libname}${release}${shared_ext}$major'
13590   shlibpath_var=LD_LIBRARY_PATH
13591   shlibpath_overrides_runpath=yes
13592   hardcode_into_libs=yes
13593   # ldd complains unless libraries are executable
13594   postinstall_cmds='chmod +x $lib'
13595   ;;
13596
13597 sunos4*)
13598   version_type=sunos
13599   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13600   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13601   shlibpath_var=LD_LIBRARY_PATH
13602   shlibpath_overrides_runpath=yes
13603   if test "$with_gnu_ld" = yes; then
13604     need_lib_prefix=no
13605   fi
13606   need_version=yes
13607   ;;
13608
13609 sysv4 | sysv4.3*)
13610   version_type=linux
13611   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13612   soname_spec='${libname}${release}${shared_ext}$major'
13613   shlibpath_var=LD_LIBRARY_PATH
13614   case $host_vendor in
13615     sni)
13616       shlibpath_overrides_runpath=no
13617       need_lib_prefix=no
13618       export_dynamic_flag_spec='${wl}-Blargedynsym'
13619       runpath_var=LD_RUN_PATH
13620       ;;
13621     siemens)
13622       need_lib_prefix=no
13623       ;;
13624     motorola)
13625       need_lib_prefix=no
13626       need_version=no
13627       shlibpath_overrides_runpath=no
13628       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13629       ;;
13630   esac
13631   ;;
13632
13633 sysv4*MP*)
13634   if test -d /usr/nec ;then
13635     version_type=linux
13636     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13637     soname_spec='$libname${shared_ext}.$major'
13638     shlibpath_var=LD_LIBRARY_PATH
13639   fi
13640   ;;
13641
13642 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13643   version_type=freebsd-elf
13644   need_lib_prefix=no
13645   need_version=no
13646   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13647   soname_spec='${libname}${release}${shared_ext}$major'
13648   shlibpath_var=LD_LIBRARY_PATH
13649   hardcode_into_libs=yes
13650   if test "$with_gnu_ld" = yes; then
13651     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13652     shlibpath_overrides_runpath=no
13653   else
13654     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13655     shlibpath_overrides_runpath=yes
13656     case $host_os in
13657       sco3.2v5*)
13658         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13659         ;;
13660     esac
13661   fi
13662   sys_lib_dlsearch_path_spec='/usr/lib'
13663   ;;
13664
13665 uts4*)
13666   version_type=linux
13667   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13668   soname_spec='${libname}${release}${shared_ext}$major'
13669   shlibpath_var=LD_LIBRARY_PATH
13670   ;;
13671
13672 *)
13673   dynamic_linker=no
13674   ;;
13675 esac
13676 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13677 echo "${ECHO_T}$dynamic_linker" >&6; }
13678 test "$dynamic_linker" = no && can_build_shared=no
13679
13680 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13681 if test "$GCC" = yes; then
13682   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13683 fi
13684
13685 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13686 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13687 hardcode_action_CXX=
13688 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13689    test -n "$runpath_var_CXX" || \
13690    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13691
13692   # We can hardcode non-existant directories.
13693   if test "$hardcode_direct_CXX" != no &&
13694      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13695      # have to relink, otherwise we might link with an installed library
13696      # when we should be linking with a yet-to-be-installed one
13697      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13698      test "$hardcode_minus_L_CXX" != no; then
13699     # Linking always hardcodes the temporary library directory.
13700     hardcode_action_CXX=relink
13701   else
13702     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13703     hardcode_action_CXX=immediate
13704   fi
13705 else
13706   # We cannot hardcode anything, or else we can only hardcode existing
13707   # directories.
13708   hardcode_action_CXX=unsupported
13709 fi
13710 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13711 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13712
13713 if test "$hardcode_action_CXX" = relink; then
13714   # Fast installation is not supported
13715   enable_fast_install=no
13716 elif test "$shlibpath_overrides_runpath" = yes ||
13717      test "$enable_shared" = no; then
13718   # Fast installation is not necessary
13719   enable_fast_install=needless
13720 fi
13721
13722
13723 # The else clause should only fire when bootstrapping the
13724 # libtool distribution, otherwise you forgot to ship ltmain.sh
13725 # with your package, and you will get complaints that there are
13726 # no rules to generate ltmain.sh.
13727 if test -f "$ltmain"; then
13728   # See if we are running on zsh, and set the options which allow our commands through
13729   # without removal of \ escapes.
13730   if test -n "${ZSH_VERSION+set}" ; then
13731     setopt NO_GLOB_SUBST
13732   fi
13733   # Now quote all the things that may contain metacharacters while being
13734   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13735   # variables and quote the copies for generation of the libtool script.
13736   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13737     SED SHELL STRIP \
13738     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13739     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13740     deplibs_check_method reload_flag reload_cmds need_locks \
13741     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13742     lt_cv_sys_global_symbol_to_c_name_address \
13743     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13744     old_postinstall_cmds old_postuninstall_cmds \
13745     compiler_CXX \
13746     CC_CXX \
13747     LD_CXX \
13748     lt_prog_compiler_wl_CXX \
13749     lt_prog_compiler_pic_CXX \
13750     lt_prog_compiler_static_CXX \
13751     lt_prog_compiler_no_builtin_flag_CXX \
13752     export_dynamic_flag_spec_CXX \
13753     thread_safe_flag_spec_CXX \
13754     whole_archive_flag_spec_CXX \
13755     enable_shared_with_static_runtimes_CXX \
13756     old_archive_cmds_CXX \
13757     old_archive_from_new_cmds_CXX \
13758     predep_objects_CXX \
13759     postdep_objects_CXX \
13760     predeps_CXX \
13761     postdeps_CXX \
13762     compiler_lib_search_path_CXX \
13763     archive_cmds_CXX \
13764     archive_expsym_cmds_CXX \
13765     postinstall_cmds_CXX \
13766     postuninstall_cmds_CXX \
13767     old_archive_from_expsyms_cmds_CXX \
13768     allow_undefined_flag_CXX \
13769     no_undefined_flag_CXX \
13770     export_symbols_cmds_CXX \
13771     hardcode_libdir_flag_spec_CXX \
13772     hardcode_libdir_flag_spec_ld_CXX \
13773     hardcode_libdir_separator_CXX \
13774     hardcode_automatic_CXX \
13775     module_cmds_CXX \
13776     module_expsym_cmds_CXX \
13777     lt_cv_prog_compiler_c_o_CXX \
13778     exclude_expsyms_CXX \
13779     include_expsyms_CXX; do
13780
13781     case $var in
13782     old_archive_cmds_CXX | \
13783     old_archive_from_new_cmds_CXX | \
13784     archive_cmds_CXX | \
13785     archive_expsym_cmds_CXX | \
13786     module_cmds_CXX | \
13787     module_expsym_cmds_CXX | \
13788     old_archive_from_expsyms_cmds_CXX | \
13789     export_symbols_cmds_CXX | \
13790     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13791     postinstall_cmds | postuninstall_cmds | \
13792     old_postinstall_cmds | old_postuninstall_cmds | \
13793     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13794       # Double-quote double-evaled strings.
13795       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13796       ;;
13797     *)
13798       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13799       ;;
13800     esac
13801   done
13802
13803   case $lt_echo in
13804   *'\$0 --fallback-echo"')
13805     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13806     ;;
13807   esac
13808
13809 cfgfile="$ofile"
13810
13811   cat <<__EOF__ >> "$cfgfile"
13812 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13813
13814 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13815
13816 # Shell to use when invoking shell scripts.
13817 SHELL=$lt_SHELL
13818
13819 # Whether or not to build shared libraries.
13820 build_libtool_libs=$enable_shared
13821
13822 # Whether or not to build static libraries.
13823 build_old_libs=$enable_static
13824
13825 # Whether or not to add -lc for building shared libraries.
13826 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13827
13828 # Whether or not to disallow shared libs when runtime libs are static
13829 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13830
13831 # Whether or not to optimize for fast installation.
13832 fast_install=$enable_fast_install
13833
13834 # The host system.
13835 host_alias=$host_alias
13836 host=$host
13837 host_os=$host_os
13838
13839 # The build system.
13840 build_alias=$build_alias
13841 build=$build
13842 build_os=$build_os
13843
13844 # An echo program that does not interpret backslashes.
13845 echo=$lt_echo
13846
13847 # The archiver.
13848 AR=$lt_AR
13849 AR_FLAGS=$lt_AR_FLAGS
13850
13851 # A C compiler.
13852 LTCC=$lt_LTCC
13853
13854 # LTCC compiler flags.
13855 LTCFLAGS=$lt_LTCFLAGS
13856
13857 # A language-specific compiler.
13858 CC=$lt_compiler_CXX
13859
13860 # Is the compiler the GNU C compiler?
13861 with_gcc=$GCC_CXX
13862
13863 # An ERE matcher.
13864 EGREP=$lt_EGREP
13865
13866 # The linker used to build libraries.
13867 LD=$lt_LD_CXX
13868
13869 # Whether we need hard or soft links.
13870 LN_S=$lt_LN_S
13871
13872 # A BSD-compatible nm program.
13873 NM=$lt_NM
13874
13875 # A symbol stripping program
13876 STRIP=$lt_STRIP
13877
13878 # Used to examine libraries when file_magic_cmd begins "file"
13879 MAGIC_CMD=$MAGIC_CMD
13880
13881 # Used on cygwin: DLL creation program.
13882 DLLTOOL="$DLLTOOL"
13883
13884 # Used on cygwin: object dumper.
13885 OBJDUMP="$OBJDUMP"
13886
13887 # Used on cygwin: assembler.
13888 AS="$AS"
13889
13890 # The name of the directory that contains temporary libtool files.
13891 objdir=$objdir
13892
13893 # How to create reloadable object files.
13894 reload_flag=$lt_reload_flag
13895 reload_cmds=$lt_reload_cmds
13896
13897 # How to pass a linker flag through the compiler.
13898 wl=$lt_lt_prog_compiler_wl_CXX
13899
13900 # Object file suffix (normally "o").
13901 objext="$ac_objext"
13902
13903 # Old archive suffix (normally "a").
13904 libext="$libext"
13905
13906 # Shared library suffix (normally ".so").
13907 shrext_cmds='$shrext_cmds'
13908
13909 # Executable file suffix (normally "").
13910 exeext="$exeext"
13911
13912 # Additional compiler flags for building library objects.
13913 pic_flag=$lt_lt_prog_compiler_pic_CXX
13914 pic_mode=$pic_mode
13915
13916 # What is the maximum length of a command?
13917 max_cmd_len=$lt_cv_sys_max_cmd_len
13918
13919 # Does compiler simultaneously support -c and -o options?
13920 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13921
13922 # Must we lock files when doing compilation?
13923 need_locks=$lt_need_locks
13924
13925 # Do we need the lib prefix for modules?
13926 need_lib_prefix=$need_lib_prefix
13927
13928 # Do we need a version for libraries?
13929 need_version=$need_version
13930
13931 # Whether dlopen is supported.
13932 dlopen_support=$enable_dlopen
13933
13934 # Whether dlopen of programs is supported.
13935 dlopen_self=$enable_dlopen_self
13936
13937 # Whether dlopen of statically linked programs is supported.
13938 dlopen_self_static=$enable_dlopen_self_static
13939
13940 # Compiler flag to prevent dynamic linking.
13941 link_static_flag=$lt_lt_prog_compiler_static_CXX
13942
13943 # Compiler flag to turn off builtin functions.
13944 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13945
13946 # Compiler flag to allow reflexive dlopens.
13947 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13948
13949 # Compiler flag to generate shared objects directly from archives.
13950 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13951
13952 # Compiler flag to generate thread-safe objects.
13953 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13954
13955 # Library versioning type.
13956 version_type=$version_type
13957
13958 # Format of library name prefix.
13959 libname_spec=$lt_libname_spec
13960
13961 # List of archive names.  First name is the real one, the rest are links.
13962 # The last name is the one that the linker finds with -lNAME.
13963 library_names_spec=$lt_library_names_spec
13964
13965 # The coded name of the library, if different from the real name.
13966 soname_spec=$lt_soname_spec
13967
13968 # Commands used to build and install an old-style archive.
13969 RANLIB=$lt_RANLIB
13970 old_archive_cmds=$lt_old_archive_cmds_CXX
13971 old_postinstall_cmds=$lt_old_postinstall_cmds
13972 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13973
13974 # Create an old-style archive from a shared archive.
13975 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13976
13977 # Create a temporary old-style archive to link instead of a shared archive.
13978 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13979
13980 # Commands used to build and install a shared archive.
13981 archive_cmds=$lt_archive_cmds_CXX
13982 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13983 postinstall_cmds=$lt_postinstall_cmds
13984 postuninstall_cmds=$lt_postuninstall_cmds
13985
13986 # Commands used to build a loadable module (assumed same as above if empty)
13987 module_cmds=$lt_module_cmds_CXX
13988 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13989
13990 # Commands to strip libraries.
13991 old_striplib=$lt_old_striplib
13992 striplib=$lt_striplib
13993
13994 # Dependencies to place before the objects being linked to create a
13995 # shared library.
13996 predep_objects=$lt_predep_objects_CXX
13997
13998 # Dependencies to place after the objects being linked to create a
13999 # shared library.
14000 postdep_objects=$lt_postdep_objects_CXX
14001
14002 # Dependencies to place before the objects being linked to create a
14003 # shared library.
14004 predeps=$lt_predeps_CXX
14005
14006 # Dependencies to place after the objects being linked to create a
14007 # shared library.
14008 postdeps=$lt_postdeps_CXX
14009
14010 # The library search path used internally by the compiler when linking
14011 # a shared library.
14012 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14013
14014 # Method to check whether dependent libraries are shared objects.
14015 deplibs_check_method=$lt_deplibs_check_method
14016
14017 # Command to use when deplibs_check_method == file_magic.
14018 file_magic_cmd=$lt_file_magic_cmd
14019
14020 # Flag that allows shared libraries with undefined symbols to be built.
14021 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14022
14023 # Flag that forces no undefined symbols.
14024 no_undefined_flag=$lt_no_undefined_flag_CXX
14025
14026 # Commands used to finish a libtool library installation in a directory.
14027 finish_cmds=$lt_finish_cmds
14028
14029 # Same as above, but a single script fragment to be evaled but not shown.
14030 finish_eval=$lt_finish_eval
14031
14032 # Take the output of nm and produce a listing of raw symbols and C names.
14033 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14034
14035 # Transform the output of nm in a proper C declaration
14036 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14037
14038 # Transform the output of nm in a C name address pair
14039 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14040
14041 # This is the shared library runtime path variable.
14042 runpath_var=$runpath_var
14043
14044 # This is the shared library path variable.
14045 shlibpath_var=$shlibpath_var
14046
14047 # Is shlibpath searched before the hard-coded library search path?
14048 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14049
14050 # How to hardcode a shared library path into an executable.
14051 hardcode_action=$hardcode_action_CXX
14052
14053 # Whether we should hardcode library paths into libraries.
14054 hardcode_into_libs=$hardcode_into_libs
14055
14056 # Flag to hardcode \$libdir into a binary during linking.
14057 # This must work even if \$libdir does not exist.
14058 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14059
14060 # If ld is used when linking, flag to hardcode \$libdir into
14061 # a binary during linking. This must work even if \$libdir does
14062 # not exist.
14063 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14064
14065 # Whether we need a single -rpath flag with a separated argument.
14066 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14067
14068 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14069 # resulting binary.
14070 hardcode_direct=$hardcode_direct_CXX
14071
14072 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14073 # resulting binary.
14074 hardcode_minus_L=$hardcode_minus_L_CXX
14075
14076 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14077 # the resulting binary.
14078 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14079
14080 # Set to yes if building a shared library automatically hardcodes DIR into the library
14081 # and all subsequent libraries and executables linked against it.
14082 hardcode_automatic=$hardcode_automatic_CXX
14083
14084 # Variables whose values should be saved in libtool wrapper scripts and
14085 # restored at relink time.
14086 variables_saved_for_relink="$variables_saved_for_relink"
14087
14088 # Whether libtool must link a program against all its dependency libraries.
14089 link_all_deplibs=$link_all_deplibs_CXX
14090
14091 # Compile-time system search path for libraries
14092 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14093
14094 # Run-time system search path for libraries
14095 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14096
14097 # Fix the shell variable \$srcfile for the compiler.
14098 fix_srcfile_path="$fix_srcfile_path_CXX"
14099
14100 # Set to yes if exported symbols are required.
14101 always_export_symbols=$always_export_symbols_CXX
14102
14103 # The commands to list exported symbols.
14104 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14105
14106 # The commands to extract the exported symbol list from a shared archive.
14107 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14108
14109 # Symbols that should not be listed in the preloaded symbols.
14110 exclude_expsyms=$lt_exclude_expsyms_CXX
14111
14112 # Symbols that must always be exported.
14113 include_expsyms=$lt_include_expsyms_CXX
14114
14115 # ### END LIBTOOL TAG CONFIG: $tagname
14116
14117 __EOF__
14118
14119
14120 else
14121   # If there is no Makefile yet, we rely on a make rule to execute
14122   # `config.status --recheck' to rerun these tests and create the
14123   # libtool script then.
14124   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14125   if test -f "$ltmain_in"; then
14126     test -f Makefile && make "$ltmain"
14127   fi
14128 fi
14129
14130
14131 ac_ext=c
14132 ac_cpp='$CPP $CPPFLAGS'
14133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14136
14137 CC=$lt_save_CC
14138 LDCXX=$LD
14139 LD=$lt_save_LD
14140 GCC=$lt_save_GCC
14141 with_gnu_ldcxx=$with_gnu_ld
14142 with_gnu_ld=$lt_save_with_gnu_ld
14143 lt_cv_path_LDCXX=$lt_cv_path_LD
14144 lt_cv_path_LD=$lt_save_path_LD
14145 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14146 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14147
14148         else
14149           tagname=""
14150         fi
14151         ;;
14152
14153       F77)
14154         if test -n "$F77" && test "X$F77" != "Xno"; then
14155
14156 ac_ext=f
14157 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14158 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14159 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14160
14161
14162 archive_cmds_need_lc_F77=no
14163 allow_undefined_flag_F77=
14164 always_export_symbols_F77=no
14165 archive_expsym_cmds_F77=
14166 export_dynamic_flag_spec_F77=
14167 hardcode_direct_F77=no
14168 hardcode_libdir_flag_spec_F77=
14169 hardcode_libdir_flag_spec_ld_F77=
14170 hardcode_libdir_separator_F77=
14171 hardcode_minus_L_F77=no
14172 hardcode_automatic_F77=no
14173 module_cmds_F77=
14174 module_expsym_cmds_F77=
14175 link_all_deplibs_F77=unknown
14176 old_archive_cmds_F77=$old_archive_cmds
14177 no_undefined_flag_F77=
14178 whole_archive_flag_spec_F77=
14179 enable_shared_with_static_runtimes_F77=no
14180
14181 # Source file extension for f77 test sources.
14182 ac_ext=f
14183
14184 # Object file extension for compiled f77 test sources.
14185 objext=o
14186 objext_F77=$objext
14187
14188 # Code to be used in simple compile tests
14189 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
14190
14191 # Code to be used in simple link tests
14192 lt_simple_link_test_code="      program t\n      end\n"
14193
14194 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14195
14196 # If no C compiler was specified, use CC.
14197 LTCC=${LTCC-"$CC"}
14198
14199 # If no C compiler flags were specified, use CFLAGS.
14200 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14201
14202 # Allow CC to be a program name with arguments.
14203 compiler=$CC
14204
14205
14206 # save warnings/boilerplate of simple test code
14207 ac_outfile=conftest.$ac_objext
14208 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14209 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14210 _lt_compiler_boilerplate=`cat conftest.err`
14211 $rm conftest*
14212
14213 ac_outfile=conftest.$ac_objext
14214 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14215 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14216 _lt_linker_boilerplate=`cat conftest.err`
14217 $rm conftest*
14218
14219
14220 # Allow CC to be a program name with arguments.
14221 lt_save_CC="$CC"
14222 CC=${F77-"f77"}
14223 compiler=$CC
14224 compiler_F77=$CC
14225 for cc_temp in $compiler""; do
14226   case $cc_temp in
14227     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14228     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14229     \-*) ;;
14230     *) break;;
14231   esac
14232 done
14233 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14234
14235
14236 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14237 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14238 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14239 echo "${ECHO_T}$can_build_shared" >&6; }
14240
14241 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14242 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14243 test "$can_build_shared" = "no" && enable_shared=no
14244
14245 # On AIX, shared libraries and static libraries use the same namespace, and
14246 # are all built from PIC.
14247 case $host_os in
14248 aix3*)
14249   test "$enable_shared" = yes && enable_static=no
14250   if test -n "$RANLIB"; then
14251     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14252     postinstall_cmds='$RANLIB $lib'
14253   fi
14254   ;;
14255 aix4* | aix5*)
14256   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14257     test "$enable_shared" = yes && enable_static=no
14258   fi
14259   ;;
14260 esac
14261 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14262 echo "${ECHO_T}$enable_shared" >&6; }
14263
14264 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14265 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14266 # Make sure either enable_shared or enable_static is yes.
14267 test "$enable_shared" = yes || enable_static=yes
14268 { echo "$as_me:$LINENO: result: $enable_static" >&5
14269 echo "${ECHO_T}$enable_static" >&6; }
14270
14271 GCC_F77="$G77"
14272 LD_F77="$LD"
14273
14274 lt_prog_compiler_wl_F77=
14275 lt_prog_compiler_pic_F77=
14276 lt_prog_compiler_static_F77=
14277
14278 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14279 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14280
14281   if test "$GCC" = yes; then
14282     lt_prog_compiler_wl_F77='-Wl,'
14283     lt_prog_compiler_static_F77='-static'
14284
14285     case $host_os in
14286       aix*)
14287       # All AIX code is PIC.
14288       if test "$host_cpu" = ia64; then
14289         # AIX 5 now supports IA64 processor
14290         lt_prog_compiler_static_F77='-Bstatic'
14291       fi
14292       ;;
14293
14294     amigaos*)
14295       # FIXME: we need at least 68020 code to build shared libraries, but
14296       # adding the `-m68020' flag to GCC prevents building anything better,
14297       # like `-m68040'.
14298       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14299       ;;
14300
14301     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14302       # PIC is the default for these OSes.
14303       ;;
14304
14305     mingw* | pw32* | os2*)
14306       # This hack is so that the source file can tell whether it is being
14307       # built for inclusion in a dll (and should export symbols for example).
14308       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14309       ;;
14310
14311     darwin* | rhapsody*)
14312       # PIC is the default on this platform
14313       # Common symbols not allowed in MH_DYLIB files
14314       lt_prog_compiler_pic_F77='-fno-common'
14315       ;;
14316
14317     interix3*)
14318       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14319       # Instead, we relocate shared libraries at runtime.
14320       ;;
14321
14322     msdosdjgpp*)
14323       # Just because we use GCC doesn't mean we suddenly get shared libraries
14324       # on systems that don't support them.
14325       lt_prog_compiler_can_build_shared_F77=no
14326       enable_shared=no
14327       ;;
14328
14329     sysv4*MP*)
14330       if test -d /usr/nec; then
14331         lt_prog_compiler_pic_F77=-Kconform_pic
14332       fi
14333       ;;
14334
14335     hpux*)
14336       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14337       # not for PA HP-UX.
14338       case $host_cpu in
14339       hppa*64*|ia64*)
14340         # +Z the default
14341         ;;
14342       *)
14343         lt_prog_compiler_pic_F77='-fPIC'
14344         ;;
14345       esac
14346       ;;
14347
14348     *)
14349       lt_prog_compiler_pic_F77='-fPIC'
14350       ;;
14351     esac
14352   else
14353     # PORTME Check for flag to pass linker flags through the system compiler.
14354     case $host_os in
14355     aix*)
14356       lt_prog_compiler_wl_F77='-Wl,'
14357       if test "$host_cpu" = ia64; then
14358         # AIX 5 now supports IA64 processor
14359         lt_prog_compiler_static_F77='-Bstatic'
14360       else
14361         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14362       fi
14363       ;;
14364       darwin*)
14365         # PIC is the default on this platform
14366         # Common symbols not allowed in MH_DYLIB files
14367        case $cc_basename in
14368          xlc*)
14369          lt_prog_compiler_pic_F77='-qnocommon'
14370          lt_prog_compiler_wl_F77='-Wl,'
14371          ;;
14372        esac
14373        ;;
14374
14375     mingw* | pw32* | os2*)
14376       # This hack is so that the source file can tell whether it is being
14377       # built for inclusion in a dll (and should export symbols for example).
14378       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14379       ;;
14380
14381     hpux9* | hpux10* | hpux11*)
14382       lt_prog_compiler_wl_F77='-Wl,'
14383       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14384       # not for PA HP-UX.
14385       case $host_cpu in
14386       hppa*64*|ia64*)
14387         # +Z the default
14388         ;;
14389       *)
14390         lt_prog_compiler_pic_F77='+Z'
14391         ;;
14392       esac
14393       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14394       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14395       ;;
14396
14397     irix5* | irix6* | nonstopux*)
14398       lt_prog_compiler_wl_F77='-Wl,'
14399       # PIC (with -KPIC) is the default.
14400       lt_prog_compiler_static_F77='-non_shared'
14401       ;;
14402
14403     newsos6)
14404       lt_prog_compiler_pic_F77='-KPIC'
14405       lt_prog_compiler_static_F77='-Bstatic'
14406       ;;
14407
14408     linux*)
14409       case $cc_basename in
14410       icc* | ecc*)
14411         lt_prog_compiler_wl_F77='-Wl,'
14412         lt_prog_compiler_pic_F77='-KPIC'
14413         lt_prog_compiler_static_F77='-static'
14414         ;;
14415       pgcc* | pgf77* | pgf90* | pgf95*)
14416         # Portland Group compilers (*not* the Pentium gcc compiler,
14417         # which looks to be a dead project)
14418         lt_prog_compiler_wl_F77='-Wl,'
14419         lt_prog_compiler_pic_F77='-fpic'
14420         lt_prog_compiler_static_F77='-Bstatic'
14421         ;;
14422       ccc*)
14423         lt_prog_compiler_wl_F77='-Wl,'
14424         # All Alpha code is PIC.
14425         lt_prog_compiler_static_F77='-non_shared'
14426         ;;
14427       esac
14428       ;;
14429
14430     osf3* | osf4* | osf5*)
14431       lt_prog_compiler_wl_F77='-Wl,'
14432       # All OSF/1 code is PIC.
14433       lt_prog_compiler_static_F77='-non_shared'
14434       ;;
14435
14436     solaris*)
14437       lt_prog_compiler_pic_F77='-KPIC'
14438       lt_prog_compiler_static_F77='-Bstatic'
14439       case $cc_basename in
14440       f77* | f90* | f95*)
14441         lt_prog_compiler_wl_F77='-Qoption ld ';;
14442       *)
14443         lt_prog_compiler_wl_F77='-Wl,';;
14444       esac
14445       ;;
14446
14447     sunos4*)
14448       lt_prog_compiler_wl_F77='-Qoption ld '
14449       lt_prog_compiler_pic_F77='-PIC'
14450       lt_prog_compiler_static_F77='-Bstatic'
14451       ;;
14452
14453     sysv4 | sysv4.2uw2* | sysv4.3*)
14454       lt_prog_compiler_wl_F77='-Wl,'
14455       lt_prog_compiler_pic_F77='-KPIC'
14456       lt_prog_compiler_static_F77='-Bstatic'
14457       ;;
14458
14459     sysv4*MP*)
14460       if test -d /usr/nec ;then
14461         lt_prog_compiler_pic_F77='-Kconform_pic'
14462         lt_prog_compiler_static_F77='-Bstatic'
14463       fi
14464       ;;
14465
14466     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14467       lt_prog_compiler_wl_F77='-Wl,'
14468       lt_prog_compiler_pic_F77='-KPIC'
14469       lt_prog_compiler_static_F77='-Bstatic'
14470       ;;
14471
14472     unicos*)
14473       lt_prog_compiler_wl_F77='-Wl,'
14474       lt_prog_compiler_can_build_shared_F77=no
14475       ;;
14476
14477     uts4*)
14478       lt_prog_compiler_pic_F77='-pic'
14479       lt_prog_compiler_static_F77='-Bstatic'
14480       ;;
14481
14482     *)
14483       lt_prog_compiler_can_build_shared_F77=no
14484       ;;
14485     esac
14486   fi
14487
14488 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14489 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14490
14491 #
14492 # Check to make sure the PIC flag actually works.
14493 #
14494 if test -n "$lt_prog_compiler_pic_F77"; then
14495
14496 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14497 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14498 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14499   echo $ECHO_N "(cached) $ECHO_C" >&6
14500 else
14501   lt_prog_compiler_pic_works_F77=no
14502   ac_outfile=conftest.$ac_objext
14503    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14504    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14505    # Insert the option either (1) after the last *FLAGS variable, or
14506    # (2) before a word containing "conftest.", or (3) at the end.
14507    # Note that $ac_compile itself does not contain backslashes and begins
14508    # with a dollar sign (not a hyphen), so the echo should work correctly.
14509    # The option is referenced via a variable to avoid confusing sed.
14510    lt_compile=`echo "$ac_compile" | $SED \
14511    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14512    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14513    -e 's:$: $lt_compiler_flag:'`
14514    (eval echo "\"\$as_me:14514: $lt_compile\"" >&5)
14515    (eval "$lt_compile" 2>conftest.err)
14516    ac_status=$?
14517    cat conftest.err >&5
14518    echo "$as_me:14518: \$? = $ac_status" >&5
14519    if (exit $ac_status) && test -s "$ac_outfile"; then
14520      # The compiler can only warn and ignore the option if not recognized
14521      # So say no if there are warnings other than the usual output.
14522      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14523      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14524      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14525        lt_prog_compiler_pic_works_F77=yes
14526      fi
14527    fi
14528    $rm conftest*
14529
14530 fi
14531 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14532 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14533
14534 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14535     case $lt_prog_compiler_pic_F77 in
14536      "" | " "*) ;;
14537      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14538      esac
14539 else
14540     lt_prog_compiler_pic_F77=
14541      lt_prog_compiler_can_build_shared_F77=no
14542 fi
14543
14544 fi
14545 case $host_os in
14546   # For platforms which do not support PIC, -DPIC is meaningless:
14547   *djgpp*)
14548     lt_prog_compiler_pic_F77=
14549     ;;
14550   *)
14551     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14552     ;;
14553 esac
14554
14555 #
14556 # Check to make sure the static flag actually works.
14557 #
14558 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14559 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14560 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14561 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14562   echo $ECHO_N "(cached) $ECHO_C" >&6
14563 else
14564   lt_prog_compiler_static_works_F77=no
14565    save_LDFLAGS="$LDFLAGS"
14566    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14567    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14568    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14569      # The linker can only warn and ignore the option if not recognized
14570      # So say no if there are warnings
14571      if test -s conftest.err; then
14572        # Append any errors to the config.log.
14573        cat conftest.err 1>&5
14574        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14575        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14576        if diff conftest.exp conftest.er2 >/dev/null; then
14577          lt_prog_compiler_static_works_F77=yes
14578        fi
14579      else
14580        lt_prog_compiler_static_works_F77=yes
14581      fi
14582    fi
14583    $rm conftest*
14584    LDFLAGS="$save_LDFLAGS"
14585
14586 fi
14587 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14588 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14589
14590 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14591     :
14592 else
14593     lt_prog_compiler_static_F77=
14594 fi
14595
14596
14597 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14598 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14599 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14600   echo $ECHO_N "(cached) $ECHO_C" >&6
14601 else
14602   lt_cv_prog_compiler_c_o_F77=no
14603    $rm -r conftest 2>/dev/null
14604    mkdir conftest
14605    cd conftest
14606    mkdir out
14607    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14608
14609    lt_compiler_flag="-o out/conftest2.$ac_objext"
14610    # Insert the option either (1) after the last *FLAGS variable, or
14611    # (2) before a word containing "conftest.", or (3) at the end.
14612    # Note that $ac_compile itself does not contain backslashes and begins
14613    # with a dollar sign (not a hyphen), so the echo should work correctly.
14614    lt_compile=`echo "$ac_compile" | $SED \
14615    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14616    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14617    -e 's:$: $lt_compiler_flag:'`
14618    (eval echo "\"\$as_me:14618: $lt_compile\"" >&5)
14619    (eval "$lt_compile" 2>out/conftest.err)
14620    ac_status=$?
14621    cat out/conftest.err >&5
14622    echo "$as_me:14622: \$? = $ac_status" >&5
14623    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14624    then
14625      # The compiler can only warn and ignore the option if not recognized
14626      # So say no if there are warnings
14627      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14628      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14629      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14630        lt_cv_prog_compiler_c_o_F77=yes
14631      fi
14632    fi
14633    chmod u+w . 2>&5
14634    $rm conftest*
14635    # SGI C++ compiler will create directory out/ii_files/ for
14636    # template instantiation
14637    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14638    $rm out/* && rmdir out
14639    cd ..
14640    rmdir conftest
14641    $rm conftest*
14642
14643 fi
14644 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14645 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14646
14647
14648 hard_links="nottested"
14649 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14650   # do not overwrite the value of need_locks provided by the user
14651   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14652 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14653   hard_links=yes
14654   $rm conftest*
14655   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14656   touch conftest.a
14657   ln conftest.a conftest.b 2>&5 || hard_links=no
14658   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14659   { echo "$as_me:$LINENO: result: $hard_links" >&5
14660 echo "${ECHO_T}$hard_links" >&6; }
14661   if test "$hard_links" = no; then
14662     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14663 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14664     need_locks=warn
14665   fi
14666 else
14667   need_locks=no
14668 fi
14669
14670 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14671 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14672
14673   runpath_var=
14674   allow_undefined_flag_F77=
14675   enable_shared_with_static_runtimes_F77=no
14676   archive_cmds_F77=
14677   archive_expsym_cmds_F77=
14678   old_archive_From_new_cmds_F77=
14679   old_archive_from_expsyms_cmds_F77=
14680   export_dynamic_flag_spec_F77=
14681   whole_archive_flag_spec_F77=
14682   thread_safe_flag_spec_F77=
14683   hardcode_libdir_flag_spec_F77=
14684   hardcode_libdir_flag_spec_ld_F77=
14685   hardcode_libdir_separator_F77=
14686   hardcode_direct_F77=no
14687   hardcode_minus_L_F77=no
14688   hardcode_shlibpath_var_F77=unsupported
14689   link_all_deplibs_F77=unknown
14690   hardcode_automatic_F77=no
14691   module_cmds_F77=
14692   module_expsym_cmds_F77=
14693   always_export_symbols_F77=no
14694   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14695   # include_expsyms should be a list of space-separated symbols to be *always*
14696   # included in the symbol list
14697   include_expsyms_F77=
14698   # exclude_expsyms can be an extended regexp of symbols to exclude
14699   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14700   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14701   # as well as any symbol that contains `d'.
14702   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14703   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14704   # platforms (ab)use it in PIC code, but their linkers get confused if
14705   # the symbol is explicitly referenced.  Since portable code cannot
14706   # rely on this symbol name, it's probably fine to never include it in
14707   # preloaded symbol tables.
14708   extract_expsyms_cmds=
14709   # Just being paranoid about ensuring that cc_basename is set.
14710   for cc_temp in $compiler""; do
14711   case $cc_temp in
14712     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14713     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14714     \-*) ;;
14715     *) break;;
14716   esac
14717 done
14718 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14719
14720   case $host_os in
14721   cygwin* | mingw* | pw32*)
14722     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14723     # When not using gcc, we currently assume that we are using
14724     # Microsoft Visual C++.
14725     if test "$GCC" != yes; then
14726       with_gnu_ld=no
14727     fi
14728     ;;
14729   interix*)
14730     # we just hope/assume this is gcc and not c89 (= MSVC++)
14731     with_gnu_ld=yes
14732     ;;
14733   openbsd*)
14734     with_gnu_ld=no
14735     ;;
14736   esac
14737
14738   ld_shlibs_F77=yes
14739   if test "$with_gnu_ld" = yes; then
14740     # If archive_cmds runs LD, not CC, wlarc should be empty
14741     wlarc='${wl}'
14742
14743     # Set some defaults for GNU ld with shared library support. These
14744     # are reset later if shared libraries are not supported. Putting them
14745     # here allows them to be overridden if necessary.
14746     runpath_var=LD_RUN_PATH
14747     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14748     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14749     # ancient GNU ld didn't support --whole-archive et. al.
14750     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14751         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14752       else
14753         whole_archive_flag_spec_F77=
14754     fi
14755     supports_anon_versioning=no
14756     case `$LD -v 2>/dev/null` in
14757       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14758       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14759       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14760       *\ 2.11.*) ;; # other 2.11 versions
14761       *) supports_anon_versioning=yes ;;
14762     esac
14763
14764     # See if GNU ld supports shared libraries.
14765     case $host_os in
14766     aix3* | aix4* | aix5*)
14767       # On AIX/PPC, the GNU linker is very broken
14768       if test "$host_cpu" != ia64; then
14769         ld_shlibs_F77=no
14770         cat <<EOF 1>&2
14771
14772 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14773 *** to be unable to reliably create shared libraries on AIX.
14774 *** Therefore, libtool is disabling shared libraries support.  If you
14775 *** really care for shared libraries, you may want to modify your PATH
14776 *** so that a non-GNU linker is found, and then restart.
14777
14778 EOF
14779       fi
14780       ;;
14781
14782     amigaos*)
14783       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)'
14784       hardcode_libdir_flag_spec_F77='-L$libdir'
14785       hardcode_minus_L_F77=yes
14786
14787       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14788       # that the semantics of dynamic libraries on AmigaOS, at least up
14789       # to version 4, is to share data among multiple programs linked
14790       # with the same dynamic library.  Since this doesn't match the
14791       # behavior of shared libraries on other platforms, we can't use
14792       # them.
14793       ld_shlibs_F77=no
14794       ;;
14795
14796     beos*)
14797       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14798         allow_undefined_flag_F77=unsupported
14799         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14800         # support --undefined.  This deserves some investigation.  FIXME
14801         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14802       else
14803         ld_shlibs_F77=no
14804       fi
14805       ;;
14806
14807     cygwin* | mingw* | pw32*)
14808       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14809       # as there is no search path for DLLs.
14810       hardcode_libdir_flag_spec_F77='-L$libdir'
14811       allow_undefined_flag_F77=unsupported
14812       always_export_symbols_F77=no
14813       enable_shared_with_static_runtimes_F77=yes
14814       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14815
14816       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14817         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14818         # If the export-symbols file already is a .def file (1st line
14819         # is EXPORTS), use it as is; otherwise, prepend...
14820         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14821           cp $export_symbols $output_objdir/$soname.def;
14822         else
14823           echo EXPORTS > $output_objdir/$soname.def;
14824           cat $export_symbols >> $output_objdir/$soname.def;
14825         fi~
14826         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14827       else
14828         ld_shlibs_F77=no
14829       fi
14830       ;;
14831
14832     interix3*)
14833       hardcode_direct_F77=no
14834       hardcode_shlibpath_var_F77=no
14835       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14836       export_dynamic_flag_spec_F77='${wl}-E'
14837       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14838       # Instead, shared libraries are loaded at an image base (0x10000000 by
14839       # default) and relocated if they conflict, which is a slow very memory
14840       # consuming and fragmenting process.  To avoid this, we pick a random,
14841       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14842       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14843       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'
14844       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'
14845       ;;
14846
14847     linux*)
14848       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14849         tmp_addflag=
14850         case $cc_basename,$host_cpu in
14851         pgcc*)                          # Portland Group C compiler
14852           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'
14853           tmp_addflag=' $pic_flag'
14854           ;;
14855         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14856           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'
14857           tmp_addflag=' $pic_flag -Mnomain' ;;
14858         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14859           tmp_addflag=' -i_dynamic' ;;
14860         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14861           tmp_addflag=' -i_dynamic -nofor_main' ;;
14862         ifc* | ifort*)                  # Intel Fortran compiler
14863           tmp_addflag=' -nofor_main' ;;
14864         esac
14865         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14866
14867         if test $supports_anon_versioning = yes; then
14868           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14869   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14870   $echo "local: *; };" >> $output_objdir/$libname.ver~
14871           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14872         fi
14873       else
14874         ld_shlibs_F77=no
14875       fi
14876       ;;
14877
14878     netbsd*)
14879       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14880         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14881         wlarc=
14882       else
14883         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14884         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14885       fi
14886       ;;
14887
14888     solaris*)
14889       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14890         ld_shlibs_F77=no
14891         cat <<EOF 1>&2
14892
14893 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14894 *** create shared libraries on Solaris systems.  Therefore, libtool
14895 *** is disabling shared libraries support.  We urge you to upgrade GNU
14896 *** binutils to release 2.9.1 or newer.  Another option is to modify
14897 *** your PATH or compiler configuration so that the native linker is
14898 *** used, and then restart.
14899
14900 EOF
14901       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14902         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14903         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14904       else
14905         ld_shlibs_F77=no
14906       fi
14907       ;;
14908
14909     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14910       case `$LD -v 2>&1` in
14911         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14912         ld_shlibs_F77=no
14913         cat <<_LT_EOF 1>&2
14914
14915 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14916 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14917 *** is disabling shared libraries support.  We urge you to upgrade GNU
14918 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14919 *** your PATH or compiler configuration so that the native linker is
14920 *** used, and then restart.
14921
14922 _LT_EOF
14923         ;;
14924         *)
14925           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14926             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14927             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14928             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14929           else
14930             ld_shlibs_F77=no
14931           fi
14932         ;;
14933       esac
14934       ;;
14935
14936     sunos4*)
14937       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14938       wlarc=
14939       hardcode_direct_F77=yes
14940       hardcode_shlibpath_var_F77=no
14941       ;;
14942
14943     *)
14944       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14945         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14946         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14947       else
14948         ld_shlibs_F77=no
14949       fi
14950       ;;
14951     esac
14952
14953     if test "$ld_shlibs_F77" = no; then
14954       runpath_var=
14955       hardcode_libdir_flag_spec_F77=
14956       export_dynamic_flag_spec_F77=
14957       whole_archive_flag_spec_F77=
14958     fi
14959   else
14960     # PORTME fill in a description of your system's linker (not GNU ld)
14961     case $host_os in
14962     aix3*)
14963       allow_undefined_flag_F77=unsupported
14964       always_export_symbols_F77=yes
14965       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'
14966       # Note: this linker hardcodes the directories in LIBPATH if there
14967       # are no directories specified by -L.
14968       hardcode_minus_L_F77=yes
14969       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14970         # Neither direct hardcoding nor static linking is supported with a
14971         # broken collect2.
14972         hardcode_direct_F77=unsupported
14973       fi
14974       ;;
14975
14976     aix4* | aix5*)
14977       if test "$host_cpu" = ia64; then
14978         # On IA64, the linker does run time linking by default, so we don't
14979         # have to do anything special.
14980         aix_use_runtimelinking=no
14981         exp_sym_flag='-Bexport'
14982         no_entry_flag=""
14983       else
14984         # If we're using GNU nm, then we don't want the "-C" option.
14985         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14986         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14987           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'
14988         else
14989           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'
14990         fi
14991         aix_use_runtimelinking=no
14992
14993         # Test if we are trying to use run time linking or normal
14994         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14995         # need to do runtime linking.
14996         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14997           for ld_flag in $LDFLAGS; do
14998           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14999             aix_use_runtimelinking=yes
15000             break
15001           fi
15002           done
15003           ;;
15004         esac
15005
15006         exp_sym_flag='-bexport'
15007         no_entry_flag='-bnoentry'
15008       fi
15009
15010       # When large executables or shared objects are built, AIX ld can
15011       # have problems creating the table of contents.  If linking a library
15012       # or program results in "error TOC overflow" add -mminimal-toc to
15013       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15014       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15015
15016       archive_cmds_F77=''
15017       hardcode_direct_F77=yes
15018       hardcode_libdir_separator_F77=':'
15019       link_all_deplibs_F77=yes
15020
15021       if test "$GCC" = yes; then
15022         case $host_os in aix4.[012]|aix4.[012].*)
15023         # We only want to do this on AIX 4.2 and lower, the check
15024         # below for broken collect2 doesn't work under 4.3+
15025           collect2name=`${CC} -print-prog-name=collect2`
15026           if test -f "$collect2name" && \
15027            strings "$collect2name" | grep resolve_lib_name >/dev/null
15028           then
15029           # We have reworked collect2
15030           hardcode_direct_F77=yes
15031           else
15032           # We have old collect2
15033           hardcode_direct_F77=unsupported
15034           # It fails to find uninstalled libraries when the uninstalled
15035           # path is not listed in the libpath.  Setting hardcode_minus_L
15036           # to unsupported forces relinking
15037           hardcode_minus_L_F77=yes
15038           hardcode_libdir_flag_spec_F77='-L$libdir'
15039           hardcode_libdir_separator_F77=
15040           fi
15041           ;;
15042         esac
15043         shared_flag='-shared'
15044         if test "$aix_use_runtimelinking" = yes; then
15045           shared_flag="$shared_flag "'${wl}-G'
15046         fi
15047       else
15048         # not using gcc
15049         if test "$host_cpu" = ia64; then
15050         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15051         # chokes on -Wl,-G. The following line is correct:
15052           shared_flag='-G'
15053         else
15054           if test "$aix_use_runtimelinking" = yes; then
15055             shared_flag='${wl}-G'
15056           else
15057             shared_flag='${wl}-bM:SRE'
15058           fi
15059         fi
15060       fi
15061
15062       # It seems that -bexpall does not export symbols beginning with
15063       # underscore (_), so it is better to generate a list of symbols to export.
15064       always_export_symbols_F77=yes
15065       if test "$aix_use_runtimelinking" = yes; then
15066         # Warning - without using the other runtime loading flags (-brtl),
15067         # -berok will link without error, but may produce a broken library.
15068         allow_undefined_flag_F77='-berok'
15069        # Determine the default libpath from the value encoded in an empty executable.
15070        cat >conftest.$ac_ext <<_ACEOF
15071       program main
15072
15073       end
15074 _ACEOF
15075 rm -f conftest.$ac_objext conftest$ac_exeext
15076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15077   (eval $ac_link) 2>conftest.er1
15078   ac_status=$?
15079   grep -v '^ *+' conftest.er1 >conftest.err
15080   rm -f conftest.er1
15081   cat conftest.err >&5
15082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083   (exit $ac_status); } &&
15084          { ac_try='test -z "$ac_f77_werror_flag"
15085                          || test ! -s conftest.err'
15086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15087   (eval $ac_try) 2>&5
15088   ac_status=$?
15089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090   (exit $ac_status); }; } &&
15091          { ac_try='test -s conftest$ac_exeext'
15092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15093   (eval $ac_try) 2>&5
15094   ac_status=$?
15095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096   (exit $ac_status); }; }; then
15097
15098 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15099 }'`
15100 # Check for a 64-bit object if we didn't find anything.
15101 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15102 }'`; fi
15103 else
15104   echo "$as_me: failed program was:" >&5
15105 sed 's/^/| /' conftest.$ac_ext >&5
15106
15107
15108 fi
15109
15110 rm -f conftest.err conftest.$ac_objext \
15111       conftest$ac_exeext conftest.$ac_ext
15112 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15113
15114        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15115         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"
15116        else
15117         if test "$host_cpu" = ia64; then
15118           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15119           allow_undefined_flag_F77="-z nodefs"
15120           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"
15121         else
15122          # Determine the default libpath from the value encoded in an empty executable.
15123          cat >conftest.$ac_ext <<_ACEOF
15124       program main
15125
15126       end
15127 _ACEOF
15128 rm -f conftest.$ac_objext conftest$ac_exeext
15129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15130   (eval $ac_link) 2>conftest.er1
15131   ac_status=$?
15132   grep -v '^ *+' conftest.er1 >conftest.err
15133   rm -f conftest.er1
15134   cat conftest.err >&5
15135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136   (exit $ac_status); } &&
15137          { ac_try='test -z "$ac_f77_werror_flag"
15138                          || test ! -s conftest.err'
15139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15140   (eval $ac_try) 2>&5
15141   ac_status=$?
15142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143   (exit $ac_status); }; } &&
15144          { ac_try='test -s conftest$ac_exeext'
15145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15146   (eval $ac_try) 2>&5
15147   ac_status=$?
15148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149   (exit $ac_status); }; }; then
15150
15151 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15152 }'`
15153 # Check for a 64-bit object if we didn't find anything.
15154 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15155 }'`; fi
15156 else
15157   echo "$as_me: failed program was:" >&5
15158 sed 's/^/| /' conftest.$ac_ext >&5
15159
15160
15161 fi
15162
15163 rm -f conftest.err conftest.$ac_objext \
15164       conftest$ac_exeext conftest.$ac_ext
15165 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15166
15167          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15168           # Warning - without using the other run time loading flags,
15169           # -berok will link without error, but may produce a broken library.
15170           no_undefined_flag_F77=' ${wl}-bernotok'
15171           allow_undefined_flag_F77=' ${wl}-berok'
15172           # Exported symbols can be pulled into shared objects from archives
15173           whole_archive_flag_spec_F77='$convenience'
15174           archive_cmds_need_lc_F77=yes
15175           # This is similar to how AIX traditionally builds its shared libraries.
15176           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'
15177         fi
15178       fi
15179       ;;
15180
15181     amigaos*)
15182       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)'
15183       hardcode_libdir_flag_spec_F77='-L$libdir'
15184       hardcode_minus_L_F77=yes
15185       # see comment about different semantics on the GNU ld section
15186       ld_shlibs_F77=no
15187       ;;
15188
15189     bsdi[45]*)
15190       export_dynamic_flag_spec_F77=-rdynamic
15191       ;;
15192
15193     cygwin* | mingw* | pw32*)
15194       # When not using gcc, we currently assume that we are using
15195       # Microsoft Visual C++.
15196       # hardcode_libdir_flag_spec is actually meaningless, as there is
15197       # no search path for DLLs.
15198       hardcode_libdir_flag_spec_F77=' '
15199       allow_undefined_flag_F77=unsupported
15200       # Tell ltmain to make .lib files, not .a files.
15201       libext=lib
15202       # Tell ltmain to make .dll files, not .so files.
15203       shrext_cmds=".dll"
15204       # FIXME: Setting linknames here is a bad hack.
15205       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15206       # The linker will automatically build a .lib file if we build a DLL.
15207       old_archive_From_new_cmds_F77='true'
15208       # FIXME: Should let the user specify the lib program.
15209       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15210       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15211       enable_shared_with_static_runtimes_F77=yes
15212       ;;
15213
15214     darwin* | rhapsody*)
15215       case $host_os in
15216         rhapsody* | darwin1.[012])
15217          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15218          ;;
15219        *) # Darwin 1.3 on
15220          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15221            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15222          else
15223            case ${MACOSX_DEPLOYMENT_TARGET} in
15224              10.[012])
15225                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15226                ;;
15227              10.*)
15228                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15229                ;;
15230            esac
15231          fi
15232          ;;
15233       esac
15234       archive_cmds_need_lc_F77=no
15235       hardcode_direct_F77=no
15236       hardcode_automatic_F77=yes
15237       hardcode_shlibpath_var_F77=unsupported
15238       whole_archive_flag_spec_F77=''
15239       link_all_deplibs_F77=yes
15240     if test "$GCC" = yes ; then
15241         output_verbose_link_cmd='echo'
15242         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15243       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15244       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15245       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15246       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}'
15247     else
15248       case $cc_basename in
15249         xlc*)
15250          output_verbose_link_cmd='echo'
15251          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15252          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15253           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15254          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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15255           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}'
15256           ;;
15257        *)
15258          ld_shlibs_F77=no
15259           ;;
15260       esac
15261     fi
15262       ;;
15263
15264     dgux*)
15265       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15266       hardcode_libdir_flag_spec_F77='-L$libdir'
15267       hardcode_shlibpath_var_F77=no
15268       ;;
15269
15270     freebsd1*)
15271       ld_shlibs_F77=no
15272       ;;
15273
15274     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15275     # support.  Future versions do this automatically, but an explicit c++rt0.o
15276     # does not break anything, and helps significantly (at the cost of a little
15277     # extra space).
15278     freebsd2.2*)
15279       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15280       hardcode_libdir_flag_spec_F77='-R$libdir'
15281       hardcode_direct_F77=yes
15282       hardcode_shlibpath_var_F77=no
15283       ;;
15284
15285     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15286     freebsd2*)
15287       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15288       hardcode_direct_F77=yes
15289       hardcode_minus_L_F77=yes
15290       hardcode_shlibpath_var_F77=no
15291       ;;
15292
15293     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15294     freebsd* | kfreebsd*-gnu | dragonfly*)
15295       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15296       hardcode_libdir_flag_spec_F77='-R$libdir'
15297       hardcode_direct_F77=yes
15298       hardcode_shlibpath_var_F77=no
15299       ;;
15300
15301     hpux9*)
15302       if test "$GCC" = yes; then
15303         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'
15304       else
15305         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'
15306       fi
15307       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15308       hardcode_libdir_separator_F77=:
15309       hardcode_direct_F77=yes
15310
15311       # hardcode_minus_L: Not really in the search PATH,
15312       # but as the default location of the library.
15313       hardcode_minus_L_F77=yes
15314       export_dynamic_flag_spec_F77='${wl}-E'
15315       ;;
15316
15317     hpux10*)
15318       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15319         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15320       else
15321         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15322       fi
15323       if test "$with_gnu_ld" = no; then
15324         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15325         hardcode_libdir_separator_F77=:
15326
15327         hardcode_direct_F77=yes
15328         export_dynamic_flag_spec_F77='${wl}-E'
15329
15330         # hardcode_minus_L: Not really in the search PATH,
15331         # but as the default location of the library.
15332         hardcode_minus_L_F77=yes
15333       fi
15334       ;;
15335
15336     hpux11*)
15337       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15338         case $host_cpu in
15339         hppa*64*)
15340           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15341           ;;
15342         ia64*)
15343           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15344           ;;
15345         *)
15346           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15347           ;;
15348         esac
15349       else
15350         case $host_cpu in
15351         hppa*64*)
15352           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15353           ;;
15354         ia64*)
15355           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15356           ;;
15357         *)
15358           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15359           ;;
15360         esac
15361       fi
15362       if test "$with_gnu_ld" = no; then
15363         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15364         hardcode_libdir_separator_F77=:
15365
15366         case $host_cpu in
15367         hppa*64*|ia64*)
15368           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15369           hardcode_direct_F77=no
15370           hardcode_shlibpath_var_F77=no
15371           ;;
15372         *)
15373           hardcode_direct_F77=yes
15374           export_dynamic_flag_spec_F77='${wl}-E'
15375
15376           # hardcode_minus_L: Not really in the search PATH,
15377           # but as the default location of the library.
15378           hardcode_minus_L_F77=yes
15379           ;;
15380         esac
15381       fi
15382       ;;
15383
15384     irix5* | irix6* | nonstopux*)
15385       if test "$GCC" = yes; then
15386         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'
15387       else
15388         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'
15389         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15390       fi
15391       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15392       hardcode_libdir_separator_F77=:
15393       link_all_deplibs_F77=yes
15394       ;;
15395
15396     netbsd*)
15397       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15398         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15399       else
15400         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15401       fi
15402       hardcode_libdir_flag_spec_F77='-R$libdir'
15403       hardcode_direct_F77=yes
15404       hardcode_shlibpath_var_F77=no
15405       ;;
15406
15407     newsos6)
15408       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15409       hardcode_direct_F77=yes
15410       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15411       hardcode_libdir_separator_F77=:
15412       hardcode_shlibpath_var_F77=no
15413       ;;
15414
15415     openbsd*)
15416       hardcode_direct_F77=yes
15417       hardcode_shlibpath_var_F77=no
15418       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15419         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15420         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15421         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15422         export_dynamic_flag_spec_F77='${wl}-E'
15423       else
15424        case $host_os in
15425          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15426            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15427            hardcode_libdir_flag_spec_F77='-R$libdir'
15428            ;;
15429          *)
15430            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15431            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15432            ;;
15433        esac
15434       fi
15435       ;;
15436
15437     os2*)
15438       hardcode_libdir_flag_spec_F77='-L$libdir'
15439       hardcode_minus_L_F77=yes
15440       allow_undefined_flag_F77=unsupported
15441       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'
15442       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15443       ;;
15444
15445     osf3*)
15446       if test "$GCC" = yes; then
15447         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15448         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'
15449       else
15450         allow_undefined_flag_F77=' -expect_unresolved \*'
15451         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'
15452       fi
15453       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15454       hardcode_libdir_separator_F77=:
15455       ;;
15456
15457     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15458       if test "$GCC" = yes; then
15459         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15460         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'
15461         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15462       else
15463         allow_undefined_flag_F77=' -expect_unresolved \*'
15464         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'
15465         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~
15466         $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'
15467
15468         # Both c and cxx compiler support -rpath directly
15469         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15470       fi
15471       hardcode_libdir_separator_F77=:
15472       ;;
15473
15474     solaris*)
15475       no_undefined_flag_F77=' -z text'
15476       if test "$GCC" = yes; then
15477         wlarc='${wl}'
15478         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15479         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15480           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15481       else
15482         wlarc=''
15483         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15484         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15485         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15486       fi
15487       hardcode_libdir_flag_spec_F77='-R$libdir'
15488       hardcode_shlibpath_var_F77=no
15489       case $host_os in
15490       solaris2.[0-5] | solaris2.[0-5].*) ;;
15491       *)
15492         # The compiler driver will combine linker options so we
15493         # cannot just pass the convience library names through
15494         # without $wl, iff we do not link with $LD.
15495         # Luckily, gcc supports the same syntax we need for Sun Studio.
15496         # Supported since Solaris 2.6 (maybe 2.5.1?)
15497         case $wlarc in
15498         '')
15499           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15500         *)
15501           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15502         esac ;;
15503       esac
15504       link_all_deplibs_F77=yes
15505       ;;
15506
15507     sunos4*)
15508       if test "x$host_vendor" = xsequent; then
15509         # Use $CC to link under sequent, because it throws in some extra .o
15510         # files that make .init and .fini sections work.
15511         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15512       else
15513         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15514       fi
15515       hardcode_libdir_flag_spec_F77='-L$libdir'
15516       hardcode_direct_F77=yes
15517       hardcode_minus_L_F77=yes
15518       hardcode_shlibpath_var_F77=no
15519       ;;
15520
15521     sysv4)
15522       case $host_vendor in
15523         sni)
15524           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15525           hardcode_direct_F77=yes # is this really true???
15526         ;;
15527         siemens)
15528           ## LD is ld it makes a PLAMLIB
15529           ## CC just makes a GrossModule.
15530           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15531           reload_cmds_F77='$CC -r -o $output$reload_objs'
15532           hardcode_direct_F77=no
15533         ;;
15534         motorola)
15535           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15536           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15537         ;;
15538       esac
15539       runpath_var='LD_RUN_PATH'
15540       hardcode_shlibpath_var_F77=no
15541       ;;
15542
15543     sysv4.3*)
15544       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15545       hardcode_shlibpath_var_F77=no
15546       export_dynamic_flag_spec_F77='-Bexport'
15547       ;;
15548
15549     sysv4*MP*)
15550       if test -d /usr/nec; then
15551         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15552         hardcode_shlibpath_var_F77=no
15553         runpath_var=LD_RUN_PATH
15554         hardcode_runpath_var=yes
15555         ld_shlibs_F77=yes
15556       fi
15557       ;;
15558
15559     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15560       no_undefined_flag_F77='${wl}-z,text'
15561       archive_cmds_need_lc_F77=no
15562       hardcode_shlibpath_var_F77=no
15563       runpath_var='LD_RUN_PATH'
15564
15565       if test "$GCC" = yes; then
15566         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15567         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15568       else
15569         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15570         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15571       fi
15572       ;;
15573
15574     sysv5* | sco3.2v5* | sco5v6*)
15575       # Note: We can NOT use -z defs as we might desire, because we do not
15576       # link with -lc, and that would cause any symbols used from libc to
15577       # always be unresolved, which means just about no library would
15578       # ever link correctly.  If we're not using GNU ld we use -z text
15579       # though, which does catch some bad symbols but isn't as heavy-handed
15580       # as -z defs.
15581       no_undefined_flag_F77='${wl}-z,text'
15582       allow_undefined_flag_F77='${wl}-z,nodefs'
15583       archive_cmds_need_lc_F77=no
15584       hardcode_shlibpath_var_F77=no
15585       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15586       hardcode_libdir_separator_F77=':'
15587       link_all_deplibs_F77=yes
15588       export_dynamic_flag_spec_F77='${wl}-Bexport'
15589       runpath_var='LD_RUN_PATH'
15590
15591       if test "$GCC" = yes; then
15592         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15593         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15594       else
15595         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15596         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15597       fi
15598       ;;
15599
15600     uts4*)
15601       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15602       hardcode_libdir_flag_spec_F77='-L$libdir'
15603       hardcode_shlibpath_var_F77=no
15604       ;;
15605
15606     *)
15607       ld_shlibs_F77=no
15608       ;;
15609     esac
15610   fi
15611
15612 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15613 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15614 test "$ld_shlibs_F77" = no && can_build_shared=no
15615
15616 #
15617 # Do we need to explicitly link libc?
15618 #
15619 case "x$archive_cmds_need_lc_F77" in
15620 x|xyes)
15621   # Assume -lc should be added
15622   archive_cmds_need_lc_F77=yes
15623
15624   if test "$enable_shared" = yes && test "$GCC" = yes; then
15625     case $archive_cmds_F77 in
15626     *'~'*)
15627       # FIXME: we may have to deal with multi-command sequences.
15628       ;;
15629     '$CC '*)
15630       # Test whether the compiler implicitly links with -lc since on some
15631       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15632       # to ld, don't add -lc before -lgcc.
15633       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15634 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15635       $rm conftest*
15636       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15637
15638       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15639   (eval $ac_compile) 2>&5
15640   ac_status=$?
15641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15642   (exit $ac_status); } 2>conftest.err; then
15643         soname=conftest
15644         lib=conftest
15645         libobjs=conftest.$ac_objext
15646         deplibs=
15647         wl=$lt_prog_compiler_wl_F77
15648         pic_flag=$lt_prog_compiler_pic_F77
15649         compiler_flags=-v
15650         linker_flags=-v
15651         verstring=
15652         output_objdir=.
15653         libname=conftest
15654         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15655         allow_undefined_flag_F77=
15656         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15657   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15658   ac_status=$?
15659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15660   (exit $ac_status); }
15661         then
15662           archive_cmds_need_lc_F77=no
15663         else
15664           archive_cmds_need_lc_F77=yes
15665         fi
15666         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15667       else
15668         cat conftest.err 1>&5
15669       fi
15670       $rm conftest*
15671       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15672 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15673       ;;
15674     esac
15675   fi
15676   ;;
15677 esac
15678
15679 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15680 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15681 library_names_spec=
15682 libname_spec='lib$name'
15683 soname_spec=
15684 shrext_cmds=".so"
15685 postinstall_cmds=
15686 postuninstall_cmds=
15687 finish_cmds=
15688 finish_eval=
15689 shlibpath_var=
15690 shlibpath_overrides_runpath=unknown
15691 version_type=none
15692 dynamic_linker="$host_os ld.so"
15693 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15694 if test "$GCC" = yes; then
15695   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15696   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15697     # if the path contains ";" then we assume it to be the separator
15698     # otherwise default to the standard path separator (i.e. ":") - it is
15699     # assumed that no part of a normal pathname contains ";" but that should
15700     # okay in the real world where ";" in dirpaths is itself problematic.
15701     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15702   else
15703     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15704   fi
15705 else
15706   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15707 fi
15708 need_lib_prefix=unknown
15709 hardcode_into_libs=no
15710
15711 # when you set need_version to no, make sure it does not cause -set_version
15712 # flags to be left without arguments
15713 need_version=unknown
15714
15715 case $host_os in
15716 aix3*)
15717   version_type=linux
15718   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15719   shlibpath_var=LIBPATH
15720
15721   # AIX 3 has no versioning support, so we append a major version to the name.
15722   soname_spec='${libname}${release}${shared_ext}$major'
15723   ;;
15724
15725 aix4* | aix5*)
15726   version_type=linux
15727   need_lib_prefix=no
15728   need_version=no
15729   hardcode_into_libs=yes
15730   if test "$host_cpu" = ia64; then
15731     # AIX 5 supports IA64
15732     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15733     shlibpath_var=LD_LIBRARY_PATH
15734   else
15735     # With GCC up to 2.95.x, collect2 would create an import file
15736     # for dependence libraries.  The import file would start with
15737     # the line `#! .'.  This would cause the generated library to
15738     # depend on `.', always an invalid library.  This was fixed in
15739     # development snapshots of GCC prior to 3.0.
15740     case $host_os in
15741       aix4 | aix4.[01] | aix4.[01].*)
15742       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15743            echo ' yes '
15744            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15745         :
15746       else
15747         can_build_shared=no
15748       fi
15749       ;;
15750     esac
15751     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15752     # soname into executable. Probably we can add versioning support to
15753     # collect2, so additional links can be useful in future.
15754     if test "$aix_use_runtimelinking" = yes; then
15755       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15756       # instead of lib<name>.a to let people know that these are not
15757       # typical AIX shared libraries.
15758       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15759     else
15760       # We preserve .a as extension for shared libraries through AIX4.2
15761       # and later when we are not doing run time linking.
15762       library_names_spec='${libname}${release}.a $libname.a'
15763       soname_spec='${libname}${release}${shared_ext}$major'
15764     fi
15765     shlibpath_var=LIBPATH
15766   fi
15767   ;;
15768
15769 amigaos*)
15770   library_names_spec='$libname.ixlibrary $libname.a'
15771   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15772   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'
15773   ;;
15774
15775 beos*)
15776   library_names_spec='${libname}${shared_ext}'
15777   dynamic_linker="$host_os ld.so"
15778   shlibpath_var=LIBRARY_PATH
15779   ;;
15780
15781 bsdi[45]*)
15782   version_type=linux
15783   need_version=no
15784   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15785   soname_spec='${libname}${release}${shared_ext}$major'
15786   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15787   shlibpath_var=LD_LIBRARY_PATH
15788   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15789   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15790   # the default ld.so.conf also contains /usr/contrib/lib and
15791   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15792   # libtool to hard-code these into programs
15793   ;;
15794
15795 cygwin* | mingw* | pw32*)
15796   version_type=windows
15797   shrext_cmds=".dll"
15798   need_version=no
15799   need_lib_prefix=no
15800
15801   case $GCC,$host_os in
15802   yes,cygwin* | yes,mingw* | yes,pw32*)
15803     library_names_spec='$libname.dll.a'
15804     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15805     postinstall_cmds='base_file=`basename \${file}`~
15806       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15807       dldir=$destdir/`dirname \$dlpath`~
15808       test -d \$dldir || mkdir -p \$dldir~
15809       $install_prog $dir/$dlname \$dldir/$dlname~
15810       chmod a+x \$dldir/$dlname'
15811     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15812       dlpath=$dir/\$dldll~
15813        $rm \$dlpath'
15814     shlibpath_overrides_runpath=yes
15815
15816     case $host_os in
15817     cygwin*)
15818       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15819       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15820       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15821       ;;
15822     mingw*)
15823       # MinGW DLLs use traditional 'lib' prefix
15824       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15825       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15826       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15827         # It is most probably a Windows format PATH printed by
15828         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15829         # path with ; separators, and with drive letters. We can handle the
15830         # drive letters (cygwin fileutils understands them), so leave them,
15831         # especially as we might pass files found there to a mingw objdump,
15832         # which wouldn't understand a cygwinified path. Ahh.
15833         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15834       else
15835         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15836       fi
15837       ;;
15838     pw32*)
15839       # pw32 DLLs use 'pw' prefix rather than 'lib'
15840       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15841       ;;
15842     esac
15843     ;;
15844
15845   *)
15846     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15847     ;;
15848   esac
15849   dynamic_linker='Win32 ld.exe'
15850   # FIXME: first we should search . and the directory the executable is in
15851   shlibpath_var=PATH
15852   ;;
15853
15854 darwin* | rhapsody*)
15855   dynamic_linker="$host_os dyld"
15856   version_type=darwin
15857   need_lib_prefix=no
15858   need_version=no
15859   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15860   soname_spec='${libname}${release}${major}$shared_ext'
15861   shlibpath_overrides_runpath=yes
15862   shlibpath_var=DYLD_LIBRARY_PATH
15863   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15864   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15865   if test "$GCC" = yes; then
15866     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15867   else
15868     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15869   fi
15870   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15871   ;;
15872
15873 dgux*)
15874   version_type=linux
15875   need_lib_prefix=no
15876   need_version=no
15877   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15878   soname_spec='${libname}${release}${shared_ext}$major'
15879   shlibpath_var=LD_LIBRARY_PATH
15880   ;;
15881
15882 freebsd1*)
15883   dynamic_linker=no
15884   ;;
15885
15886 kfreebsd*-gnu)
15887   version_type=linux
15888   need_lib_prefix=no
15889   need_version=no
15890   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15891   soname_spec='${libname}${release}${shared_ext}$major'
15892   shlibpath_var=LD_LIBRARY_PATH
15893   shlibpath_overrides_runpath=no
15894   hardcode_into_libs=yes
15895   dynamic_linker='GNU ld.so'
15896   ;;
15897
15898 freebsd* | dragonfly*)
15899   # DragonFly does not have aout.  When/if they implement a new
15900   # versioning mechanism, adjust this.
15901   if test -x /usr/bin/objformat; then
15902     objformat=`/usr/bin/objformat`
15903   else
15904     case $host_os in
15905     freebsd[123]*) objformat=aout ;;
15906     *) objformat=elf ;;
15907     esac
15908   fi
15909   version_type=freebsd-$objformat
15910   case $version_type in
15911     freebsd-elf*)
15912       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15913       need_version=no
15914       need_lib_prefix=no
15915       ;;
15916     freebsd-*)
15917       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15918       need_version=yes
15919       ;;
15920   esac
15921   shlibpath_var=LD_LIBRARY_PATH
15922   case $host_os in
15923   freebsd2*)
15924     shlibpath_overrides_runpath=yes
15925     ;;
15926   freebsd3.[01]* | freebsdelf3.[01]*)
15927     shlibpath_overrides_runpath=yes
15928     hardcode_into_libs=yes
15929     ;;
15930   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15931   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15932     shlibpath_overrides_runpath=no
15933     hardcode_into_libs=yes
15934     ;;
15935   freebsd*) # from 4.6 on
15936     shlibpath_overrides_runpath=yes
15937     hardcode_into_libs=yes
15938     ;;
15939   esac
15940   ;;
15941
15942 gnu*)
15943   version_type=linux
15944   need_lib_prefix=no
15945   need_version=no
15946   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15947   soname_spec='${libname}${release}${shared_ext}$major'
15948   shlibpath_var=LD_LIBRARY_PATH
15949   hardcode_into_libs=yes
15950   ;;
15951
15952 hpux9* | hpux10* | hpux11*)
15953   # Give a soname corresponding to the major version so that dld.sl refuses to
15954   # link against other versions.
15955   version_type=sunos
15956   need_lib_prefix=no
15957   need_version=no
15958   case $host_cpu in
15959   ia64*)
15960     shrext_cmds='.so'
15961     hardcode_into_libs=yes
15962     dynamic_linker="$host_os dld.so"
15963     shlibpath_var=LD_LIBRARY_PATH
15964     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15965     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15966     soname_spec='${libname}${release}${shared_ext}$major'
15967     if test "X$HPUX_IA64_MODE" = X32; then
15968       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15969     else
15970       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15971     fi
15972     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15973     ;;
15974    hppa*64*)
15975      shrext_cmds='.sl'
15976      hardcode_into_libs=yes
15977      dynamic_linker="$host_os dld.sl"
15978      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15979      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15980      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15981      soname_spec='${libname}${release}${shared_ext}$major'
15982      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15983      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15984      ;;
15985    *)
15986     shrext_cmds='.sl'
15987     dynamic_linker="$host_os dld.sl"
15988     shlibpath_var=SHLIB_PATH
15989     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15990     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15991     soname_spec='${libname}${release}${shared_ext}$major'
15992     ;;
15993   esac
15994   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15995   postinstall_cmds='chmod 555 $lib'
15996   ;;
15997
15998 interix3*)
15999   version_type=linux
16000   need_lib_prefix=no
16001   need_version=no
16002   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16003   soname_spec='${libname}${release}${shared_ext}$major'
16004   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16005   shlibpath_var=LD_LIBRARY_PATH
16006   shlibpath_overrides_runpath=no
16007   hardcode_into_libs=yes
16008   ;;
16009
16010 irix5* | irix6* | nonstopux*)
16011   case $host_os in
16012     nonstopux*) version_type=nonstopux ;;
16013     *)
16014         if test "$lt_cv_prog_gnu_ld" = yes; then
16015                 version_type=linux
16016         else
16017                 version_type=irix
16018         fi ;;
16019   esac
16020   need_lib_prefix=no
16021   need_version=no
16022   soname_spec='${libname}${release}${shared_ext}$major'
16023   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16024   case $host_os in
16025   irix5* | nonstopux*)
16026     libsuff= shlibsuff=
16027     ;;
16028   *)
16029     case $LD in # libtool.m4 will add one of these switches to LD
16030     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16031       libsuff= shlibsuff= libmagic=32-bit;;
16032     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16033       libsuff=32 shlibsuff=N32 libmagic=N32;;
16034     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16035       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16036     *) libsuff= shlibsuff= libmagic=never-match;;
16037     esac
16038     ;;
16039   esac
16040   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16041   shlibpath_overrides_runpath=no
16042   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16043   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16044   hardcode_into_libs=yes
16045   ;;
16046
16047 # No shared lib support for Linux oldld, aout, or coff.
16048 linux*oldld* | linux*aout* | linux*coff*)
16049   dynamic_linker=no
16050   ;;
16051
16052 # This must be Linux ELF.
16053 linux*)
16054   version_type=linux
16055   need_lib_prefix=no
16056   need_version=no
16057   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16058   soname_spec='${libname}${release}${shared_ext}$major'
16059   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16060   shlibpath_var=LD_LIBRARY_PATH
16061   shlibpath_overrides_runpath=no
16062   # This implies no fast_install, which is unacceptable.
16063   # Some rework will be needed to allow for fast_install
16064   # before this can be enabled.
16065   hardcode_into_libs=yes
16066
16067   # Append ld.so.conf contents to the search path
16068   if test -f /etc/ld.so.conf; then
16069     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16070     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16071   fi
16072
16073   # We used to test for /lib/ld.so.1 and disable shared libraries on
16074   # powerpc, because MkLinux only supported shared libraries with the
16075   # GNU dynamic linker.  Since this was broken with cross compilers,
16076   # most powerpc-linux boxes support dynamic linking these days and
16077   # people can always --disable-shared, the test was removed, and we
16078   # assume the GNU/Linux dynamic linker is in use.
16079   dynamic_linker='GNU/Linux ld.so'
16080   ;;
16081
16082 knetbsd*-gnu)
16083   version_type=linux
16084   need_lib_prefix=no
16085   need_version=no
16086   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16087   soname_spec='${libname}${release}${shared_ext}$major'
16088   shlibpath_var=LD_LIBRARY_PATH
16089   shlibpath_overrides_runpath=no
16090   hardcode_into_libs=yes
16091   dynamic_linker='GNU ld.so'
16092   ;;
16093
16094 netbsd*)
16095   version_type=sunos
16096   need_lib_prefix=no
16097   need_version=no
16098   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16099     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16100     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16101     dynamic_linker='NetBSD (a.out) ld.so'
16102   else
16103     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16104     soname_spec='${libname}${release}${shared_ext}$major'
16105     dynamic_linker='NetBSD ld.elf_so'
16106   fi
16107   shlibpath_var=LD_LIBRARY_PATH
16108   shlibpath_overrides_runpath=yes
16109   hardcode_into_libs=yes
16110   ;;
16111
16112 newsos6)
16113   version_type=linux
16114   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16115   shlibpath_var=LD_LIBRARY_PATH
16116   shlibpath_overrides_runpath=yes
16117   ;;
16118
16119 nto-qnx*)
16120   version_type=linux
16121   need_lib_prefix=no
16122   need_version=no
16123   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16124   soname_spec='${libname}${release}${shared_ext}$major'
16125   shlibpath_var=LD_LIBRARY_PATH
16126   shlibpath_overrides_runpath=yes
16127   ;;
16128
16129 openbsd*)
16130   version_type=sunos
16131   sys_lib_dlsearch_path_spec="/usr/lib"
16132   need_lib_prefix=no
16133   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16134   case $host_os in
16135     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16136     *)                         need_version=no  ;;
16137   esac
16138   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16139   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16140   shlibpath_var=LD_LIBRARY_PATH
16141   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16142     case $host_os in
16143       openbsd2.[89] | openbsd2.[89].*)
16144         shlibpath_overrides_runpath=no
16145         ;;
16146       *)
16147         shlibpath_overrides_runpath=yes
16148         ;;
16149       esac
16150   else
16151     shlibpath_overrides_runpath=yes
16152   fi
16153   ;;
16154
16155 os2*)
16156   libname_spec='$name'
16157   shrext_cmds=".dll"
16158   need_lib_prefix=no
16159   library_names_spec='$libname${shared_ext} $libname.a'
16160   dynamic_linker='OS/2 ld.exe'
16161   shlibpath_var=LIBPATH
16162   ;;
16163
16164 osf3* | osf4* | osf5*)
16165   version_type=osf
16166   need_lib_prefix=no
16167   need_version=no
16168   soname_spec='${libname}${release}${shared_ext}$major'
16169   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16170   shlibpath_var=LD_LIBRARY_PATH
16171   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16172   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16173   ;;
16174
16175 solaris*)
16176   version_type=linux
16177   need_lib_prefix=no
16178   need_version=no
16179   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16180   soname_spec='${libname}${release}${shared_ext}$major'
16181   shlibpath_var=LD_LIBRARY_PATH
16182   shlibpath_overrides_runpath=yes
16183   hardcode_into_libs=yes
16184   # ldd complains unless libraries are executable
16185   postinstall_cmds='chmod +x $lib'
16186   ;;
16187
16188 sunos4*)
16189   version_type=sunos
16190   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16191   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16192   shlibpath_var=LD_LIBRARY_PATH
16193   shlibpath_overrides_runpath=yes
16194   if test "$with_gnu_ld" = yes; then
16195     need_lib_prefix=no
16196   fi
16197   need_version=yes
16198   ;;
16199
16200 sysv4 | sysv4.3*)
16201   version_type=linux
16202   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16203   soname_spec='${libname}${release}${shared_ext}$major'
16204   shlibpath_var=LD_LIBRARY_PATH
16205   case $host_vendor in
16206     sni)
16207       shlibpath_overrides_runpath=no
16208       need_lib_prefix=no
16209       export_dynamic_flag_spec='${wl}-Blargedynsym'
16210       runpath_var=LD_RUN_PATH
16211       ;;
16212     siemens)
16213       need_lib_prefix=no
16214       ;;
16215     motorola)
16216       need_lib_prefix=no
16217       need_version=no
16218       shlibpath_overrides_runpath=no
16219       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16220       ;;
16221   esac
16222   ;;
16223
16224 sysv4*MP*)
16225   if test -d /usr/nec ;then
16226     version_type=linux
16227     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16228     soname_spec='$libname${shared_ext}.$major'
16229     shlibpath_var=LD_LIBRARY_PATH
16230   fi
16231   ;;
16232
16233 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16234   version_type=freebsd-elf
16235   need_lib_prefix=no
16236   need_version=no
16237   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16238   soname_spec='${libname}${release}${shared_ext}$major'
16239   shlibpath_var=LD_LIBRARY_PATH
16240   hardcode_into_libs=yes
16241   if test "$with_gnu_ld" = yes; then
16242     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16243     shlibpath_overrides_runpath=no
16244   else
16245     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16246     shlibpath_overrides_runpath=yes
16247     case $host_os in
16248       sco3.2v5*)
16249         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16250         ;;
16251     esac
16252   fi
16253   sys_lib_dlsearch_path_spec='/usr/lib'
16254   ;;
16255
16256 uts4*)
16257   version_type=linux
16258   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16259   soname_spec='${libname}${release}${shared_ext}$major'
16260   shlibpath_var=LD_LIBRARY_PATH
16261   ;;
16262
16263 *)
16264   dynamic_linker=no
16265   ;;
16266 esac
16267 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16268 echo "${ECHO_T}$dynamic_linker" >&6; }
16269 test "$dynamic_linker" = no && can_build_shared=no
16270
16271 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16272 if test "$GCC" = yes; then
16273   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16274 fi
16275
16276 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16277 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16278 hardcode_action_F77=
16279 if test -n "$hardcode_libdir_flag_spec_F77" || \
16280    test -n "$runpath_var_F77" || \
16281    test "X$hardcode_automatic_F77" = "Xyes" ; then
16282
16283   # We can hardcode non-existant directories.
16284   if test "$hardcode_direct_F77" != no &&
16285      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16286      # have to relink, otherwise we might link with an installed library
16287      # when we should be linking with a yet-to-be-installed one
16288      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16289      test "$hardcode_minus_L_F77" != no; then
16290     # Linking always hardcodes the temporary library directory.
16291     hardcode_action_F77=relink
16292   else
16293     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16294     hardcode_action_F77=immediate
16295   fi
16296 else
16297   # We cannot hardcode anything, or else we can only hardcode existing
16298   # directories.
16299   hardcode_action_F77=unsupported
16300 fi
16301 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16302 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16303
16304 if test "$hardcode_action_F77" = relink; then
16305   # Fast installation is not supported
16306   enable_fast_install=no
16307 elif test "$shlibpath_overrides_runpath" = yes ||
16308      test "$enable_shared" = no; then
16309   # Fast installation is not necessary
16310   enable_fast_install=needless
16311 fi
16312
16313
16314 # The else clause should only fire when bootstrapping the
16315 # libtool distribution, otherwise you forgot to ship ltmain.sh
16316 # with your package, and you will get complaints that there are
16317 # no rules to generate ltmain.sh.
16318 if test -f "$ltmain"; then
16319   # See if we are running on zsh, and set the options which allow our commands through
16320   # without removal of \ escapes.
16321   if test -n "${ZSH_VERSION+set}" ; then
16322     setopt NO_GLOB_SUBST
16323   fi
16324   # Now quote all the things that may contain metacharacters while being
16325   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16326   # variables and quote the copies for generation of the libtool script.
16327   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16328     SED SHELL STRIP \
16329     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16330     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16331     deplibs_check_method reload_flag reload_cmds need_locks \
16332     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16333     lt_cv_sys_global_symbol_to_c_name_address \
16334     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16335     old_postinstall_cmds old_postuninstall_cmds \
16336     compiler_F77 \
16337     CC_F77 \
16338     LD_F77 \
16339     lt_prog_compiler_wl_F77 \
16340     lt_prog_compiler_pic_F77 \
16341     lt_prog_compiler_static_F77 \
16342     lt_prog_compiler_no_builtin_flag_F77 \
16343     export_dynamic_flag_spec_F77 \
16344     thread_safe_flag_spec_F77 \
16345     whole_archive_flag_spec_F77 \
16346     enable_shared_with_static_runtimes_F77 \
16347     old_archive_cmds_F77 \
16348     old_archive_from_new_cmds_F77 \
16349     predep_objects_F77 \
16350     postdep_objects_F77 \
16351     predeps_F77 \
16352     postdeps_F77 \
16353     compiler_lib_search_path_F77 \
16354     archive_cmds_F77 \
16355     archive_expsym_cmds_F77 \
16356     postinstall_cmds_F77 \
16357     postuninstall_cmds_F77 \
16358     old_archive_from_expsyms_cmds_F77 \
16359     allow_undefined_flag_F77 \
16360     no_undefined_flag_F77 \
16361     export_symbols_cmds_F77 \
16362     hardcode_libdir_flag_spec_F77 \
16363     hardcode_libdir_flag_spec_ld_F77 \
16364     hardcode_libdir_separator_F77 \
16365     hardcode_automatic_F77 \
16366     module_cmds_F77 \
16367     module_expsym_cmds_F77 \
16368     lt_cv_prog_compiler_c_o_F77 \
16369     exclude_expsyms_F77 \
16370     include_expsyms_F77; do
16371
16372     case $var in
16373     old_archive_cmds_F77 | \
16374     old_archive_from_new_cmds_F77 | \
16375     archive_cmds_F77 | \
16376     archive_expsym_cmds_F77 | \
16377     module_cmds_F77 | \
16378     module_expsym_cmds_F77 | \
16379     old_archive_from_expsyms_cmds_F77 | \
16380     export_symbols_cmds_F77 | \
16381     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16382     postinstall_cmds | postuninstall_cmds | \
16383     old_postinstall_cmds | old_postuninstall_cmds | \
16384     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16385       # Double-quote double-evaled strings.
16386       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16387       ;;
16388     *)
16389       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16390       ;;
16391     esac
16392   done
16393
16394   case $lt_echo in
16395   *'\$0 --fallback-echo"')
16396     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16397     ;;
16398   esac
16399
16400 cfgfile="$ofile"
16401
16402   cat <<__EOF__ >> "$cfgfile"
16403 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16404
16405 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16406
16407 # Shell to use when invoking shell scripts.
16408 SHELL=$lt_SHELL
16409
16410 # Whether or not to build shared libraries.
16411 build_libtool_libs=$enable_shared
16412
16413 # Whether or not to build static libraries.
16414 build_old_libs=$enable_static
16415
16416 # Whether or not to add -lc for building shared libraries.
16417 build_libtool_need_lc=$archive_cmds_need_lc_F77
16418
16419 # Whether or not to disallow shared libs when runtime libs are static
16420 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16421
16422 # Whether or not to optimize for fast installation.
16423 fast_install=$enable_fast_install
16424
16425 # The host system.
16426 host_alias=$host_alias
16427 host=$host
16428 host_os=$host_os
16429
16430 # The build system.
16431 build_alias=$build_alias
16432 build=$build
16433 build_os=$build_os
16434
16435 # An echo program that does not interpret backslashes.
16436 echo=$lt_echo
16437
16438 # The archiver.
16439 AR=$lt_AR
16440 AR_FLAGS=$lt_AR_FLAGS
16441
16442 # A C compiler.
16443 LTCC=$lt_LTCC
16444
16445 # LTCC compiler flags.
16446 LTCFLAGS=$lt_LTCFLAGS
16447
16448 # A language-specific compiler.
16449 CC=$lt_compiler_F77
16450
16451 # Is the compiler the GNU C compiler?
16452 with_gcc=$GCC_F77
16453
16454 # An ERE matcher.
16455 EGREP=$lt_EGREP
16456
16457 # The linker used to build libraries.
16458 LD=$lt_LD_F77
16459
16460 # Whether we need hard or soft links.
16461 LN_S=$lt_LN_S
16462
16463 # A BSD-compatible nm program.
16464 NM=$lt_NM
16465
16466 # A symbol stripping program
16467 STRIP=$lt_STRIP
16468
16469 # Used to examine libraries when file_magic_cmd begins "file"
16470 MAGIC_CMD=$MAGIC_CMD
16471
16472 # Used on cygwin: DLL creation program.
16473 DLLTOOL="$DLLTOOL"
16474
16475 # Used on cygwin: object dumper.
16476 OBJDUMP="$OBJDUMP"
16477
16478 # Used on cygwin: assembler.
16479 AS="$AS"
16480
16481 # The name of the directory that contains temporary libtool files.
16482 objdir=$objdir
16483
16484 # How to create reloadable object files.
16485 reload_flag=$lt_reload_flag
16486 reload_cmds=$lt_reload_cmds
16487
16488 # How to pass a linker flag through the compiler.
16489 wl=$lt_lt_prog_compiler_wl_F77
16490
16491 # Object file suffix (normally "o").
16492 objext="$ac_objext"
16493
16494 # Old archive suffix (normally "a").
16495 libext="$libext"
16496
16497 # Shared library suffix (normally ".so").
16498 shrext_cmds='$shrext_cmds'
16499
16500 # Executable file suffix (normally "").
16501 exeext="$exeext"
16502
16503 # Additional compiler flags for building library objects.
16504 pic_flag=$lt_lt_prog_compiler_pic_F77
16505 pic_mode=$pic_mode
16506
16507 # What is the maximum length of a command?
16508 max_cmd_len=$lt_cv_sys_max_cmd_len
16509
16510 # Does compiler simultaneously support -c and -o options?
16511 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16512
16513 # Must we lock files when doing compilation?
16514 need_locks=$lt_need_locks
16515
16516 # Do we need the lib prefix for modules?
16517 need_lib_prefix=$need_lib_prefix
16518
16519 # Do we need a version for libraries?
16520 need_version=$need_version
16521
16522 # Whether dlopen is supported.
16523 dlopen_support=$enable_dlopen
16524
16525 # Whether dlopen of programs is supported.
16526 dlopen_self=$enable_dlopen_self
16527
16528 # Whether dlopen of statically linked programs is supported.
16529 dlopen_self_static=$enable_dlopen_self_static
16530
16531 # Compiler flag to prevent dynamic linking.
16532 link_static_flag=$lt_lt_prog_compiler_static_F77
16533
16534 # Compiler flag to turn off builtin functions.
16535 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16536
16537 # Compiler flag to allow reflexive dlopens.
16538 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16539
16540 # Compiler flag to generate shared objects directly from archives.
16541 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16542
16543 # Compiler flag to generate thread-safe objects.
16544 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16545
16546 # Library versioning type.
16547 version_type=$version_type
16548
16549 # Format of library name prefix.
16550 libname_spec=$lt_libname_spec
16551
16552 # List of archive names.  First name is the real one, the rest are links.
16553 # The last name is the one that the linker finds with -lNAME.
16554 library_names_spec=$lt_library_names_spec
16555
16556 # The coded name of the library, if different from the real name.
16557 soname_spec=$lt_soname_spec
16558
16559 # Commands used to build and install an old-style archive.
16560 RANLIB=$lt_RANLIB
16561 old_archive_cmds=$lt_old_archive_cmds_F77
16562 old_postinstall_cmds=$lt_old_postinstall_cmds
16563 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16564
16565 # Create an old-style archive from a shared archive.
16566 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16567
16568 # Create a temporary old-style archive to link instead of a shared archive.
16569 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16570
16571 # Commands used to build and install a shared archive.
16572 archive_cmds=$lt_archive_cmds_F77
16573 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16574 postinstall_cmds=$lt_postinstall_cmds
16575 postuninstall_cmds=$lt_postuninstall_cmds
16576
16577 # Commands used to build a loadable module (assumed same as above if empty)
16578 module_cmds=$lt_module_cmds_F77
16579 module_expsym_cmds=$lt_module_expsym_cmds_F77
16580
16581 # Commands to strip libraries.
16582 old_striplib=$lt_old_striplib
16583 striplib=$lt_striplib
16584
16585 # Dependencies to place before the objects being linked to create a
16586 # shared library.
16587 predep_objects=$lt_predep_objects_F77
16588
16589 # Dependencies to place after the objects being linked to create a
16590 # shared library.
16591 postdep_objects=$lt_postdep_objects_F77
16592
16593 # Dependencies to place before the objects being linked to create a
16594 # shared library.
16595 predeps=$lt_predeps_F77
16596
16597 # Dependencies to place after the objects being linked to create a
16598 # shared library.
16599 postdeps=$lt_postdeps_F77
16600
16601 # The library search path used internally by the compiler when linking
16602 # a shared library.
16603 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16604
16605 # Method to check whether dependent libraries are shared objects.
16606 deplibs_check_method=$lt_deplibs_check_method
16607
16608 # Command to use when deplibs_check_method == file_magic.
16609 file_magic_cmd=$lt_file_magic_cmd
16610
16611 # Flag that allows shared libraries with undefined symbols to be built.
16612 allow_undefined_flag=$lt_allow_undefined_flag_F77
16613
16614 # Flag that forces no undefined symbols.
16615 no_undefined_flag=$lt_no_undefined_flag_F77
16616
16617 # Commands used to finish a libtool library installation in a directory.
16618 finish_cmds=$lt_finish_cmds
16619
16620 # Same as above, but a single script fragment to be evaled but not shown.
16621 finish_eval=$lt_finish_eval
16622
16623 # Take the output of nm and produce a listing of raw symbols and C names.
16624 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16625
16626 # Transform the output of nm in a proper C declaration
16627 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16628
16629 # Transform the output of nm in a C name address pair
16630 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16631
16632 # This is the shared library runtime path variable.
16633 runpath_var=$runpath_var
16634
16635 # This is the shared library path variable.
16636 shlibpath_var=$shlibpath_var
16637
16638 # Is shlibpath searched before the hard-coded library search path?
16639 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16640
16641 # How to hardcode a shared library path into an executable.
16642 hardcode_action=$hardcode_action_F77
16643
16644 # Whether we should hardcode library paths into libraries.
16645 hardcode_into_libs=$hardcode_into_libs
16646
16647 # Flag to hardcode \$libdir into a binary during linking.
16648 # This must work even if \$libdir does not exist.
16649 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16650
16651 # If ld is used when linking, flag to hardcode \$libdir into
16652 # a binary during linking. This must work even if \$libdir does
16653 # not exist.
16654 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16655
16656 # Whether we need a single -rpath flag with a separated argument.
16657 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16658
16659 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16660 # resulting binary.
16661 hardcode_direct=$hardcode_direct_F77
16662
16663 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16664 # resulting binary.
16665 hardcode_minus_L=$hardcode_minus_L_F77
16666
16667 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16668 # the resulting binary.
16669 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16670
16671 # Set to yes if building a shared library automatically hardcodes DIR into the library
16672 # and all subsequent libraries and executables linked against it.
16673 hardcode_automatic=$hardcode_automatic_F77
16674
16675 # Variables whose values should be saved in libtool wrapper scripts and
16676 # restored at relink time.
16677 variables_saved_for_relink="$variables_saved_for_relink"
16678
16679 # Whether libtool must link a program against all its dependency libraries.
16680 link_all_deplibs=$link_all_deplibs_F77
16681
16682 # Compile-time system search path for libraries
16683 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16684
16685 # Run-time system search path for libraries
16686 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16687
16688 # Fix the shell variable \$srcfile for the compiler.
16689 fix_srcfile_path="$fix_srcfile_path_F77"
16690
16691 # Set to yes if exported symbols are required.
16692 always_export_symbols=$always_export_symbols_F77
16693
16694 # The commands to list exported symbols.
16695 export_symbols_cmds=$lt_export_symbols_cmds_F77
16696
16697 # The commands to extract the exported symbol list from a shared archive.
16698 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16699
16700 # Symbols that should not be listed in the preloaded symbols.
16701 exclude_expsyms=$lt_exclude_expsyms_F77
16702
16703 # Symbols that must always be exported.
16704 include_expsyms=$lt_include_expsyms_F77
16705
16706 # ### END LIBTOOL TAG CONFIG: $tagname
16707
16708 __EOF__
16709
16710
16711 else
16712   # If there is no Makefile yet, we rely on a make rule to execute
16713   # `config.status --recheck' to rerun these tests and create the
16714   # libtool script then.
16715   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16716   if test -f "$ltmain_in"; then
16717     test -f Makefile && make "$ltmain"
16718   fi
16719 fi
16720
16721
16722 ac_ext=c
16723 ac_cpp='$CPP $CPPFLAGS'
16724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16727
16728 CC="$lt_save_CC"
16729
16730         else
16731           tagname=""
16732         fi
16733         ;;
16734
16735       GCJ)
16736         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16737
16738
16739 # Source file extension for Java test sources.
16740 ac_ext=java
16741
16742 # Object file extension for compiled Java test sources.
16743 objext=o
16744 objext_GCJ=$objext
16745
16746 # Code to be used in simple compile tests
16747 lt_simple_compile_test_code="class foo {}\n"
16748
16749 # Code to be used in simple link tests
16750 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16751
16752 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16753
16754 # If no C compiler was specified, use CC.
16755 LTCC=${LTCC-"$CC"}
16756
16757 # If no C compiler flags were specified, use CFLAGS.
16758 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16759
16760 # Allow CC to be a program name with arguments.
16761 compiler=$CC
16762
16763
16764 # save warnings/boilerplate of simple test code
16765 ac_outfile=conftest.$ac_objext
16766 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16767 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16768 _lt_compiler_boilerplate=`cat conftest.err`
16769 $rm conftest*
16770
16771 ac_outfile=conftest.$ac_objext
16772 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16773 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16774 _lt_linker_boilerplate=`cat conftest.err`
16775 $rm conftest*
16776
16777
16778 # Allow CC to be a program name with arguments.
16779 lt_save_CC="$CC"
16780 CC=${GCJ-"gcj"}
16781 compiler=$CC
16782 compiler_GCJ=$CC
16783 for cc_temp in $compiler""; do
16784   case $cc_temp in
16785     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16786     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16787     \-*) ;;
16788     *) break;;
16789   esac
16790 done
16791 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16792
16793
16794 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16795 archive_cmds_need_lc_GCJ=no
16796
16797 old_archive_cmds_GCJ=$old_archive_cmds
16798
16799 ## CAVEAT EMPTOR:
16800 ## There is no encapsulation within the following macros, do not change
16801 ## the running order or otherwise move them around unless you know exactly
16802 ## what you are doing...
16803
16804 lt_prog_compiler_no_builtin_flag_GCJ=
16805
16806 if test "$GCC" = yes; then
16807   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16808
16809
16810 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16811 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16812 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16813   echo $ECHO_N "(cached) $ECHO_C" >&6
16814 else
16815   lt_cv_prog_compiler_rtti_exceptions=no
16816   ac_outfile=conftest.$ac_objext
16817    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16818    lt_compiler_flag="-fno-rtti -fno-exceptions"
16819    # Insert the option either (1) after the last *FLAGS variable, or
16820    # (2) before a word containing "conftest.", or (3) at the end.
16821    # Note that $ac_compile itself does not contain backslashes and begins
16822    # with a dollar sign (not a hyphen), so the echo should work correctly.
16823    # The option is referenced via a variable to avoid confusing sed.
16824    lt_compile=`echo "$ac_compile" | $SED \
16825    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16826    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16827    -e 's:$: $lt_compiler_flag:'`
16828    (eval echo "\"\$as_me:16828: $lt_compile\"" >&5)
16829    (eval "$lt_compile" 2>conftest.err)
16830    ac_status=$?
16831    cat conftest.err >&5
16832    echo "$as_me:16832: \$? = $ac_status" >&5
16833    if (exit $ac_status) && test -s "$ac_outfile"; then
16834      # The compiler can only warn and ignore the option if not recognized
16835      # So say no if there are warnings other than the usual output.
16836      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16837      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16838      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16839        lt_cv_prog_compiler_rtti_exceptions=yes
16840      fi
16841    fi
16842    $rm conftest*
16843
16844 fi
16845 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16846 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16847
16848 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16849     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16850 else
16851     :
16852 fi
16853
16854 fi
16855
16856 lt_prog_compiler_wl_GCJ=
16857 lt_prog_compiler_pic_GCJ=
16858 lt_prog_compiler_static_GCJ=
16859
16860 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16861 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16862
16863   if test "$GCC" = yes; then
16864     lt_prog_compiler_wl_GCJ='-Wl,'
16865     lt_prog_compiler_static_GCJ='-static'
16866
16867     case $host_os in
16868       aix*)
16869       # All AIX code is PIC.
16870       if test "$host_cpu" = ia64; then
16871         # AIX 5 now supports IA64 processor
16872         lt_prog_compiler_static_GCJ='-Bstatic'
16873       fi
16874       ;;
16875
16876     amigaos*)
16877       # FIXME: we need at least 68020 code to build shared libraries, but
16878       # adding the `-m68020' flag to GCC prevents building anything better,
16879       # like `-m68040'.
16880       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16881       ;;
16882
16883     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16884       # PIC is the default for these OSes.
16885       ;;
16886
16887     mingw* | pw32* | os2*)
16888       # This hack is so that the source file can tell whether it is being
16889       # built for inclusion in a dll (and should export symbols for example).
16890       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16891       ;;
16892
16893     darwin* | rhapsody*)
16894       # PIC is the default on this platform
16895       # Common symbols not allowed in MH_DYLIB files
16896       lt_prog_compiler_pic_GCJ='-fno-common'
16897       ;;
16898
16899     interix3*)
16900       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16901       # Instead, we relocate shared libraries at runtime.
16902       ;;
16903
16904     msdosdjgpp*)
16905       # Just because we use GCC doesn't mean we suddenly get shared libraries
16906       # on systems that don't support them.
16907       lt_prog_compiler_can_build_shared_GCJ=no
16908       enable_shared=no
16909       ;;
16910
16911     sysv4*MP*)
16912       if test -d /usr/nec; then
16913         lt_prog_compiler_pic_GCJ=-Kconform_pic
16914       fi
16915       ;;
16916
16917     hpux*)
16918       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16919       # not for PA HP-UX.
16920       case $host_cpu in
16921       hppa*64*|ia64*)
16922         # +Z the default
16923         ;;
16924       *)
16925         lt_prog_compiler_pic_GCJ='-fPIC'
16926         ;;
16927       esac
16928       ;;
16929
16930     *)
16931       lt_prog_compiler_pic_GCJ='-fPIC'
16932       ;;
16933     esac
16934   else
16935     # PORTME Check for flag to pass linker flags through the system compiler.
16936     case $host_os in
16937     aix*)
16938       lt_prog_compiler_wl_GCJ='-Wl,'
16939       if test "$host_cpu" = ia64; then
16940         # AIX 5 now supports IA64 processor
16941         lt_prog_compiler_static_GCJ='-Bstatic'
16942       else
16943         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16944       fi
16945       ;;
16946       darwin*)
16947         # PIC is the default on this platform
16948         # Common symbols not allowed in MH_DYLIB files
16949        case $cc_basename in
16950          xlc*)
16951          lt_prog_compiler_pic_GCJ='-qnocommon'
16952          lt_prog_compiler_wl_GCJ='-Wl,'
16953          ;;
16954        esac
16955        ;;
16956
16957     mingw* | pw32* | os2*)
16958       # This hack is so that the source file can tell whether it is being
16959       # built for inclusion in a dll (and should export symbols for example).
16960       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16961       ;;
16962
16963     hpux9* | hpux10* | hpux11*)
16964       lt_prog_compiler_wl_GCJ='-Wl,'
16965       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16966       # not for PA HP-UX.
16967       case $host_cpu in
16968       hppa*64*|ia64*)
16969         # +Z the default
16970         ;;
16971       *)
16972         lt_prog_compiler_pic_GCJ='+Z'
16973         ;;
16974       esac
16975       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16976       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16977       ;;
16978
16979     irix5* | irix6* | nonstopux*)
16980       lt_prog_compiler_wl_GCJ='-Wl,'
16981       # PIC (with -KPIC) is the default.
16982       lt_prog_compiler_static_GCJ='-non_shared'
16983       ;;
16984
16985     newsos6)
16986       lt_prog_compiler_pic_GCJ='-KPIC'
16987       lt_prog_compiler_static_GCJ='-Bstatic'
16988       ;;
16989
16990     linux*)
16991       case $cc_basename in
16992       icc* | ecc*)
16993         lt_prog_compiler_wl_GCJ='-Wl,'
16994         lt_prog_compiler_pic_GCJ='-KPIC'
16995         lt_prog_compiler_static_GCJ='-static'
16996         ;;
16997       pgcc* | pgf77* | pgf90* | pgf95*)
16998         # Portland Group compilers (*not* the Pentium gcc compiler,
16999         # which looks to be a dead project)
17000         lt_prog_compiler_wl_GCJ='-Wl,'
17001         lt_prog_compiler_pic_GCJ='-fpic'
17002         lt_prog_compiler_static_GCJ='-Bstatic'
17003         ;;
17004       ccc*)
17005         lt_prog_compiler_wl_GCJ='-Wl,'
17006         # All Alpha code is PIC.
17007         lt_prog_compiler_static_GCJ='-non_shared'
17008         ;;
17009       esac
17010       ;;
17011
17012     osf3* | osf4* | osf5*)
17013       lt_prog_compiler_wl_GCJ='-Wl,'
17014       # All OSF/1 code is PIC.
17015       lt_prog_compiler_static_GCJ='-non_shared'
17016       ;;
17017
17018     solaris*)
17019       lt_prog_compiler_pic_GCJ='-KPIC'
17020       lt_prog_compiler_static_GCJ='-Bstatic'
17021       case $cc_basename in
17022       f77* | f90* | f95*)
17023         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17024       *)
17025         lt_prog_compiler_wl_GCJ='-Wl,';;
17026       esac
17027       ;;
17028
17029     sunos4*)
17030       lt_prog_compiler_wl_GCJ='-Qoption ld '
17031       lt_prog_compiler_pic_GCJ='-PIC'
17032       lt_prog_compiler_static_GCJ='-Bstatic'
17033       ;;
17034
17035     sysv4 | sysv4.2uw2* | sysv4.3*)
17036       lt_prog_compiler_wl_GCJ='-Wl,'
17037       lt_prog_compiler_pic_GCJ='-KPIC'
17038       lt_prog_compiler_static_GCJ='-Bstatic'
17039       ;;
17040
17041     sysv4*MP*)
17042       if test -d /usr/nec ;then
17043         lt_prog_compiler_pic_GCJ='-Kconform_pic'
17044         lt_prog_compiler_static_GCJ='-Bstatic'
17045       fi
17046       ;;
17047
17048     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17049       lt_prog_compiler_wl_GCJ='-Wl,'
17050       lt_prog_compiler_pic_GCJ='-KPIC'
17051       lt_prog_compiler_static_GCJ='-Bstatic'
17052       ;;
17053
17054     unicos*)
17055       lt_prog_compiler_wl_GCJ='-Wl,'
17056       lt_prog_compiler_can_build_shared_GCJ=no
17057       ;;
17058
17059     uts4*)
17060       lt_prog_compiler_pic_GCJ='-pic'
17061       lt_prog_compiler_static_GCJ='-Bstatic'
17062       ;;
17063
17064     *)
17065       lt_prog_compiler_can_build_shared_GCJ=no
17066       ;;
17067     esac
17068   fi
17069
17070 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17071 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17072
17073 #
17074 # Check to make sure the PIC flag actually works.
17075 #
17076 if test -n "$lt_prog_compiler_pic_GCJ"; then
17077
17078 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17079 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17080 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17081   echo $ECHO_N "(cached) $ECHO_C" >&6
17082 else
17083   lt_prog_compiler_pic_works_GCJ=no
17084   ac_outfile=conftest.$ac_objext
17085    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17086    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17087    # Insert the option either (1) after the last *FLAGS variable, or
17088    # (2) before a word containing "conftest.", or (3) at the end.
17089    # Note that $ac_compile itself does not contain backslashes and begins
17090    # with a dollar sign (not a hyphen), so the echo should work correctly.
17091    # The option is referenced via a variable to avoid confusing sed.
17092    lt_compile=`echo "$ac_compile" | $SED \
17093    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17094    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17095    -e 's:$: $lt_compiler_flag:'`
17096    (eval echo "\"\$as_me:17096: $lt_compile\"" >&5)
17097    (eval "$lt_compile" 2>conftest.err)
17098    ac_status=$?
17099    cat conftest.err >&5
17100    echo "$as_me:17100: \$? = $ac_status" >&5
17101    if (exit $ac_status) && test -s "$ac_outfile"; then
17102      # The compiler can only warn and ignore the option if not recognized
17103      # So say no if there are warnings other than the usual output.
17104      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17105      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17106      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17107        lt_prog_compiler_pic_works_GCJ=yes
17108      fi
17109    fi
17110    $rm conftest*
17111
17112 fi
17113 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17114 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17115
17116 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17117     case $lt_prog_compiler_pic_GCJ in
17118      "" | " "*) ;;
17119      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17120      esac
17121 else
17122     lt_prog_compiler_pic_GCJ=
17123      lt_prog_compiler_can_build_shared_GCJ=no
17124 fi
17125
17126 fi
17127 case $host_os in
17128   # For platforms which do not support PIC, -DPIC is meaningless:
17129   *djgpp*)
17130     lt_prog_compiler_pic_GCJ=
17131     ;;
17132   *)
17133     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17134     ;;
17135 esac
17136
17137 #
17138 # Check to make sure the static flag actually works.
17139 #
17140 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17141 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17142 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17143 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17144   echo $ECHO_N "(cached) $ECHO_C" >&6
17145 else
17146   lt_prog_compiler_static_works_GCJ=no
17147    save_LDFLAGS="$LDFLAGS"
17148    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17149    printf "$lt_simple_link_test_code" > conftest.$ac_ext
17150    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17151      # The linker can only warn and ignore the option if not recognized
17152      # So say no if there are warnings
17153      if test -s conftest.err; then
17154        # Append any errors to the config.log.
17155        cat conftest.err 1>&5
17156        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17157        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17158        if diff conftest.exp conftest.er2 >/dev/null; then
17159          lt_prog_compiler_static_works_GCJ=yes
17160        fi
17161      else
17162        lt_prog_compiler_static_works_GCJ=yes
17163      fi
17164    fi
17165    $rm conftest*
17166    LDFLAGS="$save_LDFLAGS"
17167
17168 fi
17169 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17170 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17171
17172 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17173     :
17174 else
17175     lt_prog_compiler_static_GCJ=
17176 fi
17177
17178
17179 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17180 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17181 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17182   echo $ECHO_N "(cached) $ECHO_C" >&6
17183 else
17184   lt_cv_prog_compiler_c_o_GCJ=no
17185    $rm -r conftest 2>/dev/null
17186    mkdir conftest
17187    cd conftest
17188    mkdir out
17189    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17190
17191    lt_compiler_flag="-o out/conftest2.$ac_objext"
17192    # Insert the option either (1) after the last *FLAGS variable, or
17193    # (2) before a word containing "conftest.", or (3) at the end.
17194    # Note that $ac_compile itself does not contain backslashes and begins
17195    # with a dollar sign (not a hyphen), so the echo should work correctly.
17196    lt_compile=`echo "$ac_compile" | $SED \
17197    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17198    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17199    -e 's:$: $lt_compiler_flag:'`
17200    (eval echo "\"\$as_me:17200: $lt_compile\"" >&5)
17201    (eval "$lt_compile" 2>out/conftest.err)
17202    ac_status=$?
17203    cat out/conftest.err >&5
17204    echo "$as_me:17204: \$? = $ac_status" >&5
17205    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17206    then
17207      # The compiler can only warn and ignore the option if not recognized
17208      # So say no if there are warnings
17209      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17210      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17211      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17212        lt_cv_prog_compiler_c_o_GCJ=yes
17213      fi
17214    fi
17215    chmod u+w . 2>&5
17216    $rm conftest*
17217    # SGI C++ compiler will create directory out/ii_files/ for
17218    # template instantiation
17219    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17220    $rm out/* && rmdir out
17221    cd ..
17222    rmdir conftest
17223    $rm conftest*
17224
17225 fi
17226 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17227 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17228
17229
17230 hard_links="nottested"
17231 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17232   # do not overwrite the value of need_locks provided by the user
17233   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17234 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17235   hard_links=yes
17236   $rm conftest*
17237   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17238   touch conftest.a
17239   ln conftest.a conftest.b 2>&5 || hard_links=no
17240   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17241   { echo "$as_me:$LINENO: result: $hard_links" >&5
17242 echo "${ECHO_T}$hard_links" >&6; }
17243   if test "$hard_links" = no; then
17244     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17245 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17246     need_locks=warn
17247   fi
17248 else
17249   need_locks=no
17250 fi
17251
17252 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17253 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17254
17255   runpath_var=
17256   allow_undefined_flag_GCJ=
17257   enable_shared_with_static_runtimes_GCJ=no
17258   archive_cmds_GCJ=
17259   archive_expsym_cmds_GCJ=
17260   old_archive_From_new_cmds_GCJ=
17261   old_archive_from_expsyms_cmds_GCJ=
17262   export_dynamic_flag_spec_GCJ=
17263   whole_archive_flag_spec_GCJ=
17264   thread_safe_flag_spec_GCJ=
17265   hardcode_libdir_flag_spec_GCJ=
17266   hardcode_libdir_flag_spec_ld_GCJ=
17267   hardcode_libdir_separator_GCJ=
17268   hardcode_direct_GCJ=no
17269   hardcode_minus_L_GCJ=no
17270   hardcode_shlibpath_var_GCJ=unsupported
17271   link_all_deplibs_GCJ=unknown
17272   hardcode_automatic_GCJ=no
17273   module_cmds_GCJ=
17274   module_expsym_cmds_GCJ=
17275   always_export_symbols_GCJ=no
17276   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17277   # include_expsyms should be a list of space-separated symbols to be *always*
17278   # included in the symbol list
17279   include_expsyms_GCJ=
17280   # exclude_expsyms can be an extended regexp of symbols to exclude
17281   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17282   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17283   # as well as any symbol that contains `d'.
17284   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17285   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17286   # platforms (ab)use it in PIC code, but their linkers get confused if
17287   # the symbol is explicitly referenced.  Since portable code cannot
17288   # rely on this symbol name, it's probably fine to never include it in
17289   # preloaded symbol tables.
17290   extract_expsyms_cmds=
17291   # Just being paranoid about ensuring that cc_basename is set.
17292   for cc_temp in $compiler""; do
17293   case $cc_temp in
17294     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17295     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17296     \-*) ;;
17297     *) break;;
17298   esac
17299 done
17300 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17301
17302   case $host_os in
17303   cygwin* | mingw* | pw32*)
17304     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17305     # When not using gcc, we currently assume that we are using
17306     # Microsoft Visual C++.
17307     if test "$GCC" != yes; then
17308       with_gnu_ld=no
17309     fi
17310     ;;
17311   interix*)
17312     # we just hope/assume this is gcc and not c89 (= MSVC++)
17313     with_gnu_ld=yes
17314     ;;
17315   openbsd*)
17316     with_gnu_ld=no
17317     ;;
17318   esac
17319
17320   ld_shlibs_GCJ=yes
17321   if test "$with_gnu_ld" = yes; then
17322     # If archive_cmds runs LD, not CC, wlarc should be empty
17323     wlarc='${wl}'
17324
17325     # Set some defaults for GNU ld with shared library support. These
17326     # are reset later if shared libraries are not supported. Putting them
17327     # here allows them to be overridden if necessary.
17328     runpath_var=LD_RUN_PATH
17329     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17330     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17331     # ancient GNU ld didn't support --whole-archive et. al.
17332     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17333         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17334       else
17335         whole_archive_flag_spec_GCJ=
17336     fi
17337     supports_anon_versioning=no
17338     case `$LD -v 2>/dev/null` in
17339       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17340       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17341       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17342       *\ 2.11.*) ;; # other 2.11 versions
17343       *) supports_anon_versioning=yes ;;
17344     esac
17345
17346     # See if GNU ld supports shared libraries.
17347     case $host_os in
17348     aix3* | aix4* | aix5*)
17349       # On AIX/PPC, the GNU linker is very broken
17350       if test "$host_cpu" != ia64; then
17351         ld_shlibs_GCJ=no
17352         cat <<EOF 1>&2
17353
17354 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17355 *** to be unable to reliably create shared libraries on AIX.
17356 *** Therefore, libtool is disabling shared libraries support.  If you
17357 *** really care for shared libraries, you may want to modify your PATH
17358 *** so that a non-GNU linker is found, and then restart.
17359
17360 EOF
17361       fi
17362       ;;
17363
17364     amigaos*)
17365       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)'
17366       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17367       hardcode_minus_L_GCJ=yes
17368
17369       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17370       # that the semantics of dynamic libraries on AmigaOS, at least up
17371       # to version 4, is to share data among multiple programs linked
17372       # with the same dynamic library.  Since this doesn't match the
17373       # behavior of shared libraries on other platforms, we can't use
17374       # them.
17375       ld_shlibs_GCJ=no
17376       ;;
17377
17378     beos*)
17379       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17380         allow_undefined_flag_GCJ=unsupported
17381         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17382         # support --undefined.  This deserves some investigation.  FIXME
17383         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17384       else
17385         ld_shlibs_GCJ=no
17386       fi
17387       ;;
17388
17389     cygwin* | mingw* | pw32*)
17390       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17391       # as there is no search path for DLLs.
17392       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17393       allow_undefined_flag_GCJ=unsupported
17394       always_export_symbols_GCJ=no
17395       enable_shared_with_static_runtimes_GCJ=yes
17396       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17397
17398       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17399         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17400         # If the export-symbols file already is a .def file (1st line
17401         # is EXPORTS), use it as is; otherwise, prepend...
17402         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17403           cp $export_symbols $output_objdir/$soname.def;
17404         else
17405           echo EXPORTS > $output_objdir/$soname.def;
17406           cat $export_symbols >> $output_objdir/$soname.def;
17407         fi~
17408         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17409       else
17410         ld_shlibs_GCJ=no
17411       fi
17412       ;;
17413
17414     interix3*)
17415       hardcode_direct_GCJ=no
17416       hardcode_shlibpath_var_GCJ=no
17417       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17418       export_dynamic_flag_spec_GCJ='${wl}-E'
17419       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17420       # Instead, shared libraries are loaded at an image base (0x10000000 by
17421       # default) and relocated if they conflict, which is a slow very memory
17422       # consuming and fragmenting process.  To avoid this, we pick a random,
17423       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17424       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17425       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'
17426       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'
17427       ;;
17428
17429     linux*)
17430       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17431         tmp_addflag=
17432         case $cc_basename,$host_cpu in
17433         pgcc*)                          # Portland Group C compiler
17434           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'
17435           tmp_addflag=' $pic_flag'
17436           ;;
17437         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17438           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'
17439           tmp_addflag=' $pic_flag -Mnomain' ;;
17440         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17441           tmp_addflag=' -i_dynamic' ;;
17442         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17443           tmp_addflag=' -i_dynamic -nofor_main' ;;
17444         ifc* | ifort*)                  # Intel Fortran compiler
17445           tmp_addflag=' -nofor_main' ;;
17446         esac
17447         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17448
17449         if test $supports_anon_versioning = yes; then
17450           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17451   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17452   $echo "local: *; };" >> $output_objdir/$libname.ver~
17453           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17454         fi
17455       else
17456         ld_shlibs_GCJ=no
17457       fi
17458       ;;
17459
17460     netbsd*)
17461       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17462         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17463         wlarc=
17464       else
17465         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17466         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17467       fi
17468       ;;
17469
17470     solaris*)
17471       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17472         ld_shlibs_GCJ=no
17473         cat <<EOF 1>&2
17474
17475 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17476 *** create shared libraries on Solaris systems.  Therefore, libtool
17477 *** is disabling shared libraries support.  We urge you to upgrade GNU
17478 *** binutils to release 2.9.1 or newer.  Another option is to modify
17479 *** your PATH or compiler configuration so that the native linker is
17480 *** used, and then restart.
17481
17482 EOF
17483       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17484         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17485         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17486       else
17487         ld_shlibs_GCJ=no
17488       fi
17489       ;;
17490
17491     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17492       case `$LD -v 2>&1` in
17493         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17494         ld_shlibs_GCJ=no
17495         cat <<_LT_EOF 1>&2
17496
17497 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17498 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17499 *** is disabling shared libraries support.  We urge you to upgrade GNU
17500 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17501 *** your PATH or compiler configuration so that the native linker is
17502 *** used, and then restart.
17503
17504 _LT_EOF
17505         ;;
17506         *)
17507           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17508             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17509             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17510             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17511           else
17512             ld_shlibs_GCJ=no
17513           fi
17514         ;;
17515       esac
17516       ;;
17517
17518     sunos4*)
17519       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17520       wlarc=
17521       hardcode_direct_GCJ=yes
17522       hardcode_shlibpath_var_GCJ=no
17523       ;;
17524
17525     *)
17526       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17527         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17528         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17529       else
17530         ld_shlibs_GCJ=no
17531       fi
17532       ;;
17533     esac
17534
17535     if test "$ld_shlibs_GCJ" = no; then
17536       runpath_var=
17537       hardcode_libdir_flag_spec_GCJ=
17538       export_dynamic_flag_spec_GCJ=
17539       whole_archive_flag_spec_GCJ=
17540     fi
17541   else
17542     # PORTME fill in a description of your system's linker (not GNU ld)
17543     case $host_os in
17544     aix3*)
17545       allow_undefined_flag_GCJ=unsupported
17546       always_export_symbols_GCJ=yes
17547       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'
17548       # Note: this linker hardcodes the directories in LIBPATH if there
17549       # are no directories specified by -L.
17550       hardcode_minus_L_GCJ=yes
17551       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17552         # Neither direct hardcoding nor static linking is supported with a
17553         # broken collect2.
17554         hardcode_direct_GCJ=unsupported
17555       fi
17556       ;;
17557
17558     aix4* | aix5*)
17559       if test "$host_cpu" = ia64; then
17560         # On IA64, the linker does run time linking by default, so we don't
17561         # have to do anything special.
17562         aix_use_runtimelinking=no
17563         exp_sym_flag='-Bexport'
17564         no_entry_flag=""
17565       else
17566         # If we're using GNU nm, then we don't want the "-C" option.
17567         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17568         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17569           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'
17570         else
17571           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'
17572         fi
17573         aix_use_runtimelinking=no
17574
17575         # Test if we are trying to use run time linking or normal
17576         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17577         # need to do runtime linking.
17578         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17579           for ld_flag in $LDFLAGS; do
17580           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17581             aix_use_runtimelinking=yes
17582             break
17583           fi
17584           done
17585           ;;
17586         esac
17587
17588         exp_sym_flag='-bexport'
17589         no_entry_flag='-bnoentry'
17590       fi
17591
17592       # When large executables or shared objects are built, AIX ld can
17593       # have problems creating the table of contents.  If linking a library
17594       # or program results in "error TOC overflow" add -mminimal-toc to
17595       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17596       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17597
17598       archive_cmds_GCJ=''
17599       hardcode_direct_GCJ=yes
17600       hardcode_libdir_separator_GCJ=':'
17601       link_all_deplibs_GCJ=yes
17602
17603       if test "$GCC" = yes; then
17604         case $host_os in aix4.[012]|aix4.[012].*)
17605         # We only want to do this on AIX 4.2 and lower, the check
17606         # below for broken collect2 doesn't work under 4.3+
17607           collect2name=`${CC} -print-prog-name=collect2`
17608           if test -f "$collect2name" && \
17609            strings "$collect2name" | grep resolve_lib_name >/dev/null
17610           then
17611           # We have reworked collect2
17612           hardcode_direct_GCJ=yes
17613           else
17614           # We have old collect2
17615           hardcode_direct_GCJ=unsupported
17616           # It fails to find uninstalled libraries when the uninstalled
17617           # path is not listed in the libpath.  Setting hardcode_minus_L
17618           # to unsupported forces relinking
17619           hardcode_minus_L_GCJ=yes
17620           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17621           hardcode_libdir_separator_GCJ=
17622           fi
17623           ;;
17624         esac
17625         shared_flag='-shared'
17626         if test "$aix_use_runtimelinking" = yes; then
17627           shared_flag="$shared_flag "'${wl}-G'
17628         fi
17629       else
17630         # not using gcc
17631         if test "$host_cpu" = ia64; then
17632         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17633         # chokes on -Wl,-G. The following line is correct:
17634           shared_flag='-G'
17635         else
17636           if test "$aix_use_runtimelinking" = yes; then
17637             shared_flag='${wl}-G'
17638           else
17639             shared_flag='${wl}-bM:SRE'
17640           fi
17641         fi
17642       fi
17643
17644       # It seems that -bexpall does not export symbols beginning with
17645       # underscore (_), so it is better to generate a list of symbols to export.
17646       always_export_symbols_GCJ=yes
17647       if test "$aix_use_runtimelinking" = yes; then
17648         # Warning - without using the other runtime loading flags (-brtl),
17649         # -berok will link without error, but may produce a broken library.
17650         allow_undefined_flag_GCJ='-berok'
17651        # Determine the default libpath from the value encoded in an empty executable.
17652        cat >conftest.$ac_ext <<_ACEOF
17653 /* confdefs.h.  */
17654 _ACEOF
17655 cat confdefs.h >>conftest.$ac_ext
17656 cat >>conftest.$ac_ext <<_ACEOF
17657 /* end confdefs.h.  */
17658
17659 int
17660 main ()
17661 {
17662
17663   ;
17664   return 0;
17665 }
17666 _ACEOF
17667 rm -f conftest.$ac_objext conftest$ac_exeext
17668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17669   (eval $ac_link) 2>conftest.er1
17670   ac_status=$?
17671   grep -v '^ *+' conftest.er1 >conftest.err
17672   rm -f conftest.er1
17673   cat conftest.err >&5
17674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17675   (exit $ac_status); } &&
17676          { ac_try='test -z "$ac_c_werror_flag"
17677                          || test ! -s conftest.err'
17678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17679   (eval $ac_try) 2>&5
17680   ac_status=$?
17681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17682   (exit $ac_status); }; } &&
17683          { ac_try='test -s conftest$ac_exeext'
17684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17685   (eval $ac_try) 2>&5
17686   ac_status=$?
17687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17688   (exit $ac_status); }; }; then
17689
17690 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17691 }'`
17692 # Check for a 64-bit object if we didn't find anything.
17693 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17694 }'`; fi
17695 else
17696   echo "$as_me: failed program was:" >&5
17697 sed 's/^/| /' conftest.$ac_ext >&5
17698
17699
17700 fi
17701
17702 rm -f conftest.err conftest.$ac_objext \
17703       conftest$ac_exeext conftest.$ac_ext
17704 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17705
17706        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17707         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"
17708        else
17709         if test "$host_cpu" = ia64; then
17710           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17711           allow_undefined_flag_GCJ="-z nodefs"
17712           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"
17713         else
17714          # Determine the default libpath from the value encoded in an empty executable.
17715          cat >conftest.$ac_ext <<_ACEOF
17716 /* confdefs.h.  */
17717 _ACEOF
17718 cat confdefs.h >>conftest.$ac_ext
17719 cat >>conftest.$ac_ext <<_ACEOF
17720 /* end confdefs.h.  */
17721
17722 int
17723 main ()
17724 {
17725
17726   ;
17727   return 0;
17728 }
17729 _ACEOF
17730 rm -f conftest.$ac_objext conftest$ac_exeext
17731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17732   (eval $ac_link) 2>conftest.er1
17733   ac_status=$?
17734   grep -v '^ *+' conftest.er1 >conftest.err
17735   rm -f conftest.er1
17736   cat conftest.err >&5
17737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738   (exit $ac_status); } &&
17739          { ac_try='test -z "$ac_c_werror_flag"
17740                          || test ! -s conftest.err'
17741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17742   (eval $ac_try) 2>&5
17743   ac_status=$?
17744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17745   (exit $ac_status); }; } &&
17746          { ac_try='test -s conftest$ac_exeext'
17747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17748   (eval $ac_try) 2>&5
17749   ac_status=$?
17750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751   (exit $ac_status); }; }; then
17752
17753 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17754 }'`
17755 # Check for a 64-bit object if we didn't find anything.
17756 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17757 }'`; fi
17758 else
17759   echo "$as_me: failed program was:" >&5
17760 sed 's/^/| /' conftest.$ac_ext >&5
17761
17762
17763 fi
17764
17765 rm -f conftest.err conftest.$ac_objext \
17766       conftest$ac_exeext conftest.$ac_ext
17767 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17768
17769          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17770           # Warning - without using the other run time loading flags,
17771           # -berok will link without error, but may produce a broken library.
17772           no_undefined_flag_GCJ=' ${wl}-bernotok'
17773           allow_undefined_flag_GCJ=' ${wl}-berok'
17774           # Exported symbols can be pulled into shared objects from archives
17775           whole_archive_flag_spec_GCJ='$convenience'
17776           archive_cmds_need_lc_GCJ=yes
17777           # This is similar to how AIX traditionally builds its shared libraries.
17778           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'
17779         fi
17780       fi
17781       ;;
17782
17783     amigaos*)
17784       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)'
17785       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17786       hardcode_minus_L_GCJ=yes
17787       # see comment about different semantics on the GNU ld section
17788       ld_shlibs_GCJ=no
17789       ;;
17790
17791     bsdi[45]*)
17792       export_dynamic_flag_spec_GCJ=-rdynamic
17793       ;;
17794
17795     cygwin* | mingw* | pw32*)
17796       # When not using gcc, we currently assume that we are using
17797       # Microsoft Visual C++.
17798       # hardcode_libdir_flag_spec is actually meaningless, as there is
17799       # no search path for DLLs.
17800       hardcode_libdir_flag_spec_GCJ=' '
17801       allow_undefined_flag_GCJ=unsupported
17802       # Tell ltmain to make .lib files, not .a files.
17803       libext=lib
17804       # Tell ltmain to make .dll files, not .so files.
17805       shrext_cmds=".dll"
17806       # FIXME: Setting linknames here is a bad hack.
17807       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17808       # The linker will automatically build a .lib file if we build a DLL.
17809       old_archive_From_new_cmds_GCJ='true'
17810       # FIXME: Should let the user specify the lib program.
17811       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17812       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17813       enable_shared_with_static_runtimes_GCJ=yes
17814       ;;
17815
17816     darwin* | rhapsody*)
17817       case $host_os in
17818         rhapsody* | darwin1.[012])
17819          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17820          ;;
17821        *) # Darwin 1.3 on
17822          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17823            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17824          else
17825            case ${MACOSX_DEPLOYMENT_TARGET} in
17826              10.[012])
17827                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17828                ;;
17829              10.*)
17830                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17831                ;;
17832            esac
17833          fi
17834          ;;
17835       esac
17836       archive_cmds_need_lc_GCJ=no
17837       hardcode_direct_GCJ=no
17838       hardcode_automatic_GCJ=yes
17839       hardcode_shlibpath_var_GCJ=unsupported
17840       whole_archive_flag_spec_GCJ=''
17841       link_all_deplibs_GCJ=yes
17842     if test "$GCC" = yes ; then
17843         output_verbose_link_cmd='echo'
17844         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17845       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17846       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17847       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17848       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}'
17849     else
17850       case $cc_basename in
17851         xlc*)
17852          output_verbose_link_cmd='echo'
17853          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17854          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17855           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17856          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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17857           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}'
17858           ;;
17859        *)
17860          ld_shlibs_GCJ=no
17861           ;;
17862       esac
17863     fi
17864       ;;
17865
17866     dgux*)
17867       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17868       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17869       hardcode_shlibpath_var_GCJ=no
17870       ;;
17871
17872     freebsd1*)
17873       ld_shlibs_GCJ=no
17874       ;;
17875
17876     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17877     # support.  Future versions do this automatically, but an explicit c++rt0.o
17878     # does not break anything, and helps significantly (at the cost of a little
17879     # extra space).
17880     freebsd2.2*)
17881       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17882       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17883       hardcode_direct_GCJ=yes
17884       hardcode_shlibpath_var_GCJ=no
17885       ;;
17886
17887     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17888     freebsd2*)
17889       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17890       hardcode_direct_GCJ=yes
17891       hardcode_minus_L_GCJ=yes
17892       hardcode_shlibpath_var_GCJ=no
17893       ;;
17894
17895     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17896     freebsd* | kfreebsd*-gnu | dragonfly*)
17897       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17898       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17899       hardcode_direct_GCJ=yes
17900       hardcode_shlibpath_var_GCJ=no
17901       ;;
17902
17903     hpux9*)
17904       if test "$GCC" = yes; then
17905         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'
17906       else
17907         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'
17908       fi
17909       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17910       hardcode_libdir_separator_GCJ=:
17911       hardcode_direct_GCJ=yes
17912
17913       # hardcode_minus_L: Not really in the search PATH,
17914       # but as the default location of the library.
17915       hardcode_minus_L_GCJ=yes
17916       export_dynamic_flag_spec_GCJ='${wl}-E'
17917       ;;
17918
17919     hpux10*)
17920       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17921         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17922       else
17923         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17924       fi
17925       if test "$with_gnu_ld" = no; then
17926         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17927         hardcode_libdir_separator_GCJ=:
17928
17929         hardcode_direct_GCJ=yes
17930         export_dynamic_flag_spec_GCJ='${wl}-E'
17931
17932         # hardcode_minus_L: Not really in the search PATH,
17933         # but as the default location of the library.
17934         hardcode_minus_L_GCJ=yes
17935       fi
17936       ;;
17937
17938     hpux11*)
17939       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17940         case $host_cpu in
17941         hppa*64*)
17942           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17943           ;;
17944         ia64*)
17945           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17946           ;;
17947         *)
17948           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17949           ;;
17950         esac
17951       else
17952         case $host_cpu in
17953         hppa*64*)
17954           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17955           ;;
17956         ia64*)
17957           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17958           ;;
17959         *)
17960           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17961           ;;
17962         esac
17963       fi
17964       if test "$with_gnu_ld" = no; then
17965         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17966         hardcode_libdir_separator_GCJ=:
17967
17968         case $host_cpu in
17969         hppa*64*|ia64*)
17970           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17971           hardcode_direct_GCJ=no
17972           hardcode_shlibpath_var_GCJ=no
17973           ;;
17974         *)
17975           hardcode_direct_GCJ=yes
17976           export_dynamic_flag_spec_GCJ='${wl}-E'
17977
17978           # hardcode_minus_L: Not really in the search PATH,
17979           # but as the default location of the library.
17980           hardcode_minus_L_GCJ=yes
17981           ;;
17982         esac
17983       fi
17984       ;;
17985
17986     irix5* | irix6* | nonstopux*)
17987       if test "$GCC" = yes; then
17988         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'
17989       else
17990         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'
17991         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17992       fi
17993       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17994       hardcode_libdir_separator_GCJ=:
17995       link_all_deplibs_GCJ=yes
17996       ;;
17997
17998     netbsd*)
17999       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18000         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18001       else
18002         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18003       fi
18004       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18005       hardcode_direct_GCJ=yes
18006       hardcode_shlibpath_var_GCJ=no
18007       ;;
18008
18009     newsos6)
18010       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18011       hardcode_direct_GCJ=yes
18012       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18013       hardcode_libdir_separator_GCJ=:
18014       hardcode_shlibpath_var_GCJ=no
18015       ;;
18016
18017     openbsd*)
18018       hardcode_direct_GCJ=yes
18019       hardcode_shlibpath_var_GCJ=no
18020       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18021         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18022         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18023         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18024         export_dynamic_flag_spec_GCJ='${wl}-E'
18025       else
18026        case $host_os in
18027          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18028            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18029            hardcode_libdir_flag_spec_GCJ='-R$libdir'
18030            ;;
18031          *)
18032            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18033            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18034            ;;
18035        esac
18036       fi
18037       ;;
18038
18039     os2*)
18040       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18041       hardcode_minus_L_GCJ=yes
18042       allow_undefined_flag_GCJ=unsupported
18043       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'
18044       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18045       ;;
18046
18047     osf3*)
18048       if test "$GCC" = yes; then
18049         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18050         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'
18051       else
18052         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18053         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'
18054       fi
18055       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18056       hardcode_libdir_separator_GCJ=:
18057       ;;
18058
18059     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18060       if test "$GCC" = yes; then
18061         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18062         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'
18063         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18064       else
18065         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18066         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'
18067         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~
18068         $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'
18069
18070         # Both c and cxx compiler support -rpath directly
18071         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18072       fi
18073       hardcode_libdir_separator_GCJ=:
18074       ;;
18075
18076     solaris*)
18077       no_undefined_flag_GCJ=' -z text'
18078       if test "$GCC" = yes; then
18079         wlarc='${wl}'
18080         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18081         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18082           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18083       else
18084         wlarc=''
18085         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18086         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18087         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18088       fi
18089       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18090       hardcode_shlibpath_var_GCJ=no
18091       case $host_os in
18092       solaris2.[0-5] | solaris2.[0-5].*) ;;
18093       *)
18094         # The compiler driver will combine linker options so we
18095         # cannot just pass the convience library names through
18096         # without $wl, iff we do not link with $LD.
18097         # Luckily, gcc supports the same syntax we need for Sun Studio.
18098         # Supported since Solaris 2.6 (maybe 2.5.1?)
18099         case $wlarc in
18100         '')
18101           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18102         *)
18103           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
18104         esac ;;
18105       esac
18106       link_all_deplibs_GCJ=yes
18107       ;;
18108
18109     sunos4*)
18110       if test "x$host_vendor" = xsequent; then
18111         # Use $CC to link under sequent, because it throws in some extra .o
18112         # files that make .init and .fini sections work.
18113         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18114       else
18115         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18116       fi
18117       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18118       hardcode_direct_GCJ=yes
18119       hardcode_minus_L_GCJ=yes
18120       hardcode_shlibpath_var_GCJ=no
18121       ;;
18122
18123     sysv4)
18124       case $host_vendor in
18125         sni)
18126           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18127           hardcode_direct_GCJ=yes # is this really true???
18128         ;;
18129         siemens)
18130           ## LD is ld it makes a PLAMLIB
18131           ## CC just makes a GrossModule.
18132           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18133           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18134           hardcode_direct_GCJ=no
18135         ;;
18136         motorola)
18137           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18138           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18139         ;;
18140       esac
18141       runpath_var='LD_RUN_PATH'
18142       hardcode_shlibpath_var_GCJ=no
18143       ;;
18144
18145     sysv4.3*)
18146       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18147       hardcode_shlibpath_var_GCJ=no
18148       export_dynamic_flag_spec_GCJ='-Bexport'
18149       ;;
18150
18151     sysv4*MP*)
18152       if test -d /usr/nec; then
18153         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18154         hardcode_shlibpath_var_GCJ=no
18155         runpath_var=LD_RUN_PATH
18156         hardcode_runpath_var=yes
18157         ld_shlibs_GCJ=yes
18158       fi
18159       ;;
18160
18161     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18162       no_undefined_flag_GCJ='${wl}-z,text'
18163       archive_cmds_need_lc_GCJ=no
18164       hardcode_shlibpath_var_GCJ=no
18165       runpath_var='LD_RUN_PATH'
18166
18167       if test "$GCC" = yes; then
18168         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18169         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18170       else
18171         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18172         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18173       fi
18174       ;;
18175
18176     sysv5* | sco3.2v5* | sco5v6*)
18177       # Note: We can NOT use -z defs as we might desire, because we do not
18178       # link with -lc, and that would cause any symbols used from libc to
18179       # always be unresolved, which means just about no library would
18180       # ever link correctly.  If we're not using GNU ld we use -z text
18181       # though, which does catch some bad symbols but isn't as heavy-handed
18182       # as -z defs.
18183       no_undefined_flag_GCJ='${wl}-z,text'
18184       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18185       archive_cmds_need_lc_GCJ=no
18186       hardcode_shlibpath_var_GCJ=no
18187       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18188       hardcode_libdir_separator_GCJ=':'
18189       link_all_deplibs_GCJ=yes
18190       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18191       runpath_var='LD_RUN_PATH'
18192
18193       if test "$GCC" = yes; then
18194         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18195         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18196       else
18197         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18198         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18199       fi
18200       ;;
18201
18202     uts4*)
18203       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18204       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18205       hardcode_shlibpath_var_GCJ=no
18206       ;;
18207
18208     *)
18209       ld_shlibs_GCJ=no
18210       ;;
18211     esac
18212   fi
18213
18214 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18215 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18216 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18217
18218 #
18219 # Do we need to explicitly link libc?
18220 #
18221 case "x$archive_cmds_need_lc_GCJ" in
18222 x|xyes)
18223   # Assume -lc should be added
18224   archive_cmds_need_lc_GCJ=yes
18225
18226   if test "$enable_shared" = yes && test "$GCC" = yes; then
18227     case $archive_cmds_GCJ in
18228     *'~'*)
18229       # FIXME: we may have to deal with multi-command sequences.
18230       ;;
18231     '$CC '*)
18232       # Test whether the compiler implicitly links with -lc since on some
18233       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18234       # to ld, don't add -lc before -lgcc.
18235       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18236 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18237       $rm conftest*
18238       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18239
18240       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18241   (eval $ac_compile) 2>&5
18242   ac_status=$?
18243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18244   (exit $ac_status); } 2>conftest.err; then
18245         soname=conftest
18246         lib=conftest
18247         libobjs=conftest.$ac_objext
18248         deplibs=
18249         wl=$lt_prog_compiler_wl_GCJ
18250         pic_flag=$lt_prog_compiler_pic_GCJ
18251         compiler_flags=-v
18252         linker_flags=-v
18253         verstring=
18254         output_objdir=.
18255         libname=conftest
18256         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18257         allow_undefined_flag_GCJ=
18258         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18259   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18260   ac_status=$?
18261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18262   (exit $ac_status); }
18263         then
18264           archive_cmds_need_lc_GCJ=no
18265         else
18266           archive_cmds_need_lc_GCJ=yes
18267         fi
18268         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18269       else
18270         cat conftest.err 1>&5
18271       fi
18272       $rm conftest*
18273       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18274 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18275       ;;
18276     esac
18277   fi
18278   ;;
18279 esac
18280
18281 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18282 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18283 library_names_spec=
18284 libname_spec='lib$name'
18285 soname_spec=
18286 shrext_cmds=".so"
18287 postinstall_cmds=
18288 postuninstall_cmds=
18289 finish_cmds=
18290 finish_eval=
18291 shlibpath_var=
18292 shlibpath_overrides_runpath=unknown
18293 version_type=none
18294 dynamic_linker="$host_os ld.so"
18295 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18296 if test "$GCC" = yes; then
18297   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18298   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18299     # if the path contains ";" then we assume it to be the separator
18300     # otherwise default to the standard path separator (i.e. ":") - it is
18301     # assumed that no part of a normal pathname contains ";" but that should
18302     # okay in the real world where ";" in dirpaths is itself problematic.
18303     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18304   else
18305     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18306   fi
18307 else
18308   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18309 fi
18310 need_lib_prefix=unknown
18311 hardcode_into_libs=no
18312
18313 # when you set need_version to no, make sure it does not cause -set_version
18314 # flags to be left without arguments
18315 need_version=unknown
18316
18317 case $host_os in
18318 aix3*)
18319   version_type=linux
18320   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18321   shlibpath_var=LIBPATH
18322
18323   # AIX 3 has no versioning support, so we append a major version to the name.
18324   soname_spec='${libname}${release}${shared_ext}$major'
18325   ;;
18326
18327 aix4* | aix5*)
18328   version_type=linux
18329   need_lib_prefix=no
18330   need_version=no
18331   hardcode_into_libs=yes
18332   if test "$host_cpu" = ia64; then
18333     # AIX 5 supports IA64
18334     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18335     shlibpath_var=LD_LIBRARY_PATH
18336   else
18337     # With GCC up to 2.95.x, collect2 would create an import file
18338     # for dependence libraries.  The import file would start with
18339     # the line `#! .'.  This would cause the generated library to
18340     # depend on `.', always an invalid library.  This was fixed in
18341     # development snapshots of GCC prior to 3.0.
18342     case $host_os in
18343       aix4 | aix4.[01] | aix4.[01].*)
18344       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18345            echo ' yes '
18346            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18347         :
18348       else
18349         can_build_shared=no
18350       fi
18351       ;;
18352     esac
18353     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18354     # soname into executable. Probably we can add versioning support to
18355     # collect2, so additional links can be useful in future.
18356     if test "$aix_use_runtimelinking" = yes; then
18357       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18358       # instead of lib<name>.a to let people know that these are not
18359       # typical AIX shared libraries.
18360       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18361     else
18362       # We preserve .a as extension for shared libraries through AIX4.2
18363       # and later when we are not doing run time linking.
18364       library_names_spec='${libname}${release}.a $libname.a'
18365       soname_spec='${libname}${release}${shared_ext}$major'
18366     fi
18367     shlibpath_var=LIBPATH
18368   fi
18369   ;;
18370
18371 amigaos*)
18372   library_names_spec='$libname.ixlibrary $libname.a'
18373   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18374   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'
18375   ;;
18376
18377 beos*)
18378   library_names_spec='${libname}${shared_ext}'
18379   dynamic_linker="$host_os ld.so"
18380   shlibpath_var=LIBRARY_PATH
18381   ;;
18382
18383 bsdi[45]*)
18384   version_type=linux
18385   need_version=no
18386   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18387   soname_spec='${libname}${release}${shared_ext}$major'
18388   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18389   shlibpath_var=LD_LIBRARY_PATH
18390   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18391   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18392   # the default ld.so.conf also contains /usr/contrib/lib and
18393   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18394   # libtool to hard-code these into programs
18395   ;;
18396
18397 cygwin* | mingw* | pw32*)
18398   version_type=windows
18399   shrext_cmds=".dll"
18400   need_version=no
18401   need_lib_prefix=no
18402
18403   case $GCC,$host_os in
18404   yes,cygwin* | yes,mingw* | yes,pw32*)
18405     library_names_spec='$libname.dll.a'
18406     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18407     postinstall_cmds='base_file=`basename \${file}`~
18408       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18409       dldir=$destdir/`dirname \$dlpath`~
18410       test -d \$dldir || mkdir -p \$dldir~
18411       $install_prog $dir/$dlname \$dldir/$dlname~
18412       chmod a+x \$dldir/$dlname'
18413     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18414       dlpath=$dir/\$dldll~
18415        $rm \$dlpath'
18416     shlibpath_overrides_runpath=yes
18417
18418     case $host_os in
18419     cygwin*)
18420       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18421       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18422       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18423       ;;
18424     mingw*)
18425       # MinGW DLLs use traditional 'lib' prefix
18426       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18427       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18428       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18429         # It is most probably a Windows format PATH printed by
18430         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18431         # path with ; separators, and with drive letters. We can handle the
18432         # drive letters (cygwin fileutils understands them), so leave them,
18433         # especially as we might pass files found there to a mingw objdump,
18434         # which wouldn't understand a cygwinified path. Ahh.
18435         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18436       else
18437         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18438       fi
18439       ;;
18440     pw32*)
18441       # pw32 DLLs use 'pw' prefix rather than 'lib'
18442       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18443       ;;
18444     esac
18445     ;;
18446
18447   *)
18448     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18449     ;;
18450   esac
18451   dynamic_linker='Win32 ld.exe'
18452   # FIXME: first we should search . and the directory the executable is in
18453   shlibpath_var=PATH
18454   ;;
18455
18456 darwin* | rhapsody*)
18457   dynamic_linker="$host_os dyld"
18458   version_type=darwin
18459   need_lib_prefix=no
18460   need_version=no
18461   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18462   soname_spec='${libname}${release}${major}$shared_ext'
18463   shlibpath_overrides_runpath=yes
18464   shlibpath_var=DYLD_LIBRARY_PATH
18465   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18466   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18467   if test "$GCC" = yes; then
18468     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18469   else
18470     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18471   fi
18472   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18473   ;;
18474
18475 dgux*)
18476   version_type=linux
18477   need_lib_prefix=no
18478   need_version=no
18479   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18480   soname_spec='${libname}${release}${shared_ext}$major'
18481   shlibpath_var=LD_LIBRARY_PATH
18482   ;;
18483
18484 freebsd1*)
18485   dynamic_linker=no
18486   ;;
18487
18488 kfreebsd*-gnu)
18489   version_type=linux
18490   need_lib_prefix=no
18491   need_version=no
18492   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18493   soname_spec='${libname}${release}${shared_ext}$major'
18494   shlibpath_var=LD_LIBRARY_PATH
18495   shlibpath_overrides_runpath=no
18496   hardcode_into_libs=yes
18497   dynamic_linker='GNU ld.so'
18498   ;;
18499
18500 freebsd* | dragonfly*)
18501   # DragonFly does not have aout.  When/if they implement a new
18502   # versioning mechanism, adjust this.
18503   if test -x /usr/bin/objformat; then
18504     objformat=`/usr/bin/objformat`
18505   else
18506     case $host_os in
18507     freebsd[123]*) objformat=aout ;;
18508     *) objformat=elf ;;
18509     esac
18510   fi
18511   version_type=freebsd-$objformat
18512   case $version_type in
18513     freebsd-elf*)
18514       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18515       need_version=no
18516       need_lib_prefix=no
18517       ;;
18518     freebsd-*)
18519       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18520       need_version=yes
18521       ;;
18522   esac
18523   shlibpath_var=LD_LIBRARY_PATH
18524   case $host_os in
18525   freebsd2*)
18526     shlibpath_overrides_runpath=yes
18527     ;;
18528   freebsd3.[01]* | freebsdelf3.[01]*)
18529     shlibpath_overrides_runpath=yes
18530     hardcode_into_libs=yes
18531     ;;
18532   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18533   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18534     shlibpath_overrides_runpath=no
18535     hardcode_into_libs=yes
18536     ;;
18537   freebsd*) # from 4.6 on
18538     shlibpath_overrides_runpath=yes
18539     hardcode_into_libs=yes
18540     ;;
18541   esac
18542   ;;
18543
18544 gnu*)
18545   version_type=linux
18546   need_lib_prefix=no
18547   need_version=no
18548   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18549   soname_spec='${libname}${release}${shared_ext}$major'
18550   shlibpath_var=LD_LIBRARY_PATH
18551   hardcode_into_libs=yes
18552   ;;
18553
18554 hpux9* | hpux10* | hpux11*)
18555   # Give a soname corresponding to the major version so that dld.sl refuses to
18556   # link against other versions.
18557   version_type=sunos
18558   need_lib_prefix=no
18559   need_version=no
18560   case $host_cpu in
18561   ia64*)
18562     shrext_cmds='.so'
18563     hardcode_into_libs=yes
18564     dynamic_linker="$host_os dld.so"
18565     shlibpath_var=LD_LIBRARY_PATH
18566     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18567     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18568     soname_spec='${libname}${release}${shared_ext}$major'
18569     if test "X$HPUX_IA64_MODE" = X32; then
18570       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18571     else
18572       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18573     fi
18574     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18575     ;;
18576    hppa*64*)
18577      shrext_cmds='.sl'
18578      hardcode_into_libs=yes
18579      dynamic_linker="$host_os dld.sl"
18580      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18581      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18582      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18583      soname_spec='${libname}${release}${shared_ext}$major'
18584      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18585      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18586      ;;
18587    *)
18588     shrext_cmds='.sl'
18589     dynamic_linker="$host_os dld.sl"
18590     shlibpath_var=SHLIB_PATH
18591     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18592     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18593     soname_spec='${libname}${release}${shared_ext}$major'
18594     ;;
18595   esac
18596   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18597   postinstall_cmds='chmod 555 $lib'
18598   ;;
18599
18600 interix3*)
18601   version_type=linux
18602   need_lib_prefix=no
18603   need_version=no
18604   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18605   soname_spec='${libname}${release}${shared_ext}$major'
18606   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18607   shlibpath_var=LD_LIBRARY_PATH
18608   shlibpath_overrides_runpath=no
18609   hardcode_into_libs=yes
18610   ;;
18611
18612 irix5* | irix6* | nonstopux*)
18613   case $host_os in
18614     nonstopux*) version_type=nonstopux ;;
18615     *)
18616         if test "$lt_cv_prog_gnu_ld" = yes; then
18617                 version_type=linux
18618         else
18619                 version_type=irix
18620         fi ;;
18621   esac
18622   need_lib_prefix=no
18623   need_version=no
18624   soname_spec='${libname}${release}${shared_ext}$major'
18625   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18626   case $host_os in
18627   irix5* | nonstopux*)
18628     libsuff= shlibsuff=
18629     ;;
18630   *)
18631     case $LD in # libtool.m4 will add one of these switches to LD
18632     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18633       libsuff= shlibsuff= libmagic=32-bit;;
18634     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18635       libsuff=32 shlibsuff=N32 libmagic=N32;;
18636     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18637       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18638     *) libsuff= shlibsuff= libmagic=never-match;;
18639     esac
18640     ;;
18641   esac
18642   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18643   shlibpath_overrides_runpath=no
18644   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18645   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18646   hardcode_into_libs=yes
18647   ;;
18648
18649 # No shared lib support for Linux oldld, aout, or coff.
18650 linux*oldld* | linux*aout* | linux*coff*)
18651   dynamic_linker=no
18652   ;;
18653
18654 # This must be Linux ELF.
18655 linux*)
18656   version_type=linux
18657   need_lib_prefix=no
18658   need_version=no
18659   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18660   soname_spec='${libname}${release}${shared_ext}$major'
18661   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18662   shlibpath_var=LD_LIBRARY_PATH
18663   shlibpath_overrides_runpath=no
18664   # This implies no fast_install, which is unacceptable.
18665   # Some rework will be needed to allow for fast_install
18666   # before this can be enabled.
18667   hardcode_into_libs=yes
18668
18669   # Append ld.so.conf contents to the search path
18670   if test -f /etc/ld.so.conf; then
18671     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18672     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18673   fi
18674
18675   # We used to test for /lib/ld.so.1 and disable shared libraries on
18676   # powerpc, because MkLinux only supported shared libraries with the
18677   # GNU dynamic linker.  Since this was broken with cross compilers,
18678   # most powerpc-linux boxes support dynamic linking these days and
18679   # people can always --disable-shared, the test was removed, and we
18680   # assume the GNU/Linux dynamic linker is in use.
18681   dynamic_linker='GNU/Linux ld.so'
18682   ;;
18683
18684 knetbsd*-gnu)
18685   version_type=linux
18686   need_lib_prefix=no
18687   need_version=no
18688   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18689   soname_spec='${libname}${release}${shared_ext}$major'
18690   shlibpath_var=LD_LIBRARY_PATH
18691   shlibpath_overrides_runpath=no
18692   hardcode_into_libs=yes
18693   dynamic_linker='GNU ld.so'
18694   ;;
18695
18696 netbsd*)
18697   version_type=sunos
18698   need_lib_prefix=no
18699   need_version=no
18700   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18701     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18702     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18703     dynamic_linker='NetBSD (a.out) ld.so'
18704   else
18705     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18706     soname_spec='${libname}${release}${shared_ext}$major'
18707     dynamic_linker='NetBSD ld.elf_so'
18708   fi
18709   shlibpath_var=LD_LIBRARY_PATH
18710   shlibpath_overrides_runpath=yes
18711   hardcode_into_libs=yes
18712   ;;
18713
18714 newsos6)
18715   version_type=linux
18716   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18717   shlibpath_var=LD_LIBRARY_PATH
18718   shlibpath_overrides_runpath=yes
18719   ;;
18720
18721 nto-qnx*)
18722   version_type=linux
18723   need_lib_prefix=no
18724   need_version=no
18725   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18726   soname_spec='${libname}${release}${shared_ext}$major'
18727   shlibpath_var=LD_LIBRARY_PATH
18728   shlibpath_overrides_runpath=yes
18729   ;;
18730
18731 openbsd*)
18732   version_type=sunos
18733   sys_lib_dlsearch_path_spec="/usr/lib"
18734   need_lib_prefix=no
18735   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18736   case $host_os in
18737     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18738     *)                         need_version=no  ;;
18739   esac
18740   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18741   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18742   shlibpath_var=LD_LIBRARY_PATH
18743   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18744     case $host_os in
18745       openbsd2.[89] | openbsd2.[89].*)
18746         shlibpath_overrides_runpath=no
18747         ;;
18748       *)
18749         shlibpath_overrides_runpath=yes
18750         ;;
18751       esac
18752   else
18753     shlibpath_overrides_runpath=yes
18754   fi
18755   ;;
18756
18757 os2*)
18758   libname_spec='$name'
18759   shrext_cmds=".dll"
18760   need_lib_prefix=no
18761   library_names_spec='$libname${shared_ext} $libname.a'
18762   dynamic_linker='OS/2 ld.exe'
18763   shlibpath_var=LIBPATH
18764   ;;
18765
18766 osf3* | osf4* | osf5*)
18767   version_type=osf
18768   need_lib_prefix=no
18769   need_version=no
18770   soname_spec='${libname}${release}${shared_ext}$major'
18771   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18772   shlibpath_var=LD_LIBRARY_PATH
18773   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18774   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18775   ;;
18776
18777 solaris*)
18778   version_type=linux
18779   need_lib_prefix=no
18780   need_version=no
18781   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18782   soname_spec='${libname}${release}${shared_ext}$major'
18783   shlibpath_var=LD_LIBRARY_PATH
18784   shlibpath_overrides_runpath=yes
18785   hardcode_into_libs=yes
18786   # ldd complains unless libraries are executable
18787   postinstall_cmds='chmod +x $lib'
18788   ;;
18789
18790 sunos4*)
18791   version_type=sunos
18792   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18793   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18794   shlibpath_var=LD_LIBRARY_PATH
18795   shlibpath_overrides_runpath=yes
18796   if test "$with_gnu_ld" = yes; then
18797     need_lib_prefix=no
18798   fi
18799   need_version=yes
18800   ;;
18801
18802 sysv4 | sysv4.3*)
18803   version_type=linux
18804   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18805   soname_spec='${libname}${release}${shared_ext}$major'
18806   shlibpath_var=LD_LIBRARY_PATH
18807   case $host_vendor in
18808     sni)
18809       shlibpath_overrides_runpath=no
18810       need_lib_prefix=no
18811       export_dynamic_flag_spec='${wl}-Blargedynsym'
18812       runpath_var=LD_RUN_PATH
18813       ;;
18814     siemens)
18815       need_lib_prefix=no
18816       ;;
18817     motorola)
18818       need_lib_prefix=no
18819       need_version=no
18820       shlibpath_overrides_runpath=no
18821       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18822       ;;
18823   esac
18824   ;;
18825
18826 sysv4*MP*)
18827   if test -d /usr/nec ;then
18828     version_type=linux
18829     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18830     soname_spec='$libname${shared_ext}.$major'
18831     shlibpath_var=LD_LIBRARY_PATH
18832   fi
18833   ;;
18834
18835 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18836   version_type=freebsd-elf
18837   need_lib_prefix=no
18838   need_version=no
18839   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18840   soname_spec='${libname}${release}${shared_ext}$major'
18841   shlibpath_var=LD_LIBRARY_PATH
18842   hardcode_into_libs=yes
18843   if test "$with_gnu_ld" = yes; then
18844     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18845     shlibpath_overrides_runpath=no
18846   else
18847     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18848     shlibpath_overrides_runpath=yes
18849     case $host_os in
18850       sco3.2v5*)
18851         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18852         ;;
18853     esac
18854   fi
18855   sys_lib_dlsearch_path_spec='/usr/lib'
18856   ;;
18857
18858 uts4*)
18859   version_type=linux
18860   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18861   soname_spec='${libname}${release}${shared_ext}$major'
18862   shlibpath_var=LD_LIBRARY_PATH
18863   ;;
18864
18865 *)
18866   dynamic_linker=no
18867   ;;
18868 esac
18869 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18870 echo "${ECHO_T}$dynamic_linker" >&6; }
18871 test "$dynamic_linker" = no && can_build_shared=no
18872
18873 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18874 if test "$GCC" = yes; then
18875   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18876 fi
18877
18878 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18879 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18880 hardcode_action_GCJ=
18881 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18882    test -n "$runpath_var_GCJ" || \
18883    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18884
18885   # We can hardcode non-existant directories.
18886   if test "$hardcode_direct_GCJ" != no &&
18887      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18888      # have to relink, otherwise we might link with an installed library
18889      # when we should be linking with a yet-to-be-installed one
18890      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18891      test "$hardcode_minus_L_GCJ" != no; then
18892     # Linking always hardcodes the temporary library directory.
18893     hardcode_action_GCJ=relink
18894   else
18895     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18896     hardcode_action_GCJ=immediate
18897   fi
18898 else
18899   # We cannot hardcode anything, or else we can only hardcode existing
18900   # directories.
18901   hardcode_action_GCJ=unsupported
18902 fi
18903 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18904 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18905
18906 if test "$hardcode_action_GCJ" = relink; then
18907   # Fast installation is not supported
18908   enable_fast_install=no
18909 elif test "$shlibpath_overrides_runpath" = yes ||
18910      test "$enable_shared" = no; then
18911   # Fast installation is not necessary
18912   enable_fast_install=needless
18913 fi
18914
18915
18916 # The else clause should only fire when bootstrapping the
18917 # libtool distribution, otherwise you forgot to ship ltmain.sh
18918 # with your package, and you will get complaints that there are
18919 # no rules to generate ltmain.sh.
18920 if test -f "$ltmain"; then
18921   # See if we are running on zsh, and set the options which allow our commands through
18922   # without removal of \ escapes.
18923   if test -n "${ZSH_VERSION+set}" ; then
18924     setopt NO_GLOB_SUBST
18925   fi
18926   # Now quote all the things that may contain metacharacters while being
18927   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18928   # variables and quote the copies for generation of the libtool script.
18929   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18930     SED SHELL STRIP \
18931     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18932     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18933     deplibs_check_method reload_flag reload_cmds need_locks \
18934     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18935     lt_cv_sys_global_symbol_to_c_name_address \
18936     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18937     old_postinstall_cmds old_postuninstall_cmds \
18938     compiler_GCJ \
18939     CC_GCJ \
18940     LD_GCJ \
18941     lt_prog_compiler_wl_GCJ \
18942     lt_prog_compiler_pic_GCJ \
18943     lt_prog_compiler_static_GCJ \
18944     lt_prog_compiler_no_builtin_flag_GCJ \
18945     export_dynamic_flag_spec_GCJ \
18946     thread_safe_flag_spec_GCJ \
18947     whole_archive_flag_spec_GCJ \
18948     enable_shared_with_static_runtimes_GCJ \
18949     old_archive_cmds_GCJ \
18950     old_archive_from_new_cmds_GCJ \
18951     predep_objects_GCJ \
18952     postdep_objects_GCJ \
18953     predeps_GCJ \
18954     postdeps_GCJ \
18955     compiler_lib_search_path_GCJ \
18956     archive_cmds_GCJ \
18957     archive_expsym_cmds_GCJ \
18958     postinstall_cmds_GCJ \
18959     postuninstall_cmds_GCJ \
18960     old_archive_from_expsyms_cmds_GCJ \
18961     allow_undefined_flag_GCJ \
18962     no_undefined_flag_GCJ \
18963     export_symbols_cmds_GCJ \
18964     hardcode_libdir_flag_spec_GCJ \
18965     hardcode_libdir_flag_spec_ld_GCJ \
18966     hardcode_libdir_separator_GCJ \
18967     hardcode_automatic_GCJ \
18968     module_cmds_GCJ \
18969     module_expsym_cmds_GCJ \
18970     lt_cv_prog_compiler_c_o_GCJ \
18971     exclude_expsyms_GCJ \
18972     include_expsyms_GCJ; do
18973
18974     case $var in
18975     old_archive_cmds_GCJ | \
18976     old_archive_from_new_cmds_GCJ | \
18977     archive_cmds_GCJ | \
18978     archive_expsym_cmds_GCJ | \
18979     module_cmds_GCJ | \
18980     module_expsym_cmds_GCJ | \
18981     old_archive_from_expsyms_cmds_GCJ | \
18982     export_symbols_cmds_GCJ | \
18983     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18984     postinstall_cmds | postuninstall_cmds | \
18985     old_postinstall_cmds | old_postuninstall_cmds | \
18986     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18987       # Double-quote double-evaled strings.
18988       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18989       ;;
18990     *)
18991       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18992       ;;
18993     esac
18994   done
18995
18996   case $lt_echo in
18997   *'\$0 --fallback-echo"')
18998     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18999     ;;
19000   esac
19001
19002 cfgfile="$ofile"
19003
19004   cat <<__EOF__ >> "$cfgfile"
19005 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19006
19007 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19008
19009 # Shell to use when invoking shell scripts.
19010 SHELL=$lt_SHELL
19011
19012 # Whether or not to build shared libraries.
19013 build_libtool_libs=$enable_shared
19014
19015 # Whether or not to build static libraries.
19016 build_old_libs=$enable_static
19017
19018 # Whether or not to add -lc for building shared libraries.
19019 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19020
19021 # Whether or not to disallow shared libs when runtime libs are static
19022 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19023
19024 # Whether or not to optimize for fast installation.
19025 fast_install=$enable_fast_install
19026
19027 # The host system.
19028 host_alias=$host_alias
19029 host=$host
19030 host_os=$host_os
19031
19032 # The build system.
19033 build_alias=$build_alias
19034 build=$build
19035 build_os=$build_os
19036
19037 # An echo program that does not interpret backslashes.
19038 echo=$lt_echo
19039
19040 # The archiver.
19041 AR=$lt_AR
19042 AR_FLAGS=$lt_AR_FLAGS
19043
19044 # A C compiler.
19045 LTCC=$lt_LTCC
19046
19047 # LTCC compiler flags.
19048 LTCFLAGS=$lt_LTCFLAGS
19049
19050 # A language-specific compiler.
19051 CC=$lt_compiler_GCJ
19052
19053 # Is the compiler the GNU C compiler?
19054 with_gcc=$GCC_GCJ
19055
19056 # An ERE matcher.
19057 EGREP=$lt_EGREP
19058
19059 # The linker used to build libraries.
19060 LD=$lt_LD_GCJ
19061
19062 # Whether we need hard or soft links.
19063 LN_S=$lt_LN_S
19064
19065 # A BSD-compatible nm program.
19066 NM=$lt_NM
19067
19068 # A symbol stripping program
19069 STRIP=$lt_STRIP
19070
19071 # Used to examine libraries when file_magic_cmd begins "file"
19072 MAGIC_CMD=$MAGIC_CMD
19073
19074 # Used on cygwin: DLL creation program.
19075 DLLTOOL="$DLLTOOL"
19076
19077 # Used on cygwin: object dumper.
19078 OBJDUMP="$OBJDUMP"
19079
19080 # Used on cygwin: assembler.
19081 AS="$AS"
19082
19083 # The name of the directory that contains temporary libtool files.
19084 objdir=$objdir
19085
19086 # How to create reloadable object files.
19087 reload_flag=$lt_reload_flag
19088 reload_cmds=$lt_reload_cmds
19089
19090 # How to pass a linker flag through the compiler.
19091 wl=$lt_lt_prog_compiler_wl_GCJ
19092
19093 # Object file suffix (normally "o").
19094 objext="$ac_objext"
19095
19096 # Old archive suffix (normally "a").
19097 libext="$libext"
19098
19099 # Shared library suffix (normally ".so").
19100 shrext_cmds='$shrext_cmds'
19101
19102 # Executable file suffix (normally "").
19103 exeext="$exeext"
19104
19105 # Additional compiler flags for building library objects.
19106 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19107 pic_mode=$pic_mode
19108
19109 # What is the maximum length of a command?
19110 max_cmd_len=$lt_cv_sys_max_cmd_len
19111
19112 # Does compiler simultaneously support -c and -o options?
19113 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19114
19115 # Must we lock files when doing compilation?
19116 need_locks=$lt_need_locks
19117
19118 # Do we need the lib prefix for modules?
19119 need_lib_prefix=$need_lib_prefix
19120
19121 # Do we need a version for libraries?
19122 need_version=$need_version
19123
19124 # Whether dlopen is supported.
19125 dlopen_support=$enable_dlopen
19126
19127 # Whether dlopen of programs is supported.
19128 dlopen_self=$enable_dlopen_self
19129
19130 # Whether dlopen of statically linked programs is supported.
19131 dlopen_self_static=$enable_dlopen_self_static
19132
19133 # Compiler flag to prevent dynamic linking.
19134 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19135
19136 # Compiler flag to turn off builtin functions.
19137 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19138
19139 # Compiler flag to allow reflexive dlopens.
19140 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19141
19142 # Compiler flag to generate shared objects directly from archives.
19143 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19144
19145 # Compiler flag to generate thread-safe objects.
19146 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19147
19148 # Library versioning type.
19149 version_type=$version_type
19150
19151 # Format of library name prefix.
19152 libname_spec=$lt_libname_spec
19153
19154 # List of archive names.  First name is the real one, the rest are links.
19155 # The last name is the one that the linker finds with -lNAME.
19156 library_names_spec=$lt_library_names_spec
19157
19158 # The coded name of the library, if different from the real name.
19159 soname_spec=$lt_soname_spec
19160
19161 # Commands used to build and install an old-style archive.
19162 RANLIB=$lt_RANLIB
19163 old_archive_cmds=$lt_old_archive_cmds_GCJ
19164 old_postinstall_cmds=$lt_old_postinstall_cmds
19165 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19166
19167 # Create an old-style archive from a shared archive.
19168 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19169
19170 # Create a temporary old-style archive to link instead of a shared archive.
19171 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19172
19173 # Commands used to build and install a shared archive.
19174 archive_cmds=$lt_archive_cmds_GCJ
19175 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19176 postinstall_cmds=$lt_postinstall_cmds
19177 postuninstall_cmds=$lt_postuninstall_cmds
19178
19179 # Commands used to build a loadable module (assumed same as above if empty)
19180 module_cmds=$lt_module_cmds_GCJ
19181 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19182
19183 # Commands to strip libraries.
19184 old_striplib=$lt_old_striplib
19185 striplib=$lt_striplib
19186
19187 # Dependencies to place before the objects being linked to create a
19188 # shared library.
19189 predep_objects=$lt_predep_objects_GCJ
19190
19191 # Dependencies to place after the objects being linked to create a
19192 # shared library.
19193 postdep_objects=$lt_postdep_objects_GCJ
19194
19195 # Dependencies to place before the objects being linked to create a
19196 # shared library.
19197 predeps=$lt_predeps_GCJ
19198
19199 # Dependencies to place after the objects being linked to create a
19200 # shared library.
19201 postdeps=$lt_postdeps_GCJ
19202
19203 # The library search path used internally by the compiler when linking
19204 # a shared library.
19205 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19206
19207 # Method to check whether dependent libraries are shared objects.
19208 deplibs_check_method=$lt_deplibs_check_method
19209
19210 # Command to use when deplibs_check_method == file_magic.
19211 file_magic_cmd=$lt_file_magic_cmd
19212
19213 # Flag that allows shared libraries with undefined symbols to be built.
19214 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19215
19216 # Flag that forces no undefined symbols.
19217 no_undefined_flag=$lt_no_undefined_flag_GCJ
19218
19219 # Commands used to finish a libtool library installation in a directory.
19220 finish_cmds=$lt_finish_cmds
19221
19222 # Same as above, but a single script fragment to be evaled but not shown.
19223 finish_eval=$lt_finish_eval
19224
19225 # Take the output of nm and produce a listing of raw symbols and C names.
19226 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19227
19228 # Transform the output of nm in a proper C declaration
19229 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19230
19231 # Transform the output of nm in a C name address pair
19232 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19233
19234 # This is the shared library runtime path variable.
19235 runpath_var=$runpath_var
19236
19237 # This is the shared library path variable.
19238 shlibpath_var=$shlibpath_var
19239
19240 # Is shlibpath searched before the hard-coded library search path?
19241 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19242
19243 # How to hardcode a shared library path into an executable.
19244 hardcode_action=$hardcode_action_GCJ
19245
19246 # Whether we should hardcode library paths into libraries.
19247 hardcode_into_libs=$hardcode_into_libs
19248
19249 # Flag to hardcode \$libdir into a binary during linking.
19250 # This must work even if \$libdir does not exist.
19251 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19252
19253 # If ld is used when linking, flag to hardcode \$libdir into
19254 # a binary during linking. This must work even if \$libdir does
19255 # not exist.
19256 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19257
19258 # Whether we need a single -rpath flag with a separated argument.
19259 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19260
19261 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19262 # resulting binary.
19263 hardcode_direct=$hardcode_direct_GCJ
19264
19265 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19266 # resulting binary.
19267 hardcode_minus_L=$hardcode_minus_L_GCJ
19268
19269 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19270 # the resulting binary.
19271 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19272
19273 # Set to yes if building a shared library automatically hardcodes DIR into the library
19274 # and all subsequent libraries and executables linked against it.
19275 hardcode_automatic=$hardcode_automatic_GCJ
19276
19277 # Variables whose values should be saved in libtool wrapper scripts and
19278 # restored at relink time.
19279 variables_saved_for_relink="$variables_saved_for_relink"
19280
19281 # Whether libtool must link a program against all its dependency libraries.
19282 link_all_deplibs=$link_all_deplibs_GCJ
19283
19284 # Compile-time system search path for libraries
19285 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19286
19287 # Run-time system search path for libraries
19288 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19289
19290 # Fix the shell variable \$srcfile for the compiler.
19291 fix_srcfile_path="$fix_srcfile_path_GCJ"
19292
19293 # Set to yes if exported symbols are required.
19294 always_export_symbols=$always_export_symbols_GCJ
19295
19296 # The commands to list exported symbols.
19297 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19298
19299 # The commands to extract the exported symbol list from a shared archive.
19300 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19301
19302 # Symbols that should not be listed in the preloaded symbols.
19303 exclude_expsyms=$lt_exclude_expsyms_GCJ
19304
19305 # Symbols that must always be exported.
19306 include_expsyms=$lt_include_expsyms_GCJ
19307
19308 # ### END LIBTOOL TAG CONFIG: $tagname
19309
19310 __EOF__
19311
19312
19313 else
19314   # If there is no Makefile yet, we rely on a make rule to execute
19315   # `config.status --recheck' to rerun these tests and create the
19316   # libtool script then.
19317   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19318   if test -f "$ltmain_in"; then
19319     test -f Makefile && make "$ltmain"
19320   fi
19321 fi
19322
19323
19324 ac_ext=c
19325 ac_cpp='$CPP $CPPFLAGS'
19326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19329
19330 CC="$lt_save_CC"
19331
19332         else
19333           tagname=""
19334         fi
19335         ;;
19336
19337       RC)
19338
19339
19340 # Source file extension for RC test sources.
19341 ac_ext=rc
19342
19343 # Object file extension for compiled RC test sources.
19344 objext=o
19345 objext_RC=$objext
19346
19347 # Code to be used in simple compile tests
19348 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19349
19350 # Code to be used in simple link tests
19351 lt_simple_link_test_code="$lt_simple_compile_test_code"
19352
19353 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19354
19355 # If no C compiler was specified, use CC.
19356 LTCC=${LTCC-"$CC"}
19357
19358 # If no C compiler flags were specified, use CFLAGS.
19359 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19360
19361 # Allow CC to be a program name with arguments.
19362 compiler=$CC
19363
19364
19365 # save warnings/boilerplate of simple test code
19366 ac_outfile=conftest.$ac_objext
19367 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19368 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19369 _lt_compiler_boilerplate=`cat conftest.err`
19370 $rm conftest*
19371
19372 ac_outfile=conftest.$ac_objext
19373 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19374 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19375 _lt_linker_boilerplate=`cat conftest.err`
19376 $rm conftest*
19377
19378
19379 # Allow CC to be a program name with arguments.
19380 lt_save_CC="$CC"
19381 CC=${RC-"windres"}
19382 compiler=$CC
19383 compiler_RC=$CC
19384 for cc_temp in $compiler""; do
19385   case $cc_temp in
19386     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19387     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19388     \-*) ;;
19389     *) break;;
19390   esac
19391 done
19392 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19393
19394 lt_cv_prog_compiler_c_o_RC=yes
19395
19396 # The else clause should only fire when bootstrapping the
19397 # libtool distribution, otherwise you forgot to ship ltmain.sh
19398 # with your package, and you will get complaints that there are
19399 # no rules to generate ltmain.sh.
19400 if test -f "$ltmain"; then
19401   # See if we are running on zsh, and set the options which allow our commands through
19402   # without removal of \ escapes.
19403   if test -n "${ZSH_VERSION+set}" ; then
19404     setopt NO_GLOB_SUBST
19405   fi
19406   # Now quote all the things that may contain metacharacters while being
19407   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19408   # variables and quote the copies for generation of the libtool script.
19409   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19410     SED SHELL STRIP \
19411     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19412     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19413     deplibs_check_method reload_flag reload_cmds need_locks \
19414     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19415     lt_cv_sys_global_symbol_to_c_name_address \
19416     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19417     old_postinstall_cmds old_postuninstall_cmds \
19418     compiler_RC \
19419     CC_RC \
19420     LD_RC \
19421     lt_prog_compiler_wl_RC \
19422     lt_prog_compiler_pic_RC \
19423     lt_prog_compiler_static_RC \
19424     lt_prog_compiler_no_builtin_flag_RC \
19425     export_dynamic_flag_spec_RC \
19426     thread_safe_flag_spec_RC \
19427     whole_archive_flag_spec_RC \
19428     enable_shared_with_static_runtimes_RC \
19429     old_archive_cmds_RC \
19430     old_archive_from_new_cmds_RC \
19431     predep_objects_RC \
19432     postdep_objects_RC \
19433     predeps_RC \
19434     postdeps_RC \
19435     compiler_lib_search_path_RC \
19436     archive_cmds_RC \
19437     archive_expsym_cmds_RC \
19438     postinstall_cmds_RC \
19439     postuninstall_cmds_RC \
19440     old_archive_from_expsyms_cmds_RC \
19441     allow_undefined_flag_RC \
19442     no_undefined_flag_RC \
19443     export_symbols_cmds_RC \
19444     hardcode_libdir_flag_spec_RC \
19445     hardcode_libdir_flag_spec_ld_RC \
19446     hardcode_libdir_separator_RC \
19447     hardcode_automatic_RC \
19448     module_cmds_RC \
19449     module_expsym_cmds_RC \
19450     lt_cv_prog_compiler_c_o_RC \
19451     exclude_expsyms_RC \
19452     include_expsyms_RC; do
19453
19454     case $var in
19455     old_archive_cmds_RC | \
19456     old_archive_from_new_cmds_RC | \
19457     archive_cmds_RC | \
19458     archive_expsym_cmds_RC | \
19459     module_cmds_RC | \
19460     module_expsym_cmds_RC | \
19461     old_archive_from_expsyms_cmds_RC | \
19462     export_symbols_cmds_RC | \
19463     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19464     postinstall_cmds | postuninstall_cmds | \
19465     old_postinstall_cmds | old_postuninstall_cmds | \
19466     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19467       # Double-quote double-evaled strings.
19468       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19469       ;;
19470     *)
19471       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19472       ;;
19473     esac
19474   done
19475
19476   case $lt_echo in
19477   *'\$0 --fallback-echo"')
19478     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19479     ;;
19480   esac
19481
19482 cfgfile="$ofile"
19483
19484   cat <<__EOF__ >> "$cfgfile"
19485 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19486
19487 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19488
19489 # Shell to use when invoking shell scripts.
19490 SHELL=$lt_SHELL
19491
19492 # Whether or not to build shared libraries.
19493 build_libtool_libs=$enable_shared
19494
19495 # Whether or not to build static libraries.
19496 build_old_libs=$enable_static
19497
19498 # Whether or not to add -lc for building shared libraries.
19499 build_libtool_need_lc=$archive_cmds_need_lc_RC
19500
19501 # Whether or not to disallow shared libs when runtime libs are static
19502 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19503
19504 # Whether or not to optimize for fast installation.
19505 fast_install=$enable_fast_install
19506
19507 # The host system.
19508 host_alias=$host_alias
19509 host=$host
19510 host_os=$host_os
19511
19512 # The build system.
19513 build_alias=$build_alias
19514 build=$build
19515 build_os=$build_os
19516
19517 # An echo program that does not interpret backslashes.
19518 echo=$lt_echo
19519
19520 # The archiver.
19521 AR=$lt_AR
19522 AR_FLAGS=$lt_AR_FLAGS
19523
19524 # A C compiler.
19525 LTCC=$lt_LTCC
19526
19527 # LTCC compiler flags.
19528 LTCFLAGS=$lt_LTCFLAGS
19529
19530 # A language-specific compiler.
19531 CC=$lt_compiler_RC
19532
19533 # Is the compiler the GNU C compiler?
19534 with_gcc=$GCC_RC
19535
19536 # An ERE matcher.
19537 EGREP=$lt_EGREP
19538
19539 # The linker used to build libraries.
19540 LD=$lt_LD_RC
19541
19542 # Whether we need hard or soft links.
19543 LN_S=$lt_LN_S
19544
19545 # A BSD-compatible nm program.
19546 NM=$lt_NM
19547
19548 # A symbol stripping program
19549 STRIP=$lt_STRIP
19550
19551 # Used to examine libraries when file_magic_cmd begins "file"
19552 MAGIC_CMD=$MAGIC_CMD
19553
19554 # Used on cygwin: DLL creation program.
19555 DLLTOOL="$DLLTOOL"
19556
19557 # Used on cygwin: object dumper.
19558 OBJDUMP="$OBJDUMP"
19559
19560 # Used on cygwin: assembler.
19561 AS="$AS"
19562
19563 # The name of the directory that contains temporary libtool files.
19564 objdir=$objdir
19565
19566 # How to create reloadable object files.
19567 reload_flag=$lt_reload_flag
19568 reload_cmds=$lt_reload_cmds
19569
19570 # How to pass a linker flag through the compiler.
19571 wl=$lt_lt_prog_compiler_wl_RC
19572
19573 # Object file suffix (normally "o").
19574 objext="$ac_objext"
19575
19576 # Old archive suffix (normally "a").
19577 libext="$libext"
19578
19579 # Shared library suffix (normally ".so").
19580 shrext_cmds='$shrext_cmds'
19581
19582 # Executable file suffix (normally "").
19583 exeext="$exeext"
19584
19585 # Additional compiler flags for building library objects.
19586 pic_flag=$lt_lt_prog_compiler_pic_RC
19587 pic_mode=$pic_mode
19588
19589 # What is the maximum length of a command?
19590 max_cmd_len=$lt_cv_sys_max_cmd_len
19591
19592 # Does compiler simultaneously support -c and -o options?
19593 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19594
19595 # Must we lock files when doing compilation?
19596 need_locks=$lt_need_locks
19597
19598 # Do we need the lib prefix for modules?
19599 need_lib_prefix=$need_lib_prefix
19600
19601 # Do we need a version for libraries?
19602 need_version=$need_version
19603
19604 # Whether dlopen is supported.
19605 dlopen_support=$enable_dlopen
19606
19607 # Whether dlopen of programs is supported.
19608 dlopen_self=$enable_dlopen_self
19609
19610 # Whether dlopen of statically linked programs is supported.
19611 dlopen_self_static=$enable_dlopen_self_static
19612
19613 # Compiler flag to prevent dynamic linking.
19614 link_static_flag=$lt_lt_prog_compiler_static_RC
19615
19616 # Compiler flag to turn off builtin functions.
19617 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19618
19619 # Compiler flag to allow reflexive dlopens.
19620 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19621
19622 # Compiler flag to generate shared objects directly from archives.
19623 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19624
19625 # Compiler flag to generate thread-safe objects.
19626 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19627
19628 # Library versioning type.
19629 version_type=$version_type
19630
19631 # Format of library name prefix.
19632 libname_spec=$lt_libname_spec
19633
19634 # List of archive names.  First name is the real one, the rest are links.
19635 # The last name is the one that the linker finds with -lNAME.
19636 library_names_spec=$lt_library_names_spec
19637
19638 # The coded name of the library, if different from the real name.
19639 soname_spec=$lt_soname_spec
19640
19641 # Commands used to build and install an old-style archive.
19642 RANLIB=$lt_RANLIB
19643 old_archive_cmds=$lt_old_archive_cmds_RC
19644 old_postinstall_cmds=$lt_old_postinstall_cmds
19645 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19646
19647 # Create an old-style archive from a shared archive.
19648 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19649
19650 # Create a temporary old-style archive to link instead of a shared archive.
19651 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19652
19653 # Commands used to build and install a shared archive.
19654 archive_cmds=$lt_archive_cmds_RC
19655 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19656 postinstall_cmds=$lt_postinstall_cmds
19657 postuninstall_cmds=$lt_postuninstall_cmds
19658
19659 # Commands used to build a loadable module (assumed same as above if empty)
19660 module_cmds=$lt_module_cmds_RC
19661 module_expsym_cmds=$lt_module_expsym_cmds_RC
19662
19663 # Commands to strip libraries.
19664 old_striplib=$lt_old_striplib
19665 striplib=$lt_striplib
19666
19667 # Dependencies to place before the objects being linked to create a
19668 # shared library.
19669 predep_objects=$lt_predep_objects_RC
19670
19671 # Dependencies to place after the objects being linked to create a
19672 # shared library.
19673 postdep_objects=$lt_postdep_objects_RC
19674
19675 # Dependencies to place before the objects being linked to create a
19676 # shared library.
19677 predeps=$lt_predeps_RC
19678
19679 # Dependencies to place after the objects being linked to create a
19680 # shared library.
19681 postdeps=$lt_postdeps_RC
19682
19683 # The library search path used internally by the compiler when linking
19684 # a shared library.
19685 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19686
19687 # Method to check whether dependent libraries are shared objects.
19688 deplibs_check_method=$lt_deplibs_check_method
19689
19690 # Command to use when deplibs_check_method == file_magic.
19691 file_magic_cmd=$lt_file_magic_cmd
19692
19693 # Flag that allows shared libraries with undefined symbols to be built.
19694 allow_undefined_flag=$lt_allow_undefined_flag_RC
19695
19696 # Flag that forces no undefined symbols.
19697 no_undefined_flag=$lt_no_undefined_flag_RC
19698
19699 # Commands used to finish a libtool library installation in a directory.
19700 finish_cmds=$lt_finish_cmds
19701
19702 # Same as above, but a single script fragment to be evaled but not shown.
19703 finish_eval=$lt_finish_eval
19704
19705 # Take the output of nm and produce a listing of raw symbols and C names.
19706 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19707
19708 # Transform the output of nm in a proper C declaration
19709 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19710
19711 # Transform the output of nm in a C name address pair
19712 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19713
19714 # This is the shared library runtime path variable.
19715 runpath_var=$runpath_var
19716
19717 # This is the shared library path variable.
19718 shlibpath_var=$shlibpath_var
19719
19720 # Is shlibpath searched before the hard-coded library search path?
19721 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19722
19723 # How to hardcode a shared library path into an executable.
19724 hardcode_action=$hardcode_action_RC
19725
19726 # Whether we should hardcode library paths into libraries.
19727 hardcode_into_libs=$hardcode_into_libs
19728
19729 # Flag to hardcode \$libdir into a binary during linking.
19730 # This must work even if \$libdir does not exist.
19731 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19732
19733 # If ld is used when linking, flag to hardcode \$libdir into
19734 # a binary during linking. This must work even if \$libdir does
19735 # not exist.
19736 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19737
19738 # Whether we need a single -rpath flag with a separated argument.
19739 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19740
19741 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19742 # resulting binary.
19743 hardcode_direct=$hardcode_direct_RC
19744
19745 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19746 # resulting binary.
19747 hardcode_minus_L=$hardcode_minus_L_RC
19748
19749 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19750 # the resulting binary.
19751 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19752
19753 # Set to yes if building a shared library automatically hardcodes DIR into the library
19754 # and all subsequent libraries and executables linked against it.
19755 hardcode_automatic=$hardcode_automatic_RC
19756
19757 # Variables whose values should be saved in libtool wrapper scripts and
19758 # restored at relink time.
19759 variables_saved_for_relink="$variables_saved_for_relink"
19760
19761 # Whether libtool must link a program against all its dependency libraries.
19762 link_all_deplibs=$link_all_deplibs_RC
19763
19764 # Compile-time system search path for libraries
19765 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19766
19767 # Run-time system search path for libraries
19768 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19769
19770 # Fix the shell variable \$srcfile for the compiler.
19771 fix_srcfile_path="$fix_srcfile_path_RC"
19772
19773 # Set to yes if exported symbols are required.
19774 always_export_symbols=$always_export_symbols_RC
19775
19776 # The commands to list exported symbols.
19777 export_symbols_cmds=$lt_export_symbols_cmds_RC
19778
19779 # The commands to extract the exported symbol list from a shared archive.
19780 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19781
19782 # Symbols that should not be listed in the preloaded symbols.
19783 exclude_expsyms=$lt_exclude_expsyms_RC
19784
19785 # Symbols that must always be exported.
19786 include_expsyms=$lt_include_expsyms_RC
19787
19788 # ### END LIBTOOL TAG CONFIG: $tagname
19789
19790 __EOF__
19791
19792
19793 else
19794   # If there is no Makefile yet, we rely on a make rule to execute
19795   # `config.status --recheck' to rerun these tests and create the
19796   # libtool script then.
19797   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19798   if test -f "$ltmain_in"; then
19799     test -f Makefile && make "$ltmain"
19800   fi
19801 fi
19802
19803
19804 ac_ext=c
19805 ac_cpp='$CPP $CPPFLAGS'
19806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19809
19810 CC="$lt_save_CC"
19811
19812         ;;
19813
19814       *)
19815         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19816 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19817    { (exit 1); exit 1; }; }
19818         ;;
19819       esac
19820
19821       # Append the new tag name to the list of available tags.
19822       if test -n "$tagname" ; then
19823       available_tags="$available_tags $tagname"
19824     fi
19825     fi
19826   done
19827   IFS="$lt_save_ifs"
19828
19829   # Now substitute the updated list of available tags.
19830   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19831     mv "${ofile}T" "$ofile"
19832     chmod +x "$ofile"
19833   else
19834     rm -f "${ofile}T"
19835     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19836 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19837    { (exit 1); exit 1; }; }
19838   fi
19839 fi
19840
19841
19842
19843 # This can be used to rebuild libtool when needed
19844 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19845
19846 # Always use our own libtool.
19847 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19848
19849 # Prevent multiple expansion
19850
19851
19852
19853
19854
19855
19856
19857
19858
19859
19860
19861
19862
19863
19864
19865
19866
19867
19868
19869
19870
19871
19872
19873
19874
19875
19876
19877 ac_header_dirent=no
19878 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19879   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19880 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19881 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
19882 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19883   echo $ECHO_N "(cached) $ECHO_C" >&6
19884 else
19885   cat >conftest.$ac_ext <<_ACEOF
19886 /* confdefs.h.  */
19887 _ACEOF
19888 cat confdefs.h >>conftest.$ac_ext
19889 cat >>conftest.$ac_ext <<_ACEOF
19890 /* end confdefs.h.  */
19891 #include <sys/types.h>
19892 #include <$ac_hdr>
19893
19894 int
19895 main ()
19896 {
19897 if ((DIR *) 0)
19898 return 0;
19899   ;
19900   return 0;
19901 }
19902 _ACEOF
19903 rm -f conftest.$ac_objext
19904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19905   (eval $ac_compile) 2>conftest.er1
19906   ac_status=$?
19907   grep -v '^ *+' conftest.er1 >conftest.err
19908   rm -f conftest.er1
19909   cat conftest.err >&5
19910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19911   (exit $ac_status); } &&
19912          { ac_try='test -z "$ac_c_werror_flag"
19913                          || test ! -s conftest.err'
19914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19915   (eval $ac_try) 2>&5
19916   ac_status=$?
19917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19918   (exit $ac_status); }; } &&
19919          { ac_try='test -s conftest.$ac_objext'
19920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19921   (eval $ac_try) 2>&5
19922   ac_status=$?
19923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19924   (exit $ac_status); }; }; then
19925   eval "$as_ac_Header=yes"
19926 else
19927   echo "$as_me: failed program was:" >&5
19928 sed 's/^/| /' conftest.$ac_ext >&5
19929
19930         eval "$as_ac_Header=no"
19931 fi
19932
19933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19934 fi
19935 ac_res=`eval echo '${'$as_ac_Header'}'`
19936                { echo "$as_me:$LINENO: result: $ac_res" >&5
19937 echo "${ECHO_T}$ac_res" >&6; }
19938 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19939   cat >>confdefs.h <<_ACEOF
19940 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19941 _ACEOF
19942
19943 ac_header_dirent=$ac_hdr; break
19944 fi
19945
19946 done
19947 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19948 if test $ac_header_dirent = dirent.h; then
19949   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
19950 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
19951 if test "${ac_cv_search_opendir+set}" = set; then
19952   echo $ECHO_N "(cached) $ECHO_C" >&6
19953 else
19954   ac_func_search_save_LIBS=$LIBS
19955 cat >conftest.$ac_ext <<_ACEOF
19956 /* confdefs.h.  */
19957 _ACEOF
19958 cat confdefs.h >>conftest.$ac_ext
19959 cat >>conftest.$ac_ext <<_ACEOF
19960 /* end confdefs.h.  */
19961
19962 /* Override any GCC internal prototype to avoid an error.
19963    Use char because int might match the return type of a GCC
19964    builtin and then its argument prototype would still apply.  */
19965 #ifdef __cplusplus
19966 extern "C"
19967 #endif
19968 char opendir ();
19969 int
19970 main ()
19971 {
19972 return opendir ();
19973   ;
19974   return 0;
19975 }
19976 _ACEOF
19977 for ac_lib in '' dir; do
19978   if test -z "$ac_lib"; then
19979     ac_res="none required"
19980   else
19981     ac_res=-l$ac_lib
19982     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19983   fi
19984   rm -f conftest.$ac_objext conftest$ac_exeext
19985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19986   (eval $ac_link) 2>conftest.er1
19987   ac_status=$?
19988   grep -v '^ *+' conftest.er1 >conftest.err
19989   rm -f conftest.er1
19990   cat conftest.err >&5
19991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992   (exit $ac_status); } &&
19993          { ac_try='test -z "$ac_c_werror_flag"
19994                          || test ! -s conftest.err'
19995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19996   (eval $ac_try) 2>&5
19997   ac_status=$?
19998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999   (exit $ac_status); }; } &&
20000          { ac_try='test -s conftest$ac_exeext'
20001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20002   (eval $ac_try) 2>&5
20003   ac_status=$?
20004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005   (exit $ac_status); }; }; then
20006   ac_cv_search_opendir=$ac_res
20007 else
20008   echo "$as_me: failed program was:" >&5
20009 sed 's/^/| /' conftest.$ac_ext >&5
20010
20011
20012 fi
20013
20014 rm -f conftest.err conftest.$ac_objext \
20015       conftest$ac_exeext
20016   if test "${ac_cv_search_opendir+set}" = set; then
20017   break
20018 fi
20019 done
20020 if test "${ac_cv_search_opendir+set}" = set; then
20021   :
20022 else
20023   ac_cv_search_opendir=no
20024 fi
20025 rm conftest.$ac_ext
20026 LIBS=$ac_func_search_save_LIBS
20027 fi
20028 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20029 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20030 ac_res=$ac_cv_search_opendir
20031 if test "$ac_res" != no; then
20032   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20033
20034 fi
20035
20036 else
20037   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20038 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20039 if test "${ac_cv_search_opendir+set}" = set; then
20040   echo $ECHO_N "(cached) $ECHO_C" >&6
20041 else
20042   ac_func_search_save_LIBS=$LIBS
20043 cat >conftest.$ac_ext <<_ACEOF
20044 /* confdefs.h.  */
20045 _ACEOF
20046 cat confdefs.h >>conftest.$ac_ext
20047 cat >>conftest.$ac_ext <<_ACEOF
20048 /* end confdefs.h.  */
20049
20050 /* Override any GCC internal prototype to avoid an error.
20051    Use char because int might match the return type of a GCC
20052    builtin and then its argument prototype would still apply.  */
20053 #ifdef __cplusplus
20054 extern "C"
20055 #endif
20056 char opendir ();
20057 int
20058 main ()
20059 {
20060 return opendir ();
20061   ;
20062   return 0;
20063 }
20064 _ACEOF
20065 for ac_lib in '' x; do
20066   if test -z "$ac_lib"; then
20067     ac_res="none required"
20068   else
20069     ac_res=-l$ac_lib
20070     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20071   fi
20072   rm -f conftest.$ac_objext conftest$ac_exeext
20073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20074   (eval $ac_link) 2>conftest.er1
20075   ac_status=$?
20076   grep -v '^ *+' conftest.er1 >conftest.err
20077   rm -f conftest.er1
20078   cat conftest.err >&5
20079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20080   (exit $ac_status); } &&
20081          { ac_try='test -z "$ac_c_werror_flag"
20082                          || test ! -s conftest.err'
20083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20084   (eval $ac_try) 2>&5
20085   ac_status=$?
20086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20087   (exit $ac_status); }; } &&
20088          { ac_try='test -s conftest$ac_exeext'
20089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20090   (eval $ac_try) 2>&5
20091   ac_status=$?
20092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093   (exit $ac_status); }; }; then
20094   ac_cv_search_opendir=$ac_res
20095 else
20096   echo "$as_me: failed program was:" >&5
20097 sed 's/^/| /' conftest.$ac_ext >&5
20098
20099
20100 fi
20101
20102 rm -f conftest.err conftest.$ac_objext \
20103       conftest$ac_exeext
20104   if test "${ac_cv_search_opendir+set}" = set; then
20105   break
20106 fi
20107 done
20108 if test "${ac_cv_search_opendir+set}" = set; then
20109   :
20110 else
20111   ac_cv_search_opendir=no
20112 fi
20113 rm conftest.$ac_ext
20114 LIBS=$ac_func_search_save_LIBS
20115 fi
20116 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20117 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20118 ac_res=$ac_cv_search_opendir
20119 if test "$ac_res" != no; then
20120   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20121
20122 fi
20123
20124 fi
20125
20126 # Check whether --enable-ltdl-install was given.
20127 if test "${enable_ltdl_install+set}" = set; then
20128   enableval=$enable_ltdl_install;
20129 fi
20130
20131
20132
20133
20134 if test x"${enable_ltdl_install-no}" != xno; then
20135   INSTALL_LTDL_TRUE=
20136   INSTALL_LTDL_FALSE='#'
20137 else
20138   INSTALL_LTDL_TRUE='#'
20139   INSTALL_LTDL_FALSE=
20140 fi
20141
20142
20143
20144 if test x"${enable_ltdl_convenience-no}" != xno; then
20145   CONVENIENCE_LTDL_TRUE=
20146   CONVENIENCE_LTDL_FALSE='#'
20147 else
20148   CONVENIENCE_LTDL_TRUE='#'
20149   CONVENIENCE_LTDL_FALSE=
20150 fi
20151
20152
20153
20154 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
20155 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
20156 if test "${libltdl_cv_shlibext+set}" = set; then
20157   echo $ECHO_N "(cached) $ECHO_C" >&6
20158 else
20159
20160 module=yes
20161 eval libltdl_cv_shlibext=$shrext_cmds
20162
20163 fi
20164 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
20165 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
20166 if test -n "$libltdl_cv_shlibext"; then
20167
20168 cat >>confdefs.h <<_ACEOF
20169 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
20170 _ACEOF
20171
20172 fi
20173
20174
20175 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
20176 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
20177 if test "${libltdl_cv_shlibpath_var+set}" = set; then
20178   echo $ECHO_N "(cached) $ECHO_C" >&6
20179 else
20180   libltdl_cv_shlibpath_var="$shlibpath_var"
20181 fi
20182 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
20183 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
20184 if test -n "$libltdl_cv_shlibpath_var"; then
20185
20186 cat >>confdefs.h <<_ACEOF
20187 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
20188 _ACEOF
20189
20190 fi
20191
20192
20193 { echo "$as_me:$LINENO: checking for the default library search path" >&5
20194 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
20195 if test "${libltdl_cv_sys_search_path+set}" = set; then
20196   echo $ECHO_N "(cached) $ECHO_C" >&6
20197 else
20198   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
20199 fi
20200 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
20201 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
20202 if test -n "$libltdl_cv_sys_search_path"; then
20203   sys_search_path=
20204   for dir in $libltdl_cv_sys_search_path; do
20205     if test -z "$sys_search_path"; then
20206       sys_search_path="$dir"
20207     else
20208       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
20209     fi
20210   done
20211
20212 cat >>confdefs.h <<_ACEOF
20213 #define LTDL_SYSSEARCHPATH "$sys_search_path"
20214 _ACEOF
20215
20216 fi
20217
20218 { echo "$as_me:$LINENO: checking for objdir" >&5
20219 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
20220 if test "${libltdl_cv_objdir+set}" = set; then
20221   echo $ECHO_N "(cached) $ECHO_C" >&6
20222 else
20223   libltdl_cv_objdir="$objdir"
20224   if test -n "$objdir"; then
20225     :
20226   else
20227     rm -f .libs 2>/dev/null
20228     mkdir .libs 2>/dev/null
20229     if test -d .libs; then
20230       libltdl_cv_objdir=.libs
20231     else
20232       # MS-DOS does not allow filenames that begin with a dot.
20233       libltdl_cv_objdir=_libs
20234     fi
20235   rmdir .libs 2>/dev/null
20236   fi
20237
20238 fi
20239 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
20240 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
20241
20242 cat >>confdefs.h <<_ACEOF
20243 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
20244 _ACEOF
20245
20246
20247
20248 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
20249 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
20250 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
20251   echo $ECHO_N "(cached) $ECHO_C" >&6
20252 else
20253   if test -n "$lt_cv_sys_global_symbol_pipe"; then
20254     libltdl_cv_preloaded_symbols=yes
20255   else
20256     libltdl_cv_preloaded_symbols=no
20257   fi
20258
20259 fi
20260 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
20261 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
20262 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
20263
20264 cat >>confdefs.h <<\_ACEOF
20265 #define HAVE_PRELOADED_SYMBOLS 1
20266 _ACEOF
20267
20268 fi
20269
20270 LIBADD_DL=
20271
20272 ac_ext=c
20273 ac_cpp='$CPP $CPPFLAGS'
20274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20277
20278
20279 { echo "$as_me:$LINENO: checking for shl_load" >&5
20280 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
20281 if test "${ac_cv_func_shl_load+set}" = set; then
20282   echo $ECHO_N "(cached) $ECHO_C" >&6
20283 else
20284   cat >conftest.$ac_ext <<_ACEOF
20285 /* confdefs.h.  */
20286 _ACEOF
20287 cat confdefs.h >>conftest.$ac_ext
20288 cat >>conftest.$ac_ext <<_ACEOF
20289 /* end confdefs.h.  */
20290 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20291    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20292 #define shl_load innocuous_shl_load
20293
20294 /* System header to define __stub macros and hopefully few prototypes,
20295     which can conflict with char shl_load (); below.
20296     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20297     <limits.h> exists even on freestanding compilers.  */
20298
20299 #ifdef __STDC__
20300 # include <limits.h>
20301 #else
20302 # include <assert.h>
20303 #endif
20304
20305 #undef shl_load
20306
20307 /* Override any GCC internal prototype to avoid an error.
20308    Use char because int might match the return type of a GCC
20309    builtin and then its argument prototype would still apply.  */
20310 #ifdef __cplusplus
20311 extern "C"
20312 #endif
20313 char shl_load ();
20314 /* The GNU C library defines this for functions which it implements
20315     to always fail with ENOSYS.  Some functions are actually named
20316     something starting with __ and the normal name is an alias.  */
20317 #if defined (__stub_shl_load) || defined (__stub___shl_load)
20318 choke me
20319 #endif
20320
20321 int
20322 main ()
20323 {
20324 return shl_load ();
20325   ;
20326   return 0;
20327 }
20328 _ACEOF
20329 rm -f conftest.$ac_objext conftest$ac_exeext
20330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20331   (eval $ac_link) 2>conftest.er1
20332   ac_status=$?
20333   grep -v '^ *+' conftest.er1 >conftest.err
20334   rm -f conftest.er1
20335   cat conftest.err >&5
20336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20337   (exit $ac_status); } &&
20338          { ac_try='test -z "$ac_c_werror_flag"
20339                          || test ! -s conftest.err'
20340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20341   (eval $ac_try) 2>&5
20342   ac_status=$?
20343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344   (exit $ac_status); }; } &&
20345          { ac_try='test -s conftest$ac_exeext'
20346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20347   (eval $ac_try) 2>&5
20348   ac_status=$?
20349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350   (exit $ac_status); }; }; then
20351   ac_cv_func_shl_load=yes
20352 else
20353   echo "$as_me: failed program was:" >&5
20354 sed 's/^/| /' conftest.$ac_ext >&5
20355
20356         ac_cv_func_shl_load=no
20357 fi
20358
20359 rm -f conftest.err conftest.$ac_objext \
20360       conftest$ac_exeext conftest.$ac_ext
20361 fi
20362 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20363 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
20364 if test $ac_cv_func_shl_load = yes; then
20365
20366 cat >>confdefs.h <<\_ACEOF
20367 #define HAVE_SHL_LOAD 1
20368 _ACEOF
20369
20370 else
20371   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20372 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
20373 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20374   echo $ECHO_N "(cached) $ECHO_C" >&6
20375 else
20376   ac_check_lib_save_LIBS=$LIBS
20377 LIBS="-ldld  $LIBS"
20378 cat >conftest.$ac_ext <<_ACEOF
20379 /* confdefs.h.  */
20380 _ACEOF
20381 cat confdefs.h >>conftest.$ac_ext
20382 cat >>conftest.$ac_ext <<_ACEOF
20383 /* end confdefs.h.  */
20384
20385 /* Override any GCC internal prototype to avoid an error.
20386    Use char because int might match the return type of a GCC
20387    builtin and then its argument prototype would still apply.  */
20388 #ifdef __cplusplus
20389 extern "C"
20390 #endif
20391 char shl_load ();
20392 int
20393 main ()
20394 {
20395 return shl_load ();
20396   ;
20397   return 0;
20398 }
20399 _ACEOF
20400 rm -f conftest.$ac_objext conftest$ac_exeext
20401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20402   (eval $ac_link) 2>conftest.er1
20403   ac_status=$?
20404   grep -v '^ *+' conftest.er1 >conftest.err
20405   rm -f conftest.er1
20406   cat conftest.err >&5
20407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20408   (exit $ac_status); } &&
20409          { ac_try='test -z "$ac_c_werror_flag"
20410                          || test ! -s conftest.err'
20411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20412   (eval $ac_try) 2>&5
20413   ac_status=$?
20414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415   (exit $ac_status); }; } &&
20416          { ac_try='test -s conftest$ac_exeext'
20417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20418   (eval $ac_try) 2>&5
20419   ac_status=$?
20420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20421   (exit $ac_status); }; }; then
20422   ac_cv_lib_dld_shl_load=yes
20423 else
20424   echo "$as_me: failed program was:" >&5
20425 sed 's/^/| /' conftest.$ac_ext >&5
20426
20427         ac_cv_lib_dld_shl_load=no
20428 fi
20429
20430 rm -f conftest.err conftest.$ac_objext \
20431       conftest$ac_exeext conftest.$ac_ext
20432 LIBS=$ac_check_lib_save_LIBS
20433 fi
20434 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20435 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
20436 if test $ac_cv_lib_dld_shl_load = yes; then
20437
20438 cat >>confdefs.h <<\_ACEOF
20439 #define HAVE_SHL_LOAD 1
20440 _ACEOF
20441
20442         LIBADD_DL="$LIBADD_DL -ldld"
20443 else
20444   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20445 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
20446 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20447   echo $ECHO_N "(cached) $ECHO_C" >&6
20448 else
20449   ac_check_lib_save_LIBS=$LIBS
20450 LIBS="-ldl  $LIBS"
20451 cat >conftest.$ac_ext <<_ACEOF
20452 /* confdefs.h.  */
20453 _ACEOF
20454 cat confdefs.h >>conftest.$ac_ext
20455 cat >>conftest.$ac_ext <<_ACEOF
20456 /* end confdefs.h.  */
20457
20458 /* Override any GCC internal prototype to avoid an error.
20459    Use char because int might match the return type of a GCC
20460    builtin and then its argument prototype would still apply.  */
20461 #ifdef __cplusplus
20462 extern "C"
20463 #endif
20464 char dlopen ();
20465 int
20466 main ()
20467 {
20468 return dlopen ();
20469   ;
20470   return 0;
20471 }
20472 _ACEOF
20473 rm -f conftest.$ac_objext conftest$ac_exeext
20474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20475   (eval $ac_link) 2>conftest.er1
20476   ac_status=$?
20477   grep -v '^ *+' conftest.er1 >conftest.err
20478   rm -f conftest.er1
20479   cat conftest.err >&5
20480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20481   (exit $ac_status); } &&
20482          { ac_try='test -z "$ac_c_werror_flag"
20483                          || test ! -s conftest.err'
20484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20485   (eval $ac_try) 2>&5
20486   ac_status=$?
20487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488   (exit $ac_status); }; } &&
20489          { ac_try='test -s conftest$ac_exeext'
20490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20491   (eval $ac_try) 2>&5
20492   ac_status=$?
20493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20494   (exit $ac_status); }; }; then
20495   ac_cv_lib_dl_dlopen=yes
20496 else
20497   echo "$as_me: failed program was:" >&5
20498 sed 's/^/| /' conftest.$ac_ext >&5
20499
20500         ac_cv_lib_dl_dlopen=no
20501 fi
20502
20503 rm -f conftest.err conftest.$ac_objext \
20504       conftest$ac_exeext conftest.$ac_ext
20505 LIBS=$ac_check_lib_save_LIBS
20506 fi
20507 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20508 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
20509 if test $ac_cv_lib_dl_dlopen = yes; then
20510
20511 cat >>confdefs.h <<\_ACEOF
20512 #define HAVE_LIBDL 1
20513 _ACEOF
20514
20515                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
20516 else
20517   cat >conftest.$ac_ext <<_ACEOF
20518 /* confdefs.h.  */
20519 _ACEOF
20520 cat confdefs.h >>conftest.$ac_ext
20521 cat >>conftest.$ac_ext <<_ACEOF
20522 /* end confdefs.h.  */
20523 #if HAVE_DLFCN_H
20524 #  include <dlfcn.h>
20525 #endif
20526
20527 int
20528 main ()
20529 {
20530 dlopen(0, 0);
20531   ;
20532   return 0;
20533 }
20534 _ACEOF
20535 rm -f conftest.$ac_objext conftest$ac_exeext
20536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20537   (eval $ac_link) 2>conftest.er1
20538   ac_status=$?
20539   grep -v '^ *+' conftest.er1 >conftest.err
20540   rm -f conftest.er1
20541   cat conftest.err >&5
20542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543   (exit $ac_status); } &&
20544          { ac_try='test -z "$ac_c_werror_flag"
20545                          || test ! -s conftest.err'
20546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20547   (eval $ac_try) 2>&5
20548   ac_status=$?
20549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550   (exit $ac_status); }; } &&
20551          { ac_try='test -s conftest$ac_exeext'
20552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20553   (eval $ac_try) 2>&5
20554   ac_status=$?
20555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20556   (exit $ac_status); }; }; then
20557
20558 cat >>confdefs.h <<\_ACEOF
20559 #define HAVE_LIBDL 1
20560 _ACEOF
20561  libltdl_cv_func_dlopen="yes"
20562 else
20563   echo "$as_me: failed program was:" >&5
20564 sed 's/^/| /' conftest.$ac_ext >&5
20565
20566         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20567 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
20568 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20569   echo $ECHO_N "(cached) $ECHO_C" >&6
20570 else
20571   ac_check_lib_save_LIBS=$LIBS
20572 LIBS="-lsvld  $LIBS"
20573 cat >conftest.$ac_ext <<_ACEOF
20574 /* confdefs.h.  */
20575 _ACEOF
20576 cat confdefs.h >>conftest.$ac_ext
20577 cat >>conftest.$ac_ext <<_ACEOF
20578 /* end confdefs.h.  */
20579
20580 /* Override any GCC internal prototype to avoid an error.
20581    Use char because int might match the return type of a GCC
20582    builtin and then its argument prototype would still apply.  */
20583 #ifdef __cplusplus
20584 extern "C"
20585 #endif
20586 char dlopen ();
20587 int
20588 main ()
20589 {
20590 return dlopen ();
20591   ;
20592   return 0;
20593 }
20594 _ACEOF
20595 rm -f conftest.$ac_objext conftest$ac_exeext
20596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20597   (eval $ac_link) 2>conftest.er1
20598   ac_status=$?
20599   grep -v '^ *+' conftest.er1 >conftest.err
20600   rm -f conftest.er1
20601   cat conftest.err >&5
20602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20603   (exit $ac_status); } &&
20604          { ac_try='test -z "$ac_c_werror_flag"
20605                          || test ! -s conftest.err'
20606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20607   (eval $ac_try) 2>&5
20608   ac_status=$?
20609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20610   (exit $ac_status); }; } &&
20611          { ac_try='test -s conftest$ac_exeext'
20612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20613   (eval $ac_try) 2>&5
20614   ac_status=$?
20615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20616   (exit $ac_status); }; }; then
20617   ac_cv_lib_svld_dlopen=yes
20618 else
20619   echo "$as_me: failed program was:" >&5
20620 sed 's/^/| /' conftest.$ac_ext >&5
20621
20622         ac_cv_lib_svld_dlopen=no
20623 fi
20624
20625 rm -f conftest.err conftest.$ac_objext \
20626       conftest$ac_exeext conftest.$ac_ext
20627 LIBS=$ac_check_lib_save_LIBS
20628 fi
20629 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20630 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
20631 if test $ac_cv_lib_svld_dlopen = yes; then
20632
20633 cat >>confdefs.h <<\_ACEOF
20634 #define HAVE_LIBDL 1
20635 _ACEOF
20636
20637                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
20638 else
20639   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20640 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
20641 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20642   echo $ECHO_N "(cached) $ECHO_C" >&6
20643 else
20644   ac_check_lib_save_LIBS=$LIBS
20645 LIBS="-ldld  $LIBS"
20646 cat >conftest.$ac_ext <<_ACEOF
20647 /* confdefs.h.  */
20648 _ACEOF
20649 cat confdefs.h >>conftest.$ac_ext
20650 cat >>conftest.$ac_ext <<_ACEOF
20651 /* end confdefs.h.  */
20652
20653 /* Override any GCC internal prototype to avoid an error.
20654    Use char because int might match the return type of a GCC
20655    builtin and then its argument prototype would still apply.  */
20656 #ifdef __cplusplus
20657 extern "C"
20658 #endif
20659 char dld_link ();
20660 int
20661 main ()
20662 {
20663 return dld_link ();
20664   ;
20665   return 0;
20666 }
20667 _ACEOF
20668 rm -f conftest.$ac_objext conftest$ac_exeext
20669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20670   (eval $ac_link) 2>conftest.er1
20671   ac_status=$?
20672   grep -v '^ *+' conftest.er1 >conftest.err
20673   rm -f conftest.er1
20674   cat conftest.err >&5
20675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20676   (exit $ac_status); } &&
20677          { ac_try='test -z "$ac_c_werror_flag"
20678                          || test ! -s conftest.err'
20679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20680   (eval $ac_try) 2>&5
20681   ac_status=$?
20682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20683   (exit $ac_status); }; } &&
20684          { ac_try='test -s conftest$ac_exeext'
20685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20686   (eval $ac_try) 2>&5
20687   ac_status=$?
20688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689   (exit $ac_status); }; }; then
20690   ac_cv_lib_dld_dld_link=yes
20691 else
20692   echo "$as_me: failed program was:" >&5
20693 sed 's/^/| /' conftest.$ac_ext >&5
20694
20695         ac_cv_lib_dld_dld_link=no
20696 fi
20697
20698 rm -f conftest.err conftest.$ac_objext \
20699       conftest$ac_exeext conftest.$ac_ext
20700 LIBS=$ac_check_lib_save_LIBS
20701 fi
20702 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20703 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
20704 if test $ac_cv_lib_dld_dld_link = yes; then
20705
20706 cat >>confdefs.h <<\_ACEOF
20707 #define HAVE_DLD 1
20708 _ACEOF
20709
20710                 LIBADD_DL="$LIBADD_DL -ldld"
20711 else
20712   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
20713 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
20714 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
20715   echo $ECHO_N "(cached) $ECHO_C" >&6
20716 else
20717   cat >conftest.$ac_ext <<_ACEOF
20718 /* confdefs.h.  */
20719 _ACEOF
20720 cat confdefs.h >>conftest.$ac_ext
20721 cat >>conftest.$ac_ext <<_ACEOF
20722 /* end confdefs.h.  */
20723 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
20724    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20725 #define _dyld_func_lookup innocuous__dyld_func_lookup
20726
20727 /* System header to define __stub macros and hopefully few prototypes,
20728     which can conflict with char _dyld_func_lookup (); below.
20729     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20730     <limits.h> exists even on freestanding compilers.  */
20731
20732 #ifdef __STDC__
20733 # include <limits.h>
20734 #else
20735 # include <assert.h>
20736 #endif
20737
20738 #undef _dyld_func_lookup
20739
20740 /* Override any GCC internal prototype to avoid an error.
20741    Use char because int might match the return type of a GCC
20742    builtin and then its argument prototype would still apply.  */
20743 #ifdef __cplusplus
20744 extern "C"
20745 #endif
20746 char _dyld_func_lookup ();
20747 /* The GNU C library defines this for functions which it implements
20748     to always fail with ENOSYS.  Some functions are actually named
20749     something starting with __ and the normal name is an alias.  */
20750 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
20751 choke me
20752 #endif
20753
20754 int
20755 main ()
20756 {
20757 return _dyld_func_lookup ();
20758   ;
20759   return 0;
20760 }
20761 _ACEOF
20762 rm -f conftest.$ac_objext conftest$ac_exeext
20763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20764   (eval $ac_link) 2>conftest.er1
20765   ac_status=$?
20766   grep -v '^ *+' conftest.er1 >conftest.err
20767   rm -f conftest.er1
20768   cat conftest.err >&5
20769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20770   (exit $ac_status); } &&
20771          { ac_try='test -z "$ac_c_werror_flag"
20772                          || test ! -s conftest.err'
20773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20774   (eval $ac_try) 2>&5
20775   ac_status=$?
20776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20777   (exit $ac_status); }; } &&
20778          { ac_try='test -s conftest$ac_exeext'
20779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20780   (eval $ac_try) 2>&5
20781   ac_status=$?
20782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20783   (exit $ac_status); }; }; then
20784   ac_cv_func__dyld_func_lookup=yes
20785 else
20786   echo "$as_me: failed program was:" >&5
20787 sed 's/^/| /' conftest.$ac_ext >&5
20788
20789         ac_cv_func__dyld_func_lookup=no
20790 fi
20791
20792 rm -f conftest.err conftest.$ac_objext \
20793       conftest$ac_exeext conftest.$ac_ext
20794 fi
20795 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
20796 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
20797 if test $ac_cv_func__dyld_func_lookup = yes; then
20798
20799 cat >>confdefs.h <<\_ACEOF
20800 #define HAVE_DYLD 1
20801 _ACEOF
20802
20803 fi
20804
20805
20806 fi
20807
20808
20809 fi
20810
20811
20812 fi
20813
20814 rm -f conftest.err conftest.$ac_objext \
20815       conftest$ac_exeext conftest.$ac_ext
20816
20817 fi
20818
20819
20820 fi
20821
20822
20823 fi
20824
20825
20826 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
20827 then
20828   lt_save_LIBS="$LIBS"
20829   LIBS="$LIBS $LIBADD_DL"
20830
20831 for ac_func in dlerror
20832 do
20833 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20834 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20835 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20836 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20837   echo $ECHO_N "(cached) $ECHO_C" >&6
20838 else
20839   cat >conftest.$ac_ext <<_ACEOF
20840 /* confdefs.h.  */
20841 _ACEOF
20842 cat confdefs.h >>conftest.$ac_ext
20843 cat >>conftest.$ac_ext <<_ACEOF
20844 /* end confdefs.h.  */
20845 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20846    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20847 #define $ac_func innocuous_$ac_func
20848
20849 /* System header to define __stub macros and hopefully few prototypes,
20850     which can conflict with char $ac_func (); below.
20851     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20852     <limits.h> exists even on freestanding compilers.  */
20853
20854 #ifdef __STDC__
20855 # include <limits.h>
20856 #else
20857 # include <assert.h>
20858 #endif
20859
20860 #undef $ac_func
20861
20862 /* Override any GCC internal prototype to avoid an error.
20863    Use char because int might match the return type of a GCC
20864    builtin and then its argument prototype would still apply.  */
20865 #ifdef __cplusplus
20866 extern "C"
20867 #endif
20868 char $ac_func ();
20869 /* The GNU C library defines this for functions which it implements
20870     to always fail with ENOSYS.  Some functions are actually named
20871     something starting with __ and the normal name is an alias.  */
20872 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20873 choke me
20874 #endif
20875
20876 int
20877 main ()
20878 {
20879 return $ac_func ();
20880   ;
20881   return 0;
20882 }
20883 _ACEOF
20884 rm -f conftest.$ac_objext conftest$ac_exeext
20885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20886   (eval $ac_link) 2>conftest.er1
20887   ac_status=$?
20888   grep -v '^ *+' conftest.er1 >conftest.err
20889   rm -f conftest.er1
20890   cat conftest.err >&5
20891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892   (exit $ac_status); } &&
20893          { ac_try='test -z "$ac_c_werror_flag"
20894                          || test ! -s conftest.err'
20895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20896   (eval $ac_try) 2>&5
20897   ac_status=$?
20898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899   (exit $ac_status); }; } &&
20900          { ac_try='test -s conftest$ac_exeext'
20901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20902   (eval $ac_try) 2>&5
20903   ac_status=$?
20904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905   (exit $ac_status); }; }; then
20906   eval "$as_ac_var=yes"
20907 else
20908   echo "$as_me: failed program was:" >&5
20909 sed 's/^/| /' conftest.$ac_ext >&5
20910
20911         eval "$as_ac_var=no"
20912 fi
20913
20914 rm -f conftest.err conftest.$ac_objext \
20915       conftest$ac_exeext conftest.$ac_ext
20916 fi
20917 ac_res=`eval echo '${'$as_ac_var'}'`
20918                { echo "$as_me:$LINENO: result: $ac_res" >&5
20919 echo "${ECHO_T}$ac_res" >&6; }
20920 if test `eval echo '${'$as_ac_var'}'` = yes; then
20921   cat >>confdefs.h <<_ACEOF
20922 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20923 _ACEOF
20924
20925 fi
20926 done
20927
20928   LIBS="$lt_save_LIBS"
20929 fi
20930 ac_ext=c
20931 ac_cpp='$CPP $CPPFLAGS'
20932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20935
20936
20937
20938 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
20939 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
20940 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
20941   echo $ECHO_N "(cached) $ECHO_C" >&6
20942 else
20943   ac_cv_sys_symbol_underscore=no
20944   cat > conftest.$ac_ext <<EOF
20945 void nm_test_func(){}
20946 int main(){nm_test_func;return 0;}
20947 EOF
20948   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20949   (eval $ac_compile) 2>&5
20950   ac_status=$?
20951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20952   (exit $ac_status); }; then
20953     # Now try to grab the symbols.
20954     ac_nlist=conftest.nm
20955     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
20956   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20957   ac_status=$?
20958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20959   (exit $ac_status); } && test -s "$ac_nlist"; then
20960       # See whether the symbols have a leading underscore.
20961       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20962         ac_cv_sys_symbol_underscore=yes
20963       else
20964         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20965           :
20966         else
20967           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20968         fi
20969       fi
20970     else
20971       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20972     fi
20973   else
20974     echo "configure: failed program was:" >&5
20975     cat conftest.c >&5
20976   fi
20977   rm -rf conftest*
20978
20979 fi
20980 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
20981 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
20982
20983
20984 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
20985   if test x"$libltdl_cv_func_dlopen" = xyes ||
20986      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20987         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
20988 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
20989 if test "${libltdl_cv_need_uscore+set}" = set; then
20990   echo $ECHO_N "(cached) $ECHO_C" >&6
20991 else
20992   libltdl_cv_need_uscore=unknown
20993           save_LIBS="$LIBS"
20994           LIBS="$LIBS $LIBADD_DL"
20995           if test "$cross_compiling" = yes; then :
20996   libltdl_cv_need_uscore=cross
20997 else
20998   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20999   lt_status=$lt_dlunknown
21000   cat > conftest.$ac_ext <<EOF
21001 #line 21001 "configure"
21002 #include "confdefs.h"
21003
21004 #if HAVE_DLFCN_H
21005 #include <dlfcn.h>
21006 #endif
21007
21008 #include <stdio.h>
21009
21010 #ifdef RTLD_GLOBAL
21011 #  define LT_DLGLOBAL           RTLD_GLOBAL
21012 #else
21013 #  ifdef DL_GLOBAL
21014 #    define LT_DLGLOBAL         DL_GLOBAL
21015 #  else
21016 #    define LT_DLGLOBAL         0
21017 #  endif
21018 #endif
21019
21020 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21021    find out it does not work in some platform. */
21022 #ifndef LT_DLLAZY_OR_NOW
21023 #  ifdef RTLD_LAZY
21024 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
21025 #  else
21026 #    ifdef DL_LAZY
21027 #      define LT_DLLAZY_OR_NOW          DL_LAZY
21028 #    else
21029 #      ifdef RTLD_NOW
21030 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
21031 #      else
21032 #        ifdef DL_NOW
21033 #          define LT_DLLAZY_OR_NOW      DL_NOW
21034 #        else
21035 #          define LT_DLLAZY_OR_NOW      0
21036 #        endif
21037 #      endif
21038 #    endif
21039 #  endif
21040 #endif
21041
21042 #ifdef __cplusplus
21043 extern "C" void exit (int);
21044 #endif
21045
21046 void fnord() { int i=42;}
21047 int main ()
21048 {
21049   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21050   int status = $lt_dlunknown;
21051
21052   if (self)
21053     {
21054       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
21055       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21056       /* dlclose (self); */
21057     }
21058   else
21059     puts (dlerror ());
21060
21061     exit (status);
21062 }
21063 EOF
21064   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21065   (eval $ac_link) 2>&5
21066   ac_status=$?
21067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21068   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
21069     (./conftest; exit; ) >&5 2>/dev/null
21070     lt_status=$?
21071     case x$lt_status in
21072       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
21073       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
21074       x$lt_dlunknown|x*)  ;;
21075     esac
21076   else :
21077     # compilation failed
21078
21079   fi
21080 fi
21081 rm -fr conftest*
21082
21083           LIBS="$save_LIBS"
21084
21085 fi
21086 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
21087 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
21088   fi
21089 fi
21090
21091 if test x"$libltdl_cv_need_uscore" = xyes; then
21092
21093 cat >>confdefs.h <<\_ACEOF
21094 #define NEED_USCORE 1
21095 _ACEOF
21096
21097 fi
21098
21099
21100 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
21101 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
21102 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
21103   echo $ECHO_N "(cached) $ECHO_C" >&6
21104 else
21105   # PORTME does your system automatically load deplibs for dlopen?
21106   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
21107   # For now, we just catch OSes we know something about -- in the
21108   # future, we'll try test this programmatically.
21109   libltdl_cv_sys_dlopen_deplibs=unknown
21110   case "$host_os" in
21111   aix3*|aix4.1.*|aix4.2.*)
21112     # Unknown whether this is true for these versions of AIX, but
21113     # we want this `case' here to explicitly catch those versions.
21114     libltdl_cv_sys_dlopen_deplibs=unknown
21115     ;;
21116   aix[45]*)
21117     libltdl_cv_sys_dlopen_deplibs=yes
21118     ;;
21119   darwin*)
21120     # Assuming the user has installed a libdl from somewhere, this is true
21121     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
21122     libltdl_cv_sys_dlopen_deplibs=yes
21123     ;;
21124   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
21125     # GNU and its variants, using gnu ld.so (Glibc)
21126     libltdl_cv_sys_dlopen_deplibs=yes
21127     ;;
21128   hpux10*|hpux11*)
21129     libltdl_cv_sys_dlopen_deplibs=yes
21130     ;;
21131   interix*)
21132     libltdl_cv_sys_dlopen_deplibs=yes
21133     ;;
21134   irix[12345]*|irix6.[01]*)
21135     # Catch all versions of IRIX before 6.2, and indicate that we don't
21136     # know how it worked for any of those versions.
21137     libltdl_cv_sys_dlopen_deplibs=unknown
21138     ;;
21139   irix*)
21140     # The case above catches anything before 6.2, and it's known that
21141     # at 6.2 and later dlopen does load deplibs.
21142     libltdl_cv_sys_dlopen_deplibs=yes
21143     ;;
21144   netbsd*)
21145     libltdl_cv_sys_dlopen_deplibs=yes
21146     ;;
21147   openbsd*)
21148     libltdl_cv_sys_dlopen_deplibs=yes
21149     ;;
21150   osf[1234]*)
21151     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
21152     # it did *not* use an RPATH in a shared library to find objects the
21153     # library depends on, so we explictly say `no'.
21154     libltdl_cv_sys_dlopen_deplibs=no
21155     ;;
21156   osf5.0|osf5.0a|osf5.1)
21157     # dlopen *does* load deplibs and with the right loader patch applied
21158     # it even uses RPATH in a shared library to search for shared objects
21159     # that the library depends on, but there's no easy way to know if that
21160     # patch is installed.  Since this is the case, all we can really
21161     # say is unknown -- it depends on the patch being installed.  If
21162     # it is, this changes to `yes'.  Without it, it would be `no'.
21163     libltdl_cv_sys_dlopen_deplibs=unknown
21164     ;;
21165   osf*)
21166     # the two cases above should catch all versions of osf <= 5.1.  Read
21167     # the comments above for what we know about them.
21168     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
21169     # is used to find them so we can finally say `yes'.
21170     libltdl_cv_sys_dlopen_deplibs=yes
21171     ;;
21172   solaris*)
21173     libltdl_cv_sys_dlopen_deplibs=yes
21174     ;;
21175   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21176     libltdl_cv_sys_dlopen_deplibs=yes
21177     ;;
21178   esac
21179
21180 fi
21181 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
21182 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
21183 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
21184
21185 cat >>confdefs.h <<\_ACEOF
21186 #define LTDL_DLOPEN_DEPLIBS 1
21187 _ACEOF
21188
21189 fi
21190
21191
21192 for ac_header in argz.h
21193 do
21194 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21195 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21196   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21198 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21199   echo $ECHO_N "(cached) $ECHO_C" >&6
21200 fi
21201 ac_res=`eval echo '${'$as_ac_Header'}'`
21202                { echo "$as_me:$LINENO: result: $ac_res" >&5
21203 echo "${ECHO_T}$ac_res" >&6; }
21204 else
21205   # Is the header compilable?
21206 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21207 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21208 cat >conftest.$ac_ext <<_ACEOF
21209 /* confdefs.h.  */
21210 _ACEOF
21211 cat confdefs.h >>conftest.$ac_ext
21212 cat >>conftest.$ac_ext <<_ACEOF
21213 /* end confdefs.h.  */
21214 $ac_includes_default
21215 #include <$ac_header>
21216 _ACEOF
21217 rm -f conftest.$ac_objext
21218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21219   (eval $ac_compile) 2>conftest.er1
21220   ac_status=$?
21221   grep -v '^ *+' conftest.er1 >conftest.err
21222   rm -f conftest.er1
21223   cat conftest.err >&5
21224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21225   (exit $ac_status); } &&
21226          { ac_try='test -z "$ac_c_werror_flag"
21227                          || test ! -s conftest.err'
21228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21229   (eval $ac_try) 2>&5
21230   ac_status=$?
21231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21232   (exit $ac_status); }; } &&
21233          { ac_try='test -s conftest.$ac_objext'
21234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21235   (eval $ac_try) 2>&5
21236   ac_status=$?
21237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21238   (exit $ac_status); }; }; then
21239   ac_header_compiler=yes
21240 else
21241   echo "$as_me: failed program was:" >&5
21242 sed 's/^/| /' conftest.$ac_ext >&5
21243
21244         ac_header_compiler=no
21245 fi
21246
21247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21248 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21249 echo "${ECHO_T}$ac_header_compiler" >&6; }
21250
21251 # Is the header present?
21252 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21253 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21254 cat >conftest.$ac_ext <<_ACEOF
21255 /* confdefs.h.  */
21256 _ACEOF
21257 cat confdefs.h >>conftest.$ac_ext
21258 cat >>conftest.$ac_ext <<_ACEOF
21259 /* end confdefs.h.  */
21260 #include <$ac_header>
21261 _ACEOF
21262 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21263   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21264   ac_status=$?
21265   grep -v '^ *+' conftest.er1 >conftest.err
21266   rm -f conftest.er1
21267   cat conftest.err >&5
21268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21269   (exit $ac_status); } >/dev/null; then
21270   if test -s conftest.err; then
21271     ac_cpp_err=$ac_c_preproc_warn_flag
21272     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21273   else
21274     ac_cpp_err=
21275   fi
21276 else
21277   ac_cpp_err=yes
21278 fi
21279 if test -z "$ac_cpp_err"; then
21280   ac_header_preproc=yes
21281 else
21282   echo "$as_me: failed program was:" >&5
21283 sed 's/^/| /' conftest.$ac_ext >&5
21284
21285   ac_header_preproc=no
21286 fi
21287
21288 rm -f conftest.err conftest.$ac_ext
21289 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21290 echo "${ECHO_T}$ac_header_preproc" >&6; }
21291
21292 # So?  What about this header?
21293 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21294   yes:no: )
21295     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21296 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21297     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21298 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21299     ac_header_preproc=yes
21300     ;;
21301   no:yes:* )
21302     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21303 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21304     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21305 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21306     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21307 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21308     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21309 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21310     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21311 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21312     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21313 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21314     (
21315       cat <<\_ASBOX
21316 ## ---------------------------------- ##
21317 ## Report this to bug-libtool@gnu.org ##
21318 ## ---------------------------------- ##
21319 _ASBOX
21320     ) |
21321       sed "s/^/$as_me: WARNING:     /" >&2
21322     ;;
21323 esac
21324 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21327   echo $ECHO_N "(cached) $ECHO_C" >&6
21328 else
21329   eval "$as_ac_Header=\$ac_header_preproc"
21330 fi
21331 ac_res=`eval echo '${'$as_ac_Header'}'`
21332                { echo "$as_me:$LINENO: result: $ac_res" >&5
21333 echo "${ECHO_T}$ac_res" >&6; }
21334
21335 fi
21336 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21337   cat >>confdefs.h <<_ACEOF
21338 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21339 _ACEOF
21340
21341 fi
21342
21343 done
21344
21345
21346 { echo "$as_me:$LINENO: checking for error_t" >&5
21347 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
21348 if test "${ac_cv_type_error_t+set}" = set; then
21349   echo $ECHO_N "(cached) $ECHO_C" >&6
21350 else
21351   cat >conftest.$ac_ext <<_ACEOF
21352 /* confdefs.h.  */
21353 _ACEOF
21354 cat confdefs.h >>conftest.$ac_ext
21355 cat >>conftest.$ac_ext <<_ACEOF
21356 /* end confdefs.h.  */
21357 #if HAVE_ARGZ_H
21358 #  include <argz.h>
21359 #endif
21360
21361 int
21362 main ()
21363 {
21364 if ((error_t *) 0)
21365   return 0;
21366 if (sizeof (error_t))
21367   return 0;
21368   ;
21369   return 0;
21370 }
21371 _ACEOF
21372 rm -f conftest.$ac_objext
21373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21374   (eval $ac_compile) 2>conftest.er1
21375   ac_status=$?
21376   grep -v '^ *+' conftest.er1 >conftest.err
21377   rm -f conftest.er1
21378   cat conftest.err >&5
21379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21380   (exit $ac_status); } &&
21381          { ac_try='test -z "$ac_c_werror_flag"
21382                          || test ! -s conftest.err'
21383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21384   (eval $ac_try) 2>&5
21385   ac_status=$?
21386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21387   (exit $ac_status); }; } &&
21388          { ac_try='test -s conftest.$ac_objext'
21389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21390   (eval $ac_try) 2>&5
21391   ac_status=$?
21392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21393   (exit $ac_status); }; }; then
21394   ac_cv_type_error_t=yes
21395 else
21396   echo "$as_me: failed program was:" >&5
21397 sed 's/^/| /' conftest.$ac_ext >&5
21398
21399         ac_cv_type_error_t=no
21400 fi
21401
21402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21403 fi
21404 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
21405 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
21406 if test $ac_cv_type_error_t = yes; then
21407
21408 cat >>confdefs.h <<_ACEOF
21409 #define HAVE_ERROR_T 1
21410 _ACEOF
21411
21412
21413 else
21414
21415 cat >>confdefs.h <<\_ACEOF
21416 #define error_t int
21417 _ACEOF
21418
21419 fi
21420
21421
21422
21423
21424
21425
21426
21427 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
21428 do
21429 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21430 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21431 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21432 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21433   echo $ECHO_N "(cached) $ECHO_C" >&6
21434 else
21435   cat >conftest.$ac_ext <<_ACEOF
21436 /* confdefs.h.  */
21437 _ACEOF
21438 cat confdefs.h >>conftest.$ac_ext
21439 cat >>conftest.$ac_ext <<_ACEOF
21440 /* end confdefs.h.  */
21441 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21442    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21443 #define $ac_func innocuous_$ac_func
21444
21445 /* System header to define __stub macros and hopefully few prototypes,
21446     which can conflict with char $ac_func (); below.
21447     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21448     <limits.h> exists even on freestanding compilers.  */
21449
21450 #ifdef __STDC__
21451 # include <limits.h>
21452 #else
21453 # include <assert.h>
21454 #endif
21455
21456 #undef $ac_func
21457
21458 /* Override any GCC internal prototype to avoid an error.
21459    Use char because int might match the return type of a GCC
21460    builtin and then its argument prototype would still apply.  */
21461 #ifdef __cplusplus
21462 extern "C"
21463 #endif
21464 char $ac_func ();
21465 /* The GNU C library defines this for functions which it implements
21466     to always fail with ENOSYS.  Some functions are actually named
21467     something starting with __ and the normal name is an alias.  */
21468 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21469 choke me
21470 #endif
21471
21472 int
21473 main ()
21474 {
21475 return $ac_func ();
21476   ;
21477   return 0;
21478 }
21479 _ACEOF
21480 rm -f conftest.$ac_objext conftest$ac_exeext
21481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21482   (eval $ac_link) 2>conftest.er1
21483   ac_status=$?
21484   grep -v '^ *+' conftest.er1 >conftest.err
21485   rm -f conftest.er1
21486   cat conftest.err >&5
21487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21488   (exit $ac_status); } &&
21489          { ac_try='test -z "$ac_c_werror_flag"
21490                          || test ! -s conftest.err'
21491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21492   (eval $ac_try) 2>&5
21493   ac_status=$?
21494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21495   (exit $ac_status); }; } &&
21496          { ac_try='test -s conftest$ac_exeext'
21497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21498   (eval $ac_try) 2>&5
21499   ac_status=$?
21500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21501   (exit $ac_status); }; }; then
21502   eval "$as_ac_var=yes"
21503 else
21504   echo "$as_me: failed program was:" >&5
21505 sed 's/^/| /' conftest.$ac_ext >&5
21506
21507         eval "$as_ac_var=no"
21508 fi
21509
21510 rm -f conftest.err conftest.$ac_objext \
21511       conftest$ac_exeext conftest.$ac_ext
21512 fi
21513 ac_res=`eval echo '${'$as_ac_var'}'`
21514                { echo "$as_me:$LINENO: result: $ac_res" >&5
21515 echo "${ECHO_T}$ac_res" >&6; }
21516 if test `eval echo '${'$as_ac_var'}'` = yes; then
21517   cat >>confdefs.h <<_ACEOF
21518 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21519 _ACEOF
21520
21521 fi
21522 done
21523
21524
21525
21526
21527
21528
21529
21530
21531
21532
21533
21534
21535
21536
21537
21538
21539
21540
21541
21542
21543
21544
21545
21546
21547
21548
21549
21550
21551 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
21552                   stdio.h unistd.h
21553 do
21554 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21555 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21556   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21558 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21559   echo $ECHO_N "(cached) $ECHO_C" >&6
21560 fi
21561 ac_res=`eval echo '${'$as_ac_Header'}'`
21562                { echo "$as_me:$LINENO: result: $ac_res" >&5
21563 echo "${ECHO_T}$ac_res" >&6; }
21564 else
21565   # Is the header compilable?
21566 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21567 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21568 cat >conftest.$ac_ext <<_ACEOF
21569 /* confdefs.h.  */
21570 _ACEOF
21571 cat confdefs.h >>conftest.$ac_ext
21572 cat >>conftest.$ac_ext <<_ACEOF
21573 /* end confdefs.h.  */
21574 $ac_includes_default
21575 #include <$ac_header>
21576 _ACEOF
21577 rm -f conftest.$ac_objext
21578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21579   (eval $ac_compile) 2>conftest.er1
21580   ac_status=$?
21581   grep -v '^ *+' conftest.er1 >conftest.err
21582   rm -f conftest.er1
21583   cat conftest.err >&5
21584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21585   (exit $ac_status); } &&
21586          { ac_try='test -z "$ac_c_werror_flag"
21587                          || test ! -s conftest.err'
21588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21589   (eval $ac_try) 2>&5
21590   ac_status=$?
21591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21592   (exit $ac_status); }; } &&
21593          { ac_try='test -s conftest.$ac_objext'
21594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21595   (eval $ac_try) 2>&5
21596   ac_status=$?
21597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21598   (exit $ac_status); }; }; then
21599   ac_header_compiler=yes
21600 else
21601   echo "$as_me: failed program was:" >&5
21602 sed 's/^/| /' conftest.$ac_ext >&5
21603
21604         ac_header_compiler=no
21605 fi
21606
21607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21608 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21609 echo "${ECHO_T}$ac_header_compiler" >&6; }
21610
21611 # Is the header present?
21612 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21613 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21614 cat >conftest.$ac_ext <<_ACEOF
21615 /* confdefs.h.  */
21616 _ACEOF
21617 cat confdefs.h >>conftest.$ac_ext
21618 cat >>conftest.$ac_ext <<_ACEOF
21619 /* end confdefs.h.  */
21620 #include <$ac_header>
21621 _ACEOF
21622 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21623   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21624   ac_status=$?
21625   grep -v '^ *+' conftest.er1 >conftest.err
21626   rm -f conftest.er1
21627   cat conftest.err >&5
21628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21629   (exit $ac_status); } >/dev/null; then
21630   if test -s conftest.err; then
21631     ac_cpp_err=$ac_c_preproc_warn_flag
21632     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21633   else
21634     ac_cpp_err=
21635   fi
21636 else
21637   ac_cpp_err=yes
21638 fi
21639 if test -z "$ac_cpp_err"; then
21640   ac_header_preproc=yes
21641 else
21642   echo "$as_me: failed program was:" >&5
21643 sed 's/^/| /' conftest.$ac_ext >&5
21644
21645   ac_header_preproc=no
21646 fi
21647
21648 rm -f conftest.err conftest.$ac_ext
21649 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21650 echo "${ECHO_T}$ac_header_preproc" >&6; }
21651
21652 # So?  What about this header?
21653 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21654   yes:no: )
21655     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21656 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21657     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21658 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21659     ac_header_preproc=yes
21660     ;;
21661   no:yes:* )
21662     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21663 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21664     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21665 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21666     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21667 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21668     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21669 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21670     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21671 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21672     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21673 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21674     (
21675       cat <<\_ASBOX
21676 ## ---------------------------------- ##
21677 ## Report this to bug-libtool@gnu.org ##
21678 ## ---------------------------------- ##
21679 _ASBOX
21680     ) |
21681       sed "s/^/$as_me: WARNING:     /" >&2
21682     ;;
21683 esac
21684 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21687   echo $ECHO_N "(cached) $ECHO_C" >&6
21688 else
21689   eval "$as_ac_Header=\$ac_header_preproc"
21690 fi
21691 ac_res=`eval echo '${'$as_ac_Header'}'`
21692                { echo "$as_me:$LINENO: result: $ac_res" >&5
21693 echo "${ECHO_T}$ac_res" >&6; }
21694
21695 fi
21696 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21697   cat >>confdefs.h <<_ACEOF
21698 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21699 _ACEOF
21700
21701 fi
21702
21703 done
21704
21705
21706
21707
21708
21709 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
21710 do
21711 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21713   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21715 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21716   echo $ECHO_N "(cached) $ECHO_C" >&6
21717 fi
21718 ac_res=`eval echo '${'$as_ac_Header'}'`
21719                { echo "$as_me:$LINENO: result: $ac_res" >&5
21720 echo "${ECHO_T}$ac_res" >&6; }
21721 else
21722   # Is the header compilable?
21723 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21724 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21725 cat >conftest.$ac_ext <<_ACEOF
21726 /* confdefs.h.  */
21727 _ACEOF
21728 cat confdefs.h >>conftest.$ac_ext
21729 cat >>conftest.$ac_ext <<_ACEOF
21730 /* end confdefs.h.  */
21731 $ac_includes_default
21732 #include <$ac_header>
21733 _ACEOF
21734 rm -f conftest.$ac_objext
21735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21736   (eval $ac_compile) 2>conftest.er1
21737   ac_status=$?
21738   grep -v '^ *+' conftest.er1 >conftest.err
21739   rm -f conftest.er1
21740   cat conftest.err >&5
21741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21742   (exit $ac_status); } &&
21743          { ac_try='test -z "$ac_c_werror_flag"
21744                          || test ! -s conftest.err'
21745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21746   (eval $ac_try) 2>&5
21747   ac_status=$?
21748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21749   (exit $ac_status); }; } &&
21750          { ac_try='test -s conftest.$ac_objext'
21751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21752   (eval $ac_try) 2>&5
21753   ac_status=$?
21754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21755   (exit $ac_status); }; }; then
21756   ac_header_compiler=yes
21757 else
21758   echo "$as_me: failed program was:" >&5
21759 sed 's/^/| /' conftest.$ac_ext >&5
21760
21761         ac_header_compiler=no
21762 fi
21763
21764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21765 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21766 echo "${ECHO_T}$ac_header_compiler" >&6; }
21767
21768 # Is the header present?
21769 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21770 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21771 cat >conftest.$ac_ext <<_ACEOF
21772 /* confdefs.h.  */
21773 _ACEOF
21774 cat confdefs.h >>conftest.$ac_ext
21775 cat >>conftest.$ac_ext <<_ACEOF
21776 /* end confdefs.h.  */
21777 #include <$ac_header>
21778 _ACEOF
21779 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21780   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21781   ac_status=$?
21782   grep -v '^ *+' conftest.er1 >conftest.err
21783   rm -f conftest.er1
21784   cat conftest.err >&5
21785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21786   (exit $ac_status); } >/dev/null; then
21787   if test -s conftest.err; then
21788     ac_cpp_err=$ac_c_preproc_warn_flag
21789     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21790   else
21791     ac_cpp_err=
21792   fi
21793 else
21794   ac_cpp_err=yes
21795 fi
21796 if test -z "$ac_cpp_err"; then
21797   ac_header_preproc=yes
21798 else
21799   echo "$as_me: failed program was:" >&5
21800 sed 's/^/| /' conftest.$ac_ext >&5
21801
21802   ac_header_preproc=no
21803 fi
21804
21805 rm -f conftest.err conftest.$ac_ext
21806 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21807 echo "${ECHO_T}$ac_header_preproc" >&6; }
21808
21809 # So?  What about this header?
21810 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21811   yes:no: )
21812     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21813 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21814     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21815 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21816     ac_header_preproc=yes
21817     ;;
21818   no:yes:* )
21819     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21820 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21821     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21822 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21823     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21824 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21825     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21826 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21827     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21828 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21829     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21830 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21831     (
21832       cat <<\_ASBOX
21833 ## ---------------------------------- ##
21834 ## Report this to bug-libtool@gnu.org ##
21835 ## ---------------------------------- ##
21836 _ASBOX
21837     ) |
21838       sed "s/^/$as_me: WARNING:     /" >&2
21839     ;;
21840 esac
21841 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21844   echo $ECHO_N "(cached) $ECHO_C" >&6
21845 else
21846   eval "$as_ac_Header=\$ac_header_preproc"
21847 fi
21848 ac_res=`eval echo '${'$as_ac_Header'}'`
21849                { echo "$as_me:$LINENO: result: $ac_res" >&5
21850 echo "${ECHO_T}$ac_res" >&6; }
21851
21852 fi
21853 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21854   cat >>confdefs.h <<_ACEOF
21855 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21856 _ACEOF
21857
21858 fi
21859
21860 done
21861
21862
21863
21864 for ac_header in string.h strings.h
21865 do
21866 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21867 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21868   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21870 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21871   echo $ECHO_N "(cached) $ECHO_C" >&6
21872 fi
21873 ac_res=`eval echo '${'$as_ac_Header'}'`
21874                { echo "$as_me:$LINENO: result: $ac_res" >&5
21875 echo "${ECHO_T}$ac_res" >&6; }
21876 else
21877   # Is the header compilable?
21878 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21879 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21880 cat >conftest.$ac_ext <<_ACEOF
21881 /* confdefs.h.  */
21882 _ACEOF
21883 cat confdefs.h >>conftest.$ac_ext
21884 cat >>conftest.$ac_ext <<_ACEOF
21885 /* end confdefs.h.  */
21886 $ac_includes_default
21887 #include <$ac_header>
21888 _ACEOF
21889 rm -f conftest.$ac_objext
21890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21891   (eval $ac_compile) 2>conftest.er1
21892   ac_status=$?
21893   grep -v '^ *+' conftest.er1 >conftest.err
21894   rm -f conftest.er1
21895   cat conftest.err >&5
21896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21897   (exit $ac_status); } &&
21898          { ac_try='test -z "$ac_c_werror_flag"
21899                          || test ! -s conftest.err'
21900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21901   (eval $ac_try) 2>&5
21902   ac_status=$?
21903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21904   (exit $ac_status); }; } &&
21905          { ac_try='test -s conftest.$ac_objext'
21906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21907   (eval $ac_try) 2>&5
21908   ac_status=$?
21909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21910   (exit $ac_status); }; }; then
21911   ac_header_compiler=yes
21912 else
21913   echo "$as_me: failed program was:" >&5
21914 sed 's/^/| /' conftest.$ac_ext >&5
21915
21916         ac_header_compiler=no
21917 fi
21918
21919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21920 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21921 echo "${ECHO_T}$ac_header_compiler" >&6; }
21922
21923 # Is the header present?
21924 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21925 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21926 cat >conftest.$ac_ext <<_ACEOF
21927 /* confdefs.h.  */
21928 _ACEOF
21929 cat confdefs.h >>conftest.$ac_ext
21930 cat >>conftest.$ac_ext <<_ACEOF
21931 /* end confdefs.h.  */
21932 #include <$ac_header>
21933 _ACEOF
21934 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21935   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21936   ac_status=$?
21937   grep -v '^ *+' conftest.er1 >conftest.err
21938   rm -f conftest.er1
21939   cat conftest.err >&5
21940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21941   (exit $ac_status); } >/dev/null; then
21942   if test -s conftest.err; then
21943     ac_cpp_err=$ac_c_preproc_warn_flag
21944     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21945   else
21946     ac_cpp_err=
21947   fi
21948 else
21949   ac_cpp_err=yes
21950 fi
21951 if test -z "$ac_cpp_err"; then
21952   ac_header_preproc=yes
21953 else
21954   echo "$as_me: failed program was:" >&5
21955 sed 's/^/| /' conftest.$ac_ext >&5
21956
21957   ac_header_preproc=no
21958 fi
21959
21960 rm -f conftest.err conftest.$ac_ext
21961 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21962 echo "${ECHO_T}$ac_header_preproc" >&6; }
21963
21964 # So?  What about this header?
21965 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21966   yes:no: )
21967     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21968 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21969     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21970 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21971     ac_header_preproc=yes
21972     ;;
21973   no:yes:* )
21974     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21975 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21976     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21977 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21978     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21979 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21980     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21981 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21982     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21983 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21984     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21985 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21986     (
21987       cat <<\_ASBOX
21988 ## ---------------------------------- ##
21989 ## Report this to bug-libtool@gnu.org ##
21990 ## ---------------------------------- ##
21991 _ASBOX
21992     ) |
21993       sed "s/^/$as_me: WARNING:     /" >&2
21994     ;;
21995 esac
21996 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21999   echo $ECHO_N "(cached) $ECHO_C" >&6
22000 else
22001   eval "$as_ac_Header=\$ac_header_preproc"
22002 fi
22003 ac_res=`eval echo '${'$as_ac_Header'}'`
22004                { echo "$as_me:$LINENO: result: $ac_res" >&5
22005 echo "${ECHO_T}$ac_res" >&6; }
22006
22007 fi
22008 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22009   cat >>confdefs.h <<_ACEOF
22010 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22011 _ACEOF
22012  break
22013 fi
22014
22015 done
22016
22017
22018
22019
22020 for ac_func in strchr index
22021 do
22022 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22023 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22024 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22025 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22026   echo $ECHO_N "(cached) $ECHO_C" >&6
22027 else
22028   cat >conftest.$ac_ext <<_ACEOF
22029 /* confdefs.h.  */
22030 _ACEOF
22031 cat confdefs.h >>conftest.$ac_ext
22032 cat >>conftest.$ac_ext <<_ACEOF
22033 /* end confdefs.h.  */
22034 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22035    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22036 #define $ac_func innocuous_$ac_func
22037
22038 /* System header to define __stub macros and hopefully few prototypes,
22039     which can conflict with char $ac_func (); below.
22040     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22041     <limits.h> exists even on freestanding compilers.  */
22042
22043 #ifdef __STDC__
22044 # include <limits.h>
22045 #else
22046 # include <assert.h>
22047 #endif
22048
22049 #undef $ac_func
22050
22051 /* Override any GCC internal prototype to avoid an error.
22052    Use char because int might match the return type of a GCC
22053    builtin and then its argument prototype would still apply.  */
22054 #ifdef __cplusplus
22055 extern "C"
22056 #endif
22057 char $ac_func ();
22058 /* The GNU C library defines this for functions which it implements
22059     to always fail with ENOSYS.  Some functions are actually named
22060     something starting with __ and the normal name is an alias.  */
22061 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22062 choke me
22063 #endif
22064
22065 int
22066 main ()
22067 {
22068 return $ac_func ();
22069   ;
22070   return 0;
22071 }
22072 _ACEOF
22073 rm -f conftest.$ac_objext conftest$ac_exeext
22074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22075   (eval $ac_link) 2>conftest.er1
22076   ac_status=$?
22077   grep -v '^ *+' conftest.er1 >conftest.err
22078   rm -f conftest.er1
22079   cat conftest.err >&5
22080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22081   (exit $ac_status); } &&
22082          { ac_try='test -z "$ac_c_werror_flag"
22083                          || test ! -s conftest.err'
22084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22085   (eval $ac_try) 2>&5
22086   ac_status=$?
22087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22088   (exit $ac_status); }; } &&
22089          { ac_try='test -s conftest$ac_exeext'
22090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22091   (eval $ac_try) 2>&5
22092   ac_status=$?
22093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22094   (exit $ac_status); }; }; then
22095   eval "$as_ac_var=yes"
22096 else
22097   echo "$as_me: failed program was:" >&5
22098 sed 's/^/| /' conftest.$ac_ext >&5
22099
22100         eval "$as_ac_var=no"
22101 fi
22102
22103 rm -f conftest.err conftest.$ac_objext \
22104       conftest$ac_exeext conftest.$ac_ext
22105 fi
22106 ac_res=`eval echo '${'$as_ac_var'}'`
22107                { echo "$as_me:$LINENO: result: $ac_res" >&5
22108 echo "${ECHO_T}$ac_res" >&6; }
22109 if test `eval echo '${'$as_ac_var'}'` = yes; then
22110   cat >>confdefs.h <<_ACEOF
22111 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22112 _ACEOF
22113  break
22114 fi
22115 done
22116
22117
22118
22119 for ac_func in strrchr rindex
22120 do
22121 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22122 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22123 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22124 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22125   echo $ECHO_N "(cached) $ECHO_C" >&6
22126 else
22127   cat >conftest.$ac_ext <<_ACEOF
22128 /* confdefs.h.  */
22129 _ACEOF
22130 cat confdefs.h >>conftest.$ac_ext
22131 cat >>conftest.$ac_ext <<_ACEOF
22132 /* end confdefs.h.  */
22133 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22134    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22135 #define $ac_func innocuous_$ac_func
22136
22137 /* System header to define __stub macros and hopefully few prototypes,
22138     which can conflict with char $ac_func (); below.
22139     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22140     <limits.h> exists even on freestanding compilers.  */
22141
22142 #ifdef __STDC__
22143 # include <limits.h>
22144 #else
22145 # include <assert.h>
22146 #endif
22147
22148 #undef $ac_func
22149
22150 /* Override any GCC internal prototype to avoid an error.
22151    Use char because int might match the return type of a GCC
22152    builtin and then its argument prototype would still apply.  */
22153 #ifdef __cplusplus
22154 extern "C"
22155 #endif
22156 char $ac_func ();
22157 /* The GNU C library defines this for functions which it implements
22158     to always fail with ENOSYS.  Some functions are actually named
22159     something starting with __ and the normal name is an alias.  */
22160 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22161 choke me
22162 #endif
22163
22164 int
22165 main ()
22166 {
22167 return $ac_func ();
22168   ;
22169   return 0;
22170 }
22171 _ACEOF
22172 rm -f conftest.$ac_objext conftest$ac_exeext
22173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22174   (eval $ac_link) 2>conftest.er1
22175   ac_status=$?
22176   grep -v '^ *+' conftest.er1 >conftest.err
22177   rm -f conftest.er1
22178   cat conftest.err >&5
22179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22180   (exit $ac_status); } &&
22181          { ac_try='test -z "$ac_c_werror_flag"
22182                          || test ! -s conftest.err'
22183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22184   (eval $ac_try) 2>&5
22185   ac_status=$?
22186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22187   (exit $ac_status); }; } &&
22188          { ac_try='test -s conftest$ac_exeext'
22189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22190   (eval $ac_try) 2>&5
22191   ac_status=$?
22192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22193   (exit $ac_status); }; }; then
22194   eval "$as_ac_var=yes"
22195 else
22196   echo "$as_me: failed program was:" >&5
22197 sed 's/^/| /' conftest.$ac_ext >&5
22198
22199         eval "$as_ac_var=no"
22200 fi
22201
22202 rm -f conftest.err conftest.$ac_objext \
22203       conftest$ac_exeext conftest.$ac_ext
22204 fi
22205 ac_res=`eval echo '${'$as_ac_var'}'`
22206                { echo "$as_me:$LINENO: result: $ac_res" >&5
22207 echo "${ECHO_T}$ac_res" >&6; }
22208 if test `eval echo '${'$as_ac_var'}'` = yes; then
22209   cat >>confdefs.h <<_ACEOF
22210 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22211 _ACEOF
22212  break
22213 fi
22214 done
22215
22216
22217
22218 for ac_func in memcpy bcopy
22219 do
22220 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22221 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22222 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22223 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22224   echo $ECHO_N "(cached) $ECHO_C" >&6
22225 else
22226   cat >conftest.$ac_ext <<_ACEOF
22227 /* confdefs.h.  */
22228 _ACEOF
22229 cat confdefs.h >>conftest.$ac_ext
22230 cat >>conftest.$ac_ext <<_ACEOF
22231 /* end confdefs.h.  */
22232 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22233    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22234 #define $ac_func innocuous_$ac_func
22235
22236 /* System header to define __stub macros and hopefully few prototypes,
22237     which can conflict with char $ac_func (); below.
22238     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22239     <limits.h> exists even on freestanding compilers.  */
22240
22241 #ifdef __STDC__
22242 # include <limits.h>
22243 #else
22244 # include <assert.h>
22245 #endif
22246
22247 #undef $ac_func
22248
22249 /* Override any GCC internal prototype to avoid an error.
22250    Use char because int might match the return type of a GCC
22251    builtin and then its argument prototype would still apply.  */
22252 #ifdef __cplusplus
22253 extern "C"
22254 #endif
22255 char $ac_func ();
22256 /* The GNU C library defines this for functions which it implements
22257     to always fail with ENOSYS.  Some functions are actually named
22258     something starting with __ and the normal name is an alias.  */
22259 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22260 choke me
22261 #endif
22262
22263 int
22264 main ()
22265 {
22266 return $ac_func ();
22267   ;
22268   return 0;
22269 }
22270 _ACEOF
22271 rm -f conftest.$ac_objext conftest$ac_exeext
22272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22273   (eval $ac_link) 2>conftest.er1
22274   ac_status=$?
22275   grep -v '^ *+' conftest.er1 >conftest.err
22276   rm -f conftest.er1
22277   cat conftest.err >&5
22278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22279   (exit $ac_status); } &&
22280          { ac_try='test -z "$ac_c_werror_flag"
22281                          || test ! -s conftest.err'
22282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22283   (eval $ac_try) 2>&5
22284   ac_status=$?
22285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22286   (exit $ac_status); }; } &&
22287          { ac_try='test -s conftest$ac_exeext'
22288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22289   (eval $ac_try) 2>&5
22290   ac_status=$?
22291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22292   (exit $ac_status); }; }; then
22293   eval "$as_ac_var=yes"
22294 else
22295   echo "$as_me: failed program was:" >&5
22296 sed 's/^/| /' conftest.$ac_ext >&5
22297
22298         eval "$as_ac_var=no"
22299 fi
22300
22301 rm -f conftest.err conftest.$ac_objext \
22302       conftest$ac_exeext conftest.$ac_ext
22303 fi
22304 ac_res=`eval echo '${'$as_ac_var'}'`
22305                { echo "$as_me:$LINENO: result: $ac_res" >&5
22306 echo "${ECHO_T}$ac_res" >&6; }
22307 if test `eval echo '${'$as_ac_var'}'` = yes; then
22308   cat >>confdefs.h <<_ACEOF
22309 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22310 _ACEOF
22311  break
22312 fi
22313 done
22314
22315
22316
22317 for ac_func in memmove strcmp
22318 do
22319 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22320 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22321 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22322 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22323   echo $ECHO_N "(cached) $ECHO_C" >&6
22324 else
22325   cat >conftest.$ac_ext <<_ACEOF
22326 /* confdefs.h.  */
22327 _ACEOF
22328 cat confdefs.h >>conftest.$ac_ext
22329 cat >>conftest.$ac_ext <<_ACEOF
22330 /* end confdefs.h.  */
22331 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22332    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22333 #define $ac_func innocuous_$ac_func
22334
22335 /* System header to define __stub macros and hopefully few prototypes,
22336     which can conflict with char $ac_func (); below.
22337     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22338     <limits.h> exists even on freestanding compilers.  */
22339
22340 #ifdef __STDC__
22341 # include <limits.h>
22342 #else
22343 # include <assert.h>
22344 #endif
22345
22346 #undef $ac_func
22347
22348 /* Override any GCC internal prototype to avoid an error.
22349    Use char because int might match the return type of a GCC
22350    builtin and then its argument prototype would still apply.  */
22351 #ifdef __cplusplus
22352 extern "C"
22353 #endif
22354 char $ac_func ();
22355 /* The GNU C library defines this for functions which it implements
22356     to always fail with ENOSYS.  Some functions are actually named
22357     something starting with __ and the normal name is an alias.  */
22358 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22359 choke me
22360 #endif
22361
22362 int
22363 main ()
22364 {
22365 return $ac_func ();
22366   ;
22367   return 0;
22368 }
22369 _ACEOF
22370 rm -f conftest.$ac_objext conftest$ac_exeext
22371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22372   (eval $ac_link) 2>conftest.er1
22373   ac_status=$?
22374   grep -v '^ *+' conftest.er1 >conftest.err
22375   rm -f conftest.er1
22376   cat conftest.err >&5
22377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22378   (exit $ac_status); } &&
22379          { ac_try='test -z "$ac_c_werror_flag"
22380                          || test ! -s conftest.err'
22381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22382   (eval $ac_try) 2>&5
22383   ac_status=$?
22384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22385   (exit $ac_status); }; } &&
22386          { ac_try='test -s conftest$ac_exeext'
22387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22388   (eval $ac_try) 2>&5
22389   ac_status=$?
22390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22391   (exit $ac_status); }; }; then
22392   eval "$as_ac_var=yes"
22393 else
22394   echo "$as_me: failed program was:" >&5
22395 sed 's/^/| /' conftest.$ac_ext >&5
22396
22397         eval "$as_ac_var=no"
22398 fi
22399
22400 rm -f conftest.err conftest.$ac_objext \
22401       conftest$ac_exeext conftest.$ac_ext
22402 fi
22403 ac_res=`eval echo '${'$as_ac_var'}'`
22404                { echo "$as_me:$LINENO: result: $ac_res" >&5
22405 echo "${ECHO_T}$ac_res" >&6; }
22406 if test `eval echo '${'$as_ac_var'}'` = yes; then
22407   cat >>confdefs.h <<_ACEOF
22408 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22409 _ACEOF
22410
22411 fi
22412 done
22413
22414
22415
22416
22417 for ac_func in closedir opendir readdir
22418 do
22419 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22420 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22421 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22422 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22423   echo $ECHO_N "(cached) $ECHO_C" >&6
22424 else
22425   cat >conftest.$ac_ext <<_ACEOF
22426 /* confdefs.h.  */
22427 _ACEOF
22428 cat confdefs.h >>conftest.$ac_ext
22429 cat >>conftest.$ac_ext <<_ACEOF
22430 /* end confdefs.h.  */
22431 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22432    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22433 #define $ac_func innocuous_$ac_func
22434
22435 /* System header to define __stub macros and hopefully few prototypes,
22436     which can conflict with char $ac_func (); below.
22437     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22438     <limits.h> exists even on freestanding compilers.  */
22439
22440 #ifdef __STDC__
22441 # include <limits.h>
22442 #else
22443 # include <assert.h>
22444 #endif
22445
22446 #undef $ac_func
22447
22448 /* Override any GCC internal prototype to avoid an error.
22449    Use char because int might match the return type of a GCC
22450    builtin and then its argument prototype would still apply.  */
22451 #ifdef __cplusplus
22452 extern "C"
22453 #endif
22454 char $ac_func ();
22455 /* The GNU C library defines this for functions which it implements
22456     to always fail with ENOSYS.  Some functions are actually named
22457     something starting with __ and the normal name is an alias.  */
22458 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22459 choke me
22460 #endif
22461
22462 int
22463 main ()
22464 {
22465 return $ac_func ();
22466   ;
22467   return 0;
22468 }
22469 _ACEOF
22470 rm -f conftest.$ac_objext conftest$ac_exeext
22471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22472   (eval $ac_link) 2>conftest.er1
22473   ac_status=$?
22474   grep -v '^ *+' conftest.er1 >conftest.err
22475   rm -f conftest.er1
22476   cat conftest.err >&5
22477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22478   (exit $ac_status); } &&
22479          { ac_try='test -z "$ac_c_werror_flag"
22480                          || test ! -s conftest.err'
22481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22482   (eval $ac_try) 2>&5
22483   ac_status=$?
22484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22485   (exit $ac_status); }; } &&
22486          { ac_try='test -s conftest$ac_exeext'
22487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22488   (eval $ac_try) 2>&5
22489   ac_status=$?
22490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22491   (exit $ac_status); }; }; then
22492   eval "$as_ac_var=yes"
22493 else
22494   echo "$as_me: failed program was:" >&5
22495 sed 's/^/| /' conftest.$ac_ext >&5
22496
22497         eval "$as_ac_var=no"
22498 fi
22499
22500 rm -f conftest.err conftest.$ac_objext \
22501       conftest$ac_exeext conftest.$ac_ext
22502 fi
22503 ac_res=`eval echo '${'$as_ac_var'}'`
22504                { echo "$as_me:$LINENO: result: $ac_res" >&5
22505 echo "${ECHO_T}$ac_res" >&6; }
22506 if test `eval echo '${'$as_ac_var'}'` = yes; then
22507   cat >>confdefs.h <<_ACEOF
22508 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22509 _ACEOF
22510
22511 fi
22512 done
22513
22514
22515
22516
22517 ## -------- ##
22518 ## Outputs. ##
22519 ## -------- ##
22520 ac_config_files="$ac_config_files Makefile"
22521
22522 cat >confcache <<\_ACEOF
22523 # This file is a shell script that caches the results of configure
22524 # tests run on this system so they can be shared between configure
22525 # scripts and configure runs, see configure's option --config-cache.
22526 # It is not useful on other systems.  If it contains results you don't
22527 # want to keep, you may remove or edit it.
22528 #
22529 # config.status only pays attention to the cache file if you give it
22530 # the --recheck option to rerun configure.
22531 #
22532 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22533 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22534 # following values.
22535
22536 _ACEOF
22537
22538 # The following way of writing the cache mishandles newlines in values,
22539 # but we know of no workaround that is simple, portable, and efficient.
22540 # So, don't put newlines in cache variables' values.
22541 # Ultrix sh set writes to stderr and can't be redirected directly,
22542 # and sets the high bit in the cache file unless we assign to the vars.
22543 {
22544   (set) 2>&1 |
22545     case `(ac_space=' '; set | grep ac_space) 2>&1` in
22546     *ac_space=\ *)
22547       # `set' does not quote correctly, so add quotes (double-quote
22548       # substitution turns \\\\ into \\, and sed turns \\ into \).
22549       sed -n \
22550         "s/'/'\\\\''/g;
22551           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22552       ;;
22553     *)
22554       # `set' quotes correctly as required by POSIX, so do not add quotes.
22555       sed -n \
22556         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22557       ;;
22558     esac;
22559 } |
22560   sed '
22561      t clear
22562      :clear
22563      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22564      t end
22565      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22566      :end' >>confcache
22567 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22568   if test -w $cache_file; then
22569     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22570     cat confcache >$cache_file
22571   else
22572     echo "not updating unwritable cache $cache_file"
22573   fi
22574 fi
22575 rm -f confcache
22576
22577 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22578 # Let make expand exec_prefix.
22579 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22580
22581 DEFS=-DHAVE_CONFIG_H
22582
22583 ac_libobjs=
22584 ac_ltlibobjs=
22585 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22586   # 1. Remove the extension, and $U if already installed.
22587   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22588   ac_i=`echo "$ac_i" | sed "$ac_script"`
22589   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22590   #    will be set to the directory where LIBOBJS objects are built.
22591   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22592   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22593 done
22594 LIBOBJS=$ac_libobjs
22595
22596 LTLIBOBJS=$ac_ltlibobjs
22597
22598
22599 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22600   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22601 Usually this means the macro was only invoked conditionally." >&5
22602 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22603 Usually this means the macro was only invoked conditionally." >&2;}
22604    { (exit 1); exit 1; }; }
22605 fi
22606 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22607   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22608 Usually this means the macro was only invoked conditionally." >&5
22609 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22610 Usually this means the macro was only invoked conditionally." >&2;}
22611    { (exit 1); exit 1; }; }
22612 fi
22613 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22614   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22615 Usually this means the macro was only invoked conditionally." >&5
22616 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22617 Usually this means the macro was only invoked conditionally." >&2;}
22618    { (exit 1); exit 1; }; }
22619 fi
22620 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22621   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22622 Usually this means the macro was only invoked conditionally." >&5
22623 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22624 Usually this means the macro was only invoked conditionally." >&2;}
22625    { (exit 1); exit 1; }; }
22626 fi
22627 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22628   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22629 Usually this means the macro was only invoked conditionally." >&5
22630 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22631 Usually this means the macro was only invoked conditionally." >&2;}
22632    { (exit 1); exit 1; }; }
22633 fi
22634
22635 : ${CONFIG_STATUS=./config.status}
22636 ac_clean_files_save=$ac_clean_files
22637 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22638 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22639 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22640 cat >$CONFIG_STATUS <<_ACEOF
22641 #! $SHELL
22642 # Generated by $as_me.
22643 # Run this file to recreate the current configuration.
22644 # Compiler output produced by configure, useful for debugging
22645 # configure, is in config.log if it exists.
22646
22647 debug=false
22648 ac_cs_recheck=false
22649 ac_cs_silent=false
22650 SHELL=\${CONFIG_SHELL-$SHELL}
22651 _ACEOF
22652
22653 cat >>$CONFIG_STATUS <<\_ACEOF
22654 ## --------------------- ##
22655 ## M4sh Initialization.  ##
22656 ## --------------------- ##
22657
22658 # Be Bourne compatible
22659 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22660   emulate sh
22661   NULLCMD=:
22662   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22663   # is contrary to our usage.  Disable this feature.
22664   alias -g '${1+"$@"}'='"$@"'
22665   setopt NO_GLOB_SUBST
22666 elif test -n "${BASH_VERSION+set}${KSH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22667   set -o posix
22668 fi
22669 BIN_SH=xpg4; export BIN_SH # for Tru64
22670 DUALCASE=1; export DUALCASE # for MKS sh
22671
22672
22673 # PATH needs CR
22674 # Avoid depending upon Character Ranges.
22675 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22676 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22677 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22678 as_cr_digits='0123456789'
22679 as_cr_alnum=$as_cr_Letters$as_cr_digits
22680
22681 # The user is always right.
22682 if test "${PATH_SEPARATOR+set}" != set; then
22683   echo "#! /bin/sh" >conf$$.sh
22684   echo  "exit 0"   >>conf$$.sh
22685   chmod +x conf$$.sh
22686   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22687     PATH_SEPARATOR=';'
22688   else
22689     PATH_SEPARATOR=:
22690   fi
22691   rm -f conf$$.sh
22692 fi
22693
22694 # Support unset when possible.
22695 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22696   as_unset=unset
22697 else
22698   as_unset=false
22699 fi
22700
22701
22702 # Find who we are.  Look in the path if we contain no path at all
22703 # relative or not.
22704 case $0 in
22705   *[\\/]* ) as_myself=$0 ;;
22706   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22707 for as_dir in $PATH
22708 do
22709   IFS=$as_save_IFS
22710   test -z "$as_dir" && as_dir=.
22711   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22712 done
22713
22714      ;;
22715 esac
22716 # We did not find ourselves, most probably we were run as `sh COMMAND'
22717 # in which case we are not to be found in the path.
22718 if test "x$as_myself" = x; then
22719   as_myself=$0
22720 fi
22721 if test ! -f "$as_myself"; then
22722   # FIXME: next line outputs $as_me, which is still unset.
22723   { echo "$as_me: error: cannot find myself; rerun with an absolute file name" >&2
22724    { (exit 1); exit 1; }; }
22725 fi
22726
22727 # Work around bugs in pre-3.0 UWIN ksh.
22728 for as_var in ENV MAIL MAILPATH
22729 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22730 done
22731 PS1='$ '
22732 PS2='> '
22733 PS4='+ '
22734
22735 # NLS nuisances.
22736 for as_var in \
22737   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22738   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22739   LC_TELEPHONE LC_TIME
22740 do
22741   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22742     eval $as_var=C; export $as_var
22743   else
22744     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22745   fi
22746 done
22747
22748 # Required to use basename.
22749 if expr a : '\(a\)' >/dev/null 2>&1; then
22750   as_expr=expr
22751 else
22752   as_expr=false
22753 fi
22754
22755 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22756   as_basename=basename
22757 else
22758   as_basename=false
22759 fi
22760
22761
22762 # Name of the executable.
22763 as_me=`$as_basename "$0" ||
22764 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22765          X"$0" : 'X\(//\)$' \| \
22766          X"$0" : 'X\(/\)$' \| \
22767          .     : '\(.\)' 2>/dev/null ||
22768 echo X/"$0" |
22769     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22770           /^X\/\(\/\/\)$/{ s//\1/; q; }
22771           /^X\/\(\/\).*/{ s//\1/; q; }
22772           s/.*/./; q'`
22773
22774
22775
22776
22777   as_lineno_1=$LINENO
22778   as_lineno_2=$LINENO
22779   test "x$as_lineno_1" != "x$as_lineno_2" &&
22780   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22781
22782   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22783   # uniformly replaced by the line number.  The first 'sed' inserts a
22784   # line-number line after each line using $LINENO; the second 'sed'
22785   # does the real work.  The second script uses 'N' to pair each
22786   # line-number line with the line containing $LINENO, and appends
22787   # trailing '-' during substitution so that $LINENO is not a special
22788   # case at line end.
22789   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22790   # scripts with optimization help from Paolo Bonzini.  Blame Lee
22791   # E. McMahon (1931-1989) for sed's syntax.  :-)
22792   sed -n '
22793     p
22794     /[$]LINENO/=
22795   ' <$as_myself |
22796     sed '
22797       s,[$]LINENO.*,&-,
22798       t lineno
22799       b
22800       :lineno
22801       N
22802       :loop
22803       s,[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\),\2\1\2,
22804       t loop
22805       s,-\n.*,,
22806     ' >$as_me.lineno &&
22807   chmod +x $as_me.lineno ||
22808     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22809    { (exit 1); exit 1; }; }
22810
22811   # Don't try to exec as it changes $[0], causing all sort of problems
22812   # (the dirname of $[0] is not the place where we might find the
22813   # original and so on.  Autoconf is especially sensible to this).
22814   . ./$as_me.lineno
22815   # Exit status is that of the last command.
22816   exit
22817 }
22818
22819
22820 ECHO_C= ECHO_N= ECHO_T=
22821 case `echo -n x` in
22822 -n*)
22823   case `echo 'x\c'` in
22824   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
22825   *)   ECHO_C='\c';;
22826   esac;;
22827 *)
22828   ECHO_N='-n';;
22829 esac
22830
22831 if expr a : '\(a\)' >/dev/null 2>&1; then
22832   as_expr=expr
22833 else
22834   as_expr=false
22835 fi
22836
22837 rm -f conf$$ conf$$.exe conf$$.file
22838 echo >conf$$.file
22839 if ln -s conf$$.file conf$$ 2>/dev/null; then
22840   # We could just check for DJGPP; but this test a) works b) is more generic
22841   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22842   if test -f conf$$.exe; then
22843     # Don't use ln at all; we don't have any links
22844     as_ln_s='cp -p'
22845   else
22846     as_ln_s='ln -s'
22847   fi
22848 elif ln conf$$.file conf$$ 2>/dev/null; then
22849   as_ln_s=ln
22850 else
22851   as_ln_s='cp -p'
22852 fi
22853 rm -f conf$$ conf$$.exe conf$$.file
22854
22855 if mkdir -p . 2>/dev/null; then
22856   as_mkdir_p=:
22857 else
22858   test -d ./-p && rmdir ./-p
22859   as_mkdir_p=false
22860 fi
22861
22862 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
22863 # systems may use methods other than mode bits to determine executability.
22864 cat >conf$$.file <<_ASEOF
22865 #! /bin/sh
22866 exit 0
22867 _ASEOF
22868 chmod +x conf$$.file
22869 if test -x conf$$.file >/dev/null 2>&1; then
22870   as_executable_p="test -x"
22871 else
22872   as_executable_p=:
22873 fi
22874 rm -f conf$$.file
22875
22876 # Sed expression to map a string onto a valid CPP name.
22877 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22878
22879 # Sed expression to map a string onto a valid variable name.
22880 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22881
22882
22883 # IFS
22884 # We need space, tab and new line, in precisely that order.
22885 as_nl='
22886 '
22887 IFS="   $as_nl"
22888
22889 # CDPATH.
22890 $as_unset CDPATH
22891
22892 exec 6>&1
22893
22894 # Save the log message, to keep $[0] and so on meaningful, and to
22895 # report actual input values of CONFIG_FILES etc. instead of their
22896 # values after options handling.
22897 ac_log="
22898 This file was extended by libltdl $as_me 1.2, which was
22899 generated by GNU Autoconf 2.59c.  Invocation command line was
22900
22901   CONFIG_FILES    = $CONFIG_FILES
22902   CONFIG_HEADERS  = $CONFIG_HEADERS
22903   CONFIG_LINKS    = $CONFIG_LINKS
22904   CONFIG_COMMANDS = $CONFIG_COMMANDS
22905   $ $0 $@
22906
22907 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22908 "
22909
22910 _ACEOF
22911
22912 cat >>$CONFIG_STATUS <<_ACEOF
22913 # Files that config.status was made for.
22914 config_files="$ac_config_files"
22915 config_headers="$ac_config_headers"
22916 config_commands="$ac_config_commands"
22917
22918 _ACEOF
22919
22920 cat >>$CONFIG_STATUS <<\_ACEOF
22921 ac_cs_usage="\
22922 \`$as_me' instantiates files from templates according to the
22923 current configuration.
22924
22925 Usage: $0 [OPTIONS] [FILE]...
22926
22927   -h, --help       print this help, then exit
22928   -V, --version    print version number, then exit
22929   -q, --quiet      do not print progress messages
22930   -d, --debug      don't remove temporary files
22931       --recheck    update $as_me by reconfiguring in the same conditions
22932   --file=FILE[:TEMPLATE]
22933                    instantiate the configuration file FILE
22934   --header=FILE[:TEMPLATE]
22935                    instantiate the configuration header FILE
22936
22937 Configuration files:
22938 $config_files
22939
22940 Configuration headers:
22941 $config_headers
22942
22943 Configuration commands:
22944 $config_commands
22945
22946 Report bugs to <bug-autoconf@gnu.org>."
22947
22948 _ACEOF
22949 cat >>$CONFIG_STATUS <<_ACEOF
22950 ac_cs_version="\\
22951 libltdl config.status 1.2
22952 configured by $0, generated by GNU Autoconf 2.59c,
22953   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22954
22955 Copyright (C) 2005 Free Software Foundation, Inc.
22956 This config.status script is free software; the Free Software Foundation
22957 gives unlimited permission to copy, distribute and modify it."
22958
22959 ac_pwd='$ac_pwd'
22960 srcdir='$srcdir'
22961 INSTALL='$INSTALL'
22962
22963 _ACEOF
22964
22965 cat >>$CONFIG_STATUS <<\_ACEOF
22966 # If no file are specified by the user, then we need to provide default
22967 # value.  By we need to know if files were specified by the user.
22968 ac_need_defaults=:
22969 while test $# != 0
22970 do
22971   case $1 in
22972   --*=*)
22973     ac_option=`expr "X$1" : 'X\([^=]*\)='`
22974     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22975     ac_shift=:
22976     ;;
22977   *)
22978     ac_option=$1
22979     ac_optarg=$2
22980     ac_shift=shift
22981     ;;
22982   esac
22983
22984   case $ac_option in
22985   # Handling of the options.
22986   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22987     ac_cs_recheck=: ;;
22988   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22989     echo "$ac_cs_version"; exit ;;
22990   --debug | --debu | --deb | --de | --d | -d )
22991     debug=: ;;
22992   --file | --fil | --fi | --f )
22993     $ac_shift
22994     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22995     ac_need_defaults=false;;
22996   --header | --heade | --head | --hea )
22997     $ac_shift
22998     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22999     ac_need_defaults=false;;
23000   --he | --h)
23001     # Conflict between --help and --header
23002     { echo "$as_me: error: ambiguous option: $1
23003 Try \`$0 --help' for more information." >&2
23004    { (exit 1); exit 1; }; };;
23005   --help | --hel | -h )
23006     echo "$ac_cs_usage"; exit ;;
23007   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23008   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23009     ac_cs_silent=: ;;
23010
23011   # This is an error.
23012   -*) { echo "$as_me: error: unrecognized option: $1
23013 Try \`$0 --help' for more information." >&2
23014    { (exit 1); exit 1; }; } ;;
23015
23016   *) ac_config_targets="$ac_config_targets $1"
23017      ac_need_defaults=false ;;
23018
23019   esac
23020   shift
23021 done
23022
23023 ac_configure_extra_args=
23024
23025 if $ac_cs_silent; then
23026   exec 6>/dev/null
23027   ac_configure_extra_args="$ac_configure_extra_args --silent"
23028 fi
23029
23030 exec 5>>config.log
23031 {
23032   echo
23033   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23034 ## Running $as_me. ##
23035 _ASBOX
23036   echo "$ac_log"
23037 } >&5
23038
23039 _ACEOF
23040 cat >>$CONFIG_STATUS <<_ACEOF
23041 if \$ac_cs_recheck; then
23042   echo "running CONFIG_SHELL=$SHELL $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23043   CONFIG_SHELL=$SHELL
23044   export CONFIG_SHELL
23045   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23046 fi
23047 #
23048 # INIT-COMMANDS
23049 #
23050 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23051
23052 _ACEOF
23053
23054 cat >>$CONFIG_STATUS <<\_ACEOF
23055
23056 # Handling of arguments.
23057 for ac_config_target in $ac_config_targets
23058 do
23059   case $ac_config_target in
23060     config.h) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config-h.in" ;;
23061     depfiles) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23062     Makefile) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23063
23064   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23065 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23066    { (exit 1); exit 1; }; };;
23067   esac
23068 done
23069
23070
23071 # If the user did not use the arguments to specify the items to instantiate,
23072 # then the envvar interface is used.  Set only those that are not.
23073 # We use the long form for the default assignment because of an extremely
23074 # bizarre bug on SunOS 4.1.3.
23075 if $ac_need_defaults; then
23076   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23077   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23078   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23079 fi
23080
23081 # Have a temporary directory for convenience.  Make it in the build tree
23082 # simply because there is no reason against having it here, and in addition,
23083 # creating and moving files from /tmp can sometimes cause problems.
23084 # Hook for its removal unless debugging.
23085 # Note that there is a small window in which the directory will not be cleaned:
23086 # after its creation but before its name has been assigned to `$tmp'.
23087 $debug ||
23088 {
23089   tmp=
23090   trap 'exit_status=$?
23091   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23092 ' 0
23093   trap '{ (exit 1); exit 1; }' 1 2 13 15
23094 }
23095 # Create a (secure) tmp directory for tmp files.
23096
23097 {
23098   tmp=`(umask 077 && mktemp -d -q "./confXXXXXX") 2>/dev/null` &&
23099   test -n "$tmp" && test -d "$tmp"
23100 }  ||
23101 {
23102   tmp=./conf$$-$RANDOM
23103   (umask 077 && mkdir "$tmp")
23104 } ||
23105 {
23106    echo "$me: cannot create a temporary directory in ." >&2
23107    { (exit 1); exit 1; }
23108 }
23109
23110 #
23111 # Set up the sed scripts for CONFIG_FILES section.
23112 #
23113
23114 # No need to generate the scripts if there are no CONFIG_FILES.
23115 # This happens for instance when ./config.status config.h
23116 if test -n "$CONFIG_FILES"; then
23117
23118 _ACEOF
23119
23120
23121
23122 ac_delim='%!_!# '
23123 for ac_last_try in false false false false false :; do
23124   cat >conf$$subs.sed <<_ACEOF
23125 SHELL!$SHELL$ac_delim
23126 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23127 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23128 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23129 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23130 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23131 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23132 exec_prefix!$exec_prefix$ac_delim
23133 prefix!$prefix$ac_delim
23134 program_transform_name!$program_transform_name$ac_delim
23135 bindir!$bindir$ac_delim
23136 sbindir!$sbindir$ac_delim
23137 libexecdir!$libexecdir$ac_delim
23138 datarootdir!$datarootdir$ac_delim
23139 datadir!$datadir$ac_delim
23140 sysconfdir!$sysconfdir$ac_delim
23141 sharedstatedir!$sharedstatedir$ac_delim
23142 localstatedir!$localstatedir$ac_delim
23143 includedir!$includedir$ac_delim
23144 oldincludedir!$oldincludedir$ac_delim
23145 docdir!$docdir$ac_delim
23146 infodir!$infodir$ac_delim
23147 htmldir!$htmldir$ac_delim
23148 dvidir!$dvidir$ac_delim
23149 pdfdir!$pdfdir$ac_delim
23150 psdir!$psdir$ac_delim
23151 libdir!$libdir$ac_delim
23152 localedir!$localedir$ac_delim
23153 mandir!$mandir$ac_delim
23154 DEFS!$DEFS$ac_delim
23155 ECHO_C!$ECHO_C$ac_delim
23156 ECHO_N!$ECHO_N$ac_delim
23157 ECHO_T!$ECHO_T$ac_delim
23158 LIBS!$LIBS$ac_delim
23159 build_alias!$build_alias$ac_delim
23160 host_alias!$host_alias$ac_delim
23161 target_alias!$target_alias$ac_delim
23162 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23163 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23164 INSTALL_DATA!$INSTALL_DATA$ac_delim
23165 CYGPATH_W!$CYGPATH_W$ac_delim
23166 PACKAGE!$PACKAGE$ac_delim
23167 VERSION!$VERSION$ac_delim
23168 ACLOCAL!$ACLOCAL$ac_delim
23169 AUTOCONF!$AUTOCONF$ac_delim
23170 AUTOMAKE!$AUTOMAKE$ac_delim
23171 AUTOHEADER!$AUTOHEADER$ac_delim
23172 MAKEINFO!$MAKEINFO$ac_delim
23173 install_sh!$install_sh$ac_delim
23174 STRIP!$STRIP$ac_delim
23175 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
23176 mkdir_p!$mkdir_p$ac_delim
23177 AWK!$AWK$ac_delim
23178 SET_MAKE!$SET_MAKE$ac_delim
23179 am__leading_dot!$am__leading_dot$ac_delim
23180 AMTAR!$AMTAR$ac_delim
23181 am__tar!$am__tar$ac_delim
23182 am__untar!$am__untar$ac_delim
23183 CC!$CC$ac_delim
23184 CFLAGS!$CFLAGS$ac_delim
23185 LDFLAGS!$LDFLAGS$ac_delim
23186 CPPFLAGS!$CPPFLAGS$ac_delim
23187 ac_ct_CC!$ac_ct_CC$ac_delim
23188 EXEEXT!$EXEEXT$ac_delim
23189 OBJEXT!$OBJEXT$ac_delim
23190 DEPDIR!$DEPDIR$ac_delim
23191 am__include!$am__include$ac_delim
23192 am__quote!$am__quote$ac_delim
23193 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
23194 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
23195 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
23196 CCDEPMODE!$CCDEPMODE$ac_delim
23197 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
23198 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
23199 build!$build$ac_delim
23200 build_cpu!$build_cpu$ac_delim
23201 build_vendor!$build_vendor$ac_delim
23202 build_os!$build_os$ac_delim
23203 host!$host$ac_delim
23204 host_cpu!$host_cpu$ac_delim
23205 host_vendor!$host_vendor$ac_delim
23206 host_os!$host_os$ac_delim
23207 GREP!$GREP$ac_delim
23208 EGREP!$EGREP$ac_delim
23209 LN_S!$LN_S$ac_delim
23210 ECHO!$ECHO$ac_delim
23211 AR!$AR$ac_delim
23212 RANLIB!$RANLIB$ac_delim
23213 DLLTOOL!$DLLTOOL$ac_delim
23214 AS!$AS$ac_delim
23215 OBJDUMP!$OBJDUMP$ac_delim
23216 CPP!$CPP$ac_delim
23217 CXX!$CXX$ac_delim
23218 CXXFLAGS!$CXXFLAGS$ac_delim
23219 ac_ct_CXX!$ac_ct_CXX$ac_delim
23220 CXXDEPMODE!$CXXDEPMODE$ac_delim
23221 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
23222 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
23223 _ACEOF
23224
23225   if test `grep -c "$ac_delim\$" conf$$subs.sed` = 98; then
23226     break
23227   elif $ac_last_try; then
23228     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23229 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23230    { (exit 1); exit 1; }; }
23231   else
23232     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23233   fi
23234 done
23235
23236 ac_eof=
23237 if grep '^CEOF$' conf$$subs.sed >/dev/null; then
23238   ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF//p' conf$$subs.sed | sort -nru | sed 1q`
23239   ac_eof=`expr 0$ac_eof + 1`
23240 fi
23241
23242 cat >>$CONFIG_STATUS <<_ACEOF
23243 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23244 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23245 _ACEOF
23246 sed '
23247 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23248 s/^/s,@/; s/!/@,|#_!!_#|/
23249 :n
23250 t n
23251 s/'"$ac_delim"'$/,g/; t
23252 s/$/\\/; p
23253 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23254 ' >>$CONFIG_STATUS <conf$$subs.sed
23255 rm -f conf$$subs.sed
23256 cat >>$CONFIG_STATUS <<_ACEOF
23257 CEOF$ac_eof
23258 _ACEOF
23259
23260
23261 ac_delim='%!_!# '
23262 for ac_last_try in false false false false false :; do
23263   cat >conf$$subs.sed <<_ACEOF
23264 CXXCPP!$CXXCPP$ac_delim
23265 F77!$F77$ac_delim
23266 FFLAGS!$FFLAGS$ac_delim
23267 ac_ct_F77!$ac_ct_F77$ac_delim
23268 LIBTOOL!$LIBTOOL$ac_delim
23269 LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
23270 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23271 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23272 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23273 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23274 LIBADD_DL!$LIBADD_DL$ac_delim
23275 LIBOBJS!$LIBOBJS$ac_delim
23276 LTLIBOBJS!$LTLIBOBJS$ac_delim
23277 _ACEOF
23278
23279   if test `grep -c "$ac_delim\$" conf$$subs.sed` = 13; then
23280     break
23281   elif $ac_last_try; then
23282     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23283 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23284    { (exit 1); exit 1; }; }
23285   else
23286     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23287   fi
23288 done
23289
23290 ac_eof=
23291 if grep '^CEOF$' conf$$subs.sed >/dev/null; then
23292   ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF//p' conf$$subs.sed | sort -nru | sed 1q`
23293   ac_eof=`expr 0$ac_eof + 1`
23294 fi
23295
23296 cat >>$CONFIG_STATUS <<_ACEOF
23297 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23298 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23299 _ACEOF
23300 sed '
23301 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23302 s/^/s,@/; s/!/@,|#_!!_#|/
23303 :n
23304 t n
23305 s/'"$ac_delim"'$/,g/; t
23306 s/$/\\/; p
23307 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23308 ' >>$CONFIG_STATUS <conf$$subs.sed
23309 rm -f conf$$subs.sed
23310 cat >>$CONFIG_STATUS <<_ACEOF
23311 :end
23312 s/|#_!!_#|//g
23313 CEOF$ac_eof
23314 _ACEOF
23315
23316
23317 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23318 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23319 # trailing colons and then remove the whole line if VPATH becomes empty
23320 # (actually we leave an empty line to preserve line numbers).
23321 if test "x$srcdir" = x.; then
23322   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23323 s/:*\$(srcdir):*/:/;
23324 s/:*\${srcdir}:*/:/;
23325 s/:*@srcdir@:*/:/;
23326 s/^\([^=]*=[     ]*\):*/\1/;
23327 s/:*$//;
23328 s/^[^=]*=[       ]*$//;
23329 }'
23330 fi
23331
23332 cat >>$CONFIG_STATUS <<\_ACEOF
23333 fi # test -n "$CONFIG_FILES"
23334
23335
23336 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
23337 do
23338   case $ac_tag in
23339   :[FHLC]) ac_mode=$ac_tag; continue;;
23340   esac
23341   case $ac_mode$ac_tag in
23342   :[FHL]*:*);;
23343   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23344 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23345    { (exit 1); exit 1; }; };;
23346   :[FH]-) ac_tag=-:-;;
23347   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23348   esac
23349   ac_save_IFS=$IFS
23350   IFS=:
23351   set x $ac_tag
23352   IFS=$ac_save_IFS
23353   shift
23354   ac_file=$1
23355   shift
23356
23357   case $ac_mode in
23358   :L) ac_source=$1;;
23359   :[FH])
23360     ac_file_inputs=
23361     for ac_f
23362     do
23363       case $ac_f in
23364       -) ac_f="$tmp/stdin";;
23365       *) # Look for the file first in the build tree, then in the source tree
23366          # (if the path is not absolute).  The absolute path cannot be DOS-style,
23367          # because $ac_f cannot contain `:'.
23368          test -f "$ac_f" ||
23369            case $ac_f in
23370            [\\/$]*) false;;
23371            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23372            esac ||
23373            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23374 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23375    { (exit 1); exit 1; }; };;
23376       esac
23377       ac_file_inputs="$ac_file_inputs $ac_f"
23378     done
23379
23380     # Let's still pretend it is `configure' which instantiates (i.e., don't
23381     # use $as_me), people would be surprised to read:
23382     #    /* config.h.  Generated by config.status.  */
23383     configure_input="Generated from "`IFS=:
23384           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23385     if test x"$ac_file" != x-; then
23386       configure_input="$ac_file.  $configure_input"
23387       { echo "$as_me:$LINENO: creating $ac_file" >&5
23388 echo "$as_me: creating $ac_file" >&6;}
23389     fi
23390
23391     case $ac_tag in
23392     *:-:* | *:-) cat >"$tmp/stdin";;
23393     esac
23394     ;;
23395   esac
23396
23397   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23398 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23399          X"$ac_file" : 'X\(//\)[^/]' \| \
23400          X"$ac_file" : 'X\(//\)$' \| \
23401          X"$ac_file" : 'X\(/\)' \| \
23402          .     : '\(.\)' 2>/dev/null ||
23403 echo X"$ac_file" |
23404     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23405           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23406           /^X\(\/\/\)$/{ s//\1/; q; }
23407           /^X\(\/\).*/{ s//\1/; q; }
23408           s/.*/./; q'`
23409   { if $as_mkdir_p; then
23410     test -d "$ac_dir" || mkdir -p "$ac_dir"
23411   else
23412     as_dir="$ac_dir"
23413     as_dirs=
23414     while test ! -d "$as_dir"; do
23415       as_dirs="$as_dir $as_dirs"
23416       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23417 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23418          X"$as_dir" : 'X\(//\)[^/]' \| \
23419          X"$as_dir" : 'X\(//\)$' \| \
23420          X"$as_dir" : 'X\(/\)' \| \
23421          .     : '\(.\)' 2>/dev/null ||
23422 echo X"$as_dir" |
23423     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23424           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23425           /^X\(\/\/\)$/{ s//\1/; q; }
23426           /^X\(\/\).*/{ s//\1/; q; }
23427           s/.*/./; q'`
23428     done
23429     test ! -n "$as_dirs" || mkdir $as_dirs
23430   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23431 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23432    { (exit 1); exit 1; }; }; }
23433
23434   ac_builddir=.
23435
23436 case "$ac_dir" in
23437 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23438 *)
23439   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23440   # A ".." for each directory in $ac_dir_suffix.
23441   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23442   case $ac_top_builddir_sub in
23443   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23444   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23445   esac ;;
23446 esac
23447 ac_abs_top_builddir=$ac_pwd
23448 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23449 # for backward compatibility:
23450 ac_top_builddir=$ac_top_build_prefix
23451
23452 case $srcdir in
23453   .)  # We are building in place.
23454     ac_srcdir=.
23455     ac_top_srcdir=$ac_top_builddir_sub
23456     ac_abs_top_srcdir=$ac_pwd ;;
23457   [\\/]* | ?:[\\/]* )  # Absolute name.
23458     ac_srcdir=$srcdir$ac_dir_suffix;
23459     ac_top_srcdir=$srcdir
23460     ac_abs_top_srcdir=$srcdir ;;
23461   *) # Relative name.
23462     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23463     ac_top_srcdir=$ac_top_build_prefix$srcdir
23464     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23465 esac
23466 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23467
23468
23469   case $ac_mode in
23470   :F)
23471   #
23472   # CONFIG_FILE
23473   #
23474
23475   case $INSTALL in
23476   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23477   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23478   esac
23479
23480 _ACEOF
23481
23482 # Neutralize VPATH when `$srcdir' = `.'.
23483 # Shell code in configure.ac might set extrasub.
23484 # FIXME: do we really want to maintain this feature?
23485 cat >>$CONFIG_STATUS <<_ACEOF
23486   sed "$ac_vpsub
23487 $extrasub
23488 _ACEOF
23489 cat >>$CONFIG_STATUS <<\_ACEOF
23490 :t
23491 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23492 s&@configure_input@&$configure_input&;t t
23493 s&@top_builddir@&$ac_top_builddir_sub&;t t
23494 s&@srcdir@&$ac_srcdir&;t t
23495 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23496 s&@top_srcdir@&$ac_top_srcdir&;t t
23497 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23498 s&@builddir@&$ac_builddir&;t t
23499 s&@abs_builddir@&$ac_abs_builddir&;t t
23500 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23501 s&@INSTALL@&$ac_INSTALL&;t t
23502 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
23503
23504   rm -f "$tmp/stdin"
23505   case $ac_file in
23506   -) cat "$tmp/out"; rm -f "$tmp/out";;
23507   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23508   esac
23509  ;;
23510   :H)
23511   #
23512   # CONFIG_HEADER
23513   #
23514
23515   # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23516   # NAME is the cpp macro being defined, VALUE is the value it is being given.
23517   # PARAMS is the parameter list in the macro definition--in most cases, it's
23518   # just an empty string.
23519   #
23520   ac_dA='s,^\([  ]*#[    ]*\)[^  ]*\([   ][      ]*'
23521   ac_dB='\)[    (].*$,\1define\2'
23522   ac_dC=' '
23523   ac_dD=' ,'
23524
23525   ac_word_regexp=[_$as_cr_Letters][_$as_cr_alnum]*
23526 _ACEOF
23527
23528 # Transform confdefs.h into a sed script `conftest.defines', that
23529 # substitutes the proper values into config.h.in to produce config.h.
23530 rm -f conftest.defines conftest.tail
23531 # First, append a space to every undef/define line, to ease matching.
23532 echo 's/$/ /' >conftest.defines
23533 # Then, protect against being on the right side of a sed subst, or in
23534 # an unquoted here document, in config.status.  If some macros were
23535 # called several times there might be several #defines for the same
23536 # symbol, which is useless.  But do not sort them, since the last
23537 # AC_DEFINE must be honored.
23538 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23539 uniq confdefs.h |
23540   sed -n '
23541         t rset
23542         :rset
23543         s/^[    ]*#[    ]*define[       ][       ]*//
23544         t ok
23545         d
23546         :ok
23547         s/[\\&,]/\\&/g
23548         s/[\\$`]/\\&/g
23549         s/^\('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/${ac_dA}\1$ac_dB\2${ac_dC}\3$ac_dD/p
23550         s/^\('"$ac_word_re"'\)[         ]*\(.*\)/${ac_dA}\1$ac_dB${ac_dC}\2$ac_dD/p
23551   ' >>conftest.defines
23552
23553 # Remove the space that was appended to ease matching.
23554 # Then replace #undef with comments.  This is necessary, for
23555 # example, in the case of _POSIX_SOURCE, which is predefined and required
23556 # on some systems where configure will not decide to define it.
23557 # (The regexp can be short, since the line contains either #define or #undef.)
23558 echo 's/ $//
23559 s,^[     #]*u.*,/* & */,' >>conftest.defines
23560
23561 # Break up conftest.defines:
23562 ac_max_sed_lines=97
23563
23564 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23565 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23566 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23567 # et cetera.
23568 ac_in='$ac_file_inputs'
23569 ac_out='"$tmp/out1"'
23570 ac_nxt='"$tmp/out2"'
23571
23572 while :
23573 do
23574   # Write a here document:
23575     echo '    # First, check the format of the line:
23576     cat >"$tmp/defines.sed" <<CEOF
23577 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_regexp[     ]*$/!{
23578 /^[      ]*#[    ]*define[       ][      ]*$ac_word_regexp[(    ]/!b
23579 }' >>$CONFIG_STATUS
23580   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23581   echo 'CEOF
23582     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23583   ac_in=$ac_out ac_out=$ac_nxt ac_nxt=$ac_in
23584   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23585   grep . conftest.tail >/dev/null || break
23586   rm -f conftest.defines
23587   mv conftest.tail conftest.defines
23588 done
23589 rm -f conftest.defines conftest.tail
23590
23591 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23592 cat >>$CONFIG_STATUS <<\_ACEOF
23593   if test x"$ac_file" != x-; then
23594     echo "/* $configure_input  */" >"$tmp/config.h"
23595     cat "$ac_result" >>"$tmp/config.h"
23596     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23597       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23598 echo "$as_me: $ac_file is unchanged" >&6;}
23599     else
23600       rm -f $ac_file
23601       mv "$tmp/config.h" $ac_file
23602     fi
23603   else
23604     echo "/* $configure_input  */"
23605     cat "$ac_result"
23606   fi
23607   rm -f "$tmp/out12"
23608 # Compute $ac_file's index in $config_headers.
23609 _am_stamp_count=1
23610 for _am_header in $config_headers :; do
23611   case $_am_header in
23612     $ac_file | $ac_file:* )
23613       break ;;
23614     * )
23615       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23616   esac
23617 done
23618 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
23619 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23620          X$ac_file : 'X\(//\)[^/]' \| \
23621          X$ac_file : 'X\(//\)$' \| \
23622          X$ac_file : 'X\(/\)' \| \
23623          .     : '\(.\)' 2>/dev/null ||
23624 echo X$ac_file |
23625     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23626           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23627           /^X\(\/\/\)$/{ s//\1/; q; }
23628           /^X\(\/\).*/{ s//\1/; q; }
23629           s/.*/./; q'`/stamp-h$_am_stamp_count
23630  ;;
23631
23632   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23633 echo "$as_me: executing $ac_file commands" >&6;}
23634  ;;
23635   esac
23636
23637
23638   case $ac_file$ac_mode in
23639     depfiles:C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23640   # Strip MF so we end up with the name of the file.
23641   mf=`echo "$mf" | sed -e 's/:.*$//'`
23642   # Check whether this is an Automake generated Makefile or not.
23643   # We used to match only the files named `Makefile.in', but
23644   # some people rename them; so instead we look at the file content.
23645   # Grep'ing the first line is not enough: some people post-process
23646   # each Makefile.in and add a new line on top of each file to say so.
23647   # So let's grep whole file.
23648   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23649     dirpart=`(dirname "$mf") 2>/dev/null ||
23650 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23651          X"$mf" : 'X\(//\)[^/]' \| \
23652          X"$mf" : 'X\(//\)$' \| \
23653          X"$mf" : 'X\(/\)' \| \
23654          .     : '\(.\)' 2>/dev/null ||
23655 echo X"$mf" |
23656     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23657           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23658           /^X\(\/\/\)$/{ s//\1/; q; }
23659           /^X\(\/\).*/{ s//\1/; q; }
23660           s/.*/./; q'`
23661   else
23662     continue
23663   fi
23664   # Extract the definition of DEPDIR, am__include, and am__quote
23665   # from the Makefile without running `make'.
23666   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23667   test -z "$DEPDIR" && continue
23668   am__include=`sed -n 's/^am__include = //p' < "$mf"`
23669   test -z "am__include" && continue
23670   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23671   # When using ansi2knr, U may be empty or an underscore; expand it
23672   U=`sed -n 's/^U = //p' < "$mf"`
23673   # Find all dependency output files, they are included files with
23674   # $(DEPDIR) in their names.  We invoke sed twice because it is the
23675   # simplest approach to changing $(DEPDIR) to its actual value in the
23676   # expansion.
23677   for file in `sed -n "
23678     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23679        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23680     # Make sure the directory exists.
23681     test -f "$dirpart/$file" && continue
23682     fdir=`(dirname "$file") 2>/dev/null ||
23683 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23684          X"$file" : 'X\(//\)[^/]' \| \
23685          X"$file" : 'X\(//\)$' \| \
23686          X"$file" : 'X\(/\)' \| \
23687          .     : '\(.\)' 2>/dev/null ||
23688 echo X"$file" |
23689     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23690           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23691           /^X\(\/\/\)$/{ s//\1/; q; }
23692           /^X\(\/\).*/{ s//\1/; q; }
23693           s/.*/./; q'`
23694     { if $as_mkdir_p; then
23695     test -d $dirpart/$fdir || mkdir -p $dirpart/$fdir
23696   else
23697     as_dir=$dirpart/$fdir
23698     as_dirs=
23699     while test ! -d "$as_dir"; do
23700       as_dirs="$as_dir $as_dirs"
23701       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23702 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23703          X"$as_dir" : 'X\(//\)[^/]' \| \
23704          X"$as_dir" : 'X\(//\)$' \| \
23705          X"$as_dir" : 'X\(/\)' \| \
23706          .     : '\(.\)' 2>/dev/null ||
23707 echo X"$as_dir" |
23708     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23709           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23710           /^X\(\/\/\)$/{ s//\1/; q; }
23711           /^X\(\/\).*/{ s//\1/; q; }
23712           s/.*/./; q'`
23713     done
23714     test ! -n "$as_dirs" || mkdir $as_dirs
23715   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
23716 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
23717    { (exit 1); exit 1; }; }; }
23718
23719     # echo "creating $dirpart/$file"
23720     echo '# dummy' > "$dirpart/$file"
23721   done
23722 done
23723  ;;
23724
23725   esac
23726 done # for ac_tag
23727
23728
23729 { (exit 0); exit 0; }
23730 _ACEOF
23731 chmod +x $CONFIG_STATUS
23732 ac_clean_files=$ac_clean_files_save
23733
23734
23735 # configure is writing to config.log, and then calls config.status.
23736 # config.status does its own redirection, appending to config.log.
23737 # Unfortunately, on DOS this fails, as config.log is still kept open
23738 # by configure, so config.status won't be able to write to it; its
23739 # output is simply discarded.  So we exec the FD to /dev/null,
23740 # effectively closing config.log, so it can be properly (re)opened and
23741 # appended to by config.status.  When coming back to configure, we
23742 # need to make the FD available again.
23743 if test "$no_create" != yes; then
23744   ac_cs_success=:
23745   ac_config_status_args=
23746   test "$silent" = yes &&
23747     ac_config_status_args="$ac_config_status_args --quiet"
23748   exec 5>/dev/null
23749   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23750   exec 5>>config.log
23751   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23752   # would make configure fail if this is the last instruction.
23753   $ac_cs_success || { (exit 1); exit 1; }
23754 fi
23755