Build libtool from source.
[msysgit.git] / share / libtool / libltdl / configure
blob65e9e4870d2731f367169ba83589b9c58657a320
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for libltdl 1.2.
5 # Report bugs to <bug-libtool@gnu.org>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 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 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
52 rm -f conf$$.sh
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58 else
59 as_unset=false
63 # IFS
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
70 IFS=" "" $as_nl"
72 # Find who we are. Look in the path if we contain no directory separator.
73 case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89 as_myself=$0
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
104 # NLS nuisances.
105 for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 done
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121 else
122 as_expr=false
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127 else
128 as_basename=false
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
142 /^X\/\(\/\/\)$/{
143 s//\1/
146 /^X\/\(\/\).*/{
147 s//\1/
150 s/.*/./; q'`
152 # CDPATH.
153 $as_unset CDPATH
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159 else
160 as_have_required=no
163 if test $as_have_required = yes && (eval ":
164 (as_func_return () {
165 (exit \$1)
167 as_func_success () {
168 as_func_return 0
170 as_func_failure () {
171 as_func_return 1
173 as_func_ret_success () {
174 return 0
176 as_func_ret_failure () {
177 return 1
180 exitcode=0
181 if as_func_success; then
183 else
184 exitcode=1
185 echo as_func_success failed.
188 if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
195 else
196 exitcode=1
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 else
208 exitcode=1
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
221 else
222 as_candidate_shells=
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
228 case $as_dir in
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234 done
235 IFS=$as_save_IFS
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249 else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252 esac
258 _ASEOF
259 }; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270 else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273 esac
279 (as_func_return () {
280 (exit $1)
282 as_func_success () {
283 as_func_return 0
285 as_func_failure () {
286 as_func_return 1
288 as_func_ret_success () {
289 return 0
291 as_func_ret_failure () {
292 return 1
295 exitcode=0
296 if as_func_success; then
298 else
299 exitcode=1
300 echo as_func_success failed.
303 if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
308 if as_func_ret_success; then
310 else
311 exitcode=1
312 echo as_func_ret_success failed.
315 if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 else
323 exitcode=1
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335 _ASEOF
336 }; then
337 break
342 done
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
368 (eval "as_func_return () {
369 (exit \$1)
371 as_func_success () {
372 as_func_return 0
374 as_func_failure () {
375 as_func_return 1
377 as_func_ret_success () {
378 return 0
380 as_func_ret_failure () {
381 return 1
384 exitcode=0
385 if as_func_success; then
387 else
388 exitcode=1
389 echo as_func_success failed.
392 if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
399 else
400 exitcode=1
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 else
412 exitcode=1
413 echo positional parameters were not saved.
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
420 echo message
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
442 /[$]LINENO/=
443 ' <$as_myself |
444 sed '
445 s/[$]LINENO.*/&-/
446 t lineno
448 :lineno
450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 t loop
453 s/-\n.*//
454 ' >$as_me.lineno &&
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
463 # Exit status is that of the last command.
464 exit
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470 else
471 as_dirname=false
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
482 ECHO_N='-n';;
483 esac
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 as_expr=expr
488 else
489 as_expr=false
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495 else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507 as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510 else
511 as_ln_s='cp -p'
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
516 if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518 else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
523 if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525 else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
544 as_executable_p=$as_test_x
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
558 case X$ECHO in
559 X*--fallback-echo)
560 # Remove one level of quotation (which was required for Make).
561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
563 esac
565 echo=${ECHO-echo}
566 if test "X$1" = X--no-reexec; then
567 # Discard the --no-reexec flag, and continue.
568 shift
569 elif test "X$1" = X--fallback-echo; then
570 # Avoid inline document here, it may be left over
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $echo works!
575 else
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
580 if test "X$1" = X--fallback-echo; then
581 # used as fallback echo
582 shift
583 cat <<EOF
586 exit 0
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
590 # if CDPATH is set.
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599 echo_test_string=`eval $cmd` &&
600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601 then
602 break
604 done
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
611 else
612 # The Solaris, AIX, and Digital Unix default echo programs unquote
613 # backslashes. This makes it impossible to quote backslashes using
614 # echo "$something" | sed 's/\\/\\\\/g'
616 # So, first we look for a working echo in the user's PATH.
618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619 for dir in $PATH /usr/ucb; do
620 IFS="$lt_save_ifs"
621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624 test "X$echo_testing_string" = "X$echo_test_string"; then
625 echo="$dir/echo"
626 break
628 done
629 IFS="$lt_save_ifs"
631 if test "X$echo" = Xecho; then
632 # We didn't find a better echo, so look for alternatives.
633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 # This shell has a builtin print -r that does the trick.
637 echo='print -r'
638 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639 test "X$CONFIG_SHELL" != X/bin/ksh; then
640 # If we have ksh, try running configure again with it.
641 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642 export ORIGINAL_CONFIG_SHELL
643 CONFIG_SHELL=/bin/ksh
644 export CONFIG_SHELL
645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646 else
647 # Try using printf.
648 echo='printf %s\n'
649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
652 # Cool, printf works
654 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655 test "X$echo_testing_string" = 'X\t' &&
656 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659 export CONFIG_SHELL
660 SHELL="$CONFIG_SHELL"
661 export SHELL
662 echo="$CONFIG_SHELL $0 --fallback-echo"
663 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664 test "X$echo_testing_string" = 'X\t' &&
665 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666 test "X$echo_testing_string" = "X$echo_test_string"; then
667 echo="$CONFIG_SHELL $0 --fallback-echo"
668 else
669 # maybe with a smaller string...
670 prev=:
672 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674 then
675 break
677 prev="$cmd"
678 done
680 if test "$prev" != 'sed 50q "$0"'; then
681 echo_test_string=`eval $prev`
682 export echo_test_string
683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684 else
685 # Oops. We lost completely, so just stick with echo.
686 echo=echo
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
696 ECHO=$echo
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
704 tagnames=${tagnames+${tagnames},}CXX
706 tagnames=${tagnames+${tagnames},}F77
708 exec 7<&0 </dev/null 6>&1
710 # Name of the host.
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
716 # Initializations.
718 ac_default_prefix=/usr/local
719 ac_clean_files=
720 ac_config_libobj_dir=.
721 LIBOBJS=
722 cross_compiling=no
723 subdirs=
724 MFLAGS=
725 MAKEFLAGS=
726 SHELL=${CONFIG_SHELL-/bin/sh}
728 # Identity of this package.
729 PACKAGE_NAME='libltdl'
730 PACKAGE_TARNAME='libltdl'
731 PACKAGE_VERSION='1.2'
732 PACKAGE_STRING='libltdl 1.2'
733 PACKAGE_BUGREPORT='bug-libtool@gnu.org'
735 ac_unique_file="ltdl.c"
736 # Factoring default headers for most tests.
737 ac_includes_default="\
738 #include <stdio.h>
739 #ifdef HAVE_SYS_TYPES_H
740 # include <sys/types.h>
741 #endif
742 #ifdef HAVE_SYS_STAT_H
743 # include <sys/stat.h>
744 #endif
745 #ifdef STDC_HEADERS
746 # include <stdlib.h>
747 # include <stddef.h>
748 #else
749 # ifdef HAVE_STDLIB_H
750 # include <stdlib.h>
751 # endif
752 #endif
753 #ifdef HAVE_STRING_H
754 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
755 # include <memory.h>
756 # endif
757 # include <string.h>
758 #endif
759 #ifdef HAVE_STRINGS_H
760 # include <strings.h>
761 #endif
762 #ifdef HAVE_INTTYPES_H
763 # include <inttypes.h>
764 #endif
765 #ifdef HAVE_STDINT_H
766 # include <stdint.h>
767 #endif
768 #ifdef HAVE_UNISTD_H
769 # include <unistd.h>
770 #endif"
772 ac_subst_vars='SHELL
773 PATH_SEPARATOR
774 PACKAGE_NAME
775 PACKAGE_TARNAME
776 PACKAGE_VERSION
777 PACKAGE_STRING
778 PACKAGE_BUGREPORT
779 exec_prefix
780 prefix
781 program_transform_name
782 bindir
783 sbindir
784 libexecdir
785 datarootdir
786 datadir
787 sysconfdir
788 sharedstatedir
789 localstatedir
790 includedir
791 oldincludedir
792 docdir
793 infodir
794 htmldir
795 dvidir
796 pdfdir
797 psdir
798 libdir
799 localedir
800 mandir
801 DEFS
802 ECHO_C
803 ECHO_N
804 ECHO_T
805 LIBS
806 build_alias
807 host_alias
808 target_alias
809 INSTALL_PROGRAM
810 INSTALL_SCRIPT
811 INSTALL_DATA
812 am__isrc
813 CYGPATH_W
814 PACKAGE
815 VERSION
816 ACLOCAL
817 AUTOCONF
818 AUTOMAKE
819 AUTOHEADER
820 MAKEINFO
821 install_sh
822 STRIP
823 INSTALL_STRIP_PROGRAM
824 mkdir_p
826 SET_MAKE
827 am__leading_dot
828 AMTAR
829 am__tar
830 am__untar
832 CFLAGS
833 LDFLAGS
834 CPPFLAGS
835 ac_ct_CC
836 EXEEXT
837 OBJEXT
838 DEPDIR
839 am__include
840 am__quote
841 AMDEP_TRUE
842 AMDEP_FALSE
843 AMDEPBACKSLASH
844 CCDEPMODE
845 am__fastdepCC_TRUE
846 am__fastdepCC_FALSE
847 build
848 build_cpu
849 build_vendor
850 build_os
851 host
852 host_cpu
853 host_vendor
854 host_os
856 GREP
857 EGREP
858 LN_S
859 ECHO
861 RANLIB
862 DLLTOOL
864 OBJDUMP
867 CXXFLAGS
868 ac_ct_CXX
869 CXXDEPMODE
870 am__fastdepCXX_TRUE
871 am__fastdepCXX_FALSE
872 CXXCPP
874 FFLAGS
875 ac_ct_F77
876 LIBTOOL
877 LIBTOOL_DEPS
878 INSTALL_LTDL_TRUE
879 INSTALL_LTDL_FALSE
880 CONVENIENCE_LTDL_TRUE
881 CONVENIENCE_LTDL_FALSE
882 LIBADD_DL
883 LIBOBJS
884 LTLIBOBJS'
885 ac_subst_files=''
886 ac_precious_vars='build_alias
887 host_alias
888 target_alias
890 CFLAGS
891 LDFLAGS
892 LIBS
893 CPPFLAGS
896 CXXFLAGS
898 CXXCPP
900 FFLAGS'
903 # Initialize some variables set by options.
904 ac_init_help=
905 ac_init_version=false
906 # The variables have the same names as the options, with
907 # dashes changed to underlines.
908 cache_file=/dev/null
909 exec_prefix=NONE
910 no_create=
911 no_recursion=
912 prefix=NONE
913 program_prefix=NONE
914 program_suffix=NONE
915 program_transform_name=s,x,x,
916 silent=
917 site=
918 srcdir=
919 verbose=
920 x_includes=NONE
921 x_libraries=NONE
923 # Installation directory options.
924 # These are left unexpanded so users can "make install exec_prefix=/foo"
925 # and all the variables that are supposed to be based on exec_prefix
926 # by default will actually change.
927 # Use braces instead of parens because sh, perl, etc. also accept them.
928 # (The list follows the same order as the GNU Coding Standards.)
929 bindir='${exec_prefix}/bin'
930 sbindir='${exec_prefix}/sbin'
931 libexecdir='${exec_prefix}/libexec'
932 datarootdir='${prefix}/share'
933 datadir='${datarootdir}'
934 sysconfdir='${prefix}/etc'
935 sharedstatedir='${prefix}/com'
936 localstatedir='${prefix}/var'
937 includedir='${prefix}/include'
938 oldincludedir='/usr/include'
939 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
940 infodir='${datarootdir}/info'
941 htmldir='${docdir}'
942 dvidir='${docdir}'
943 pdfdir='${docdir}'
944 psdir='${docdir}'
945 libdir='${exec_prefix}/lib'
946 localedir='${datarootdir}/locale'
947 mandir='${datarootdir}/man'
949 ac_prev=
950 ac_dashdash=
951 for ac_option
953 # If the previous option needs an argument, assign it.
954 if test -n "$ac_prev"; then
955 eval $ac_prev=\$ac_option
956 ac_prev=
957 continue
960 case $ac_option in
961 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
962 *) ac_optarg=yes ;;
963 esac
965 # Accept the important Cygnus configure options, so we can diagnose typos.
967 case $ac_dashdash$ac_option in
969 ac_dashdash=yes ;;
971 -bindir | --bindir | --bindi | --bind | --bin | --bi)
972 ac_prev=bindir ;;
973 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
974 bindir=$ac_optarg ;;
976 -build | --build | --buil | --bui | --bu)
977 ac_prev=build_alias ;;
978 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
979 build_alias=$ac_optarg ;;
981 -cache-file | --cache-file | --cache-fil | --cache-fi \
982 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
983 ac_prev=cache_file ;;
984 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
985 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
986 cache_file=$ac_optarg ;;
988 --config-cache | -C)
989 cache_file=config.cache ;;
991 -datadir | --datadir | --datadi | --datad)
992 ac_prev=datadir ;;
993 -datadir=* | --datadir=* | --datadi=* | --datad=*)
994 datadir=$ac_optarg ;;
996 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
997 | --dataroo | --dataro | --datar)
998 ac_prev=datarootdir ;;
999 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1000 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1001 datarootdir=$ac_optarg ;;
1003 -disable-* | --disable-*)
1004 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1005 # Reject names that are not valid shell variable names.
1006 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1007 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1008 { (exit 1); exit 1; }; }
1009 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1010 eval enable_$ac_feature=no ;;
1012 -docdir | --docdir | --docdi | --doc | --do)
1013 ac_prev=docdir ;;
1014 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1015 docdir=$ac_optarg ;;
1017 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1018 ac_prev=dvidir ;;
1019 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1020 dvidir=$ac_optarg ;;
1022 -enable-* | --enable-*)
1023 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1024 # Reject names that are not valid shell variable names.
1025 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1026 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1027 { (exit 1); exit 1; }; }
1028 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1029 eval enable_$ac_feature=\$ac_optarg ;;
1031 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1032 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1033 | --exec | --exe | --ex)
1034 ac_prev=exec_prefix ;;
1035 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1036 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1037 | --exec=* | --exe=* | --ex=*)
1038 exec_prefix=$ac_optarg ;;
1040 -gas | --gas | --ga | --g)
1041 # Obsolete; use --with-gas.
1042 with_gas=yes ;;
1044 -help | --help | --hel | --he | -h)
1045 ac_init_help=long ;;
1046 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1047 ac_init_help=recursive ;;
1048 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1049 ac_init_help=short ;;
1051 -host | --host | --hos | --ho)
1052 ac_prev=host_alias ;;
1053 -host=* | --host=* | --hos=* | --ho=*)
1054 host_alias=$ac_optarg ;;
1056 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1057 ac_prev=htmldir ;;
1058 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1059 | --ht=*)
1060 htmldir=$ac_optarg ;;
1062 -includedir | --includedir | --includedi | --included | --include \
1063 | --includ | --inclu | --incl | --inc)
1064 ac_prev=includedir ;;
1065 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1066 | --includ=* | --inclu=* | --incl=* | --inc=*)
1067 includedir=$ac_optarg ;;
1069 -infodir | --infodir | --infodi | --infod | --info | --inf)
1070 ac_prev=infodir ;;
1071 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1072 infodir=$ac_optarg ;;
1074 -libdir | --libdir | --libdi | --libd)
1075 ac_prev=libdir ;;
1076 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1077 libdir=$ac_optarg ;;
1079 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1080 | --libexe | --libex | --libe)
1081 ac_prev=libexecdir ;;
1082 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1083 | --libexe=* | --libex=* | --libe=*)
1084 libexecdir=$ac_optarg ;;
1086 -localedir | --localedir | --localedi | --localed | --locale)
1087 ac_prev=localedir ;;
1088 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1089 localedir=$ac_optarg ;;
1091 -localstatedir | --localstatedir | --localstatedi | --localstated \
1092 | --localstate | --localstat | --localsta | --localst | --locals)
1093 ac_prev=localstatedir ;;
1094 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1095 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1096 localstatedir=$ac_optarg ;;
1098 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1099 ac_prev=mandir ;;
1100 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1101 mandir=$ac_optarg ;;
1103 -nfp | --nfp | --nf)
1104 # Obsolete; use --without-fp.
1105 with_fp=no ;;
1107 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1108 | --no-cr | --no-c | -n)
1109 no_create=yes ;;
1111 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1112 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1113 no_recursion=yes ;;
1115 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1116 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1117 | --oldin | --oldi | --old | --ol | --o)
1118 ac_prev=oldincludedir ;;
1119 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1120 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1121 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1122 oldincludedir=$ac_optarg ;;
1124 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1125 ac_prev=prefix ;;
1126 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1127 prefix=$ac_optarg ;;
1129 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1130 | --program-pre | --program-pr | --program-p)
1131 ac_prev=program_prefix ;;
1132 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1133 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1134 program_prefix=$ac_optarg ;;
1136 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1137 | --program-suf | --program-su | --program-s)
1138 ac_prev=program_suffix ;;
1139 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1140 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1141 program_suffix=$ac_optarg ;;
1143 -program-transform-name | --program-transform-name \
1144 | --program-transform-nam | --program-transform-na \
1145 | --program-transform-n | --program-transform- \
1146 | --program-transform | --program-transfor \
1147 | --program-transfo | --program-transf \
1148 | --program-trans | --program-tran \
1149 | --progr-tra | --program-tr | --program-t)
1150 ac_prev=program_transform_name ;;
1151 -program-transform-name=* | --program-transform-name=* \
1152 | --program-transform-nam=* | --program-transform-na=* \
1153 | --program-transform-n=* | --program-transform-=* \
1154 | --program-transform=* | --program-transfor=* \
1155 | --program-transfo=* | --program-transf=* \
1156 | --program-trans=* | --program-tran=* \
1157 | --progr-tra=* | --program-tr=* | --program-t=*)
1158 program_transform_name=$ac_optarg ;;
1160 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1161 ac_prev=pdfdir ;;
1162 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1163 pdfdir=$ac_optarg ;;
1165 -psdir | --psdir | --psdi | --psd | --ps)
1166 ac_prev=psdir ;;
1167 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1168 psdir=$ac_optarg ;;
1170 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1171 | -silent | --silent | --silen | --sile | --sil)
1172 silent=yes ;;
1174 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1175 ac_prev=sbindir ;;
1176 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1177 | --sbi=* | --sb=*)
1178 sbindir=$ac_optarg ;;
1180 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1181 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1182 | --sharedst | --shareds | --shared | --share | --shar \
1183 | --sha | --sh)
1184 ac_prev=sharedstatedir ;;
1185 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1186 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1187 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1188 | --sha=* | --sh=*)
1189 sharedstatedir=$ac_optarg ;;
1191 -site | --site | --sit)
1192 ac_prev=site ;;
1193 -site=* | --site=* | --sit=*)
1194 site=$ac_optarg ;;
1196 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1197 ac_prev=srcdir ;;
1198 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1199 srcdir=$ac_optarg ;;
1201 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1202 | --syscon | --sysco | --sysc | --sys | --sy)
1203 ac_prev=sysconfdir ;;
1204 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1205 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1206 sysconfdir=$ac_optarg ;;
1208 -target | --target | --targe | --targ | --tar | --ta | --t)
1209 ac_prev=target_alias ;;
1210 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1211 target_alias=$ac_optarg ;;
1213 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1214 verbose=yes ;;
1216 -version | --version | --versio | --versi | --vers | -V)
1217 ac_init_version=: ;;
1219 -with-* | --with-*)
1220 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1221 # Reject names that are not valid shell variable names.
1222 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1223 { echo "$as_me: error: invalid package name: $ac_package" >&2
1224 { (exit 1); exit 1; }; }
1225 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1226 eval with_$ac_package=\$ac_optarg ;;
1228 -without-* | --without-*)
1229 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1230 # Reject names that are not valid shell variable names.
1231 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1232 { echo "$as_me: error: invalid package name: $ac_package" >&2
1233 { (exit 1); exit 1; }; }
1234 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1235 eval with_$ac_package=no ;;
1237 --x)
1238 # Obsolete; use --with-x.
1239 with_x=yes ;;
1241 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1242 | --x-incl | --x-inc | --x-in | --x-i)
1243 ac_prev=x_includes ;;
1244 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1245 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1246 x_includes=$ac_optarg ;;
1248 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1249 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1250 ac_prev=x_libraries ;;
1251 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1252 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1253 x_libraries=$ac_optarg ;;
1255 -*) { echo "$as_me: error: unrecognized option: $ac_option
1256 Try \`$0 --help' for more information." >&2
1257 { (exit 1); exit 1; }; }
1260 *=*)
1261 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1262 # Reject names that are not valid shell variable names.
1263 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1264 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1265 { (exit 1); exit 1; }; }
1266 eval $ac_envvar=\$ac_optarg
1267 export $ac_envvar ;;
1270 # FIXME: should be removed in autoconf 3.0.
1271 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1272 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1273 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1274 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1277 esac
1278 done
1280 if test -n "$ac_prev"; then
1281 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1282 { echo "$as_me: error: missing argument to $ac_option" >&2
1283 { (exit 1); exit 1; }; }
1286 # Be sure to have absolute directory names.
1287 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1288 datadir sysconfdir sharedstatedir localstatedir includedir \
1289 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1290 libdir localedir mandir
1292 eval ac_val=\$$ac_var
1293 case $ac_val in
1294 [\\/$]* | ?:[\\/]* ) continue;;
1295 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1296 esac
1297 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1298 { (exit 1); exit 1; }; }
1299 done
1301 # There might be people who depend on the old broken behavior: `$host'
1302 # used to hold the argument of --host etc.
1303 # FIXME: To remove some day.
1304 build=$build_alias
1305 host=$host_alias
1306 target=$target_alias
1308 # FIXME: To remove some day.
1309 if test "x$host_alias" != x; then
1310 if test "x$build_alias" = x; then
1311 cross_compiling=maybe
1312 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1313 If a cross compiler is detected then cross compile mode will be used." >&2
1314 elif test "x$build_alias" != "x$host_alias"; then
1315 cross_compiling=yes
1319 ac_tool_prefix=
1320 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1322 test "$silent" = yes && exec 6>/dev/null
1325 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1326 ac_ls_di=`ls -di .` &&
1327 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1328 { echo "$as_me: error: Working directory cannot be determined" >&2
1329 { (exit 1); exit 1; }; }
1330 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1331 { echo "$as_me: error: pwd does not report name of working directory" >&2
1332 { (exit 1); exit 1; }; }
1335 # Find the source files, if location was not specified.
1336 if test -z "$srcdir"; then
1337 ac_srcdir_defaulted=yes
1338 # Try the directory containing this script, then the parent directory.
1339 ac_confdir=`$as_dirname -- "$0" ||
1340 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1341 X"$0" : 'X\(//\)[^/]' \| \
1342 X"$0" : 'X\(//\)$' \| \
1343 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1344 echo X"$0" |
1345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1346 s//\1/
1349 /^X\(\/\/\)[^/].*/{
1350 s//\1/
1353 /^X\(\/\/\)$/{
1354 s//\1/
1357 /^X\(\/\).*/{
1358 s//\1/
1361 s/.*/./; q'`
1362 srcdir=$ac_confdir
1363 if test ! -r "$srcdir/$ac_unique_file"; then
1364 srcdir=..
1366 else
1367 ac_srcdir_defaulted=no
1369 if test ! -r "$srcdir/$ac_unique_file"; then
1370 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1371 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1372 { (exit 1); exit 1; }; }
1374 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1375 ac_abs_confdir=`(
1376 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1377 { (exit 1); exit 1; }; }
1378 pwd)`
1379 # When building in place, set srcdir=.
1380 if test "$ac_abs_confdir" = "$ac_pwd"; then
1381 srcdir=.
1383 # Remove unnecessary trailing slashes from srcdir.
1384 # Double slashes in file names in object file debugging info
1385 # mess up M-x gdb in Emacs.
1386 case $srcdir in
1387 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1388 esac
1389 for ac_var in $ac_precious_vars; do
1390 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1391 eval ac_env_${ac_var}_value=\$${ac_var}
1392 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1393 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1394 done
1397 # Report the --help message.
1399 if test "$ac_init_help" = "long"; then
1400 # Omit some internal or obsolete options to make the list less imposing.
1401 # This message is too long to be a string in the A/UX 3.1 sh.
1402 cat <<_ACEOF
1403 \`configure' configures libltdl 1.2 to adapt to many kinds of systems.
1405 Usage: $0 [OPTION]... [VAR=VALUE]...
1407 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1408 VAR=VALUE. See below for descriptions of some of the useful variables.
1410 Defaults for the options are specified in brackets.
1412 Configuration:
1413 -h, --help display this help and exit
1414 --help=short display options specific to this package
1415 --help=recursive display the short help of all the included packages
1416 -V, --version display version information and exit
1417 -q, --quiet, --silent do not print \`checking...' messages
1418 --cache-file=FILE cache test results in FILE [disabled]
1419 -C, --config-cache alias for \`--cache-file=config.cache'
1420 -n, --no-create do not create output files
1421 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1423 Installation directories:
1424 --prefix=PREFIX install architecture-independent files in PREFIX
1425 [$ac_default_prefix]
1426 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1427 [PREFIX]
1429 By default, \`make install' will install all the files in
1430 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1431 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1432 for instance \`--prefix=\$HOME'.
1434 For better control, use the options below.
1436 Fine tuning of the installation directories:
1437 --bindir=DIR user executables [EPREFIX/bin]
1438 --sbindir=DIR system admin executables [EPREFIX/sbin]
1439 --libexecdir=DIR program executables [EPREFIX/libexec]
1440 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1441 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1442 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1443 --libdir=DIR object code libraries [EPREFIX/lib]
1444 --includedir=DIR C header files [PREFIX/include]
1445 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1446 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1447 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1448 --infodir=DIR info documentation [DATAROOTDIR/info]
1449 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1450 --mandir=DIR man documentation [DATAROOTDIR/man]
1451 --docdir=DIR documentation root [DATAROOTDIR/doc/libltdl]
1452 --htmldir=DIR html documentation [DOCDIR]
1453 --dvidir=DIR dvi documentation [DOCDIR]
1454 --pdfdir=DIR pdf documentation [DOCDIR]
1455 --psdir=DIR ps documentation [DOCDIR]
1456 _ACEOF
1458 cat <<\_ACEOF
1460 Program names:
1461 --program-prefix=PREFIX prepend PREFIX to installed program names
1462 --program-suffix=SUFFIX append SUFFIX to installed program names
1463 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1465 System types:
1466 --build=BUILD configure for building on BUILD [guessed]
1467 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1468 _ACEOF
1471 if test -n "$ac_init_help"; then
1472 case $ac_init_help in
1473 short | recursive ) echo "Configuration of libltdl 1.2:";;
1474 esac
1475 cat <<\_ACEOF
1477 Optional Features:
1478 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1479 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1480 --disable-dependency-tracking speeds up one-time build
1481 --enable-dependency-tracking do not reject slow dependency extractors
1482 --enable-shared[=PKGS] build shared libraries [default=yes]
1483 --enable-static[=PKGS] build static libraries [default=yes]
1484 --enable-fast-install[=PKGS]
1485 optimize for fast installation [default=yes]
1486 --disable-libtool-lock avoid locking (might break parallel builds)
1487 --enable-ltdl-install install libltdl
1489 Optional Packages:
1490 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1491 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1492 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1493 --with-pic try to use only PIC/non-PIC objects [default=use
1494 both]
1495 --with-tags[=TAGS] include additional configurations [automatic]
1497 Some influential environment variables:
1498 CC C compiler command
1499 CFLAGS C compiler flags
1500 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1501 nonstandard directory <lib dir>
1502 LIBS libraries to pass to the linker, e.g. -l<library>
1503 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1504 you have headers in a nonstandard directory <include dir>
1505 CPP C preprocessor
1506 CXX C++ compiler command
1507 CXXFLAGS C++ compiler flags
1508 CXXCPP C++ preprocessor
1509 F77 Fortran 77 compiler command
1510 FFLAGS Fortran 77 compiler flags
1512 Use these variables to override the choices made by `configure' or to help
1513 it to find libraries and programs with nonstandard names/locations.
1515 Report bugs to <bug-libtool@gnu.org>.
1516 _ACEOF
1517 ac_status=$?
1520 if test "$ac_init_help" = "recursive"; then
1521 # If there are subdirs, report their specific --help.
1522 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1523 test -d "$ac_dir" || continue
1524 ac_builddir=.
1526 case "$ac_dir" in
1527 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1529 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1530 # A ".." for each directory in $ac_dir_suffix.
1531 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1532 case $ac_top_builddir_sub in
1533 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1534 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1535 esac ;;
1536 esac
1537 ac_abs_top_builddir=$ac_pwd
1538 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1539 # for backward compatibility:
1540 ac_top_builddir=$ac_top_build_prefix
1542 case $srcdir in
1543 .) # We are building in place.
1544 ac_srcdir=.
1545 ac_top_srcdir=$ac_top_builddir_sub
1546 ac_abs_top_srcdir=$ac_pwd ;;
1547 [\\/]* | ?:[\\/]* ) # Absolute name.
1548 ac_srcdir=$srcdir$ac_dir_suffix;
1549 ac_top_srcdir=$srcdir
1550 ac_abs_top_srcdir=$srcdir ;;
1551 *) # Relative name.
1552 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1553 ac_top_srcdir=$ac_top_build_prefix$srcdir
1554 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1555 esac
1556 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1558 cd "$ac_dir" || { ac_status=$?; continue; }
1559 # Check for guested configure.
1560 if test -f "$ac_srcdir/configure.gnu"; then
1561 echo &&
1562 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1563 elif test -f "$ac_srcdir/configure"; then
1564 echo &&
1565 $SHELL "$ac_srcdir/configure" --help=recursive
1566 else
1567 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1568 fi || ac_status=$?
1569 cd "$ac_pwd" || { ac_status=$?; break; }
1570 done
1573 test -n "$ac_init_help" && exit $ac_status
1574 if $ac_init_version; then
1575 cat <<\_ACEOF
1576 libltdl configure 1.2
1577 generated by GNU Autoconf 2.61
1579 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1580 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1581 This configure script is free software; the Free Software Foundation
1582 gives unlimited permission to copy, distribute and modify it.
1583 _ACEOF
1584 exit
1586 cat >config.log <<_ACEOF
1587 This file contains any messages produced by compilers while
1588 running configure, to aid debugging if configure makes a mistake.
1590 It was created by libltdl $as_me 1.2, which was
1591 generated by GNU Autoconf 2.61. Invocation command line was
1593 $ $0 $@
1595 _ACEOF
1596 exec 5>>config.log
1598 cat <<_ASUNAME
1599 ## --------- ##
1600 ## Platform. ##
1601 ## --------- ##
1603 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1604 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1605 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1606 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1607 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1609 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1610 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1612 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1613 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1614 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1615 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1616 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1617 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1618 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1620 _ASUNAME
1622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1623 for as_dir in $PATH
1625 IFS=$as_save_IFS
1626 test -z "$as_dir" && as_dir=.
1627 echo "PATH: $as_dir"
1628 done
1629 IFS=$as_save_IFS
1631 } >&5
1633 cat >&5 <<_ACEOF
1636 ## ----------- ##
1637 ## Core tests. ##
1638 ## ----------- ##
1640 _ACEOF
1643 # Keep a trace of the command line.
1644 # Strip out --no-create and --no-recursion so they do not pile up.
1645 # Strip out --silent because we don't want to record it for future runs.
1646 # Also quote any args containing shell meta-characters.
1647 # Make two passes to allow for proper duplicate-argument suppression.
1648 ac_configure_args=
1649 ac_configure_args0=
1650 ac_configure_args1=
1651 ac_must_keep_next=false
1652 for ac_pass in 1 2
1654 for ac_arg
1656 case $ac_arg in
1657 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1658 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1659 | -silent | --silent | --silen | --sile | --sil)
1660 continue ;;
1661 *\'*)
1662 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1663 esac
1664 case $ac_pass in
1665 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1667 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1668 if test $ac_must_keep_next = true; then
1669 ac_must_keep_next=false # Got value, back to normal.
1670 else
1671 case $ac_arg in
1672 *=* | --config-cache | -C | -disable-* | --disable-* \
1673 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1674 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1675 | -with-* | --with-* | -without-* | --without-* | --x)
1676 case "$ac_configure_args0 " in
1677 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1678 esac
1680 -* ) ac_must_keep_next=true ;;
1681 esac
1683 ac_configure_args="$ac_configure_args '$ac_arg'"
1685 esac
1686 done
1687 done
1688 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1689 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1691 # When interrupted or exit'd, cleanup temporary files, and complete
1692 # config.log. We remove comments because anyway the quotes in there
1693 # would cause problems or look ugly.
1694 # WARNING: Use '\'' to represent an apostrophe within the trap.
1695 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1696 trap 'exit_status=$?
1697 # Save into config.log some information that might help in debugging.
1699 echo
1701 cat <<\_ASBOX
1702 ## ---------------- ##
1703 ## Cache variables. ##
1704 ## ---------------- ##
1705 _ASBOX
1706 echo
1707 # The following way of writing the cache mishandles newlines in values,
1709 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1710 eval ac_val=\$$ac_var
1711 case $ac_val in #(
1712 *${as_nl}*)
1713 case $ac_var in #(
1714 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1715 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1716 esac
1717 case $ac_var in #(
1718 _ | IFS | as_nl) ;; #(
1719 *) $as_unset $ac_var ;;
1720 esac ;;
1721 esac
1722 done
1723 (set) 2>&1 |
1724 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1725 *${as_nl}ac_space=\ *)
1726 sed -n \
1727 "s/'\''/'\''\\\\'\'''\''/g;
1728 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1729 ;; #(
1731 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1733 esac |
1734 sort
1736 echo
1738 cat <<\_ASBOX
1739 ## ----------------- ##
1740 ## Output variables. ##
1741 ## ----------------- ##
1742 _ASBOX
1743 echo
1744 for ac_var in $ac_subst_vars
1746 eval ac_val=\$$ac_var
1747 case $ac_val in
1748 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1749 esac
1750 echo "$ac_var='\''$ac_val'\''"
1751 done | sort
1752 echo
1754 if test -n "$ac_subst_files"; then
1755 cat <<\_ASBOX
1756 ## ------------------- ##
1757 ## File substitutions. ##
1758 ## ------------------- ##
1759 _ASBOX
1760 echo
1761 for ac_var in $ac_subst_files
1763 eval ac_val=\$$ac_var
1764 case $ac_val in
1765 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1766 esac
1767 echo "$ac_var='\''$ac_val'\''"
1768 done | sort
1769 echo
1772 if test -s confdefs.h; then
1773 cat <<\_ASBOX
1774 ## ----------- ##
1775 ## confdefs.h. ##
1776 ## ----------- ##
1777 _ASBOX
1778 echo
1779 cat confdefs.h
1780 echo
1782 test "$ac_signal" != 0 &&
1783 echo "$as_me: caught signal $ac_signal"
1784 echo "$as_me: exit $exit_status"
1785 } >&5
1786 rm -f core *.core core.conftest.* &&
1787 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1788 exit $exit_status
1790 for ac_signal in 1 2 13 15; do
1791 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1792 done
1793 ac_signal=0
1795 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1796 rm -f -r conftest* confdefs.h
1798 # Predefined preprocessor variables.
1800 cat >>confdefs.h <<_ACEOF
1801 #define PACKAGE_NAME "$PACKAGE_NAME"
1802 _ACEOF
1805 cat >>confdefs.h <<_ACEOF
1806 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1807 _ACEOF
1810 cat >>confdefs.h <<_ACEOF
1811 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1812 _ACEOF
1815 cat >>confdefs.h <<_ACEOF
1816 #define PACKAGE_STRING "$PACKAGE_STRING"
1817 _ACEOF
1820 cat >>confdefs.h <<_ACEOF
1821 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1822 _ACEOF
1825 # Let the site file select an alternate cache file if it wants to.
1826 # Prefer explicitly selected file to automatically selected ones.
1827 if test -n "$CONFIG_SITE"; then
1828 set x "$CONFIG_SITE"
1829 elif test "x$prefix" != xNONE; then
1830 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1831 else
1832 set x "$ac_default_prefix/share/config.site" \
1833 "$ac_default_prefix/etc/config.site"
1835 shift
1836 for ac_site_file
1838 if test -r "$ac_site_file"; then
1839 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1840 echo "$as_me: loading site script $ac_site_file" >&6;}
1841 sed 's/^/| /' "$ac_site_file" >&5
1842 . "$ac_site_file"
1844 done
1846 if test -r "$cache_file"; then
1847 # Some versions of bash will fail to source /dev/null (special
1848 # files actually), so we avoid doing that.
1849 if test -f "$cache_file"; then
1850 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1851 echo "$as_me: loading cache $cache_file" >&6;}
1852 case $cache_file in
1853 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1854 *) . "./$cache_file";;
1855 esac
1857 else
1858 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1859 echo "$as_me: creating cache $cache_file" >&6;}
1860 >$cache_file
1863 # Check that the precious variables saved in the cache have kept the same
1864 # value.
1865 ac_cache_corrupted=false
1866 for ac_var in $ac_precious_vars; do
1867 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1868 eval ac_new_set=\$ac_env_${ac_var}_set
1869 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1870 eval ac_new_val=\$ac_env_${ac_var}_value
1871 case $ac_old_set,$ac_new_set in
1872 set,)
1873 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1874 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1875 ac_cache_corrupted=: ;;
1876 ,set)
1877 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1878 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1879 ac_cache_corrupted=: ;;
1880 ,);;
1882 if test "x$ac_old_val" != "x$ac_new_val"; then
1883 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1884 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1885 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1886 echo "$as_me: former value: $ac_old_val" >&2;}
1887 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1888 echo "$as_me: current value: $ac_new_val" >&2;}
1889 ac_cache_corrupted=:
1890 fi;;
1891 esac
1892 # Pass precious variables to config.status.
1893 if test "$ac_new_set" = set; then
1894 case $ac_new_val in
1895 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1896 *) ac_arg=$ac_var=$ac_new_val ;;
1897 esac
1898 case " $ac_configure_args " in
1899 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1900 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1901 esac
1903 done
1904 if $ac_cache_corrupted; then
1905 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1906 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1907 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1908 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1909 { (exit 1); exit 1; }; }
1936 ac_ext=c
1937 ac_cpp='$CPP $CPPFLAGS'
1938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1946 ## ------------------------------- ##
1947 ## Libltdl specific configuration. ##
1948 ## ------------------------------- ##
1950 ac_aux_dir=
1951 for ac_dir in . "$srcdir"/.; do
1952 if test -f "$ac_dir/install-sh"; then
1953 ac_aux_dir=$ac_dir
1954 ac_install_sh="$ac_aux_dir/install-sh -c"
1955 break
1956 elif test -f "$ac_dir/install.sh"; then
1957 ac_aux_dir=$ac_dir
1958 ac_install_sh="$ac_aux_dir/install.sh -c"
1959 break
1960 elif test -f "$ac_dir/shtool"; then
1961 ac_aux_dir=$ac_dir
1962 ac_install_sh="$ac_aux_dir/shtool install -c"
1963 break
1965 done
1966 if test -z "$ac_aux_dir"; then
1967 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
1968 echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
1969 { (exit 1); exit 1; }; }
1972 # These three variables are undocumented and unsupported,
1973 # and are intended to be withdrawn in a future Autoconf release.
1974 # They can cause serious problems if a builder's source tree is in a directory
1975 # whose full name contains unusual characters.
1976 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1977 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1978 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1982 if test -z "$enable_ltdl_install$enable_ltdl_convenience"; then
1983 if test -f ${srcdir}/ltmain.sh; then
1984 # if libltdl is libtoolized, it is assumed to be stand-alone and
1985 # installed unless the command line overrides it (tested above)
1986 enable_ltdl_install=yes
1987 else
1988 { echo "$as_me:$LINENO: WARNING: *** The top-level configure must select either" >&5
1989 echo "$as_me: WARNING: *** The top-level configure must select either" >&2;}
1990 { echo "$as_me:$LINENO: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&5
1991 echo "$as_me: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&2;}
1992 { { echo "$as_me:$LINENO: error: *** Maybe you want to --enable-ltdl-install?" >&5
1993 echo "$as_me: error: *** Maybe you want to --enable-ltdl-install?" >&2;}
1994 { (exit 1); exit 1; }; }
1999 ## ------------------------ ##
2000 ## Automake Initialisation. ##
2001 ## ------------------------ ##
2002 am__api_version='1.10'
2004 # Find a good install program. We prefer a C program (faster),
2005 # so one script is as good as another. But avoid the broken or
2006 # incompatible versions:
2007 # SysV /etc/install, /usr/sbin/install
2008 # SunOS /usr/etc/install
2009 # IRIX /sbin/install
2010 # AIX /bin/install
2011 # AmigaOS /C/install, which installs bootblocks on floppy discs
2012 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2013 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2014 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2015 # OS/2's system install, which has a completely different semantic
2016 # ./install, which can be erroneously created by make from ./install.sh.
2017 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2018 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2019 if test -z "$INSTALL"; then
2020 if test "${ac_cv_path_install+set}" = set; then
2021 echo $ECHO_N "(cached) $ECHO_C" >&6
2022 else
2023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2024 for as_dir in $PATH
2026 IFS=$as_save_IFS
2027 test -z "$as_dir" && as_dir=.
2028 # Account for people who put trailing slashes in PATH elements.
2029 case $as_dir/ in
2030 ./ | .// | /cC/* | \
2031 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2032 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2033 /usr/ucb/* ) ;;
2035 # OSF1 and SCO ODT 3.0 have their own names for install.
2036 # Don't use installbsd from OSF since it installs stuff as root
2037 # by default.
2038 for ac_prog in ginstall scoinst install; do
2039 for ac_exec_ext in '' $ac_executable_extensions; do
2040 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2041 if test $ac_prog = install &&
2042 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2043 # AIX install. It has an incompatible calling convention.
2045 elif test $ac_prog = install &&
2046 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2047 # program-specific install script used by HP pwplus--don't use.
2049 else
2050 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2051 break 3
2054 done
2055 done
2057 esac
2058 done
2059 IFS=$as_save_IFS
2063 if test "${ac_cv_path_install+set}" = set; then
2064 INSTALL=$ac_cv_path_install
2065 else
2066 # As a last resort, use the slow shell script. Don't cache a
2067 # value for INSTALL within a source directory, because that will
2068 # break other packages using the cache if that directory is
2069 # removed, or if the value is a relative name.
2070 INSTALL=$ac_install_sh
2073 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2074 echo "${ECHO_T}$INSTALL" >&6; }
2076 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2077 # It thinks the first close brace ends the variable substitution.
2078 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2080 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2082 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2084 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2085 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2086 # Just in case
2087 sleep 1
2088 echo timestamp > conftest.file
2089 # Do `set' in a subshell so we don't clobber the current shell's
2090 # arguments. Must try -L first in case configure is actually a
2091 # symlink; some systems play weird games with the mod time of symlinks
2092 # (eg FreeBSD returns the mod time of the symlink's containing
2093 # directory).
2094 if (
2095 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2096 if test "$*" = "X"; then
2097 # -L didn't work.
2098 set X `ls -t $srcdir/configure conftest.file`
2100 rm -f conftest.file
2101 if test "$*" != "X $srcdir/configure conftest.file" \
2102 && test "$*" != "X conftest.file $srcdir/configure"; then
2104 # If neither matched, then we have a broken ls. This can happen
2105 # if, for instance, CONFIG_SHELL is bash and it inherits a
2106 # broken ls alias from the environment. This has actually
2107 # happened. Such a system could not be considered "sane".
2108 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2109 alias in your environment" >&5
2110 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2111 alias in your environment" >&2;}
2112 { (exit 1); exit 1; }; }
2115 test "$2" = conftest.file
2117 then
2118 # Ok.
2120 else
2121 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2122 Check your system clock" >&5
2123 echo "$as_me: error: newly created file is older than distributed files!
2124 Check your system clock" >&2;}
2125 { (exit 1); exit 1; }; }
2127 { echo "$as_me:$LINENO: result: yes" >&5
2128 echo "${ECHO_T}yes" >&6; }
2129 test "$program_prefix" != NONE &&
2130 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2131 # Use a double $ so make ignores it.
2132 test "$program_suffix" != NONE &&
2133 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2134 # Double any \ or $. echo might interpret backslashes.
2135 # By default was `s,x,x', remove it if useless.
2136 cat <<\_ACEOF >conftest.sed
2137 s/[\\$]/&&/g;s/;s,x,x,$//
2138 _ACEOF
2139 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2140 rm -f conftest.sed
2142 # expand $ac_aux_dir to an absolute path
2143 am_aux_dir=`cd $ac_aux_dir && pwd`
2145 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2146 # Use eval to expand $SHELL
2147 if eval "$MISSING --run true"; then
2148 am_missing_run="$MISSING --run "
2149 else
2150 am_missing_run=
2151 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2152 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2155 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2156 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2157 if test -z "$MKDIR_P"; then
2158 if test "${ac_cv_path_mkdir+set}" = set; then
2159 echo $ECHO_N "(cached) $ECHO_C" >&6
2160 else
2161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2162 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2164 IFS=$as_save_IFS
2165 test -z "$as_dir" && as_dir=.
2166 for ac_prog in mkdir gmkdir; do
2167 for ac_exec_ext in '' $ac_executable_extensions; do
2168 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2169 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2170 'mkdir (GNU coreutils) '* | \
2171 'mkdir (coreutils) '* | \
2172 'mkdir (fileutils) '4.1*)
2173 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2174 break 3;;
2175 esac
2176 done
2177 done
2178 done
2179 IFS=$as_save_IFS
2183 if test "${ac_cv_path_mkdir+set}" = set; then
2184 MKDIR_P="$ac_cv_path_mkdir -p"
2185 else
2186 # As a last resort, use the slow shell script. Don't cache a
2187 # value for MKDIR_P within a source directory, because that will
2188 # break other packages using the cache if that directory is
2189 # removed, or if the value is a relative name.
2190 test -d ./--version && rmdir ./--version
2191 MKDIR_P="$ac_install_sh -d"
2194 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2195 echo "${ECHO_T}$MKDIR_P" >&6; }
2197 mkdir_p="$MKDIR_P"
2198 case $mkdir_p in
2199 [\\/$]* | ?:[\\/]*) ;;
2200 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2201 esac
2203 for ac_prog in gawk mawk nawk awk
2205 # Extract the first word of "$ac_prog", so it can be a program name with args.
2206 set dummy $ac_prog; ac_word=$2
2207 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2209 if test "${ac_cv_prog_AWK+set}" = set; then
2210 echo $ECHO_N "(cached) $ECHO_C" >&6
2211 else
2212 if test -n "$AWK"; then
2213 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2214 else
2215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2216 for as_dir in $PATH
2218 IFS=$as_save_IFS
2219 test -z "$as_dir" && as_dir=.
2220 for ac_exec_ext in '' $ac_executable_extensions; do
2221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2222 ac_cv_prog_AWK="$ac_prog"
2223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2224 break 2
2226 done
2227 done
2228 IFS=$as_save_IFS
2232 AWK=$ac_cv_prog_AWK
2233 if test -n "$AWK"; then
2234 { echo "$as_me:$LINENO: result: $AWK" >&5
2235 echo "${ECHO_T}$AWK" >&6; }
2236 else
2237 { echo "$as_me:$LINENO: result: no" >&5
2238 echo "${ECHO_T}no" >&6; }
2242 test -n "$AWK" && break
2243 done
2245 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2246 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2247 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2248 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2249 echo $ECHO_N "(cached) $ECHO_C" >&6
2250 else
2251 cat >conftest.make <<\_ACEOF
2252 SHELL = /bin/sh
2253 all:
2254 @echo '@@@%%%=$(MAKE)=@@@%%%'
2255 _ACEOF
2256 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2257 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2258 *@@@%%%=?*=@@@%%%*)
2259 eval ac_cv_prog_make_${ac_make}_set=yes;;
2261 eval ac_cv_prog_make_${ac_make}_set=no;;
2262 esac
2263 rm -f conftest.make
2265 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2266 { echo "$as_me:$LINENO: result: yes" >&5
2267 echo "${ECHO_T}yes" >&6; }
2268 SET_MAKE=
2269 else
2270 { echo "$as_me:$LINENO: result: no" >&5
2271 echo "${ECHO_T}no" >&6; }
2272 SET_MAKE="MAKE=${MAKE-make}"
2275 rm -rf .tst 2>/dev/null
2276 mkdir .tst 2>/dev/null
2277 if test -d .tst; then
2278 am__leading_dot=.
2279 else
2280 am__leading_dot=_
2282 rmdir .tst 2>/dev/null
2284 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2285 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2286 # is not polluted with repeated "-I."
2287 am__isrc=' -I$(srcdir)'
2288 # test to see if srcdir already configured
2289 if test -f $srcdir/config.status; then
2290 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2291 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2292 { (exit 1); exit 1; }; }
2296 # test whether we have cygpath
2297 if test -z "$CYGPATH_W"; then
2298 if (cygpath --version) >/dev/null 2>/dev/null; then
2299 CYGPATH_W='cygpath -w'
2300 else
2301 CYGPATH_W=echo
2306 # Define the identity of the package.
2307 PACKAGE=libltdl
2308 VERSION=1.2
2311 # Some tools Automake needs.
2313 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2316 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2319 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2322 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2325 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2327 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2329 # Installed binaries are usually stripped using `strip' when the user
2330 # run `make install-strip'. However `strip' might not be the right
2331 # tool to use in cross-compilation environments, therefore Automake
2332 # will honor the `STRIP' environment variable to overrule this program.
2333 if test "$cross_compiling" != no; then
2334 if test -n "$ac_tool_prefix"; then
2335 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2336 set dummy ${ac_tool_prefix}strip; ac_word=$2
2337 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2339 if test "${ac_cv_prog_STRIP+set}" = set; then
2340 echo $ECHO_N "(cached) $ECHO_C" >&6
2341 else
2342 if test -n "$STRIP"; then
2343 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2344 else
2345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346 for as_dir in $PATH
2348 IFS=$as_save_IFS
2349 test -z "$as_dir" && as_dir=.
2350 for ac_exec_ext in '' $ac_executable_extensions; do
2351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2352 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2354 break 2
2356 done
2357 done
2358 IFS=$as_save_IFS
2362 STRIP=$ac_cv_prog_STRIP
2363 if test -n "$STRIP"; then
2364 { echo "$as_me:$LINENO: result: $STRIP" >&5
2365 echo "${ECHO_T}$STRIP" >&6; }
2366 else
2367 { echo "$as_me:$LINENO: result: no" >&5
2368 echo "${ECHO_T}no" >&6; }
2373 if test -z "$ac_cv_prog_STRIP"; then
2374 ac_ct_STRIP=$STRIP
2375 # Extract the first word of "strip", so it can be a program name with args.
2376 set dummy strip; ac_word=$2
2377 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2379 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2380 echo $ECHO_N "(cached) $ECHO_C" >&6
2381 else
2382 if test -n "$ac_ct_STRIP"; then
2383 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2384 else
2385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2386 for as_dir in $PATH
2388 IFS=$as_save_IFS
2389 test -z "$as_dir" && as_dir=.
2390 for ac_exec_ext in '' $ac_executable_extensions; do
2391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2392 ac_cv_prog_ac_ct_STRIP="strip"
2393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2394 break 2
2396 done
2397 done
2398 IFS=$as_save_IFS
2402 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2403 if test -n "$ac_ct_STRIP"; then
2404 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2405 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2406 else
2407 { echo "$as_me:$LINENO: result: no" >&5
2408 echo "${ECHO_T}no" >&6; }
2411 if test "x$ac_ct_STRIP" = x; then
2412 STRIP=":"
2413 else
2414 case $cross_compiling:$ac_tool_warned in
2415 yes:)
2416 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2417 whose name does not start with the host triplet. If you think this
2418 configuration is useful to you, please write to autoconf@gnu.org." >&5
2419 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2420 whose name does not start with the host triplet. If you think this
2421 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2422 ac_tool_warned=yes ;;
2423 esac
2424 STRIP=$ac_ct_STRIP
2426 else
2427 STRIP="$ac_cv_prog_STRIP"
2431 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2433 # We need awk for the "check" target. The system "awk" is bad on
2434 # some platforms.
2435 # Always define AMTAR for backward compatibility.
2437 AMTAR=${AMTAR-"${am_missing_run}tar"}
2439 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2445 ac_config_headers="$ac_config_headers config.h:config-h.in"
2449 ## ------------------ ##
2450 ## C compiler checks. ##
2451 ## ------------------ ##
2452 ac_ext=c
2453 ac_cpp='$CPP $CPPFLAGS'
2454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2457 if test -n "$ac_tool_prefix"; then
2458 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2459 set dummy ${ac_tool_prefix}gcc; 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
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_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2475 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2477 break 2
2479 done
2480 done
2481 IFS=$as_save_IFS
2485 CC=$ac_cv_prog_CC
2486 if test -n "$CC"; then
2487 { echo "$as_me:$LINENO: result: $CC" >&5
2488 echo "${ECHO_T}$CC" >&6; }
2489 else
2490 { echo "$as_me:$LINENO: result: no" >&5
2491 echo "${ECHO_T}no" >&6; }
2496 if test -z "$ac_cv_prog_CC"; then
2497 ac_ct_CC=$CC
2498 # Extract the first word of "gcc", so it can be a program name with args.
2499 set dummy gcc; ac_word=$2
2500 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2502 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2503 echo $ECHO_N "(cached) $ECHO_C" >&6
2504 else
2505 if test -n "$ac_ct_CC"; then
2506 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2507 else
2508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509 for as_dir in $PATH
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_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2515 ac_cv_prog_ac_ct_CC="gcc"
2516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2517 break 2
2519 done
2520 done
2521 IFS=$as_save_IFS
2525 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2526 if test -n "$ac_ct_CC"; then
2527 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2528 echo "${ECHO_T}$ac_ct_CC" >&6; }
2529 else
2530 { echo "$as_me:$LINENO: result: no" >&5
2531 echo "${ECHO_T}no" >&6; }
2534 if test "x$ac_ct_CC" = x; then
2535 CC=""
2536 else
2537 case $cross_compiling:$ac_tool_warned in
2538 yes:)
2539 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2540 whose name does not start with the host triplet. If you think this
2541 configuration is useful to you, please write to autoconf@gnu.org." >&5
2542 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2543 whose name does not start with the host triplet. If you think this
2544 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2545 ac_tool_warned=yes ;;
2546 esac
2547 CC=$ac_ct_CC
2549 else
2550 CC="$ac_cv_prog_CC"
2553 if test -z "$CC"; then
2554 if test -n "$ac_tool_prefix"; then
2555 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2556 set dummy ${ac_tool_prefix}cc; 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
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_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2572 ac_cv_prog_CC="${ac_tool_prefix}cc"
2573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2574 break 2
2576 done
2577 done
2578 IFS=$as_save_IFS
2582 CC=$ac_cv_prog_CC
2583 if test -n "$CC"; then
2584 { echo "$as_me:$LINENO: result: $CC" >&5
2585 echo "${ECHO_T}$CC" >&6; }
2586 else
2587 { echo "$as_me:$LINENO: result: no" >&5
2588 echo "${ECHO_T}no" >&6; }
2594 if test -z "$CC"; then
2595 # Extract the first word of "cc", so it can be a program name with args.
2596 set dummy cc; ac_word=$2
2597 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2599 if test "${ac_cv_prog_CC+set}" = set; then
2600 echo $ECHO_N "(cached) $ECHO_C" >&6
2601 else
2602 if test -n "$CC"; then
2603 ac_cv_prog_CC="$CC" # Let the user override the test.
2604 else
2605 ac_prog_rejected=no
2606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2607 for as_dir in $PATH
2609 IFS=$as_save_IFS
2610 test -z "$as_dir" && as_dir=.
2611 for ac_exec_ext in '' $ac_executable_extensions; do
2612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2613 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2614 ac_prog_rejected=yes
2615 continue
2617 ac_cv_prog_CC="cc"
2618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2619 break 2
2621 done
2622 done
2623 IFS=$as_save_IFS
2625 if test $ac_prog_rejected = yes; then
2626 # We found a bogon in the path, so make sure we never use it.
2627 set dummy $ac_cv_prog_CC
2628 shift
2629 if test $# != 0; then
2630 # We chose a different compiler from the bogus one.
2631 # However, it has the same basename, so the bogon will be chosen
2632 # first if we set CC to just the basename; use the full file name.
2633 shift
2634 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2639 CC=$ac_cv_prog_CC
2640 if test -n "$CC"; then
2641 { echo "$as_me:$LINENO: result: $CC" >&5
2642 echo "${ECHO_T}$CC" >&6; }
2643 else
2644 { echo "$as_me:$LINENO: result: no" >&5
2645 echo "${ECHO_T}no" >&6; }
2650 if test -z "$CC"; then
2651 if test -n "$ac_tool_prefix"; then
2652 for ac_prog in cl.exe
2654 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2655 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2656 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2658 if test "${ac_cv_prog_CC+set}" = set; then
2659 echo $ECHO_N "(cached) $ECHO_C" >&6
2660 else
2661 if test -n "$CC"; then
2662 ac_cv_prog_CC="$CC" # Let the user override the test.
2663 else
2664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665 for as_dir in $PATH
2667 IFS=$as_save_IFS
2668 test -z "$as_dir" && as_dir=.
2669 for ac_exec_ext in '' $ac_executable_extensions; do
2670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2671 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2673 break 2
2675 done
2676 done
2677 IFS=$as_save_IFS
2681 CC=$ac_cv_prog_CC
2682 if test -n "$CC"; then
2683 { echo "$as_me:$LINENO: result: $CC" >&5
2684 echo "${ECHO_T}$CC" >&6; }
2685 else
2686 { echo "$as_me:$LINENO: result: no" >&5
2687 echo "${ECHO_T}no" >&6; }
2691 test -n "$CC" && break
2692 done
2694 if test -z "$CC"; then
2695 ac_ct_CC=$CC
2696 for ac_prog in cl.exe
2698 # Extract the first word of "$ac_prog", so it can be a program name with args.
2699 set dummy $ac_prog; ac_word=$2
2700 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2702 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2703 echo $ECHO_N "(cached) $ECHO_C" >&6
2704 else
2705 if test -n "$ac_ct_CC"; then
2706 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2707 else
2708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2709 for as_dir in $PATH
2711 IFS=$as_save_IFS
2712 test -z "$as_dir" && as_dir=.
2713 for ac_exec_ext in '' $ac_executable_extensions; do
2714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2715 ac_cv_prog_ac_ct_CC="$ac_prog"
2716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2717 break 2
2719 done
2720 done
2721 IFS=$as_save_IFS
2725 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2726 if test -n "$ac_ct_CC"; then
2727 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2728 echo "${ECHO_T}$ac_ct_CC" >&6; }
2729 else
2730 { echo "$as_me:$LINENO: result: no" >&5
2731 echo "${ECHO_T}no" >&6; }
2735 test -n "$ac_ct_CC" && break
2736 done
2738 if test "x$ac_ct_CC" = x; then
2739 CC=""
2740 else
2741 case $cross_compiling:$ac_tool_warned in
2742 yes:)
2743 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2744 whose name does not start with the host triplet. If you think this
2745 configuration is useful to you, please write to autoconf@gnu.org." >&5
2746 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2747 whose name does not start with the host triplet. If you think this
2748 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2749 ac_tool_warned=yes ;;
2750 esac
2751 CC=$ac_ct_CC
2758 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2759 See \`config.log' for more details." >&5
2760 echo "$as_me: error: no acceptable C compiler found in \$PATH
2761 See \`config.log' for more details." >&2;}
2762 { (exit 1); exit 1; }; }
2764 # Provide some information about the compiler.
2765 echo "$as_me:$LINENO: checking for C compiler version" >&5
2766 ac_compiler=`set X $ac_compile; echo $2`
2767 { (ac_try="$ac_compiler --version >&5"
2768 case "(($ac_try" in
2769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2770 *) ac_try_echo=$ac_try;;
2771 esac
2772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2773 (eval "$ac_compiler --version >&5") 2>&5
2774 ac_status=$?
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); }
2777 { (ac_try="$ac_compiler -v >&5"
2778 case "(($ac_try" in
2779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2780 *) ac_try_echo=$ac_try;;
2781 esac
2782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2783 (eval "$ac_compiler -v >&5") 2>&5
2784 ac_status=$?
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); }
2787 { (ac_try="$ac_compiler -V >&5"
2788 case "(($ac_try" in
2789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2790 *) ac_try_echo=$ac_try;;
2791 esac
2792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2793 (eval "$ac_compiler -V >&5") 2>&5
2794 ac_status=$?
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); }
2798 cat >conftest.$ac_ext <<_ACEOF
2799 /* confdefs.h. */
2800 _ACEOF
2801 cat confdefs.h >>conftest.$ac_ext
2802 cat >>conftest.$ac_ext <<_ACEOF
2803 /* end confdefs.h. */
2806 main ()
2810 return 0;
2812 _ACEOF
2813 ac_clean_files_save=$ac_clean_files
2814 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2815 # Try to create an executable without -o first, disregard a.out.
2816 # It will help us diagnose broken compilers, and finding out an intuition
2817 # of exeext.
2818 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2819 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2820 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2822 # List of possible output files, starting from the most likely.
2823 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2824 # only as a last resort. b.out is created by i960 compilers.
2825 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2827 # The IRIX 6 linker writes into existing files which may not be
2828 # executable, retaining their permissions. Remove them first so a
2829 # subsequent execution test works.
2830 ac_rmfiles=
2831 for ac_file in $ac_files
2833 case $ac_file in
2834 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2835 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2836 esac
2837 done
2838 rm -f $ac_rmfiles
2840 if { (ac_try="$ac_link_default"
2841 case "(($ac_try" in
2842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2843 *) ac_try_echo=$ac_try;;
2844 esac
2845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2846 (eval "$ac_link_default") 2>&5
2847 ac_status=$?
2848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849 (exit $ac_status); }; then
2850 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2851 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2852 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2853 # so that the user can short-circuit this test for compilers unknown to
2854 # Autoconf.
2855 for ac_file in $ac_files ''
2857 test -f "$ac_file" || continue
2858 case $ac_file in
2859 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2861 [ab].out )
2862 # We found the default executable, but exeext='' is most
2863 # certainly right.
2864 break;;
2865 *.* )
2866 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2867 then :; else
2868 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2870 # We set ac_cv_exeext here because the later test for it is not
2871 # safe: cross compilers may not add the suffix if given an `-o'
2872 # argument, so we may need to know it at that point already.
2873 # Even if this section looks crufty: it has the advantage of
2874 # actually working.
2875 break;;
2877 break;;
2878 esac
2879 done
2880 test "$ac_cv_exeext" = no && ac_cv_exeext=
2882 else
2883 ac_file=''
2886 { echo "$as_me:$LINENO: result: $ac_file" >&5
2887 echo "${ECHO_T}$ac_file" >&6; }
2888 if test -z "$ac_file"; then
2889 echo "$as_me: failed program was:" >&5
2890 sed 's/^/| /' conftest.$ac_ext >&5
2892 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2893 See \`config.log' for more details." >&5
2894 echo "$as_me: error: C compiler cannot create executables
2895 See \`config.log' for more details." >&2;}
2896 { (exit 77); exit 77; }; }
2899 ac_exeext=$ac_cv_exeext
2901 # Check that the compiler produces executables we can run. If not, either
2902 # the compiler is broken, or we cross compile.
2903 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2904 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2905 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2906 # If not cross compiling, check that we can run a simple program.
2907 if test "$cross_compiling" != yes; then
2908 if { ac_try='./$ac_file'
2909 { (case "(($ac_try" in
2910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2911 *) ac_try_echo=$ac_try;;
2912 esac
2913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2914 (eval "$ac_try") 2>&5
2915 ac_status=$?
2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); }; }; then
2918 cross_compiling=no
2919 else
2920 if test "$cross_compiling" = maybe; then
2921 cross_compiling=yes
2922 else
2923 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2924 If you meant to cross compile, use \`--host'.
2925 See \`config.log' for more details." >&5
2926 echo "$as_me: error: cannot run C compiled programs.
2927 If you meant to cross compile, use \`--host'.
2928 See \`config.log' for more details." >&2;}
2929 { (exit 1); exit 1; }; }
2933 { echo "$as_me:$LINENO: result: yes" >&5
2934 echo "${ECHO_T}yes" >&6; }
2936 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2937 ac_clean_files=$ac_clean_files_save
2938 # Check that the compiler produces executables we can run. If not, either
2939 # the compiler is broken, or we cross compile.
2940 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2941 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2942 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2943 echo "${ECHO_T}$cross_compiling" >&6; }
2945 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2946 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2947 if { (ac_try="$ac_link"
2948 case "(($ac_try" in
2949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950 *) ac_try_echo=$ac_try;;
2951 esac
2952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2953 (eval "$ac_link") 2>&5
2954 ac_status=$?
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); }; then
2957 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2958 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2959 # work properly (i.e., refer to `conftest.exe'), while it won't with
2960 # `rm'.
2961 for ac_file in conftest.exe conftest conftest.*; do
2962 test -f "$ac_file" || continue
2963 case $ac_file in
2964 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2965 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2966 break;;
2967 * ) break;;
2968 esac
2969 done
2970 else
2971 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2972 See \`config.log' for more details." >&5
2973 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2974 See \`config.log' for more details." >&2;}
2975 { (exit 1); exit 1; }; }
2978 rm -f conftest$ac_cv_exeext
2979 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2980 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2982 rm -f conftest.$ac_ext
2983 EXEEXT=$ac_cv_exeext
2984 ac_exeext=$EXEEXT
2985 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2986 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2987 if test "${ac_cv_objext+set}" = set; then
2988 echo $ECHO_N "(cached) $ECHO_C" >&6
2989 else
2990 cat >conftest.$ac_ext <<_ACEOF
2991 /* confdefs.h. */
2992 _ACEOF
2993 cat confdefs.h >>conftest.$ac_ext
2994 cat >>conftest.$ac_ext <<_ACEOF
2995 /* end confdefs.h. */
2998 main ()
3002 return 0;
3004 _ACEOF
3005 rm -f conftest.o conftest.obj
3006 if { (ac_try="$ac_compile"
3007 case "(($ac_try" in
3008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009 *) ac_try_echo=$ac_try;;
3010 esac
3011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3012 (eval "$ac_compile") 2>&5
3013 ac_status=$?
3014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015 (exit $ac_status); }; then
3016 for ac_file in conftest.o conftest.obj conftest.*; do
3017 test -f "$ac_file" || continue;
3018 case $ac_file in
3019 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3020 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3021 break;;
3022 esac
3023 done
3024 else
3025 echo "$as_me: failed program was:" >&5
3026 sed 's/^/| /' conftest.$ac_ext >&5
3028 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3029 See \`config.log' for more details." >&5
3030 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3031 See \`config.log' for more details." >&2;}
3032 { (exit 1); exit 1; }; }
3035 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3037 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3038 echo "${ECHO_T}$ac_cv_objext" >&6; }
3039 OBJEXT=$ac_cv_objext
3040 ac_objext=$OBJEXT
3041 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3042 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3043 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3044 echo $ECHO_N "(cached) $ECHO_C" >&6
3045 else
3046 cat >conftest.$ac_ext <<_ACEOF
3047 /* confdefs.h. */
3048 _ACEOF
3049 cat confdefs.h >>conftest.$ac_ext
3050 cat >>conftest.$ac_ext <<_ACEOF
3051 /* end confdefs.h. */
3054 main ()
3056 #ifndef __GNUC__
3057 choke me
3058 #endif
3061 return 0;
3063 _ACEOF
3064 rm -f conftest.$ac_objext
3065 if { (ac_try="$ac_compile"
3066 case "(($ac_try" in
3067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068 *) ac_try_echo=$ac_try;;
3069 esac
3070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3071 (eval "$ac_compile") 2>conftest.er1
3072 ac_status=$?
3073 grep -v '^ *+' conftest.er1 >conftest.err
3074 rm -f conftest.er1
3075 cat conftest.err >&5
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); } && {
3078 test -z "$ac_c_werror_flag" ||
3079 test ! -s conftest.err
3080 } && test -s conftest.$ac_objext; then
3081 ac_compiler_gnu=yes
3082 else
3083 echo "$as_me: failed program was:" >&5
3084 sed 's/^/| /' conftest.$ac_ext >&5
3086 ac_compiler_gnu=no
3089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3090 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3093 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3094 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3095 GCC=`test $ac_compiler_gnu = yes && echo yes`
3096 ac_test_CFLAGS=${CFLAGS+set}
3097 ac_save_CFLAGS=$CFLAGS
3098 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3099 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3100 if test "${ac_cv_prog_cc_g+set}" = set; then
3101 echo $ECHO_N "(cached) $ECHO_C" >&6
3102 else
3103 ac_save_c_werror_flag=$ac_c_werror_flag
3104 ac_c_werror_flag=yes
3105 ac_cv_prog_cc_g=no
3106 CFLAGS="-g"
3107 cat >conftest.$ac_ext <<_ACEOF
3108 /* confdefs.h. */
3109 _ACEOF
3110 cat confdefs.h >>conftest.$ac_ext
3111 cat >>conftest.$ac_ext <<_ACEOF
3112 /* end confdefs.h. */
3115 main ()
3119 return 0;
3121 _ACEOF
3122 rm -f conftest.$ac_objext
3123 if { (ac_try="$ac_compile"
3124 case "(($ac_try" in
3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3127 esac
3128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129 (eval "$ac_compile") 2>conftest.er1
3130 ac_status=$?
3131 grep -v '^ *+' conftest.er1 >conftest.err
3132 rm -f conftest.er1
3133 cat conftest.err >&5
3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); } && {
3136 test -z "$ac_c_werror_flag" ||
3137 test ! -s conftest.err
3138 } && test -s conftest.$ac_objext; then
3139 ac_cv_prog_cc_g=yes
3140 else
3141 echo "$as_me: failed program was:" >&5
3142 sed 's/^/| /' conftest.$ac_ext >&5
3144 CFLAGS=""
3145 cat >conftest.$ac_ext <<_ACEOF
3146 /* confdefs.h. */
3147 _ACEOF
3148 cat confdefs.h >>conftest.$ac_ext
3149 cat >>conftest.$ac_ext <<_ACEOF
3150 /* end confdefs.h. */
3153 main ()
3157 return 0;
3159 _ACEOF
3160 rm -f conftest.$ac_objext
3161 if { (ac_try="$ac_compile"
3162 case "(($ac_try" in
3163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164 *) ac_try_echo=$ac_try;;
3165 esac
3166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3167 (eval "$ac_compile") 2>conftest.er1
3168 ac_status=$?
3169 grep -v '^ *+' conftest.er1 >conftest.err
3170 rm -f conftest.er1
3171 cat conftest.err >&5
3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173 (exit $ac_status); } && {
3174 test -z "$ac_c_werror_flag" ||
3175 test ! -s conftest.err
3176 } && test -s conftest.$ac_objext; then
3178 else
3179 echo "$as_me: failed program was:" >&5
3180 sed 's/^/| /' conftest.$ac_ext >&5
3182 ac_c_werror_flag=$ac_save_c_werror_flag
3183 CFLAGS="-g"
3184 cat >conftest.$ac_ext <<_ACEOF
3185 /* confdefs.h. */
3186 _ACEOF
3187 cat confdefs.h >>conftest.$ac_ext
3188 cat >>conftest.$ac_ext <<_ACEOF
3189 /* end confdefs.h. */
3192 main ()
3196 return 0;
3198 _ACEOF
3199 rm -f conftest.$ac_objext
3200 if { (ac_try="$ac_compile"
3201 case "(($ac_try" in
3202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203 *) ac_try_echo=$ac_try;;
3204 esac
3205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3206 (eval "$ac_compile") 2>conftest.er1
3207 ac_status=$?
3208 grep -v '^ *+' conftest.er1 >conftest.err
3209 rm -f conftest.er1
3210 cat conftest.err >&5
3211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212 (exit $ac_status); } && {
3213 test -z "$ac_c_werror_flag" ||
3214 test ! -s conftest.err
3215 } && test -s conftest.$ac_objext; then
3216 ac_cv_prog_cc_g=yes
3217 else
3218 echo "$as_me: failed program was:" >&5
3219 sed 's/^/| /' conftest.$ac_ext >&5
3224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3231 ac_c_werror_flag=$ac_save_c_werror_flag
3233 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3234 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3235 if test "$ac_test_CFLAGS" = set; then
3236 CFLAGS=$ac_save_CFLAGS
3237 elif test $ac_cv_prog_cc_g = yes; then
3238 if test "$GCC" = yes; then
3239 CFLAGS="-g -O2"
3240 else
3241 CFLAGS="-g"
3243 else
3244 if test "$GCC" = yes; then
3245 CFLAGS="-O2"
3246 else
3247 CFLAGS=
3250 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3251 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3252 if test "${ac_cv_prog_cc_c89+set}" = set; then
3253 echo $ECHO_N "(cached) $ECHO_C" >&6
3254 else
3255 ac_cv_prog_cc_c89=no
3256 ac_save_CC=$CC
3257 cat >conftest.$ac_ext <<_ACEOF
3258 /* confdefs.h. */
3259 _ACEOF
3260 cat confdefs.h >>conftest.$ac_ext
3261 cat >>conftest.$ac_ext <<_ACEOF
3262 /* end confdefs.h. */
3263 #include <stdarg.h>
3264 #include <stdio.h>
3265 #include <sys/types.h>
3266 #include <sys/stat.h>
3267 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3268 struct buf { int x; };
3269 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3270 static char *e (p, i)
3271 char **p;
3272 int i;
3274 return p[i];
3276 static char *f (char * (*g) (char **, int), char **p, ...)
3278 char *s;
3279 va_list v;
3280 va_start (v,p);
3281 s = g (p, va_arg (v,int));
3282 va_end (v);
3283 return s;
3286 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3287 function prototypes and stuff, but not '\xHH' hex character constants.
3288 These don't provoke an error unfortunately, instead are silently treated
3289 as 'x'. The following induces an error, until -std is added to get
3290 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3291 array size at least. It's necessary to write '\x00'==0 to get something
3292 that's true only with -std. */
3293 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3295 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3296 inside strings and character constants. */
3297 #define FOO(x) 'x'
3298 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3300 int test (int i, double x);
3301 struct s1 {int (*f) (int a);};
3302 struct s2 {int (*f) (double a);};
3303 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3304 int argc;
3305 char **argv;
3307 main ()
3309 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3311 return 0;
3313 _ACEOF
3314 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3315 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3317 CC="$ac_save_CC $ac_arg"
3318 rm -f conftest.$ac_objext
3319 if { (ac_try="$ac_compile"
3320 case "(($ac_try" in
3321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3322 *) ac_try_echo=$ac_try;;
3323 esac
3324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3325 (eval "$ac_compile") 2>conftest.er1
3326 ac_status=$?
3327 grep -v '^ *+' conftest.er1 >conftest.err
3328 rm -f conftest.er1
3329 cat conftest.err >&5
3330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331 (exit $ac_status); } && {
3332 test -z "$ac_c_werror_flag" ||
3333 test ! -s conftest.err
3334 } && test -s conftest.$ac_objext; then
3335 ac_cv_prog_cc_c89=$ac_arg
3336 else
3337 echo "$as_me: failed program was:" >&5
3338 sed 's/^/| /' conftest.$ac_ext >&5
3343 rm -f core conftest.err conftest.$ac_objext
3344 test "x$ac_cv_prog_cc_c89" != "xno" && break
3345 done
3346 rm -f conftest.$ac_ext
3347 CC=$ac_save_CC
3350 # AC_CACHE_VAL
3351 case "x$ac_cv_prog_cc_c89" in
3353 { echo "$as_me:$LINENO: result: none needed" >&5
3354 echo "${ECHO_T}none needed" >&6; } ;;
3355 xno)
3356 { echo "$as_me:$LINENO: result: unsupported" >&5
3357 echo "${ECHO_T}unsupported" >&6; } ;;
3359 CC="$CC $ac_cv_prog_cc_c89"
3360 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3361 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3362 esac
3365 ac_ext=c
3366 ac_cpp='$CPP $CPPFLAGS'
3367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3370 DEPDIR="${am__leading_dot}deps"
3372 ac_config_commands="$ac_config_commands depfiles"
3375 am_make=${MAKE-make}
3376 cat > confinc << 'END'
3377 am__doit:
3378 @echo done
3379 .PHONY: am__doit
3381 # If we don't find an include directive, just comment out the code.
3382 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3383 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3384 am__include="#"
3385 am__quote=
3386 _am_result=none
3387 # First try GNU make style include.
3388 echo "include confinc" > confmf
3389 # We grep out `Entering directory' and `Leaving directory'
3390 # messages which can occur if `w' ends up in MAKEFLAGS.
3391 # In particular we don't look at `^make:' because GNU make might
3392 # be invoked under some other name (usually "gmake"), in which
3393 # case it prints its new name instead of `make'.
3394 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3395 am__include=include
3396 am__quote=
3397 _am_result=GNU
3399 # Now try BSD make style include.
3400 if test "$am__include" = "#"; then
3401 echo '.include "confinc"' > confmf
3402 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3403 am__include=.include
3404 am__quote="\""
3405 _am_result=BSD
3410 { echo "$as_me:$LINENO: result: $_am_result" >&5
3411 echo "${ECHO_T}$_am_result" >&6; }
3412 rm -f confinc confmf
3414 # Check whether --enable-dependency-tracking was given.
3415 if test "${enable_dependency_tracking+set}" = set; then
3416 enableval=$enable_dependency_tracking;
3419 if test "x$enable_dependency_tracking" != xno; then
3420 am_depcomp="$ac_aux_dir/depcomp"
3421 AMDEPBACKSLASH='\'
3423 if test "x$enable_dependency_tracking" != xno; then
3424 AMDEP_TRUE=
3425 AMDEP_FALSE='#'
3426 else
3427 AMDEP_TRUE='#'
3428 AMDEP_FALSE=
3433 depcc="$CC" am_compiler_list=
3435 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3436 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3437 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3438 echo $ECHO_N "(cached) $ECHO_C" >&6
3439 else
3440 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3441 # We make a subdir and do the tests there. Otherwise we can end up
3442 # making bogus files that we don't know about and never remove. For
3443 # instance it was reported that on HP-UX the gcc test will end up
3444 # making a dummy file named `D' -- because `-MD' means `put the output
3445 # in D'.
3446 mkdir conftest.dir
3447 # Copy depcomp to subdir because otherwise we won't find it if we're
3448 # using a relative directory.
3449 cp "$am_depcomp" conftest.dir
3450 cd conftest.dir
3451 # We will build objects and dependencies in a subdirectory because
3452 # it helps to detect inapplicable dependency modes. For instance
3453 # both Tru64's cc and ICC support -MD to output dependencies as a
3454 # side effect of compilation, but ICC will put the dependencies in
3455 # the current directory while Tru64 will put them in the object
3456 # directory.
3457 mkdir sub
3459 am_cv_CC_dependencies_compiler_type=none
3460 if test "$am_compiler_list" = ""; then
3461 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3463 for depmode in $am_compiler_list; do
3464 # Setup a source with many dependencies, because some compilers
3465 # like to wrap large dependency lists on column 80 (with \), and
3466 # we should not choose a depcomp mode which is confused by this.
3468 # We need to recreate these files for each test, as the compiler may
3469 # overwrite some of them when testing with obscure command lines.
3470 # This happens at least with the AIX C compiler.
3471 : > sub/conftest.c
3472 for i in 1 2 3 4 5 6; do
3473 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3474 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3475 # Solaris 8's {/usr,}/bin/sh.
3476 touch sub/conftst$i.h
3477 done
3478 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3480 case $depmode in
3481 nosideeffect)
3482 # after this tag, mechanisms are not by side-effect, so they'll
3483 # only be used when explicitly requested
3484 if test "x$enable_dependency_tracking" = xyes; then
3485 continue
3486 else
3487 break
3490 none) break ;;
3491 esac
3492 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3493 # mode. It turns out that the SunPro C++ compiler does not properly
3494 # handle `-M -o', and we need to detect this.
3495 if depmode=$depmode \
3496 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3497 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3498 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3499 >/dev/null 2>conftest.err &&
3500 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3501 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3502 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3503 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3504 # icc doesn't choke on unknown options, it will just issue warnings
3505 # or remarks (even with -Werror). So we grep stderr for any message
3506 # that says an option was ignored or not supported.
3507 # When given -MP, icc 7.0 and 7.1 complain thusly:
3508 # icc: Command line warning: ignoring option '-M'; no argument required
3509 # The diagnosis changed in icc 8.0:
3510 # icc: Command line remark: option '-MP' not supported
3511 if (grep 'ignoring option' conftest.err ||
3512 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3513 am_cv_CC_dependencies_compiler_type=$depmode
3514 break
3517 done
3519 cd ..
3520 rm -rf conftest.dir
3521 else
3522 am_cv_CC_dependencies_compiler_type=none
3526 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3527 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3528 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3531 test "x$enable_dependency_tracking" != xno \
3532 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3533 am__fastdepCC_TRUE=
3534 am__fastdepCC_FALSE='#'
3535 else
3536 am__fastdepCC_TRUE='#'
3537 am__fastdepCC_FALSE=
3542 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3543 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
3544 if test "${ac_cv_c_const+set}" = set; then
3545 echo $ECHO_N "(cached) $ECHO_C" >&6
3546 else
3547 cat >conftest.$ac_ext <<_ACEOF
3548 /* confdefs.h. */
3549 _ACEOF
3550 cat confdefs.h >>conftest.$ac_ext
3551 cat >>conftest.$ac_ext <<_ACEOF
3552 /* end confdefs.h. */
3555 main ()
3557 /* FIXME: Include the comments suggested by Paul. */
3558 #ifndef __cplusplus
3559 /* Ultrix mips cc rejects this. */
3560 typedef int charset[2];
3561 const charset cs;
3562 /* SunOS 4.1.1 cc rejects this. */
3563 char const *const *pcpcc;
3564 char **ppc;
3565 /* NEC SVR4.0.2 mips cc rejects this. */
3566 struct point {int x, y;};
3567 static struct point const zero = {0,0};
3568 /* AIX XL C 1.02.0.0 rejects this.
3569 It does not let you subtract one const X* pointer from another in
3570 an arm of an if-expression whose if-part is not a constant
3571 expression */
3572 const char *g = "string";
3573 pcpcc = &g + (g ? g-g : 0);
3574 /* HPUX 7.0 cc rejects these. */
3575 ++pcpcc;
3576 ppc = (char**) pcpcc;
3577 pcpcc = (char const *const *) ppc;
3578 { /* SCO 3.2v4 cc rejects this. */
3579 char *t;
3580 char const *s = 0 ? (char *) 0 : (char const *) 0;
3582 *t++ = 0;
3583 if (s) return 0;
3585 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3586 int x[] = {25, 17};
3587 const int *foo = &x[0];
3588 ++foo;
3590 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3591 typedef const int *iptr;
3592 iptr p = 0;
3593 ++p;
3595 { /* AIX XL C 1.02.0.0 rejects this saying
3596 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3597 struct s { int j; const int *ap[3]; };
3598 struct s *b; b->j = 5;
3600 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3601 const int foo = 10;
3602 if (!foo) return 0;
3604 return !cs[0] && !zero.x;
3605 #endif
3608 return 0;
3610 _ACEOF
3611 rm -f conftest.$ac_objext
3612 if { (ac_try="$ac_compile"
3613 case "(($ac_try" in
3614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3615 *) ac_try_echo=$ac_try;;
3616 esac
3617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3618 (eval "$ac_compile") 2>conftest.er1
3619 ac_status=$?
3620 grep -v '^ *+' conftest.er1 >conftest.err
3621 rm -f conftest.er1
3622 cat conftest.err >&5
3623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624 (exit $ac_status); } && {
3625 test -z "$ac_c_werror_flag" ||
3626 test ! -s conftest.err
3627 } && test -s conftest.$ac_objext; then
3628 ac_cv_c_const=yes
3629 else
3630 echo "$as_me: failed program was:" >&5
3631 sed 's/^/| /' conftest.$ac_ext >&5
3633 ac_cv_c_const=no
3636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3638 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3639 echo "${ECHO_T}$ac_cv_c_const" >&6; }
3640 if test $ac_cv_c_const = no; then
3642 cat >>confdefs.h <<\_ACEOF
3643 #define const
3644 _ACEOF
3648 { echo "$as_me:$LINENO: checking for inline" >&5
3649 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3650 if test "${ac_cv_c_inline+set}" = set; then
3651 echo $ECHO_N "(cached) $ECHO_C" >&6
3652 else
3653 ac_cv_c_inline=no
3654 for ac_kw in inline __inline__ __inline; do
3655 cat >conftest.$ac_ext <<_ACEOF
3656 /* confdefs.h. */
3657 _ACEOF
3658 cat confdefs.h >>conftest.$ac_ext
3659 cat >>conftest.$ac_ext <<_ACEOF
3660 /* end confdefs.h. */
3661 #ifndef __cplusplus
3662 typedef int foo_t;
3663 static $ac_kw foo_t static_foo () {return 0; }
3664 $ac_kw foo_t foo () {return 0; }
3665 #endif
3667 _ACEOF
3668 rm -f conftest.$ac_objext
3669 if { (ac_try="$ac_compile"
3670 case "(($ac_try" in
3671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3672 *) ac_try_echo=$ac_try;;
3673 esac
3674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3675 (eval "$ac_compile") 2>conftest.er1
3676 ac_status=$?
3677 grep -v '^ *+' conftest.er1 >conftest.err
3678 rm -f conftest.er1
3679 cat conftest.err >&5
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); } && {
3682 test -z "$ac_c_werror_flag" ||
3683 test ! -s conftest.err
3684 } && test -s conftest.$ac_objext; then
3685 ac_cv_c_inline=$ac_kw
3686 else
3687 echo "$as_me: failed program was:" >&5
3688 sed 's/^/| /' conftest.$ac_ext >&5
3693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3694 test "$ac_cv_c_inline" != no && break
3695 done
3698 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3699 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
3702 case $ac_cv_c_inline in
3703 inline | yes) ;;
3705 case $ac_cv_c_inline in
3706 no) ac_val=;;
3707 *) ac_val=$ac_cv_c_inline;;
3708 esac
3709 cat >>confdefs.h <<_ACEOF
3710 #ifndef __cplusplus
3711 #define inline $ac_val
3712 #endif
3713 _ACEOF
3715 esac
3719 ## ----------------------- ##
3720 ## Libtool initialisation. ##
3721 ## ----------------------- ##
3724 # Check whether --enable-shared was given.
3725 if test "${enable_shared+set}" = set; then
3726 enableval=$enable_shared; p=${PACKAGE-default}
3727 case $enableval in
3728 yes) enable_shared=yes ;;
3729 no) enable_shared=no ;;
3731 enable_shared=no
3732 # Look at the argument we got. We use all the common list separators.
3733 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3734 for pkg in $enableval; do
3735 IFS="$lt_save_ifs"
3736 if test "X$pkg" = "X$p"; then
3737 enable_shared=yes
3739 done
3740 IFS="$lt_save_ifs"
3742 esac
3743 else
3744 enable_shared=yes
3748 # Check whether --enable-static was given.
3749 if test "${enable_static+set}" = set; then
3750 enableval=$enable_static; p=${PACKAGE-default}
3751 case $enableval in
3752 yes) enable_static=yes ;;
3753 no) enable_static=no ;;
3755 enable_static=no
3756 # Look at the argument we got. We use all the common list separators.
3757 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3758 for pkg in $enableval; do
3759 IFS="$lt_save_ifs"
3760 if test "X$pkg" = "X$p"; then
3761 enable_static=yes
3763 done
3764 IFS="$lt_save_ifs"
3766 esac
3767 else
3768 enable_static=yes
3772 # Check whether --enable-fast-install was given.
3773 if test "${enable_fast_install+set}" = set; then
3774 enableval=$enable_fast_install; p=${PACKAGE-default}
3775 case $enableval in
3776 yes) enable_fast_install=yes ;;
3777 no) enable_fast_install=no ;;
3779 enable_fast_install=no
3780 # Look at the argument we got. We use all the common list separators.
3781 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3782 for pkg in $enableval; do
3783 IFS="$lt_save_ifs"
3784 if test "X$pkg" = "X$p"; then
3785 enable_fast_install=yes
3787 done
3788 IFS="$lt_save_ifs"
3790 esac
3791 else
3792 enable_fast_install=yes
3796 # Make sure we can run config.sub.
3797 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3798 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3799 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3800 { (exit 1); exit 1; }; }
3802 { echo "$as_me:$LINENO: checking build system type" >&5
3803 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3804 if test "${ac_cv_build+set}" = set; then
3805 echo $ECHO_N "(cached) $ECHO_C" >&6
3806 else
3807 ac_build_alias=$build_alias
3808 test "x$ac_build_alias" = x &&
3809 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3810 test "x$ac_build_alias" = x &&
3811 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3812 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3813 { (exit 1); exit 1; }; }
3814 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3815 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3816 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3817 { (exit 1); exit 1; }; }
3820 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3821 echo "${ECHO_T}$ac_cv_build" >&6; }
3822 case $ac_cv_build in
3823 *-*-*) ;;
3824 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3825 echo "$as_me: error: invalid value of canonical build" >&2;}
3826 { (exit 1); exit 1; }; };;
3827 esac
3828 build=$ac_cv_build
3829 ac_save_IFS=$IFS; IFS='-'
3830 set x $ac_cv_build
3831 shift
3832 build_cpu=$1
3833 build_vendor=$2
3834 shift; shift
3835 # Remember, the first character of IFS is used to create $*,
3836 # except with old shells:
3837 build_os=$*
3838 IFS=$ac_save_IFS
3839 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3842 { echo "$as_me:$LINENO: checking host system type" >&5
3843 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3844 if test "${ac_cv_host+set}" = set; then
3845 echo $ECHO_N "(cached) $ECHO_C" >&6
3846 else
3847 if test "x$host_alias" = x; then
3848 ac_cv_host=$ac_cv_build
3849 else
3850 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3851 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3852 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3853 { (exit 1); exit 1; }; }
3857 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3858 echo "${ECHO_T}$ac_cv_host" >&6; }
3859 case $ac_cv_host in
3860 *-*-*) ;;
3861 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3862 echo "$as_me: error: invalid value of canonical host" >&2;}
3863 { (exit 1); exit 1; }; };;
3864 esac
3865 host=$ac_cv_host
3866 ac_save_IFS=$IFS; IFS='-'
3867 set x $ac_cv_host
3868 shift
3869 host_cpu=$1
3870 host_vendor=$2
3871 shift; shift
3872 # Remember, the first character of IFS is used to create $*,
3873 # except with old shells:
3874 host_os=$*
3875 IFS=$ac_save_IFS
3876 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3879 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3880 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3881 if test "${lt_cv_path_SED+set}" = set; then
3882 echo $ECHO_N "(cached) $ECHO_C" >&6
3883 else
3884 # Loop through the user's path and test for sed and gsed.
3885 # Then use that list of sed's as ones to test for truncation.
3886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3887 for as_dir in $PATH
3889 IFS=$as_save_IFS
3890 test -z "$as_dir" && as_dir=.
3891 for lt_ac_prog in sed gsed; do
3892 for ac_exec_ext in '' $ac_executable_extensions; do
3893 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3894 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3896 done
3897 done
3898 done
3899 IFS=$as_save_IFS
3900 lt_ac_max=0
3901 lt_ac_count=0
3902 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3903 # along with /bin/sed that truncates output.
3904 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3905 test ! -f $lt_ac_sed && continue
3906 cat /dev/null > conftest.in
3907 lt_ac_count=0
3908 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3909 # Check for GNU sed and select it if it is found.
3910 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3911 lt_cv_path_SED=$lt_ac_sed
3912 break
3914 while true; do
3915 cat conftest.in conftest.in >conftest.tmp
3916 mv conftest.tmp conftest.in
3917 cp conftest.in conftest.nl
3918 echo >>conftest.nl
3919 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3920 cmp -s conftest.out conftest.nl || break
3921 # 10000 chars as input seems more than enough
3922 test $lt_ac_count -gt 10 && break
3923 lt_ac_count=`expr $lt_ac_count + 1`
3924 if test $lt_ac_count -gt $lt_ac_max; then
3925 lt_ac_max=$lt_ac_count
3926 lt_cv_path_SED=$lt_ac_sed
3928 done
3929 done
3933 SED=$lt_cv_path_SED
3935 { echo "$as_me:$LINENO: result: $SED" >&5
3936 echo "${ECHO_T}$SED" >&6; }
3938 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3939 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3940 if test "${ac_cv_path_GREP+set}" = set; then
3941 echo $ECHO_N "(cached) $ECHO_C" >&6
3942 else
3943 # Extract the first word of "grep ggrep" to use in msg output
3944 if test -z "$GREP"; then
3945 set dummy grep ggrep; ac_prog_name=$2
3946 if test "${ac_cv_path_GREP+set}" = set; then
3947 echo $ECHO_N "(cached) $ECHO_C" >&6
3948 else
3949 ac_path_GREP_found=false
3950 # Loop through the user's path and test for each of PROGNAME-LIST
3951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3952 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3954 IFS=$as_save_IFS
3955 test -z "$as_dir" && as_dir=.
3956 for ac_prog in grep ggrep; do
3957 for ac_exec_ext in '' $ac_executable_extensions; do
3958 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3959 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3960 # Check for GNU ac_path_GREP and select it if it is found.
3961 # Check for GNU $ac_path_GREP
3962 case `"$ac_path_GREP" --version 2>&1` in
3963 *GNU*)
3964 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3966 ac_count=0
3967 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3968 while :
3970 cat "conftest.in" "conftest.in" >"conftest.tmp"
3971 mv "conftest.tmp" "conftest.in"
3972 cp "conftest.in" "conftest.nl"
3973 echo 'GREP' >> "conftest.nl"
3974 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3975 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3976 ac_count=`expr $ac_count + 1`
3977 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3978 # Best one so far, save it but keep looking for a better one
3979 ac_cv_path_GREP="$ac_path_GREP"
3980 ac_path_GREP_max=$ac_count
3982 # 10*(2^10) chars as input seems more than enough
3983 test $ac_count -gt 10 && break
3984 done
3985 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3986 esac
3989 $ac_path_GREP_found && break 3
3990 done
3991 done
3993 done
3994 IFS=$as_save_IFS
3999 GREP="$ac_cv_path_GREP"
4000 if test -z "$GREP"; then
4001 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4002 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4003 { (exit 1); exit 1; }; }
4006 else
4007 ac_cv_path_GREP=$GREP
4012 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4013 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4014 GREP="$ac_cv_path_GREP"
4017 { echo "$as_me:$LINENO: checking for egrep" >&5
4018 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4019 if test "${ac_cv_path_EGREP+set}" = set; then
4020 echo $ECHO_N "(cached) $ECHO_C" >&6
4021 else
4022 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4023 then ac_cv_path_EGREP="$GREP -E"
4024 else
4025 # Extract the first word of "egrep" to use in msg output
4026 if test -z "$EGREP"; then
4027 set dummy egrep; ac_prog_name=$2
4028 if test "${ac_cv_path_EGREP+set}" = set; then
4029 echo $ECHO_N "(cached) $ECHO_C" >&6
4030 else
4031 ac_path_EGREP_found=false
4032 # Loop through the user's path and test for each of PROGNAME-LIST
4033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4034 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4036 IFS=$as_save_IFS
4037 test -z "$as_dir" && as_dir=.
4038 for ac_prog in egrep; do
4039 for ac_exec_ext in '' $ac_executable_extensions; do
4040 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4041 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4042 # Check for GNU ac_path_EGREP and select it if it is found.
4043 # Check for GNU $ac_path_EGREP
4044 case `"$ac_path_EGREP" --version 2>&1` in
4045 *GNU*)
4046 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4048 ac_count=0
4049 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4050 while :
4052 cat "conftest.in" "conftest.in" >"conftest.tmp"
4053 mv "conftest.tmp" "conftest.in"
4054 cp "conftest.in" "conftest.nl"
4055 echo 'EGREP' >> "conftest.nl"
4056 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4057 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4058 ac_count=`expr $ac_count + 1`
4059 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4060 # Best one so far, save it but keep looking for a better one
4061 ac_cv_path_EGREP="$ac_path_EGREP"
4062 ac_path_EGREP_max=$ac_count
4064 # 10*(2^10) chars as input seems more than enough
4065 test $ac_count -gt 10 && break
4066 done
4067 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4068 esac
4071 $ac_path_EGREP_found && break 3
4072 done
4073 done
4075 done
4076 IFS=$as_save_IFS
4081 EGREP="$ac_cv_path_EGREP"
4082 if test -z "$EGREP"; then
4083 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4084 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4085 { (exit 1); exit 1; }; }
4088 else
4089 ac_cv_path_EGREP=$EGREP
4095 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4096 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4097 EGREP="$ac_cv_path_EGREP"
4101 # Check whether --with-gnu-ld was given.
4102 if test "${with_gnu_ld+set}" = set; then
4103 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4104 else
4105 with_gnu_ld=no
4108 ac_prog=ld
4109 if test "$GCC" = yes; then
4110 # Check if gcc -print-prog-name=ld gives a path.
4111 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4112 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4113 case $host in
4114 *-*-mingw*)
4115 # gcc leaves a trailing carriage return which upsets mingw
4116 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4118 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4119 esac
4120 case $ac_prog in
4121 # Accept absolute paths.
4122 [\\/]* | ?:[\\/]*)
4123 re_direlt='/[^/][^/]*/\.\./'
4124 # Canonicalize the pathname of ld
4125 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4126 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4127 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4128 done
4129 test -z "$LD" && LD="$ac_prog"
4132 # If it fails, then pretend we aren't using GCC.
4133 ac_prog=ld
4136 # If it is relative, then search for the first ld in PATH.
4137 with_gnu_ld=unknown
4139 esac
4140 elif test "$with_gnu_ld" = yes; then
4141 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4142 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4143 else
4144 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4145 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4147 if test "${lt_cv_path_LD+set}" = set; then
4148 echo $ECHO_N "(cached) $ECHO_C" >&6
4149 else
4150 if test -z "$LD"; then
4151 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4152 for ac_dir in $PATH; do
4153 IFS="$lt_save_ifs"
4154 test -z "$ac_dir" && ac_dir=.
4155 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4156 lt_cv_path_LD="$ac_dir/$ac_prog"
4157 # Check to see if the program is GNU ld. I'd rather use --version,
4158 # but apparently some variants of GNU ld only accept -v.
4159 # Break only if it was the GNU/non-GNU ld that we prefer.
4160 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4161 *GNU* | *'with BFD'*)
4162 test "$with_gnu_ld" != no && break
4165 test "$with_gnu_ld" != yes && break
4167 esac
4169 done
4170 IFS="$lt_save_ifs"
4171 else
4172 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4176 LD="$lt_cv_path_LD"
4177 if test -n "$LD"; then
4178 { echo "$as_me:$LINENO: result: $LD" >&5
4179 echo "${ECHO_T}$LD" >&6; }
4180 else
4181 { echo "$as_me:$LINENO: result: no" >&5
4182 echo "${ECHO_T}no" >&6; }
4184 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4185 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4186 { (exit 1); exit 1; }; }
4187 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4188 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4189 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4190 echo $ECHO_N "(cached) $ECHO_C" >&6
4191 else
4192 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4193 case `$LD -v 2>&1 </dev/null` in
4194 *GNU* | *'with BFD'*)
4195 lt_cv_prog_gnu_ld=yes
4198 lt_cv_prog_gnu_ld=no
4200 esac
4202 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4203 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4204 with_gnu_ld=$lt_cv_prog_gnu_ld
4207 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4208 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4209 if test "${lt_cv_ld_reload_flag+set}" = set; then
4210 echo $ECHO_N "(cached) $ECHO_C" >&6
4211 else
4212 lt_cv_ld_reload_flag='-r'
4214 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4215 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4216 reload_flag=$lt_cv_ld_reload_flag
4217 case $reload_flag in
4218 "" | " "*) ;;
4219 *) reload_flag=" $reload_flag" ;;
4220 esac
4221 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4222 case $host_os in
4223 darwin*)
4224 if test "$GCC" = yes; then
4225 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4226 else
4227 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4230 esac
4232 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4233 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4234 if test "${lt_cv_path_NM+set}" = set; then
4235 echo $ECHO_N "(cached) $ECHO_C" >&6
4236 else
4237 if test -n "$NM"; then
4238 # Let the user override the test.
4239 lt_cv_path_NM="$NM"
4240 else
4241 lt_nm_to_check="${ac_tool_prefix}nm"
4242 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4243 lt_nm_to_check="$lt_nm_to_check nm"
4245 for lt_tmp_nm in $lt_nm_to_check; do
4246 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4247 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4248 IFS="$lt_save_ifs"
4249 test -z "$ac_dir" && ac_dir=.
4250 tmp_nm="$ac_dir/$lt_tmp_nm"
4251 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4252 # Check to see if the nm accepts a BSD-compat flag.
4253 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4254 # nm: unknown option "B" ignored
4255 # Tru64's nm complains that /dev/null is an invalid object file
4256 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4257 */dev/null* | *'Invalid file or object type'*)
4258 lt_cv_path_NM="$tmp_nm -B"
4259 break
4262 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4263 */dev/null*)
4264 lt_cv_path_NM="$tmp_nm -p"
4265 break
4268 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4269 continue # so that we can try to find one that supports BSD flags
4271 esac
4273 esac
4275 done
4276 IFS="$lt_save_ifs"
4277 done
4278 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4281 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4282 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4283 NM="$lt_cv_path_NM"
4285 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4286 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4287 LN_S=$as_ln_s
4288 if test "$LN_S" = "ln -s"; then
4289 { echo "$as_me:$LINENO: result: yes" >&5
4290 echo "${ECHO_T}yes" >&6; }
4291 else
4292 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4293 echo "${ECHO_T}no, using $LN_S" >&6; }
4296 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4297 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4298 if test "${lt_cv_deplibs_check_method+set}" = set; then
4299 echo $ECHO_N "(cached) $ECHO_C" >&6
4300 else
4301 lt_cv_file_magic_cmd='$MAGIC_CMD'
4302 lt_cv_file_magic_test_file=
4303 lt_cv_deplibs_check_method='unknown'
4304 # Need to set the preceding variable on all platforms that support
4305 # interlibrary dependencies.
4306 # 'none' -- dependencies not supported.
4307 # `unknown' -- same as none, but documents that we really don't know.
4308 # 'pass_all' -- all dependencies passed with no checks.
4309 # 'test_compile' -- check by making test program.
4310 # 'file_magic [[regex]]' -- check by looking for files in library path
4311 # which responds to the $file_magic_cmd with a given extended regex.
4312 # If you have `file' or equivalent on your system and you're not sure
4313 # whether `pass_all' will *always* work, you probably want this one.
4315 case $host_os in
4316 aix4* | aix5*)
4317 lt_cv_deplibs_check_method=pass_all
4320 beos*)
4321 lt_cv_deplibs_check_method=pass_all
4324 bsdi[45]*)
4325 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4326 lt_cv_file_magic_cmd='/usr/bin/file -L'
4327 lt_cv_file_magic_test_file=/shlib/libc.so
4330 cygwin*)
4331 # func_win32_libid is a shell function defined in ltmain.sh
4332 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4333 lt_cv_file_magic_cmd='func_win32_libid'
4336 mingw* | pw32*)
4337 # Base MSYS/MinGW do not provide the 'file' command needed by
4338 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4339 # unless we find 'file', for example because we are cross-compiling.
4340 if ( file / ) >/dev/null 2>&1; then
4341 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4342 lt_cv_file_magic_cmd='func_win32_libid'
4343 else
4344 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4345 lt_cv_file_magic_cmd='$OBJDUMP -f'
4349 darwin* | rhapsody*)
4350 lt_cv_deplibs_check_method=pass_all
4353 freebsd* | dragonfly*)
4354 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4355 case $host_cpu in
4356 i*86 )
4357 # Not sure whether the presence of OpenBSD here was a mistake.
4358 # Let's accept both of them until this is cleared up.
4359 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4360 lt_cv_file_magic_cmd=/usr/bin/file
4361 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4363 esac
4364 else
4365 lt_cv_deplibs_check_method=pass_all
4369 gnu*)
4370 lt_cv_deplibs_check_method=pass_all
4373 hpux10.20* | hpux11*)
4374 lt_cv_file_magic_cmd=/usr/bin/file
4375 case $host_cpu in
4376 ia64*)
4377 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4378 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4380 hppa*64*)
4381 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]'
4382 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4385 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4386 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4388 esac
4391 interix[3-9]*)
4392 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4393 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4396 irix5* | irix6* | nonstopux*)
4397 case $LD in
4398 *-32|*"-32 ") libmagic=32-bit;;
4399 *-n32|*"-n32 ") libmagic=N32;;
4400 *-64|*"-64 ") libmagic=64-bit;;
4401 *) libmagic=never-match;;
4402 esac
4403 lt_cv_deplibs_check_method=pass_all
4406 # This must be Linux ELF.
4407 linux* | k*bsd*-gnu)
4408 lt_cv_deplibs_check_method=pass_all
4411 netbsd*)
4412 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4413 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4414 else
4415 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4419 newos6*)
4420 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4421 lt_cv_file_magic_cmd=/usr/bin/file
4422 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4425 nto-qnx*)
4426 lt_cv_deplibs_check_method=unknown
4429 openbsd*)
4430 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4431 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4432 else
4433 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4437 osf3* | osf4* | osf5*)
4438 lt_cv_deplibs_check_method=pass_all
4441 rdos*)
4442 lt_cv_deplibs_check_method=pass_all
4445 solaris*)
4446 lt_cv_deplibs_check_method=pass_all
4449 sysv4 | sysv4.3*)
4450 case $host_vendor in
4451 motorola)
4452 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]'
4453 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4455 ncr)
4456 lt_cv_deplibs_check_method=pass_all
4458 sequent)
4459 lt_cv_file_magic_cmd='/bin/file'
4460 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4462 sni)
4463 lt_cv_file_magic_cmd='/bin/file'
4464 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4465 lt_cv_file_magic_test_file=/lib/libc.so
4467 siemens)
4468 lt_cv_deplibs_check_method=pass_all
4471 lt_cv_deplibs_check_method=pass_all
4473 esac
4476 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4477 lt_cv_deplibs_check_method=pass_all
4479 esac
4482 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4483 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4484 file_magic_cmd=$lt_cv_file_magic_cmd
4485 deplibs_check_method=$lt_cv_deplibs_check_method
4486 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4491 # If no C compiler was specified, use CC.
4492 LTCC=${LTCC-"$CC"}
4494 # If no C compiler flags were specified, use CFLAGS.
4495 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4497 # Allow CC to be a program name with arguments.
4498 compiler=$CC
4500 # Check whether --enable-libtool-lock was given.
4501 if test "${enable_libtool_lock+set}" = set; then
4502 enableval=$enable_libtool_lock;
4505 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4507 # Some flags need to be propagated to the compiler or linker for good
4508 # libtool support.
4509 case $host in
4510 ia64-*-hpux*)
4511 # Find out which ABI we are using.
4512 echo 'int i;' > conftest.$ac_ext
4513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4514 (eval $ac_compile) 2>&5
4515 ac_status=$?
4516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517 (exit $ac_status); }; then
4518 case `/usr/bin/file conftest.$ac_objext` in
4519 *ELF-32*)
4520 HPUX_IA64_MODE="32"
4522 *ELF-64*)
4523 HPUX_IA64_MODE="64"
4525 esac
4527 rm -rf conftest*
4529 *-*-irix6*)
4530 # Find out which ABI we are using.
4531 echo '#line 4531 "configure"' > conftest.$ac_ext
4532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4533 (eval $ac_compile) 2>&5
4534 ac_status=$?
4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536 (exit $ac_status); }; then
4537 if test "$lt_cv_prog_gnu_ld" = yes; then
4538 case `/usr/bin/file conftest.$ac_objext` in
4539 *32-bit*)
4540 LD="${LD-ld} -melf32bsmip"
4542 *N32*)
4543 LD="${LD-ld} -melf32bmipn32"
4545 *64-bit*)
4546 LD="${LD-ld} -melf64bmip"
4548 esac
4549 else
4550 case `/usr/bin/file conftest.$ac_objext` in
4551 *32-bit*)
4552 LD="${LD-ld} -32"
4554 *N32*)
4555 LD="${LD-ld} -n32"
4557 *64-bit*)
4558 LD="${LD-ld} -64"
4560 esac
4563 rm -rf conftest*
4566 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4567 s390*-*linux*|sparc*-*linux*)
4568 # Find out which ABI we are using.
4569 echo 'int i;' > conftest.$ac_ext
4570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4571 (eval $ac_compile) 2>&5
4572 ac_status=$?
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); }; then
4575 case `/usr/bin/file conftest.o` in
4576 *32-bit*)
4577 case $host in
4578 x86_64-*kfreebsd*-gnu)
4579 LD="${LD-ld} -m elf_i386_fbsd"
4581 x86_64-*linux*)
4582 LD="${LD-ld} -m elf_i386"
4584 ppc64-*linux*|powerpc64-*linux*)
4585 LD="${LD-ld} -m elf32ppclinux"
4587 s390x-*linux*)
4588 LD="${LD-ld} -m elf_s390"
4590 sparc64-*linux*)
4591 LD="${LD-ld} -m elf32_sparc"
4593 esac
4595 *64-bit*)
4596 case $host in
4597 x86_64-*kfreebsd*-gnu)
4598 LD="${LD-ld} -m elf_x86_64_fbsd"
4600 x86_64-*linux*)
4601 LD="${LD-ld} -m elf_x86_64"
4603 ppc*-*linux*|powerpc*-*linux*)
4604 LD="${LD-ld} -m elf64ppc"
4606 s390*-*linux*)
4607 LD="${LD-ld} -m elf64_s390"
4609 sparc*-*linux*)
4610 LD="${LD-ld} -m elf64_sparc"
4612 esac
4614 esac
4616 rm -rf conftest*
4619 *-*-sco3.2v5*)
4620 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4621 SAVE_CFLAGS="$CFLAGS"
4622 CFLAGS="$CFLAGS -belf"
4623 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4624 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4625 if test "${lt_cv_cc_needs_belf+set}" = set; then
4626 echo $ECHO_N "(cached) $ECHO_C" >&6
4627 else
4628 ac_ext=c
4629 ac_cpp='$CPP $CPPFLAGS'
4630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4634 cat >conftest.$ac_ext <<_ACEOF
4635 /* confdefs.h. */
4636 _ACEOF
4637 cat confdefs.h >>conftest.$ac_ext
4638 cat >>conftest.$ac_ext <<_ACEOF
4639 /* end confdefs.h. */
4642 main ()
4646 return 0;
4648 _ACEOF
4649 rm -f conftest.$ac_objext conftest$ac_exeext
4650 if { (ac_try="$ac_link"
4651 case "(($ac_try" in
4652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4653 *) ac_try_echo=$ac_try;;
4654 esac
4655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 test -z "$ac_c_werror_flag" ||
4664 test ! -s conftest.err
4665 } && test -s conftest$ac_exeext &&
4666 $as_test_x conftest$ac_exeext; then
4667 lt_cv_cc_needs_belf=yes
4668 else
4669 echo "$as_me: failed program was:" >&5
4670 sed 's/^/| /' conftest.$ac_ext >&5
4672 lt_cv_cc_needs_belf=no
4675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4676 conftest$ac_exeext conftest.$ac_ext
4677 ac_ext=c
4678 ac_cpp='$CPP $CPPFLAGS'
4679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4684 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4685 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4686 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4687 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4688 CFLAGS="$SAVE_CFLAGS"
4691 sparc*-*solaris*)
4692 # Find out which ABI we are using.
4693 echo 'int i;' > conftest.$ac_ext
4694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4695 (eval $ac_compile) 2>&5
4696 ac_status=$?
4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698 (exit $ac_status); }; then
4699 case `/usr/bin/file conftest.o` in
4700 *64-bit*)
4701 case $lt_cv_prog_gnu_ld in
4702 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4703 *) LD="${LD-ld} -64" ;;
4704 esac
4706 esac
4708 rm -rf conftest*
4711 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4712 if test -n "$ac_tool_prefix"; then
4713 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4714 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4715 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4717 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4718 echo $ECHO_N "(cached) $ECHO_C" >&6
4719 else
4720 if test -n "$DLLTOOL"; then
4721 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4722 else
4723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4724 for as_dir in $PATH
4726 IFS=$as_save_IFS
4727 test -z "$as_dir" && as_dir=.
4728 for ac_exec_ext in '' $ac_executable_extensions; do
4729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4730 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4732 break 2
4734 done
4735 done
4736 IFS=$as_save_IFS
4740 DLLTOOL=$ac_cv_prog_DLLTOOL
4741 if test -n "$DLLTOOL"; then
4742 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4743 echo "${ECHO_T}$DLLTOOL" >&6; }
4744 else
4745 { echo "$as_me:$LINENO: result: no" >&5
4746 echo "${ECHO_T}no" >&6; }
4751 if test -z "$ac_cv_prog_DLLTOOL"; then
4752 ac_ct_DLLTOOL=$DLLTOOL
4753 # Extract the first word of "dlltool", so it can be a program name with args.
4754 set dummy dlltool; ac_word=$2
4755 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4757 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4758 echo $ECHO_N "(cached) $ECHO_C" >&6
4759 else
4760 if test -n "$ac_ct_DLLTOOL"; then
4761 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4762 else
4763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764 for as_dir in $PATH
4766 IFS=$as_save_IFS
4767 test -z "$as_dir" && as_dir=.
4768 for ac_exec_ext in '' $ac_executable_extensions; do
4769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4770 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4772 break 2
4774 done
4775 done
4776 IFS=$as_save_IFS
4780 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4781 if test -n "$ac_ct_DLLTOOL"; then
4782 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4783 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
4784 else
4785 { echo "$as_me:$LINENO: result: no" >&5
4786 echo "${ECHO_T}no" >&6; }
4789 if test "x$ac_ct_DLLTOOL" = x; then
4790 DLLTOOL="false"
4791 else
4792 case $cross_compiling:$ac_tool_warned in
4793 yes:)
4794 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4795 whose name does not start with the host triplet. If you think this
4796 configuration is useful to you, please write to autoconf@gnu.org." >&5
4797 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4798 whose name does not start with the host triplet. If you think this
4799 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4800 ac_tool_warned=yes ;;
4801 esac
4802 DLLTOOL=$ac_ct_DLLTOOL
4804 else
4805 DLLTOOL="$ac_cv_prog_DLLTOOL"
4808 if test -n "$ac_tool_prefix"; then
4809 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4810 set dummy ${ac_tool_prefix}as; ac_word=$2
4811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4813 if test "${ac_cv_prog_AS+set}" = set; then
4814 echo $ECHO_N "(cached) $ECHO_C" >&6
4815 else
4816 if test -n "$AS"; then
4817 ac_cv_prog_AS="$AS" # Let the user override the test.
4818 else
4819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820 for as_dir in $PATH
4822 IFS=$as_save_IFS
4823 test -z "$as_dir" && as_dir=.
4824 for ac_exec_ext in '' $ac_executable_extensions; do
4825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4826 ac_cv_prog_AS="${ac_tool_prefix}as"
4827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4828 break 2
4830 done
4831 done
4832 IFS=$as_save_IFS
4836 AS=$ac_cv_prog_AS
4837 if test -n "$AS"; then
4838 { echo "$as_me:$LINENO: result: $AS" >&5
4839 echo "${ECHO_T}$AS" >&6; }
4840 else
4841 { echo "$as_me:$LINENO: result: no" >&5
4842 echo "${ECHO_T}no" >&6; }
4847 if test -z "$ac_cv_prog_AS"; then
4848 ac_ct_AS=$AS
4849 # Extract the first word of "as", so it can be a program name with args.
4850 set dummy as; ac_word=$2
4851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4853 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4854 echo $ECHO_N "(cached) $ECHO_C" >&6
4855 else
4856 if test -n "$ac_ct_AS"; then
4857 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4858 else
4859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860 for as_dir in $PATH
4862 IFS=$as_save_IFS
4863 test -z "$as_dir" && as_dir=.
4864 for ac_exec_ext in '' $ac_executable_extensions; do
4865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4866 ac_cv_prog_ac_ct_AS="as"
4867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4868 break 2
4870 done
4871 done
4872 IFS=$as_save_IFS
4876 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4877 if test -n "$ac_ct_AS"; then
4878 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4879 echo "${ECHO_T}$ac_ct_AS" >&6; }
4880 else
4881 { echo "$as_me:$LINENO: result: no" >&5
4882 echo "${ECHO_T}no" >&6; }
4885 if test "x$ac_ct_AS" = x; then
4886 AS="false"
4887 else
4888 case $cross_compiling:$ac_tool_warned in
4889 yes:)
4890 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4891 whose name does not start with the host triplet. If you think this
4892 configuration is useful to you, please write to autoconf@gnu.org." >&5
4893 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4894 whose name does not start with the host triplet. If you think this
4895 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4896 ac_tool_warned=yes ;;
4897 esac
4898 AS=$ac_ct_AS
4900 else
4901 AS="$ac_cv_prog_AS"
4904 if test -n "$ac_tool_prefix"; then
4905 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4906 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4907 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4909 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4910 echo $ECHO_N "(cached) $ECHO_C" >&6
4911 else
4912 if test -n "$OBJDUMP"; then
4913 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4914 else
4915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4916 for as_dir in $PATH
4918 IFS=$as_save_IFS
4919 test -z "$as_dir" && as_dir=.
4920 for ac_exec_ext in '' $ac_executable_extensions; do
4921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4922 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4924 break 2
4926 done
4927 done
4928 IFS=$as_save_IFS
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; }
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
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_test_x "$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
4966 done
4967 done
4968 IFS=$as_save_IFS
4972 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4973 if test -n "$ac_ct_OBJDUMP"; then
4974 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4975 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
4976 else
4977 { echo "$as_me:$LINENO: result: no" >&5
4978 echo "${ECHO_T}no" >&6; }
4981 if test "x$ac_ct_OBJDUMP" = x; then
4982 OBJDUMP="false"
4983 else
4984 case $cross_compiling:$ac_tool_warned in
4985 yes:)
4986 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4987 whose name does not start with the host triplet. If you think this
4988 configuration is useful to you, please write to autoconf@gnu.org." >&5
4989 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4990 whose name does not start with the host triplet. If you think this
4991 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4992 ac_tool_warned=yes ;;
4993 esac
4994 OBJDUMP=$ac_ct_OBJDUMP
4996 else
4997 OBJDUMP="$ac_cv_prog_OBJDUMP"
5002 esac
5004 need_locks="$enable_libtool_lock"
5007 ac_ext=c
5008 ac_cpp='$CPP $CPPFLAGS'
5009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5012 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5013 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5014 # On Suns, sometimes $CPP names a directory.
5015 if test -n "$CPP" && test -d "$CPP"; then
5016 CPP=
5018 if test -z "$CPP"; then
5019 if test "${ac_cv_prog_CPP+set}" = set; then
5020 echo $ECHO_N "(cached) $ECHO_C" >&6
5021 else
5022 # Double quotes because CPP needs to be expanded
5023 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5025 ac_preproc_ok=false
5026 for ac_c_preproc_warn_flag in '' yes
5028 # Use a header file that comes with gcc, so configuring glibc
5029 # with a fresh cross-compiler works.
5030 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5031 # <limits.h> exists even on freestanding compilers.
5032 # On the NeXT, cc -E runs the code through the compiler's parser,
5033 # not just through cpp. "Syntax error" is here to catch this case.
5034 cat >conftest.$ac_ext <<_ACEOF
5035 /* confdefs.h. */
5036 _ACEOF
5037 cat confdefs.h >>conftest.$ac_ext
5038 cat >>conftest.$ac_ext <<_ACEOF
5039 /* end confdefs.h. */
5040 #ifdef __STDC__
5041 # include <limits.h>
5042 #else
5043 # include <assert.h>
5044 #endif
5045 Syntax error
5046 _ACEOF
5047 if { (ac_try="$ac_cpp conftest.$ac_ext"
5048 case "(($ac_try" in
5049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5050 *) ac_try_echo=$ac_try;;
5051 esac
5052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5053 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5054 ac_status=$?
5055 grep -v '^ *+' conftest.er1 >conftest.err
5056 rm -f conftest.er1
5057 cat conftest.err >&5
5058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059 (exit $ac_status); } >/dev/null && {
5060 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5061 test ! -s conftest.err
5062 }; then
5064 else
5065 echo "$as_me: failed program was:" >&5
5066 sed 's/^/| /' conftest.$ac_ext >&5
5068 # Broken: fails on valid input.
5069 continue
5072 rm -f conftest.err conftest.$ac_ext
5074 # OK, works on sane cases. Now check whether nonexistent headers
5075 # can be detected and how.
5076 cat >conftest.$ac_ext <<_ACEOF
5077 /* confdefs.h. */
5078 _ACEOF
5079 cat confdefs.h >>conftest.$ac_ext
5080 cat >>conftest.$ac_ext <<_ACEOF
5081 /* end confdefs.h. */
5082 #include <ac_nonexistent.h>
5083 _ACEOF
5084 if { (ac_try="$ac_cpp conftest.$ac_ext"
5085 case "(($ac_try" in
5086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5087 *) ac_try_echo=$ac_try;;
5088 esac
5089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5090 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5091 ac_status=$?
5092 grep -v '^ *+' conftest.er1 >conftest.err
5093 rm -f conftest.er1
5094 cat conftest.err >&5
5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); } >/dev/null && {
5097 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5098 test ! -s conftest.err
5099 }; then
5100 # Broken: success on invalid input.
5101 continue
5102 else
5103 echo "$as_me: failed program was:" >&5
5104 sed 's/^/| /' conftest.$ac_ext >&5
5106 # Passes both tests.
5107 ac_preproc_ok=:
5108 break
5111 rm -f conftest.err conftest.$ac_ext
5113 done
5114 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5115 rm -f conftest.err conftest.$ac_ext
5116 if $ac_preproc_ok; then
5117 break
5120 done
5121 ac_cv_prog_CPP=$CPP
5124 CPP=$ac_cv_prog_CPP
5125 else
5126 ac_cv_prog_CPP=$CPP
5128 { echo "$as_me:$LINENO: result: $CPP" >&5
5129 echo "${ECHO_T}$CPP" >&6; }
5130 ac_preproc_ok=false
5131 for ac_c_preproc_warn_flag in '' yes
5133 # Use a header file that comes with gcc, so configuring glibc
5134 # with a fresh cross-compiler works.
5135 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5136 # <limits.h> exists even on freestanding compilers.
5137 # On the NeXT, cc -E runs the code through the compiler's parser,
5138 # not just through cpp. "Syntax error" is here to catch this case.
5139 cat >conftest.$ac_ext <<_ACEOF
5140 /* confdefs.h. */
5141 _ACEOF
5142 cat confdefs.h >>conftest.$ac_ext
5143 cat >>conftest.$ac_ext <<_ACEOF
5144 /* end confdefs.h. */
5145 #ifdef __STDC__
5146 # include <limits.h>
5147 #else
5148 # include <assert.h>
5149 #endif
5150 Syntax error
5151 _ACEOF
5152 if { (ac_try="$ac_cpp conftest.$ac_ext"
5153 case "(($ac_try" in
5154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5155 *) ac_try_echo=$ac_try;;
5156 esac
5157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5158 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5159 ac_status=$?
5160 grep -v '^ *+' conftest.er1 >conftest.err
5161 rm -f conftest.er1
5162 cat conftest.err >&5
5163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164 (exit $ac_status); } >/dev/null && {
5165 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5166 test ! -s conftest.err
5167 }; then
5169 else
5170 echo "$as_me: failed program was:" >&5
5171 sed 's/^/| /' conftest.$ac_ext >&5
5173 # Broken: fails on valid input.
5174 continue
5177 rm -f conftest.err conftest.$ac_ext
5179 # OK, works on sane cases. Now check whether nonexistent headers
5180 # can be detected and how.
5181 cat >conftest.$ac_ext <<_ACEOF
5182 /* confdefs.h. */
5183 _ACEOF
5184 cat confdefs.h >>conftest.$ac_ext
5185 cat >>conftest.$ac_ext <<_ACEOF
5186 /* end confdefs.h. */
5187 #include <ac_nonexistent.h>
5188 _ACEOF
5189 if { (ac_try="$ac_cpp conftest.$ac_ext"
5190 case "(($ac_try" in
5191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5192 *) ac_try_echo=$ac_try;;
5193 esac
5194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5195 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5196 ac_status=$?
5197 grep -v '^ *+' conftest.er1 >conftest.err
5198 rm -f conftest.er1
5199 cat conftest.err >&5
5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201 (exit $ac_status); } >/dev/null && {
5202 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5203 test ! -s conftest.err
5204 }; then
5205 # Broken: success on invalid input.
5206 continue
5207 else
5208 echo "$as_me: failed program was:" >&5
5209 sed 's/^/| /' conftest.$ac_ext >&5
5211 # Passes both tests.
5212 ac_preproc_ok=:
5213 break
5216 rm -f conftest.err conftest.$ac_ext
5218 done
5219 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5220 rm -f conftest.err conftest.$ac_ext
5221 if $ac_preproc_ok; then
5223 else
5224 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5225 See \`config.log' for more details." >&5
5226 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5227 See \`config.log' for more details." >&2;}
5228 { (exit 1); exit 1; }; }
5231 ac_ext=c
5232 ac_cpp='$CPP $CPPFLAGS'
5233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5238 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5239 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5240 if test "${ac_cv_header_stdc+set}" = set; then
5241 echo $ECHO_N "(cached) $ECHO_C" >&6
5242 else
5243 cat >conftest.$ac_ext <<_ACEOF
5244 /* confdefs.h. */
5245 _ACEOF
5246 cat confdefs.h >>conftest.$ac_ext
5247 cat >>conftest.$ac_ext <<_ACEOF
5248 /* end confdefs.h. */
5249 #include <stdlib.h>
5250 #include <stdarg.h>
5251 #include <string.h>
5252 #include <float.h>
5255 main ()
5259 return 0;
5261 _ACEOF
5262 rm -f conftest.$ac_objext
5263 if { (ac_try="$ac_compile"
5264 case "(($ac_try" in
5265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5266 *) ac_try_echo=$ac_try;;
5267 esac
5268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 test -z "$ac_c_werror_flag" ||
5277 test ! -s conftest.err
5278 } && test -s conftest.$ac_objext; then
5279 ac_cv_header_stdc=yes
5280 else
5281 echo "$as_me: failed program was:" >&5
5282 sed 's/^/| /' conftest.$ac_ext >&5
5284 ac_cv_header_stdc=no
5287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5289 if test $ac_cv_header_stdc = yes; then
5290 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5291 cat >conftest.$ac_ext <<_ACEOF
5292 /* confdefs.h. */
5293 _ACEOF
5294 cat confdefs.h >>conftest.$ac_ext
5295 cat >>conftest.$ac_ext <<_ACEOF
5296 /* end confdefs.h. */
5297 #include <string.h>
5299 _ACEOF
5300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5301 $EGREP "memchr" >/dev/null 2>&1; then
5303 else
5304 ac_cv_header_stdc=no
5306 rm -f conftest*
5310 if test $ac_cv_header_stdc = yes; then
5311 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5312 cat >conftest.$ac_ext <<_ACEOF
5313 /* confdefs.h. */
5314 _ACEOF
5315 cat confdefs.h >>conftest.$ac_ext
5316 cat >>conftest.$ac_ext <<_ACEOF
5317 /* end confdefs.h. */
5318 #include <stdlib.h>
5320 _ACEOF
5321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5322 $EGREP "free" >/dev/null 2>&1; then
5324 else
5325 ac_cv_header_stdc=no
5327 rm -f conftest*
5331 if test $ac_cv_header_stdc = yes; then
5332 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5333 if test "$cross_compiling" = yes; then
5335 else
5336 cat >conftest.$ac_ext <<_ACEOF
5337 /* confdefs.h. */
5338 _ACEOF
5339 cat confdefs.h >>conftest.$ac_ext
5340 cat >>conftest.$ac_ext <<_ACEOF
5341 /* end confdefs.h. */
5342 #include <ctype.h>
5343 #include <stdlib.h>
5344 #if ((' ' & 0x0FF) == 0x020)
5345 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5346 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5347 #else
5348 # define ISLOWER(c) \
5349 (('a' <= (c) && (c) <= 'i') \
5350 || ('j' <= (c) && (c) <= 'r') \
5351 || ('s' <= (c) && (c) <= 'z'))
5352 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5353 #endif
5355 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5357 main ()
5359 int i;
5360 for (i = 0; i < 256; i++)
5361 if (XOR (islower (i), ISLOWER (i))
5362 || toupper (i) != TOUPPER (i))
5363 return 2;
5364 return 0;
5366 _ACEOF
5367 rm -f conftest$ac_exeext
5368 if { (ac_try="$ac_link"
5369 case "(($ac_try" in
5370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5371 *) ac_try_echo=$ac_try;;
5372 esac
5373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5374 (eval "$ac_link") 2>&5
5375 ac_status=$?
5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5378 { (case "(($ac_try" in
5379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5380 *) ac_try_echo=$ac_try;;
5381 esac
5382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5383 (eval "$ac_try") 2>&5
5384 ac_status=$?
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); }; }; then
5388 else
5389 echo "$as_me: program exited with status $ac_status" >&5
5390 echo "$as_me: failed program was:" >&5
5391 sed 's/^/| /' conftest.$ac_ext >&5
5393 ( exit $ac_status )
5394 ac_cv_header_stdc=no
5396 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5402 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5403 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5404 if test $ac_cv_header_stdc = yes; then
5406 cat >>confdefs.h <<\_ACEOF
5407 #define STDC_HEADERS 1
5408 _ACEOF
5412 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5422 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5423 inttypes.h stdint.h unistd.h
5425 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5426 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5429 echo $ECHO_N "(cached) $ECHO_C" >&6
5430 else
5431 cat >conftest.$ac_ext <<_ACEOF
5432 /* confdefs.h. */
5433 _ACEOF
5434 cat confdefs.h >>conftest.$ac_ext
5435 cat >>conftest.$ac_ext <<_ACEOF
5436 /* end confdefs.h. */
5437 $ac_includes_default
5439 #include <$ac_header>
5440 _ACEOF
5441 rm -f conftest.$ac_objext
5442 if { (ac_try="$ac_compile"
5443 case "(($ac_try" in
5444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5445 *) ac_try_echo=$ac_try;;
5446 esac
5447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5448 (eval "$ac_compile") 2>conftest.er1
5449 ac_status=$?
5450 grep -v '^ *+' conftest.er1 >conftest.err
5451 rm -f conftest.er1
5452 cat conftest.err >&5
5453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454 (exit $ac_status); } && {
5455 test -z "$ac_c_werror_flag" ||
5456 test ! -s conftest.err
5457 } && test -s conftest.$ac_objext; then
5458 eval "$as_ac_Header=yes"
5459 else
5460 echo "$as_me: failed program was:" >&5
5461 sed 's/^/| /' conftest.$ac_ext >&5
5463 eval "$as_ac_Header=no"
5466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5468 ac_res=`eval echo '${'$as_ac_Header'}'`
5469 { echo "$as_me:$LINENO: result: $ac_res" >&5
5470 echo "${ECHO_T}$ac_res" >&6; }
5471 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5472 cat >>confdefs.h <<_ACEOF
5473 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5474 _ACEOF
5478 done
5482 for ac_header in dlfcn.h
5484 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5486 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5489 echo $ECHO_N "(cached) $ECHO_C" >&6
5491 ac_res=`eval echo '${'$as_ac_Header'}'`
5492 { echo "$as_me:$LINENO: result: $ac_res" >&5
5493 echo "${ECHO_T}$ac_res" >&6; }
5494 else
5495 # Is the header compilable?
5496 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5497 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5498 cat >conftest.$ac_ext <<_ACEOF
5499 /* confdefs.h. */
5500 _ACEOF
5501 cat confdefs.h >>conftest.$ac_ext
5502 cat >>conftest.$ac_ext <<_ACEOF
5503 /* end confdefs.h. */
5504 $ac_includes_default
5505 #include <$ac_header>
5506 _ACEOF
5507 rm -f conftest.$ac_objext
5508 if { (ac_try="$ac_compile"
5509 case "(($ac_try" in
5510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5511 *) ac_try_echo=$ac_try;;
5512 esac
5513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5514 (eval "$ac_compile") 2>conftest.er1
5515 ac_status=$?
5516 grep -v '^ *+' conftest.er1 >conftest.err
5517 rm -f conftest.er1
5518 cat conftest.err >&5
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); } && {
5521 test -z "$ac_c_werror_flag" ||
5522 test ! -s conftest.err
5523 } && test -s conftest.$ac_objext; then
5524 ac_header_compiler=yes
5525 else
5526 echo "$as_me: failed program was:" >&5
5527 sed 's/^/| /' conftest.$ac_ext >&5
5529 ac_header_compiler=no
5532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5533 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5534 echo "${ECHO_T}$ac_header_compiler" >&6; }
5536 # Is the header present?
5537 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5538 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5539 cat >conftest.$ac_ext <<_ACEOF
5540 /* confdefs.h. */
5541 _ACEOF
5542 cat confdefs.h >>conftest.$ac_ext
5543 cat >>conftest.$ac_ext <<_ACEOF
5544 /* end confdefs.h. */
5545 #include <$ac_header>
5546 _ACEOF
5547 if { (ac_try="$ac_cpp conftest.$ac_ext"
5548 case "(($ac_try" in
5549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5550 *) ac_try_echo=$ac_try;;
5551 esac
5552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5553 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5554 ac_status=$?
5555 grep -v '^ *+' conftest.er1 >conftest.err
5556 rm -f conftest.er1
5557 cat conftest.err >&5
5558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559 (exit $ac_status); } >/dev/null && {
5560 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5561 test ! -s conftest.err
5562 }; then
5563 ac_header_preproc=yes
5564 else
5565 echo "$as_me: failed program was:" >&5
5566 sed 's/^/| /' conftest.$ac_ext >&5
5568 ac_header_preproc=no
5571 rm -f conftest.err conftest.$ac_ext
5572 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5573 echo "${ECHO_T}$ac_header_preproc" >&6; }
5575 # So? What about this header?
5576 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5577 yes:no: )
5578 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5579 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5580 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5581 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5582 ac_header_preproc=yes
5584 no:yes:* )
5585 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5586 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5587 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5588 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5589 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5590 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5591 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5592 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5593 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5594 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5595 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5596 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5597 ( cat <<\_ASBOX
5598 ## ---------------------------------- ##
5599 ## Report this to bug-libtool@gnu.org ##
5600 ## ---------------------------------- ##
5601 _ASBOX
5602 ) | sed "s/^/$as_me: WARNING: /" >&2
5604 esac
5605 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5607 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5608 echo $ECHO_N "(cached) $ECHO_C" >&6
5609 else
5610 eval "$as_ac_Header=\$ac_header_preproc"
5612 ac_res=`eval echo '${'$as_ac_Header'}'`
5613 { echo "$as_me:$LINENO: result: $ac_res" >&5
5614 echo "${ECHO_T}$ac_res" >&6; }
5617 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5618 cat >>confdefs.h <<_ACEOF
5619 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5620 _ACEOF
5624 done
5626 ac_ext=cpp
5627 ac_cpp='$CXXCPP $CPPFLAGS'
5628 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5629 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5630 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5631 if test -z "$CXX"; then
5632 if test -n "$CCC"; then
5633 CXX=$CCC
5634 else
5635 if test -n "$ac_tool_prefix"; then
5636 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5638 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5639 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5640 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5642 if test "${ac_cv_prog_CXX+set}" = set; then
5643 echo $ECHO_N "(cached) $ECHO_C" >&6
5644 else
5645 if test -n "$CXX"; then
5646 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5647 else
5648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5649 for as_dir in $PATH
5651 IFS=$as_save_IFS
5652 test -z "$as_dir" && as_dir=.
5653 for ac_exec_ext in '' $ac_executable_extensions; do
5654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5655 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5657 break 2
5659 done
5660 done
5661 IFS=$as_save_IFS
5665 CXX=$ac_cv_prog_CXX
5666 if test -n "$CXX"; then
5667 { echo "$as_me:$LINENO: result: $CXX" >&5
5668 echo "${ECHO_T}$CXX" >&6; }
5669 else
5670 { echo "$as_me:$LINENO: result: no" >&5
5671 echo "${ECHO_T}no" >&6; }
5675 test -n "$CXX" && break
5676 done
5678 if test -z "$CXX"; then
5679 ac_ct_CXX=$CXX
5680 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5682 # Extract the first word of "$ac_prog", so it can be a program name with args.
5683 set dummy $ac_prog; ac_word=$2
5684 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5686 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5687 echo $ECHO_N "(cached) $ECHO_C" >&6
5688 else
5689 if test -n "$ac_ct_CXX"; then
5690 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5691 else
5692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5693 for as_dir in $PATH
5695 IFS=$as_save_IFS
5696 test -z "$as_dir" && as_dir=.
5697 for ac_exec_ext in '' $ac_executable_extensions; do
5698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5699 ac_cv_prog_ac_ct_CXX="$ac_prog"
5700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5701 break 2
5703 done
5704 done
5705 IFS=$as_save_IFS
5709 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5710 if test -n "$ac_ct_CXX"; then
5711 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5712 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5713 else
5714 { echo "$as_me:$LINENO: result: no" >&5
5715 echo "${ECHO_T}no" >&6; }
5719 test -n "$ac_ct_CXX" && break
5720 done
5722 if test "x$ac_ct_CXX" = x; then
5723 CXX="g++"
5724 else
5725 case $cross_compiling:$ac_tool_warned in
5726 yes:)
5727 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5728 whose name does not start with the host triplet. If you think this
5729 configuration is useful to you, please write to autoconf@gnu.org." >&5
5730 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5731 whose name does not start with the host triplet. If you think this
5732 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5733 ac_tool_warned=yes ;;
5734 esac
5735 CXX=$ac_ct_CXX
5741 # Provide some information about the compiler.
5742 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5743 ac_compiler=`set X $ac_compile; echo $2`
5744 { (ac_try="$ac_compiler --version >&5"
5745 case "(($ac_try" in
5746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5747 *) ac_try_echo=$ac_try;;
5748 esac
5749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5750 (eval "$ac_compiler --version >&5") 2>&5
5751 ac_status=$?
5752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753 (exit $ac_status); }
5754 { (ac_try="$ac_compiler -v >&5"
5755 case "(($ac_try" in
5756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5757 *) ac_try_echo=$ac_try;;
5758 esac
5759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5760 (eval "$ac_compiler -v >&5") 2>&5
5761 ac_status=$?
5762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763 (exit $ac_status); }
5764 { (ac_try="$ac_compiler -V >&5"
5765 case "(($ac_try" in
5766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5767 *) ac_try_echo=$ac_try;;
5768 esac
5769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5770 (eval "$ac_compiler -V >&5") 2>&5
5771 ac_status=$?
5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); }
5775 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5776 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5777 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5778 echo $ECHO_N "(cached) $ECHO_C" >&6
5779 else
5780 cat >conftest.$ac_ext <<_ACEOF
5781 /* confdefs.h. */
5782 _ACEOF
5783 cat confdefs.h >>conftest.$ac_ext
5784 cat >>conftest.$ac_ext <<_ACEOF
5785 /* end confdefs.h. */
5788 main ()
5790 #ifndef __GNUC__
5791 choke me
5792 #endif
5795 return 0;
5797 _ACEOF
5798 rm -f conftest.$ac_objext
5799 if { (ac_try="$ac_compile"
5800 case "(($ac_try" in
5801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5802 *) ac_try_echo=$ac_try;;
5803 esac
5804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5805 (eval "$ac_compile") 2>conftest.er1
5806 ac_status=$?
5807 grep -v '^ *+' conftest.er1 >conftest.err
5808 rm -f conftest.er1
5809 cat conftest.err >&5
5810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811 (exit $ac_status); } && {
5812 test -z "$ac_cxx_werror_flag" ||
5813 test ! -s conftest.err
5814 } && test -s conftest.$ac_objext; then
5815 ac_compiler_gnu=yes
5816 else
5817 echo "$as_me: failed program was:" >&5
5818 sed 's/^/| /' conftest.$ac_ext >&5
5820 ac_compiler_gnu=no
5823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5824 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5827 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5828 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5829 GXX=`test $ac_compiler_gnu = yes && echo yes`
5830 ac_test_CXXFLAGS=${CXXFLAGS+set}
5831 ac_save_CXXFLAGS=$CXXFLAGS
5832 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5833 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5834 if test "${ac_cv_prog_cxx_g+set}" = set; then
5835 echo $ECHO_N "(cached) $ECHO_C" >&6
5836 else
5837 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5838 ac_cxx_werror_flag=yes
5839 ac_cv_prog_cxx_g=no
5840 CXXFLAGS="-g"
5841 cat >conftest.$ac_ext <<_ACEOF
5842 /* confdefs.h. */
5843 _ACEOF
5844 cat confdefs.h >>conftest.$ac_ext
5845 cat >>conftest.$ac_ext <<_ACEOF
5846 /* end confdefs.h. */
5849 main ()
5853 return 0;
5855 _ACEOF
5856 rm -f conftest.$ac_objext
5857 if { (ac_try="$ac_compile"
5858 case "(($ac_try" in
5859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5860 *) ac_try_echo=$ac_try;;
5861 esac
5862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5863 (eval "$ac_compile") 2>conftest.er1
5864 ac_status=$?
5865 grep -v '^ *+' conftest.er1 >conftest.err
5866 rm -f conftest.er1
5867 cat conftest.err >&5
5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869 (exit $ac_status); } && {
5870 test -z "$ac_cxx_werror_flag" ||
5871 test ! -s conftest.err
5872 } && test -s conftest.$ac_objext; then
5873 ac_cv_prog_cxx_g=yes
5874 else
5875 echo "$as_me: failed program was:" >&5
5876 sed 's/^/| /' conftest.$ac_ext >&5
5878 CXXFLAGS=""
5879 cat >conftest.$ac_ext <<_ACEOF
5880 /* confdefs.h. */
5881 _ACEOF
5882 cat confdefs.h >>conftest.$ac_ext
5883 cat >>conftest.$ac_ext <<_ACEOF
5884 /* end confdefs.h. */
5887 main ()
5891 return 0;
5893 _ACEOF
5894 rm -f conftest.$ac_objext
5895 if { (ac_try="$ac_compile"
5896 case "(($ac_try" in
5897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5898 *) ac_try_echo=$ac_try;;
5899 esac
5900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5901 (eval "$ac_compile") 2>conftest.er1
5902 ac_status=$?
5903 grep -v '^ *+' conftest.er1 >conftest.err
5904 rm -f conftest.er1
5905 cat conftest.err >&5
5906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907 (exit $ac_status); } && {
5908 test -z "$ac_cxx_werror_flag" ||
5909 test ! -s conftest.err
5910 } && test -s conftest.$ac_objext; then
5912 else
5913 echo "$as_me: failed program was:" >&5
5914 sed 's/^/| /' conftest.$ac_ext >&5
5916 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5917 CXXFLAGS="-g"
5918 cat >conftest.$ac_ext <<_ACEOF
5919 /* confdefs.h. */
5920 _ACEOF
5921 cat confdefs.h >>conftest.$ac_ext
5922 cat >>conftest.$ac_ext <<_ACEOF
5923 /* end confdefs.h. */
5926 main ()
5930 return 0;
5932 _ACEOF
5933 rm -f conftest.$ac_objext
5934 if { (ac_try="$ac_compile"
5935 case "(($ac_try" in
5936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5937 *) ac_try_echo=$ac_try;;
5938 esac
5939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5940 (eval "$ac_compile") 2>conftest.er1
5941 ac_status=$?
5942 grep -v '^ *+' conftest.er1 >conftest.err
5943 rm -f conftest.er1
5944 cat conftest.err >&5
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); } && {
5947 test -z "$ac_cxx_werror_flag" ||
5948 test ! -s conftest.err
5949 } && test -s conftest.$ac_objext; then
5950 ac_cv_prog_cxx_g=yes
5951 else
5952 echo "$as_me: failed program was:" >&5
5953 sed 's/^/| /' conftest.$ac_ext >&5
5958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5965 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5967 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5968 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5969 if test "$ac_test_CXXFLAGS" = set; then
5970 CXXFLAGS=$ac_save_CXXFLAGS
5971 elif test $ac_cv_prog_cxx_g = yes; then
5972 if test "$GXX" = yes; then
5973 CXXFLAGS="-g -O2"
5974 else
5975 CXXFLAGS="-g"
5977 else
5978 if test "$GXX" = yes; then
5979 CXXFLAGS="-O2"
5980 else
5981 CXXFLAGS=
5984 ac_ext=cpp
5985 ac_cpp='$CXXCPP $CPPFLAGS'
5986 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5987 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5988 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5990 depcc="$CXX" am_compiler_list=
5992 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5993 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5994 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5995 echo $ECHO_N "(cached) $ECHO_C" >&6
5996 else
5997 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5998 # We make a subdir and do the tests there. Otherwise we can end up
5999 # making bogus files that we don't know about and never remove. For
6000 # instance it was reported that on HP-UX the gcc test will end up
6001 # making a dummy file named `D' -- because `-MD' means `put the output
6002 # in D'.
6003 mkdir conftest.dir
6004 # Copy depcomp to subdir because otherwise we won't find it if we're
6005 # using a relative directory.
6006 cp "$am_depcomp" conftest.dir
6007 cd conftest.dir
6008 # We will build objects and dependencies in a subdirectory because
6009 # it helps to detect inapplicable dependency modes. For instance
6010 # both Tru64's cc and ICC support -MD to output dependencies as a
6011 # side effect of compilation, but ICC will put the dependencies in
6012 # the current directory while Tru64 will put them in the object
6013 # directory.
6014 mkdir sub
6016 am_cv_CXX_dependencies_compiler_type=none
6017 if test "$am_compiler_list" = ""; then
6018 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6020 for depmode in $am_compiler_list; do
6021 # Setup a source with many dependencies, because some compilers
6022 # like to wrap large dependency lists on column 80 (with \), and
6023 # we should not choose a depcomp mode which is confused by this.
6025 # We need to recreate these files for each test, as the compiler may
6026 # overwrite some of them when testing with obscure command lines.
6027 # This happens at least with the AIX C compiler.
6028 : > sub/conftest.c
6029 for i in 1 2 3 4 5 6; do
6030 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6031 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6032 # Solaris 8's {/usr,}/bin/sh.
6033 touch sub/conftst$i.h
6034 done
6035 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6037 case $depmode in
6038 nosideeffect)
6039 # after this tag, mechanisms are not by side-effect, so they'll
6040 # only be used when explicitly requested
6041 if test "x$enable_dependency_tracking" = xyes; then
6042 continue
6043 else
6044 break
6047 none) break ;;
6048 esac
6049 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6050 # mode. It turns out that the SunPro C++ compiler does not properly
6051 # handle `-M -o', and we need to detect this.
6052 if depmode=$depmode \
6053 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6054 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6055 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6056 >/dev/null 2>conftest.err &&
6057 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6058 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6059 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6060 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6061 # icc doesn't choke on unknown options, it will just issue warnings
6062 # or remarks (even with -Werror). So we grep stderr for any message
6063 # that says an option was ignored or not supported.
6064 # When given -MP, icc 7.0 and 7.1 complain thusly:
6065 # icc: Command line warning: ignoring option '-M'; no argument required
6066 # The diagnosis changed in icc 8.0:
6067 # icc: Command line remark: option '-MP' not supported
6068 if (grep 'ignoring option' conftest.err ||
6069 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6070 am_cv_CXX_dependencies_compiler_type=$depmode
6071 break
6074 done
6076 cd ..
6077 rm -rf conftest.dir
6078 else
6079 am_cv_CXX_dependencies_compiler_type=none
6083 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6084 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6085 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6088 test "x$enable_dependency_tracking" != xno \
6089 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6090 am__fastdepCXX_TRUE=
6091 am__fastdepCXX_FALSE='#'
6092 else
6093 am__fastdepCXX_TRUE='#'
6094 am__fastdepCXX_FALSE=
6100 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6101 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6102 (test "X$CXX" != "Xg++"))) ; then
6103 ac_ext=cpp
6104 ac_cpp='$CXXCPP $CPPFLAGS'
6105 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6106 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6107 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6108 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6109 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6110 if test -z "$CXXCPP"; then
6111 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6112 echo $ECHO_N "(cached) $ECHO_C" >&6
6113 else
6114 # Double quotes because CXXCPP needs to be expanded
6115 for CXXCPP in "$CXX -E" "/lib/cpp"
6117 ac_preproc_ok=false
6118 for ac_cxx_preproc_warn_flag in '' yes
6120 # Use a header file that comes with gcc, so configuring glibc
6121 # with a fresh cross-compiler works.
6122 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6123 # <limits.h> exists even on freestanding compilers.
6124 # On the NeXT, cc -E runs the code through the compiler's parser,
6125 # not just through cpp. "Syntax error" is here to catch this case.
6126 cat >conftest.$ac_ext <<_ACEOF
6127 /* confdefs.h. */
6128 _ACEOF
6129 cat confdefs.h >>conftest.$ac_ext
6130 cat >>conftest.$ac_ext <<_ACEOF
6131 /* end confdefs.h. */
6132 #ifdef __STDC__
6133 # include <limits.h>
6134 #else
6135 # include <assert.h>
6136 #endif
6137 Syntax error
6138 _ACEOF
6139 if { (ac_try="$ac_cpp conftest.$ac_ext"
6140 case "(($ac_try" in
6141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6142 *) ac_try_echo=$ac_try;;
6143 esac
6144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6145 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6146 ac_status=$?
6147 grep -v '^ *+' conftest.er1 >conftest.err
6148 rm -f conftest.er1
6149 cat conftest.err >&5
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); } >/dev/null && {
6152 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6153 test ! -s conftest.err
6154 }; then
6156 else
6157 echo "$as_me: failed program was:" >&5
6158 sed 's/^/| /' conftest.$ac_ext >&5
6160 # Broken: fails on valid input.
6161 continue
6164 rm -f conftest.err conftest.$ac_ext
6166 # OK, works on sane cases. Now check whether nonexistent headers
6167 # can be detected and how.
6168 cat >conftest.$ac_ext <<_ACEOF
6169 /* confdefs.h. */
6170 _ACEOF
6171 cat confdefs.h >>conftest.$ac_ext
6172 cat >>conftest.$ac_ext <<_ACEOF
6173 /* end confdefs.h. */
6174 #include <ac_nonexistent.h>
6175 _ACEOF
6176 if { (ac_try="$ac_cpp conftest.$ac_ext"
6177 case "(($ac_try" in
6178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6179 *) ac_try_echo=$ac_try;;
6180 esac
6181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6182 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6183 ac_status=$?
6184 grep -v '^ *+' conftest.er1 >conftest.err
6185 rm -f conftest.er1
6186 cat conftest.err >&5
6187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188 (exit $ac_status); } >/dev/null && {
6189 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6190 test ! -s conftest.err
6191 }; then
6192 # Broken: success on invalid input.
6193 continue
6194 else
6195 echo "$as_me: failed program was:" >&5
6196 sed 's/^/| /' conftest.$ac_ext >&5
6198 # Passes both tests.
6199 ac_preproc_ok=:
6200 break
6203 rm -f conftest.err conftest.$ac_ext
6205 done
6206 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6207 rm -f conftest.err conftest.$ac_ext
6208 if $ac_preproc_ok; then
6209 break
6212 done
6213 ac_cv_prog_CXXCPP=$CXXCPP
6216 CXXCPP=$ac_cv_prog_CXXCPP
6217 else
6218 ac_cv_prog_CXXCPP=$CXXCPP
6220 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6221 echo "${ECHO_T}$CXXCPP" >&6; }
6222 ac_preproc_ok=false
6223 for ac_cxx_preproc_warn_flag in '' yes
6225 # Use a header file that comes with gcc, so configuring glibc
6226 # with a fresh cross-compiler works.
6227 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6228 # <limits.h> exists even on freestanding compilers.
6229 # On the NeXT, cc -E runs the code through the compiler's parser,
6230 # not just through cpp. "Syntax error" is here to catch this case.
6231 cat >conftest.$ac_ext <<_ACEOF
6232 /* confdefs.h. */
6233 _ACEOF
6234 cat confdefs.h >>conftest.$ac_ext
6235 cat >>conftest.$ac_ext <<_ACEOF
6236 /* end confdefs.h. */
6237 #ifdef __STDC__
6238 # include <limits.h>
6239 #else
6240 # include <assert.h>
6241 #endif
6242 Syntax error
6243 _ACEOF
6244 if { (ac_try="$ac_cpp conftest.$ac_ext"
6245 case "(($ac_try" in
6246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6247 *) ac_try_echo=$ac_try;;
6248 esac
6249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6250 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6251 ac_status=$?
6252 grep -v '^ *+' conftest.er1 >conftest.err
6253 rm -f conftest.er1
6254 cat conftest.err >&5
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); } >/dev/null && {
6257 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6258 test ! -s conftest.err
6259 }; then
6261 else
6262 echo "$as_me: failed program was:" >&5
6263 sed 's/^/| /' conftest.$ac_ext >&5
6265 # Broken: fails on valid input.
6266 continue
6269 rm -f conftest.err conftest.$ac_ext
6271 # OK, works on sane cases. Now check whether nonexistent headers
6272 # can be detected and how.
6273 cat >conftest.$ac_ext <<_ACEOF
6274 /* confdefs.h. */
6275 _ACEOF
6276 cat confdefs.h >>conftest.$ac_ext
6277 cat >>conftest.$ac_ext <<_ACEOF
6278 /* end confdefs.h. */
6279 #include <ac_nonexistent.h>
6280 _ACEOF
6281 if { (ac_try="$ac_cpp conftest.$ac_ext"
6282 case "(($ac_try" in
6283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6284 *) ac_try_echo=$ac_try;;
6285 esac
6286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6287 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6288 ac_status=$?
6289 grep -v '^ *+' conftest.er1 >conftest.err
6290 rm -f conftest.er1
6291 cat conftest.err >&5
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); } >/dev/null && {
6294 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6295 test ! -s conftest.err
6296 }; then
6297 # Broken: success on invalid input.
6298 continue
6299 else
6300 echo "$as_me: failed program was:" >&5
6301 sed 's/^/| /' conftest.$ac_ext >&5
6303 # Passes both tests.
6304 ac_preproc_ok=:
6305 break
6308 rm -f conftest.err conftest.$ac_ext
6310 done
6311 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6312 rm -f conftest.err conftest.$ac_ext
6313 if $ac_preproc_ok; then
6315 else
6316 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6317 See \`config.log' for more details." >&5
6318 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6319 See \`config.log' for more details." >&2;}
6320 { (exit 1); exit 1; }; }
6323 ac_ext=cpp
6324 ac_cpp='$CXXCPP $CPPFLAGS'
6325 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6326 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6327 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6332 ac_ext=f
6333 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6334 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6335 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6336 if test -n "$ac_tool_prefix"; then
6337 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6339 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6340 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6341 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6343 if test "${ac_cv_prog_F77+set}" = set; then
6344 echo $ECHO_N "(cached) $ECHO_C" >&6
6345 else
6346 if test -n "$F77"; then
6347 ac_cv_prog_F77="$F77" # Let the user override the test.
6348 else
6349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6350 for as_dir in $PATH
6352 IFS=$as_save_IFS
6353 test -z "$as_dir" && as_dir=.
6354 for ac_exec_ext in '' $ac_executable_extensions; do
6355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6356 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6358 break 2
6360 done
6361 done
6362 IFS=$as_save_IFS
6366 F77=$ac_cv_prog_F77
6367 if test -n "$F77"; then
6368 { echo "$as_me:$LINENO: result: $F77" >&5
6369 echo "${ECHO_T}$F77" >&6; }
6370 else
6371 { echo "$as_me:$LINENO: result: no" >&5
6372 echo "${ECHO_T}no" >&6; }
6376 test -n "$F77" && break
6377 done
6379 if test -z "$F77"; then
6380 ac_ct_F77=$F77
6381 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6383 # Extract the first word of "$ac_prog", so it can be a program name with args.
6384 set dummy $ac_prog; ac_word=$2
6385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6387 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6388 echo $ECHO_N "(cached) $ECHO_C" >&6
6389 else
6390 if test -n "$ac_ct_F77"; then
6391 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6392 else
6393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6394 for as_dir in $PATH
6396 IFS=$as_save_IFS
6397 test -z "$as_dir" && as_dir=.
6398 for ac_exec_ext in '' $ac_executable_extensions; do
6399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6400 ac_cv_prog_ac_ct_F77="$ac_prog"
6401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6402 break 2
6404 done
6405 done
6406 IFS=$as_save_IFS
6410 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6411 if test -n "$ac_ct_F77"; then
6412 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6413 echo "${ECHO_T}$ac_ct_F77" >&6; }
6414 else
6415 { echo "$as_me:$LINENO: result: no" >&5
6416 echo "${ECHO_T}no" >&6; }
6420 test -n "$ac_ct_F77" && break
6421 done
6423 if test "x$ac_ct_F77" = x; then
6424 F77=""
6425 else
6426 case $cross_compiling:$ac_tool_warned in
6427 yes:)
6428 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6429 whose name does not start with the host triplet. If you think this
6430 configuration is useful to you, please write to autoconf@gnu.org." >&5
6431 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6432 whose name does not start with the host triplet. If you think this
6433 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6434 ac_tool_warned=yes ;;
6435 esac
6436 F77=$ac_ct_F77
6441 # Provide some information about the compiler.
6442 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6443 ac_compiler=`set X $ac_compile; echo $2`
6444 { (ac_try="$ac_compiler --version >&5"
6445 case "(($ac_try" in
6446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6447 *) ac_try_echo=$ac_try;;
6448 esac
6449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6450 (eval "$ac_compiler --version >&5") 2>&5
6451 ac_status=$?
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); }
6454 { (ac_try="$ac_compiler -v >&5"
6455 case "(($ac_try" in
6456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6457 *) ac_try_echo=$ac_try;;
6458 esac
6459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6460 (eval "$ac_compiler -v >&5") 2>&5
6461 ac_status=$?
6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); }
6464 { (ac_try="$ac_compiler -V >&5"
6465 case "(($ac_try" in
6466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6467 *) ac_try_echo=$ac_try;;
6468 esac
6469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6470 (eval "$ac_compiler -V >&5") 2>&5
6471 ac_status=$?
6472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473 (exit $ac_status); }
6474 rm -f a.out
6476 # If we don't use `.F' as extension, the preprocessor is not run on the
6477 # input file. (Note that this only needs to work for GNU compilers.)
6478 ac_save_ext=$ac_ext
6479 ac_ext=F
6480 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6481 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6482 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6483 echo $ECHO_N "(cached) $ECHO_C" >&6
6484 else
6485 cat >conftest.$ac_ext <<_ACEOF
6486 program main
6487 #ifndef __GNUC__
6488 choke me
6489 #endif
6492 _ACEOF
6493 rm -f conftest.$ac_objext
6494 if { (ac_try="$ac_compile"
6495 case "(($ac_try" in
6496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6497 *) ac_try_echo=$ac_try;;
6498 esac
6499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6500 (eval "$ac_compile") 2>conftest.er1
6501 ac_status=$?
6502 grep -v '^ *+' conftest.er1 >conftest.err
6503 rm -f conftest.er1
6504 cat conftest.err >&5
6505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506 (exit $ac_status); } && {
6507 test -z "$ac_f77_werror_flag" ||
6508 test ! -s conftest.err
6509 } && test -s conftest.$ac_objext; then
6510 ac_compiler_gnu=yes
6511 else
6512 echo "$as_me: failed program was:" >&5
6513 sed 's/^/| /' conftest.$ac_ext >&5
6515 ac_compiler_gnu=no
6518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6519 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6522 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6523 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6524 ac_ext=$ac_save_ext
6525 ac_test_FFLAGS=${FFLAGS+set}
6526 ac_save_FFLAGS=$FFLAGS
6527 FFLAGS=
6528 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6529 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6530 if test "${ac_cv_prog_f77_g+set}" = set; then
6531 echo $ECHO_N "(cached) $ECHO_C" >&6
6532 else
6533 FFLAGS=-g
6534 cat >conftest.$ac_ext <<_ACEOF
6535 program main
6538 _ACEOF
6539 rm -f conftest.$ac_objext
6540 if { (ac_try="$ac_compile"
6541 case "(($ac_try" in
6542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6543 *) ac_try_echo=$ac_try;;
6544 esac
6545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6546 (eval "$ac_compile") 2>conftest.er1
6547 ac_status=$?
6548 grep -v '^ *+' conftest.er1 >conftest.err
6549 rm -f conftest.er1
6550 cat conftest.err >&5
6551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552 (exit $ac_status); } && {
6553 test -z "$ac_f77_werror_flag" ||
6554 test ! -s conftest.err
6555 } && test -s conftest.$ac_objext; then
6556 ac_cv_prog_f77_g=yes
6557 else
6558 echo "$as_me: failed program was:" >&5
6559 sed 's/^/| /' conftest.$ac_ext >&5
6561 ac_cv_prog_f77_g=no
6564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6567 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6568 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6569 if test "$ac_test_FFLAGS" = set; then
6570 FFLAGS=$ac_save_FFLAGS
6571 elif test $ac_cv_prog_f77_g = yes; then
6572 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6573 FFLAGS="-g -O2"
6574 else
6575 FFLAGS="-g"
6577 else
6578 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6579 FFLAGS="-O2"
6580 else
6581 FFLAGS=
6585 G77=`test $ac_compiler_gnu = yes && echo yes`
6586 ac_ext=c
6587 ac_cpp='$CPP $CPPFLAGS'
6588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6594 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6596 # find the maximum length of command line arguments
6597 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6598 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6599 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6600 echo $ECHO_N "(cached) $ECHO_C" >&6
6601 else
6603 teststring="ABCD"
6605 case $build_os in
6606 msdosdjgpp*)
6607 # On DJGPP, this test can blow up pretty badly due to problems in libc
6608 # (any single argument exceeding 2000 bytes causes a buffer overrun
6609 # during glob expansion). Even if it were fixed, the result of this
6610 # check would be larger than it should be.
6611 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6614 gnu*)
6615 # Under GNU Hurd, this test is not required because there is
6616 # no limit to the length of command line arguments.
6617 # Libtool will interpret -1 as no limit whatsoever
6618 lt_cv_sys_max_cmd_len=-1;
6621 cygwin* | mingw*)
6622 # On Win9x/ME, this test blows up -- it succeeds, but takes
6623 # about 5 minutes as the teststring grows exponentially.
6624 # Worse, since 9x/ME are not pre-emptively multitasking,
6625 # you end up with a "frozen" computer, even though with patience
6626 # the test eventually succeeds (with a max line length of 256k).
6627 # Instead, let's just punt: use the minimum linelength reported by
6628 # all of the supported platforms: 8192 (on NT/2K/XP).
6629 lt_cv_sys_max_cmd_len=8192;
6632 amigaos*)
6633 # On AmigaOS with pdksh, this test takes hours, literally.
6634 # So we just punt and use a minimum line length of 8192.
6635 lt_cv_sys_max_cmd_len=8192;
6638 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6639 # This has been around since 386BSD, at least. Likely further.
6640 if test -x /sbin/sysctl; then
6641 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6642 elif test -x /usr/sbin/sysctl; then
6643 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6644 else
6645 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6647 # And add a safety zone
6648 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6649 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6652 interix*)
6653 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6654 lt_cv_sys_max_cmd_len=196608
6657 osf*)
6658 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6659 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6660 # nice to cause kernel panics so lets avoid the loop below.
6661 # First set a reasonable default.
6662 lt_cv_sys_max_cmd_len=16384
6664 if test -x /sbin/sysconfig; then
6665 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6666 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6667 esac
6670 sco3.2v5*)
6671 lt_cv_sys_max_cmd_len=102400
6673 sysv5* | sco5v6* | sysv4.2uw2*)
6674 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6675 if test -n "$kargmax"; then
6676 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6677 else
6678 lt_cv_sys_max_cmd_len=32768
6682 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6683 if test -n "$lt_cv_sys_max_cmd_len"; then
6684 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6685 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6686 else
6687 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6688 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6689 = "XX$teststring") >/dev/null 2>&1 &&
6690 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6691 lt_cv_sys_max_cmd_len=$new_result &&
6692 test $i != 17 # 1/2 MB should be enough
6694 i=`expr $i + 1`
6695 teststring=$teststring$teststring
6696 done
6697 teststring=
6698 # Add a significant safety factor because C++ compilers can tack on massive
6699 # amounts of additional arguments before passing them to the linker.
6700 # It appears as though 1/2 is a usable value.
6701 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6704 esac
6708 if test -n $lt_cv_sys_max_cmd_len ; then
6709 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6710 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6711 else
6712 { echo "$as_me:$LINENO: result: none" >&5
6713 echo "${ECHO_T}none" >&6; }
6720 # Check for command to grab the raw symbol name followed by C symbol from nm.
6721 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6722 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6723 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6724 echo $ECHO_N "(cached) $ECHO_C" >&6
6725 else
6727 # These are sane defaults that work on at least a few old systems.
6728 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6730 # Character class describing NM global symbol codes.
6731 symcode='[BCDEGRST]'
6733 # Regexp to match symbols that can be accessed directly from C.
6734 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6736 # Transform an extracted symbol line into a proper C declaration
6737 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6739 # Transform an extracted symbol line into symbol name and symbol address
6740 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'"
6742 # Define system-specific variables.
6743 case $host_os in
6744 aix*)
6745 symcode='[BCDT]'
6747 cygwin* | mingw* | pw32*)
6748 symcode='[ABCDGISTW]'
6750 hpux*) # Its linker distinguishes data from code symbols
6751 if test "$host_cpu" = ia64; then
6752 symcode='[ABCDEGRST]'
6754 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6755 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'"
6757 linux* | k*bsd*-gnu)
6758 if test "$host_cpu" = ia64; then
6759 symcode='[ABCDGIRSTW]'
6760 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6761 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'"
6764 irix* | nonstopux*)
6765 symcode='[BCDEGRST]'
6767 osf*)
6768 symcode='[BCDEGQRST]'
6770 solaris*)
6771 symcode='[BDRT]'
6773 sco3.2v5*)
6774 symcode='[DT]'
6776 sysv4.2uw2*)
6777 symcode='[DT]'
6779 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6780 symcode='[ABDT]'
6782 sysv4)
6783 symcode='[DFNSTU]'
6785 esac
6787 # Handle CRLF in mingw tool chain
6788 opt_cr=
6789 case $build_os in
6790 mingw*)
6791 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6793 esac
6795 # If we're using GNU nm, then use its standard symbol codes.
6796 case `$NM -V 2>&1` in
6797 *GNU* | *'with BFD'*)
6798 symcode='[ABCDGIRSTW]' ;;
6799 esac
6801 # Try without a prefix undercore, then with it.
6802 for ac_symprfx in "" "_"; do
6804 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6805 symxfrm="\\1 $ac_symprfx\\2 \\2"
6807 # Write the raw and C identifiers.
6808 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6810 # Check to see that the pipe works correctly.
6811 pipe_works=no
6813 rm -f conftest*
6814 cat > conftest.$ac_ext <<EOF
6815 #ifdef __cplusplus
6816 extern "C" {
6817 #endif
6818 char nm_test_var;
6819 void nm_test_func(){}
6820 #ifdef __cplusplus
6822 #endif
6823 int main(){nm_test_var='a';nm_test_func();return(0);}
6826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6827 (eval $ac_compile) 2>&5
6828 ac_status=$?
6829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); }; then
6831 # Now try to grab the symbols.
6832 nlist=conftest.nm
6833 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6834 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6835 ac_status=$?
6836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837 (exit $ac_status); } && test -s "$nlist"; then
6838 # Try sorting and uniquifying the output.
6839 if sort "$nlist" | uniq > "$nlist"T; then
6840 mv -f "$nlist"T "$nlist"
6841 else
6842 rm -f "$nlist"T
6845 # Make sure that we snagged all the symbols we need.
6846 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6847 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6848 cat <<EOF > conftest.$ac_ext
6849 #ifdef __cplusplus
6850 extern "C" {
6851 #endif
6854 # Now generate the symbol file.
6855 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6857 cat <<EOF >> conftest.$ac_ext
6858 #if defined (__STDC__) && __STDC__
6859 # define lt_ptr_t void *
6860 #else
6861 # define lt_ptr_t char *
6862 # define const
6863 #endif
6865 /* The mapping between symbol names and symbols. */
6866 const struct {
6867 const char *name;
6868 lt_ptr_t address;
6870 lt_preloaded_symbols[] =
6873 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6874 cat <<\EOF >> conftest.$ac_ext
6875 {0, (lt_ptr_t) 0}
6878 #ifdef __cplusplus
6880 #endif
6882 # Now try linking the two files.
6883 mv conftest.$ac_objext conftstm.$ac_objext
6884 lt_save_LIBS="$LIBS"
6885 lt_save_CFLAGS="$CFLAGS"
6886 LIBS="conftstm.$ac_objext"
6887 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6889 (eval $ac_link) 2>&5
6890 ac_status=$?
6891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6893 pipe_works=yes
6895 LIBS="$lt_save_LIBS"
6896 CFLAGS="$lt_save_CFLAGS"
6897 else
6898 echo "cannot find nm_test_func in $nlist" >&5
6900 else
6901 echo "cannot find nm_test_var in $nlist" >&5
6903 else
6904 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6906 else
6907 echo "$progname: failed program was:" >&5
6908 cat conftest.$ac_ext >&5
6910 rm -f conftest* conftst*
6912 # Do not use the global_symbol_pipe unless it works.
6913 if test "$pipe_works" = yes; then
6914 break
6915 else
6916 lt_cv_sys_global_symbol_pipe=
6918 done
6922 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6923 lt_cv_sys_global_symbol_to_cdecl=
6925 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6926 { echo "$as_me:$LINENO: result: failed" >&5
6927 echo "${ECHO_T}failed" >&6; }
6928 else
6929 { echo "$as_me:$LINENO: result: ok" >&5
6930 echo "${ECHO_T}ok" >&6; }
6933 { echo "$as_me:$LINENO: checking for objdir" >&5
6934 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6935 if test "${lt_cv_objdir+set}" = set; then
6936 echo $ECHO_N "(cached) $ECHO_C" >&6
6937 else
6938 rm -f .libs 2>/dev/null
6939 mkdir .libs 2>/dev/null
6940 if test -d .libs; then
6941 lt_cv_objdir=.libs
6942 else
6943 # MS-DOS does not allow filenames that begin with a dot.
6944 lt_cv_objdir=_libs
6946 rmdir .libs 2>/dev/null
6948 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6949 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6950 objdir=$lt_cv_objdir
6956 case $host_os in
6957 aix3*)
6958 # AIX sometimes has problems with the GCC collect2 program. For some
6959 # reason, if we set the COLLECT_NAMES environment variable, the problems
6960 # vanish in a puff of smoke.
6961 if test "X${COLLECT_NAMES+set}" != Xset; then
6962 COLLECT_NAMES=
6963 export COLLECT_NAMES
6966 esac
6968 # Sed substitution that helps us do robust quoting. It backslashifies
6969 # metacharacters that are still active within double-quoted strings.
6970 Xsed='sed -e 1s/^X//'
6971 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6973 # Same as above, but do not quote variable references.
6974 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6976 # Sed substitution to delay expansion of an escaped shell variable in a
6977 # double_quote_subst'ed string.
6978 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6980 # Sed substitution to avoid accidental globbing in evaled expressions
6981 no_glob_subst='s/\*/\\\*/g'
6983 # Constants:
6984 rm="rm -f"
6986 # Global variables:
6987 default_ofile=libtool
6988 can_build_shared=yes
6990 # All known linkers require a `.a' archive for static linking (except MSVC,
6991 # which needs '.lib').
6992 libext=a
6993 ltmain="$ac_aux_dir/ltmain.sh"
6994 ofile="$default_ofile"
6995 with_gnu_ld="$lt_cv_prog_gnu_ld"
6997 if test -n "$ac_tool_prefix"; then
6998 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6999 set dummy ${ac_tool_prefix}ar; ac_word=$2
7000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7002 if test "${ac_cv_prog_AR+set}" = set; then
7003 echo $ECHO_N "(cached) $ECHO_C" >&6
7004 else
7005 if test -n "$AR"; then
7006 ac_cv_prog_AR="$AR" # Let the user override the test.
7007 else
7008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7009 for as_dir in $PATH
7011 IFS=$as_save_IFS
7012 test -z "$as_dir" && as_dir=.
7013 for ac_exec_ext in '' $ac_executable_extensions; do
7014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7015 ac_cv_prog_AR="${ac_tool_prefix}ar"
7016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7017 break 2
7019 done
7020 done
7021 IFS=$as_save_IFS
7025 AR=$ac_cv_prog_AR
7026 if test -n "$AR"; then
7027 { echo "$as_me:$LINENO: result: $AR" >&5
7028 echo "${ECHO_T}$AR" >&6; }
7029 else
7030 { echo "$as_me:$LINENO: result: no" >&5
7031 echo "${ECHO_T}no" >&6; }
7036 if test -z "$ac_cv_prog_AR"; then
7037 ac_ct_AR=$AR
7038 # Extract the first word of "ar", so it can be a program name with args.
7039 set dummy ar; ac_word=$2
7040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7042 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7043 echo $ECHO_N "(cached) $ECHO_C" >&6
7044 else
7045 if test -n "$ac_ct_AR"; then
7046 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7047 else
7048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7049 for as_dir in $PATH
7051 IFS=$as_save_IFS
7052 test -z "$as_dir" && as_dir=.
7053 for ac_exec_ext in '' $ac_executable_extensions; do
7054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7055 ac_cv_prog_ac_ct_AR="ar"
7056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7057 break 2
7059 done
7060 done
7061 IFS=$as_save_IFS
7065 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7066 if test -n "$ac_ct_AR"; then
7067 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7068 echo "${ECHO_T}$ac_ct_AR" >&6; }
7069 else
7070 { echo "$as_me:$LINENO: result: no" >&5
7071 echo "${ECHO_T}no" >&6; }
7074 if test "x$ac_ct_AR" = x; then
7075 AR="false"
7076 else
7077 case $cross_compiling:$ac_tool_warned in
7078 yes:)
7079 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7080 whose name does not start with the host triplet. If you think this
7081 configuration is useful to you, please write to autoconf@gnu.org." >&5
7082 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7083 whose name does not start with the host triplet. If you think this
7084 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7085 ac_tool_warned=yes ;;
7086 esac
7087 AR=$ac_ct_AR
7089 else
7090 AR="$ac_cv_prog_AR"
7093 if test -n "$ac_tool_prefix"; then
7094 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7095 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7098 if test "${ac_cv_prog_RANLIB+set}" = set; then
7099 echo $ECHO_N "(cached) $ECHO_C" >&6
7100 else
7101 if test -n "$RANLIB"; then
7102 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7103 else
7104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7105 for as_dir in $PATH
7107 IFS=$as_save_IFS
7108 test -z "$as_dir" && as_dir=.
7109 for ac_exec_ext in '' $ac_executable_extensions; do
7110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7111 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7113 break 2
7115 done
7116 done
7117 IFS=$as_save_IFS
7121 RANLIB=$ac_cv_prog_RANLIB
7122 if test -n "$RANLIB"; then
7123 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7124 echo "${ECHO_T}$RANLIB" >&6; }
7125 else
7126 { echo "$as_me:$LINENO: result: no" >&5
7127 echo "${ECHO_T}no" >&6; }
7132 if test -z "$ac_cv_prog_RANLIB"; then
7133 ac_ct_RANLIB=$RANLIB
7134 # Extract the first word of "ranlib", so it can be a program name with args.
7135 set dummy ranlib; ac_word=$2
7136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7138 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7139 echo $ECHO_N "(cached) $ECHO_C" >&6
7140 else
7141 if test -n "$ac_ct_RANLIB"; then
7142 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7143 else
7144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7145 for as_dir in $PATH
7147 IFS=$as_save_IFS
7148 test -z "$as_dir" && as_dir=.
7149 for ac_exec_ext in '' $ac_executable_extensions; do
7150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7151 ac_cv_prog_ac_ct_RANLIB="ranlib"
7152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7153 break 2
7155 done
7156 done
7157 IFS=$as_save_IFS
7161 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7162 if test -n "$ac_ct_RANLIB"; then
7163 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7164 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7165 else
7166 { echo "$as_me:$LINENO: result: no" >&5
7167 echo "${ECHO_T}no" >&6; }
7170 if test "x$ac_ct_RANLIB" = x; then
7171 RANLIB=":"
7172 else
7173 case $cross_compiling:$ac_tool_warned in
7174 yes:)
7175 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7176 whose name does not start with the host triplet. If you think this
7177 configuration is useful to you, please write to autoconf@gnu.org." >&5
7178 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7179 whose name does not start with the host triplet. If you think this
7180 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7181 ac_tool_warned=yes ;;
7182 esac
7183 RANLIB=$ac_ct_RANLIB
7185 else
7186 RANLIB="$ac_cv_prog_RANLIB"
7189 if test -n "$ac_tool_prefix"; then
7190 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7191 set dummy ${ac_tool_prefix}strip; ac_word=$2
7192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7194 if test "${ac_cv_prog_STRIP+set}" = set; then
7195 echo $ECHO_N "(cached) $ECHO_C" >&6
7196 else
7197 if test -n "$STRIP"; then
7198 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7199 else
7200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7201 for as_dir in $PATH
7203 IFS=$as_save_IFS
7204 test -z "$as_dir" && as_dir=.
7205 for ac_exec_ext in '' $ac_executable_extensions; do
7206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7207 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7209 break 2
7211 done
7212 done
7213 IFS=$as_save_IFS
7217 STRIP=$ac_cv_prog_STRIP
7218 if test -n "$STRIP"; then
7219 { echo "$as_me:$LINENO: result: $STRIP" >&5
7220 echo "${ECHO_T}$STRIP" >&6; }
7221 else
7222 { echo "$as_me:$LINENO: result: no" >&5
7223 echo "${ECHO_T}no" >&6; }
7228 if test -z "$ac_cv_prog_STRIP"; then
7229 ac_ct_STRIP=$STRIP
7230 # Extract the first word of "strip", so it can be a program name with args.
7231 set dummy strip; ac_word=$2
7232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7234 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7235 echo $ECHO_N "(cached) $ECHO_C" >&6
7236 else
7237 if test -n "$ac_ct_STRIP"; then
7238 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7239 else
7240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7241 for as_dir in $PATH
7243 IFS=$as_save_IFS
7244 test -z "$as_dir" && as_dir=.
7245 for ac_exec_ext in '' $ac_executable_extensions; do
7246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7247 ac_cv_prog_ac_ct_STRIP="strip"
7248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7249 break 2
7251 done
7252 done
7253 IFS=$as_save_IFS
7257 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7258 if test -n "$ac_ct_STRIP"; then
7259 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7260 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7261 else
7262 { echo "$as_me:$LINENO: result: no" >&5
7263 echo "${ECHO_T}no" >&6; }
7266 if test "x$ac_ct_STRIP" = x; then
7267 STRIP=":"
7268 else
7269 case $cross_compiling:$ac_tool_warned in
7270 yes:)
7271 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7272 whose name does not start with the host triplet. If you think this
7273 configuration is useful to you, please write to autoconf@gnu.org." >&5
7274 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7275 whose name does not start with the host triplet. If you think this
7276 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7277 ac_tool_warned=yes ;;
7278 esac
7279 STRIP=$ac_ct_STRIP
7281 else
7282 STRIP="$ac_cv_prog_STRIP"
7286 old_CC="$CC"
7287 old_CFLAGS="$CFLAGS"
7289 # Set sane defaults for various variables
7290 test -z "$AR" && AR=ar
7291 test -z "$AR_FLAGS" && AR_FLAGS=cru
7292 test -z "$AS" && AS=as
7293 test -z "$CC" && CC=cc
7294 test -z "$LTCC" && LTCC=$CC
7295 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7296 test -z "$DLLTOOL" && DLLTOOL=dlltool
7297 test -z "$LD" && LD=ld
7298 test -z "$LN_S" && LN_S="ln -s"
7299 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7300 test -z "$NM" && NM=nm
7301 test -z "$SED" && SED=sed
7302 test -z "$OBJDUMP" && OBJDUMP=objdump
7303 test -z "$RANLIB" && RANLIB=:
7304 test -z "$STRIP" && STRIP=:
7305 test -z "$ac_objext" && ac_objext=o
7307 # Determine commands to create old-style static archives.
7308 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7309 old_postinstall_cmds='chmod 644 $oldlib'
7310 old_postuninstall_cmds=
7312 if test -n "$RANLIB"; then
7313 case $host_os in
7314 openbsd*)
7315 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7318 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7320 esac
7321 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7324 for cc_temp in $compiler""; do
7325 case $cc_temp in
7326 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7327 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7328 \-*) ;;
7329 *) break;;
7330 esac
7331 done
7332 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7335 # Only perform the check for file, if the check method requires it
7336 case $deplibs_check_method in
7337 file_magic*)
7338 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7339 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7340 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7341 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7342 echo $ECHO_N "(cached) $ECHO_C" >&6
7343 else
7344 case $MAGIC_CMD in
7345 [\\/*] | ?:[\\/]*)
7346 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7349 lt_save_MAGIC_CMD="$MAGIC_CMD"
7350 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7351 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7352 for ac_dir in $ac_dummy; do
7353 IFS="$lt_save_ifs"
7354 test -z "$ac_dir" && ac_dir=.
7355 if test -f $ac_dir/${ac_tool_prefix}file; then
7356 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7357 if test -n "$file_magic_test_file"; then
7358 case $deplibs_check_method in
7359 "file_magic "*)
7360 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7361 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7362 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7363 $EGREP "$file_magic_regex" > /dev/null; then
7365 else
7366 cat <<EOF 1>&2
7368 *** Warning: the command libtool uses to detect shared libraries,
7369 *** $file_magic_cmd, produces output that libtool cannot recognize.
7370 *** The result is that libtool may fail to recognize shared libraries
7371 *** as such. This will affect the creation of libtool libraries that
7372 *** depend on shared libraries, but programs linked with such libtool
7373 *** libraries will work regardless of this problem. Nevertheless, you
7374 *** may want to report the problem to your system manager and/or to
7375 *** bug-libtool@gnu.org
7378 fi ;;
7379 esac
7381 break
7383 done
7384 IFS="$lt_save_ifs"
7385 MAGIC_CMD="$lt_save_MAGIC_CMD"
7387 esac
7390 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7391 if test -n "$MAGIC_CMD"; then
7392 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7393 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7394 else
7395 { echo "$as_me:$LINENO: result: no" >&5
7396 echo "${ECHO_T}no" >&6; }
7399 if test -z "$lt_cv_path_MAGIC_CMD"; then
7400 if test -n "$ac_tool_prefix"; then
7401 { echo "$as_me:$LINENO: checking for file" >&5
7402 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7403 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7404 echo $ECHO_N "(cached) $ECHO_C" >&6
7405 else
7406 case $MAGIC_CMD in
7407 [\\/*] | ?:[\\/]*)
7408 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7411 lt_save_MAGIC_CMD="$MAGIC_CMD"
7412 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7413 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7414 for ac_dir in $ac_dummy; do
7415 IFS="$lt_save_ifs"
7416 test -z "$ac_dir" && ac_dir=.
7417 if test -f $ac_dir/file; then
7418 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7419 if test -n "$file_magic_test_file"; then
7420 case $deplibs_check_method in
7421 "file_magic "*)
7422 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7423 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7424 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7425 $EGREP "$file_magic_regex" > /dev/null; then
7427 else
7428 cat <<EOF 1>&2
7430 *** Warning: the command libtool uses to detect shared libraries,
7431 *** $file_magic_cmd, produces output that libtool cannot recognize.
7432 *** The result is that libtool may fail to recognize shared libraries
7433 *** as such. This will affect the creation of libtool libraries that
7434 *** depend on shared libraries, but programs linked with such libtool
7435 *** libraries will work regardless of this problem. Nevertheless, you
7436 *** may want to report the problem to your system manager and/or to
7437 *** bug-libtool@gnu.org
7440 fi ;;
7441 esac
7443 break
7445 done
7446 IFS="$lt_save_ifs"
7447 MAGIC_CMD="$lt_save_MAGIC_CMD"
7449 esac
7452 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7453 if test -n "$MAGIC_CMD"; then
7454 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7455 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7456 else
7457 { echo "$as_me:$LINENO: result: no" >&5
7458 echo "${ECHO_T}no" >&6; }
7461 else
7462 MAGIC_CMD=:
7468 esac
7470 enable_dlopen=no
7471 enable_win32_dll=yes
7473 # Check whether --enable-libtool-lock was given.
7474 if test "${enable_libtool_lock+set}" = set; then
7475 enableval=$enable_libtool_lock;
7478 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7481 # Check whether --with-pic was given.
7482 if test "${with_pic+set}" = set; then
7483 withval=$with_pic; pic_mode="$withval"
7484 else
7485 pic_mode=default
7488 test -z "$pic_mode" && pic_mode=default
7490 # Use C for the default configuration in the libtool script
7491 tagname=
7492 lt_save_CC="$CC"
7493 ac_ext=c
7494 ac_cpp='$CPP $CPPFLAGS'
7495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7500 # Source file extension for C test sources.
7501 ac_ext=c
7503 # Object file extension for compiled C test sources.
7504 objext=o
7505 objext=$objext
7507 # Code to be used in simple compile tests
7508 lt_simple_compile_test_code="int some_variable = 0;"
7510 # Code to be used in simple link tests
7511 lt_simple_link_test_code='int main(){return(0);}'
7514 # If no C compiler was specified, use CC.
7515 LTCC=${LTCC-"$CC"}
7517 # If no C compiler flags were specified, use CFLAGS.
7518 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7520 # Allow CC to be a program name with arguments.
7521 compiler=$CC
7524 # save warnings/boilerplate of simple test code
7525 ac_outfile=conftest.$ac_objext
7526 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7527 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7528 _lt_compiler_boilerplate=`cat conftest.err`
7529 $rm conftest*
7531 ac_outfile=conftest.$ac_objext
7532 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7533 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7534 _lt_linker_boilerplate=`cat conftest.err`
7535 $rm conftest*
7538 ## CAVEAT EMPTOR:
7539 ## There is no encapsulation within the following macros, do not change
7540 ## the running order or otherwise move them around unless you know exactly
7541 ## what you are doing...
7543 lt_prog_compiler_no_builtin_flag=
7545 if test "$GCC" = yes; then
7546 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7549 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7550 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7551 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7552 echo $ECHO_N "(cached) $ECHO_C" >&6
7553 else
7554 lt_cv_prog_compiler_rtti_exceptions=no
7555 ac_outfile=conftest.$ac_objext
7556 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7557 lt_compiler_flag="-fno-rtti -fno-exceptions"
7558 # Insert the option either (1) after the last *FLAGS variable, or
7559 # (2) before a word containing "conftest.", or (3) at the end.
7560 # Note that $ac_compile itself does not contain backslashes and begins
7561 # with a dollar sign (not a hyphen), so the echo should work correctly.
7562 # The option is referenced via a variable to avoid confusing sed.
7563 lt_compile=`echo "$ac_compile" | $SED \
7564 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7565 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7566 -e 's:$: $lt_compiler_flag:'`
7567 (eval echo "\"\$as_me:7567: $lt_compile\"" >&5)
7568 (eval "$lt_compile" 2>conftest.err)
7569 ac_status=$?
7570 cat conftest.err >&5
7571 echo "$as_me:7571: \$? = $ac_status" >&5
7572 if (exit $ac_status) && test -s "$ac_outfile"; then
7573 # The compiler can only warn and ignore the option if not recognized
7574 # So say no if there are warnings other than the usual output.
7575 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7576 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7577 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7578 lt_cv_prog_compiler_rtti_exceptions=yes
7581 $rm conftest*
7584 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7585 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7587 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7588 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7589 else
7595 lt_prog_compiler_wl=
7596 lt_prog_compiler_pic=
7597 lt_prog_compiler_static=
7599 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7600 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7602 if test "$GCC" = yes; then
7603 lt_prog_compiler_wl='-Wl,'
7604 lt_prog_compiler_static='-static'
7606 case $host_os in
7607 aix*)
7608 # All AIX code is PIC.
7609 if test "$host_cpu" = ia64; then
7610 # AIX 5 now supports IA64 processor
7611 lt_prog_compiler_static='-Bstatic'
7615 amigaos*)
7616 # FIXME: we need at least 68020 code to build shared libraries, but
7617 # adding the `-m68020' flag to GCC prevents building anything better,
7618 # like `-m68040'.
7619 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7622 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7623 # PIC is the default for these OSes.
7626 mingw* | cygwin* | pw32* | os2*)
7627 # This hack is so that the source file can tell whether it is being
7628 # built for inclusion in a dll (and should export symbols for example).
7629 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7630 # (--disable-auto-import) libraries
7631 lt_prog_compiler_pic='-DDLL_EXPORT'
7634 darwin* | rhapsody*)
7635 # PIC is the default on this platform
7636 # Common symbols not allowed in MH_DYLIB files
7637 lt_prog_compiler_pic='-fno-common'
7640 interix[3-9]*)
7641 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7642 # Instead, we relocate shared libraries at runtime.
7645 msdosdjgpp*)
7646 # Just because we use GCC doesn't mean we suddenly get shared libraries
7647 # on systems that don't support them.
7648 lt_prog_compiler_can_build_shared=no
7649 enable_shared=no
7652 sysv4*MP*)
7653 if test -d /usr/nec; then
7654 lt_prog_compiler_pic=-Kconform_pic
7658 hpux*)
7659 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7660 # not for PA HP-UX.
7661 case $host_cpu in
7662 hppa*64*|ia64*)
7663 # +Z the default
7666 lt_prog_compiler_pic='-fPIC'
7668 esac
7672 lt_prog_compiler_pic='-fPIC'
7674 esac
7675 else
7676 # PORTME Check for flag to pass linker flags through the system compiler.
7677 case $host_os in
7678 aix*)
7679 lt_prog_compiler_wl='-Wl,'
7680 if test "$host_cpu" = ia64; then
7681 # AIX 5 now supports IA64 processor
7682 lt_prog_compiler_static='-Bstatic'
7683 else
7684 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7687 darwin*)
7688 # PIC is the default on this platform
7689 # Common symbols not allowed in MH_DYLIB files
7690 case $cc_basename in
7691 xlc*)
7692 lt_prog_compiler_pic='-qnocommon'
7693 lt_prog_compiler_wl='-Wl,'
7695 esac
7698 mingw* | cygwin* | pw32* | os2*)
7699 # This hack is so that the source file can tell whether it is being
7700 # built for inclusion in a dll (and should export symbols for example).
7701 lt_prog_compiler_pic='-DDLL_EXPORT'
7704 hpux9* | hpux10* | hpux11*)
7705 lt_prog_compiler_wl='-Wl,'
7706 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7707 # not for PA HP-UX.
7708 case $host_cpu in
7709 hppa*64*|ia64*)
7710 # +Z the default
7713 lt_prog_compiler_pic='+Z'
7715 esac
7716 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7717 lt_prog_compiler_static='${wl}-a ${wl}archive'
7720 irix5* | irix6* | nonstopux*)
7721 lt_prog_compiler_wl='-Wl,'
7722 # PIC (with -KPIC) is the default.
7723 lt_prog_compiler_static='-non_shared'
7726 newsos6)
7727 lt_prog_compiler_pic='-KPIC'
7728 lt_prog_compiler_static='-Bstatic'
7731 linux* | k*bsd*-gnu)
7732 case $cc_basename in
7733 icc* | ecc*)
7734 lt_prog_compiler_wl='-Wl,'
7735 lt_prog_compiler_pic='-KPIC'
7736 lt_prog_compiler_static='-static'
7738 pgcc* | pgf77* | pgf90* | pgf95*)
7739 # Portland Group compilers (*not* the Pentium gcc compiler,
7740 # which looks to be a dead project)
7741 lt_prog_compiler_wl='-Wl,'
7742 lt_prog_compiler_pic='-fpic'
7743 lt_prog_compiler_static='-Bstatic'
7745 ccc*)
7746 lt_prog_compiler_wl='-Wl,'
7747 # All Alpha code is PIC.
7748 lt_prog_compiler_static='-non_shared'
7751 case `$CC -V 2>&1 | sed 5q` in
7752 *Sun\ C*)
7753 # Sun C 5.9
7754 lt_prog_compiler_pic='-KPIC'
7755 lt_prog_compiler_static='-Bstatic'
7756 lt_prog_compiler_wl='-Wl,'
7758 *Sun\ F*)
7759 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7760 lt_prog_compiler_pic='-KPIC'
7761 lt_prog_compiler_static='-Bstatic'
7762 lt_prog_compiler_wl=''
7764 esac
7766 esac
7769 osf3* | osf4* | osf5*)
7770 lt_prog_compiler_wl='-Wl,'
7771 # All OSF/1 code is PIC.
7772 lt_prog_compiler_static='-non_shared'
7775 rdos*)
7776 lt_prog_compiler_static='-non_shared'
7779 solaris*)
7780 lt_prog_compiler_pic='-KPIC'
7781 lt_prog_compiler_static='-Bstatic'
7782 case $cc_basename in
7783 f77* | f90* | f95*)
7784 lt_prog_compiler_wl='-Qoption ld ';;
7786 lt_prog_compiler_wl='-Wl,';;
7787 esac
7790 sunos4*)
7791 lt_prog_compiler_wl='-Qoption ld '
7792 lt_prog_compiler_pic='-PIC'
7793 lt_prog_compiler_static='-Bstatic'
7796 sysv4 | sysv4.2uw2* | sysv4.3*)
7797 lt_prog_compiler_wl='-Wl,'
7798 lt_prog_compiler_pic='-KPIC'
7799 lt_prog_compiler_static='-Bstatic'
7802 sysv4*MP*)
7803 if test -d /usr/nec ;then
7804 lt_prog_compiler_pic='-Kconform_pic'
7805 lt_prog_compiler_static='-Bstatic'
7809 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7810 lt_prog_compiler_wl='-Wl,'
7811 lt_prog_compiler_pic='-KPIC'
7812 lt_prog_compiler_static='-Bstatic'
7815 unicos*)
7816 lt_prog_compiler_wl='-Wl,'
7817 lt_prog_compiler_can_build_shared=no
7820 uts4*)
7821 lt_prog_compiler_pic='-pic'
7822 lt_prog_compiler_static='-Bstatic'
7826 lt_prog_compiler_can_build_shared=no
7828 esac
7831 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7832 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7835 # Check to make sure the PIC flag actually works.
7837 if test -n "$lt_prog_compiler_pic"; then
7839 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7840 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7841 if test "${lt_prog_compiler_pic_works+set}" = set; then
7842 echo $ECHO_N "(cached) $ECHO_C" >&6
7843 else
7844 lt_prog_compiler_pic_works=no
7845 ac_outfile=conftest.$ac_objext
7846 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7847 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7848 # Insert the option either (1) after the last *FLAGS variable, or
7849 # (2) before a word containing "conftest.", or (3) at the end.
7850 # Note that $ac_compile itself does not contain backslashes and begins
7851 # with a dollar sign (not a hyphen), so the echo should work correctly.
7852 # The option is referenced via a variable to avoid confusing sed.
7853 lt_compile=`echo "$ac_compile" | $SED \
7854 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7855 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7856 -e 's:$: $lt_compiler_flag:'`
7857 (eval echo "\"\$as_me:7857: $lt_compile\"" >&5)
7858 (eval "$lt_compile" 2>conftest.err)
7859 ac_status=$?
7860 cat conftest.err >&5
7861 echo "$as_me:7861: \$? = $ac_status" >&5
7862 if (exit $ac_status) && test -s "$ac_outfile"; then
7863 # The compiler can only warn and ignore the option if not recognized
7864 # So say no if there are warnings other than the usual output.
7865 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7866 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7867 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7868 lt_prog_compiler_pic_works=yes
7871 $rm conftest*
7874 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7875 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7877 if test x"$lt_prog_compiler_pic_works" = xyes; then
7878 case $lt_prog_compiler_pic in
7879 "" | " "*) ;;
7880 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7881 esac
7882 else
7883 lt_prog_compiler_pic=
7884 lt_prog_compiler_can_build_shared=no
7888 case $host_os in
7889 # For platforms which do not support PIC, -DPIC is meaningless:
7890 *djgpp*)
7891 lt_prog_compiler_pic=
7894 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7896 esac
7899 # Check to make sure the static flag actually works.
7901 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7902 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7903 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7904 if test "${lt_prog_compiler_static_works+set}" = set; then
7905 echo $ECHO_N "(cached) $ECHO_C" >&6
7906 else
7907 lt_prog_compiler_static_works=no
7908 save_LDFLAGS="$LDFLAGS"
7909 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7910 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7911 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7912 # The linker can only warn and ignore the option if not recognized
7913 # So say no if there are warnings
7914 if test -s conftest.err; then
7915 # Append any errors to the config.log.
7916 cat conftest.err 1>&5
7917 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7918 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7919 if diff conftest.exp conftest.er2 >/dev/null; then
7920 lt_prog_compiler_static_works=yes
7922 else
7923 lt_prog_compiler_static_works=yes
7926 $rm conftest*
7927 LDFLAGS="$save_LDFLAGS"
7930 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7931 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7933 if test x"$lt_prog_compiler_static_works" = xyes; then
7935 else
7936 lt_prog_compiler_static=
7940 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7941 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7942 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7943 echo $ECHO_N "(cached) $ECHO_C" >&6
7944 else
7945 lt_cv_prog_compiler_c_o=no
7946 $rm -r conftest 2>/dev/null
7947 mkdir conftest
7948 cd conftest
7949 mkdir out
7950 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7952 lt_compiler_flag="-o out/conftest2.$ac_objext"
7953 # Insert the option either (1) after the last *FLAGS variable, or
7954 # (2) before a word containing "conftest.", or (3) at the end.
7955 # Note that $ac_compile itself does not contain backslashes and begins
7956 # with a dollar sign (not a hyphen), so the echo should work correctly.
7957 lt_compile=`echo "$ac_compile" | $SED \
7958 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7959 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7960 -e 's:$: $lt_compiler_flag:'`
7961 (eval echo "\"\$as_me:7961: $lt_compile\"" >&5)
7962 (eval "$lt_compile" 2>out/conftest.err)
7963 ac_status=$?
7964 cat out/conftest.err >&5
7965 echo "$as_me:7965: \$? = $ac_status" >&5
7966 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7967 then
7968 # The compiler can only warn and ignore the option if not recognized
7969 # So say no if there are warnings
7970 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7971 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7972 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7973 lt_cv_prog_compiler_c_o=yes
7976 chmod u+w . 2>&5
7977 $rm conftest*
7978 # SGI C++ compiler will create directory out/ii_files/ for
7979 # template instantiation
7980 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7981 $rm out/* && rmdir out
7982 cd ..
7983 rmdir conftest
7984 $rm conftest*
7987 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7988 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7991 hard_links="nottested"
7992 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7993 # do not overwrite the value of need_locks provided by the user
7994 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7995 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7996 hard_links=yes
7997 $rm conftest*
7998 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7999 touch conftest.a
8000 ln conftest.a conftest.b 2>&5 || hard_links=no
8001 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8002 { echo "$as_me:$LINENO: result: $hard_links" >&5
8003 echo "${ECHO_T}$hard_links" >&6; }
8004 if test "$hard_links" = no; then
8005 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8006 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8007 need_locks=warn
8009 else
8010 need_locks=no
8013 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8014 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8016 runpath_var=
8017 allow_undefined_flag=
8018 enable_shared_with_static_runtimes=no
8019 archive_cmds=
8020 archive_expsym_cmds=
8021 old_archive_From_new_cmds=
8022 old_archive_from_expsyms_cmds=
8023 export_dynamic_flag_spec=
8024 whole_archive_flag_spec=
8025 thread_safe_flag_spec=
8026 hardcode_libdir_flag_spec=
8027 hardcode_libdir_flag_spec_ld=
8028 hardcode_libdir_separator=
8029 hardcode_direct=no
8030 hardcode_minus_L=no
8031 hardcode_shlibpath_var=unsupported
8032 link_all_deplibs=unknown
8033 hardcode_automatic=no
8034 module_cmds=
8035 module_expsym_cmds=
8036 always_export_symbols=no
8037 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8038 # include_expsyms should be a list of space-separated symbols to be *always*
8039 # included in the symbol list
8040 include_expsyms=
8041 # exclude_expsyms can be an extended regexp of symbols to exclude
8042 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8043 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8044 # as well as any symbol that contains `d'.
8045 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8046 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8047 # platforms (ab)use it in PIC code, but their linkers get confused if
8048 # the symbol is explicitly referenced. Since portable code cannot
8049 # rely on this symbol name, it's probably fine to never include it in
8050 # preloaded symbol tables.
8051 extract_expsyms_cmds=
8052 # Just being paranoid about ensuring that cc_basename is set.
8053 for cc_temp in $compiler""; do
8054 case $cc_temp in
8055 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8056 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8057 \-*) ;;
8058 *) break;;
8059 esac
8060 done
8061 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8063 case $host_os in
8064 cygwin* | mingw* | pw32*)
8065 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8066 # When not using gcc, we currently assume that we are using
8067 # Microsoft Visual C++.
8068 if test "$GCC" != yes; then
8069 with_gnu_ld=no
8072 interix*)
8073 # we just hope/assume this is gcc and not c89 (= MSVC++)
8074 with_gnu_ld=yes
8076 openbsd*)
8077 with_gnu_ld=no
8079 esac
8081 ld_shlibs=yes
8082 if test "$with_gnu_ld" = yes; then
8083 # If archive_cmds runs LD, not CC, wlarc should be empty
8084 wlarc='${wl}'
8086 # Set some defaults for GNU ld with shared library support. These
8087 # are reset later if shared libraries are not supported. Putting them
8088 # here allows them to be overridden if necessary.
8089 runpath_var=LD_RUN_PATH
8090 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8091 export_dynamic_flag_spec='${wl}--export-dynamic'
8092 # ancient GNU ld didn't support --whole-archive et. al.
8093 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8094 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8095 else
8096 whole_archive_flag_spec=
8098 supports_anon_versioning=no
8099 case `$LD -v 2>/dev/null` in
8100 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8101 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8102 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8103 *\ 2.11.*) ;; # other 2.11 versions
8104 *) supports_anon_versioning=yes ;;
8105 esac
8107 # See if GNU ld supports shared libraries.
8108 case $host_os in
8109 aix3* | aix4* | aix5*)
8110 # On AIX/PPC, the GNU linker is very broken
8111 if test "$host_cpu" != ia64; then
8112 ld_shlibs=no
8113 cat <<EOF 1>&2
8115 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8116 *** to be unable to reliably create shared libraries on AIX.
8117 *** Therefore, libtool is disabling shared libraries support. If you
8118 *** really care for shared libraries, you may want to modify your PATH
8119 *** so that a non-GNU linker is found, and then restart.
8125 amigaos*)
8126 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)'
8127 hardcode_libdir_flag_spec='-L$libdir'
8128 hardcode_minus_L=yes
8130 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8131 # that the semantics of dynamic libraries on AmigaOS, at least up
8132 # to version 4, is to share data among multiple programs linked
8133 # with the same dynamic library. Since this doesn't match the
8134 # behavior of shared libraries on other platforms, we can't use
8135 # them.
8136 ld_shlibs=no
8139 beos*)
8140 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8141 allow_undefined_flag=unsupported
8142 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8143 # support --undefined. This deserves some investigation. FIXME
8144 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8145 else
8146 ld_shlibs=no
8150 cygwin* | mingw* | pw32*)
8151 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8152 # as there is no search path for DLLs.
8153 hardcode_libdir_flag_spec='-L$libdir'
8154 allow_undefined_flag=unsupported
8155 always_export_symbols=no
8156 enable_shared_with_static_runtimes=yes
8157 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8159 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8160 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8161 # If the export-symbols file already is a .def file (1st line
8162 # is EXPORTS), use it as is; otherwise, prepend...
8163 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8164 cp $export_symbols $output_objdir/$soname.def;
8165 else
8166 echo EXPORTS > $output_objdir/$soname.def;
8167 cat $export_symbols >> $output_objdir/$soname.def;
8169 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8170 else
8171 ld_shlibs=no
8175 interix[3-9]*)
8176 hardcode_direct=no
8177 hardcode_shlibpath_var=no
8178 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8179 export_dynamic_flag_spec='${wl}-E'
8180 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8181 # Instead, shared libraries are loaded at an image base (0x10000000 by
8182 # default) and relocated if they conflict, which is a slow very memory
8183 # consuming and fragmenting process. To avoid this, we pick a random,
8184 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8185 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8186 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8187 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'
8190 gnu* | linux* | k*bsd*-gnu)
8191 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8192 tmp_addflag=
8193 case $cc_basename,$host_cpu in
8194 pgcc*) # Portland Group C compiler
8195 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'
8196 tmp_addflag=' $pic_flag'
8198 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8199 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'
8200 tmp_addflag=' $pic_flag -Mnomain' ;;
8201 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8202 tmp_addflag=' -i_dynamic' ;;
8203 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8204 tmp_addflag=' -i_dynamic -nofor_main' ;;
8205 ifc* | ifort*) # Intel Fortran compiler
8206 tmp_addflag=' -nofor_main' ;;
8207 esac
8208 case `$CC -V 2>&1 | sed 5q` in
8209 *Sun\ C*) # Sun C 5.9
8210 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8211 tmp_sharedflag='-G' ;;
8212 *Sun\ F*) # Sun Fortran 8.3
8213 tmp_sharedflag='-G' ;;
8215 tmp_sharedflag='-shared' ;;
8216 esac
8217 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8219 if test $supports_anon_versioning = yes; then
8220 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8221 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8222 $echo "local: *; };" >> $output_objdir/$libname.ver~
8223 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8225 else
8226 ld_shlibs=no
8230 netbsd*)
8231 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8232 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8233 wlarc=
8234 else
8235 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8236 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8240 solaris*)
8241 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8242 ld_shlibs=no
8243 cat <<EOF 1>&2
8245 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8246 *** create shared libraries on Solaris systems. Therefore, libtool
8247 *** is disabling shared libraries support. We urge you to upgrade GNU
8248 *** binutils to release 2.9.1 or newer. Another option is to modify
8249 *** your PATH or compiler configuration so that the native linker is
8250 *** used, and then restart.
8253 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8254 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8255 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8256 else
8257 ld_shlibs=no
8261 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8262 case `$LD -v 2>&1` in
8263 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8264 ld_shlibs=no
8265 cat <<_LT_EOF 1>&2
8267 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8268 *** reliably create shared libraries on SCO systems. Therefore, libtool
8269 *** is disabling shared libraries support. We urge you to upgrade GNU
8270 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8271 *** your PATH or compiler configuration so that the native linker is
8272 *** used, and then restart.
8274 _LT_EOF
8277 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8278 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8279 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8280 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8281 else
8282 ld_shlibs=no
8285 esac
8288 sunos4*)
8289 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8290 wlarc=
8291 hardcode_direct=yes
8292 hardcode_shlibpath_var=no
8296 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8297 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8298 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8299 else
8300 ld_shlibs=no
8303 esac
8305 if test "$ld_shlibs" = no; then
8306 runpath_var=
8307 hardcode_libdir_flag_spec=
8308 export_dynamic_flag_spec=
8309 whole_archive_flag_spec=
8311 else
8312 # PORTME fill in a description of your system's linker (not GNU ld)
8313 case $host_os in
8314 aix3*)
8315 allow_undefined_flag=unsupported
8316 always_export_symbols=yes
8317 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'
8318 # Note: this linker hardcodes the directories in LIBPATH if there
8319 # are no directories specified by -L.
8320 hardcode_minus_L=yes
8321 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8322 # Neither direct hardcoding nor static linking is supported with a
8323 # broken collect2.
8324 hardcode_direct=unsupported
8328 aix4* | aix5*)
8329 if test "$host_cpu" = ia64; then
8330 # On IA64, the linker does run time linking by default, so we don't
8331 # have to do anything special.
8332 aix_use_runtimelinking=no
8333 exp_sym_flag='-Bexport'
8334 no_entry_flag=""
8335 else
8336 # If we're using GNU nm, then we don't want the "-C" option.
8337 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8338 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8339 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'
8340 else
8341 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'
8343 aix_use_runtimelinking=no
8345 # Test if we are trying to use run time linking or normal
8346 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8347 # need to do runtime linking.
8348 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8349 for ld_flag in $LDFLAGS; do
8350 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8351 aix_use_runtimelinking=yes
8352 break
8354 done
8356 esac
8358 exp_sym_flag='-bexport'
8359 no_entry_flag='-bnoentry'
8362 # When large executables or shared objects are built, AIX ld can
8363 # have problems creating the table of contents. If linking a library
8364 # or program results in "error TOC overflow" add -mminimal-toc to
8365 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8366 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8368 archive_cmds=''
8369 hardcode_direct=yes
8370 hardcode_libdir_separator=':'
8371 link_all_deplibs=yes
8373 if test "$GCC" = yes; then
8374 case $host_os in aix4.[012]|aix4.[012].*)
8375 # We only want to do this on AIX 4.2 and lower, the check
8376 # below for broken collect2 doesn't work under 4.3+
8377 collect2name=`${CC} -print-prog-name=collect2`
8378 if test -f "$collect2name" && \
8379 strings "$collect2name" | grep resolve_lib_name >/dev/null
8380 then
8381 # We have reworked collect2
8383 else
8384 # We have old collect2
8385 hardcode_direct=unsupported
8386 # It fails to find uninstalled libraries when the uninstalled
8387 # path is not listed in the libpath. Setting hardcode_minus_L
8388 # to unsupported forces relinking
8389 hardcode_minus_L=yes
8390 hardcode_libdir_flag_spec='-L$libdir'
8391 hardcode_libdir_separator=
8394 esac
8395 shared_flag='-shared'
8396 if test "$aix_use_runtimelinking" = yes; then
8397 shared_flag="$shared_flag "'${wl}-G'
8399 else
8400 # not using gcc
8401 if test "$host_cpu" = ia64; then
8402 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8403 # chokes on -Wl,-G. The following line is correct:
8404 shared_flag='-G'
8405 else
8406 if test "$aix_use_runtimelinking" = yes; then
8407 shared_flag='${wl}-G'
8408 else
8409 shared_flag='${wl}-bM:SRE'
8414 # It seems that -bexpall does not export symbols beginning with
8415 # underscore (_), so it is better to generate a list of symbols to export.
8416 always_export_symbols=yes
8417 if test "$aix_use_runtimelinking" = yes; then
8418 # Warning - without using the other runtime loading flags (-brtl),
8419 # -berok will link without error, but may produce a broken library.
8420 allow_undefined_flag='-berok'
8421 # Determine the default libpath from the value encoded in an empty executable.
8422 cat >conftest.$ac_ext <<_ACEOF
8423 /* confdefs.h. */
8424 _ACEOF
8425 cat confdefs.h >>conftest.$ac_ext
8426 cat >>conftest.$ac_ext <<_ACEOF
8427 /* end confdefs.h. */
8430 main ()
8434 return 0;
8436 _ACEOF
8437 rm -f conftest.$ac_objext conftest$ac_exeext
8438 if { (ac_try="$ac_link"
8439 case "(($ac_try" in
8440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8441 *) ac_try_echo=$ac_try;;
8442 esac
8443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8444 (eval "$ac_link") 2>conftest.er1
8445 ac_status=$?
8446 grep -v '^ *+' conftest.er1 >conftest.err
8447 rm -f conftest.er1
8448 cat conftest.err >&5
8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 (exit $ac_status); } && {
8451 test -z "$ac_c_werror_flag" ||
8452 test ! -s conftest.err
8453 } && test -s conftest$ac_exeext &&
8454 $as_test_x conftest$ac_exeext; then
8456 lt_aix_libpath_sed='
8457 /Import File Strings/,/^$/ {
8458 /^0/ {
8459 s/^0 *\(.*\)$/\1/
8463 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8464 # Check for a 64-bit object if we didn't find anything.
8465 if test -z "$aix_libpath"; then
8466 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8468 else
8469 echo "$as_me: failed program was:" >&5
8470 sed 's/^/| /' conftest.$ac_ext >&5
8475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8476 conftest$ac_exeext conftest.$ac_ext
8477 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8479 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8480 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"
8481 else
8482 if test "$host_cpu" = ia64; then
8483 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8484 allow_undefined_flag="-z nodefs"
8485 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"
8486 else
8487 # Determine the default libpath from the value encoded in an empty executable.
8488 cat >conftest.$ac_ext <<_ACEOF
8489 /* confdefs.h. */
8490 _ACEOF
8491 cat confdefs.h >>conftest.$ac_ext
8492 cat >>conftest.$ac_ext <<_ACEOF
8493 /* end confdefs.h. */
8496 main ()
8500 return 0;
8502 _ACEOF
8503 rm -f conftest.$ac_objext conftest$ac_exeext
8504 if { (ac_try="$ac_link"
8505 case "(($ac_try" in
8506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8507 *) ac_try_echo=$ac_try;;
8508 esac
8509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8510 (eval "$ac_link") 2>conftest.er1
8511 ac_status=$?
8512 grep -v '^ *+' conftest.er1 >conftest.err
8513 rm -f conftest.er1
8514 cat conftest.err >&5
8515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516 (exit $ac_status); } && {
8517 test -z "$ac_c_werror_flag" ||
8518 test ! -s conftest.err
8519 } && test -s conftest$ac_exeext &&
8520 $as_test_x conftest$ac_exeext; then
8522 lt_aix_libpath_sed='
8523 /Import File Strings/,/^$/ {
8524 /^0/ {
8525 s/^0 *\(.*\)$/\1/
8529 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8530 # Check for a 64-bit object if we didn't find anything.
8531 if test -z "$aix_libpath"; then
8532 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8534 else
8535 echo "$as_me: failed program was:" >&5
8536 sed 's/^/| /' conftest.$ac_ext >&5
8541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8542 conftest$ac_exeext conftest.$ac_ext
8543 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8545 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8546 # Warning - without using the other run time loading flags,
8547 # -berok will link without error, but may produce a broken library.
8548 no_undefined_flag=' ${wl}-bernotok'
8549 allow_undefined_flag=' ${wl}-berok'
8550 # Exported symbols can be pulled into shared objects from archives
8551 whole_archive_flag_spec='$convenience'
8552 archive_cmds_need_lc=yes
8553 # This is similar to how AIX traditionally builds its shared libraries.
8554 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'
8559 amigaos*)
8560 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)'
8561 hardcode_libdir_flag_spec='-L$libdir'
8562 hardcode_minus_L=yes
8563 # see comment about different semantics on the GNU ld section
8564 ld_shlibs=no
8567 bsdi[45]*)
8568 export_dynamic_flag_spec=-rdynamic
8571 cygwin* | mingw* | pw32*)
8572 # When not using gcc, we currently assume that we are using
8573 # Microsoft Visual C++.
8574 # hardcode_libdir_flag_spec is actually meaningless, as there is
8575 # no search path for DLLs.
8576 hardcode_libdir_flag_spec=' '
8577 allow_undefined_flag=unsupported
8578 # Tell ltmain to make .lib files, not .a files.
8579 libext=lib
8580 # Tell ltmain to make .dll files, not .so files.
8581 shrext_cmds=".dll"
8582 # FIXME: Setting linknames here is a bad hack.
8583 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8584 # The linker will automatically build a .lib file if we build a DLL.
8585 old_archive_From_new_cmds='true'
8586 # FIXME: Should let the user specify the lib program.
8587 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8588 fix_srcfile_path='`cygpath -w "$srcfile"`'
8589 enable_shared_with_static_runtimes=yes
8592 darwin* | rhapsody*)
8593 case $host_os in
8594 rhapsody* | darwin1.[012])
8595 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8597 *) # Darwin 1.3 on
8598 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8599 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8600 else
8601 case ${MACOSX_DEPLOYMENT_TARGET} in
8602 10.[012])
8603 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8605 10.*)
8606 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8608 esac
8611 esac
8612 archive_cmds_need_lc=no
8613 hardcode_direct=no
8614 hardcode_automatic=yes
8615 hardcode_shlibpath_var=unsupported
8616 whole_archive_flag_spec=''
8617 link_all_deplibs=yes
8618 if test "$GCC" = yes ; then
8619 output_verbose_link_cmd='echo'
8620 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8621 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8622 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8623 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}'
8624 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}'
8625 else
8626 case $cc_basename in
8627 xlc*)
8628 output_verbose_link_cmd='echo'
8629 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8630 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8631 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8632 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8633 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}'
8636 ld_shlibs=no
8638 esac
8642 dgux*)
8643 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8644 hardcode_libdir_flag_spec='-L$libdir'
8645 hardcode_shlibpath_var=no
8648 freebsd1*)
8649 ld_shlibs=no
8652 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8653 # support. Future versions do this automatically, but an explicit c++rt0.o
8654 # does not break anything, and helps significantly (at the cost of a little
8655 # extra space).
8656 freebsd2.2*)
8657 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8658 hardcode_libdir_flag_spec='-R$libdir'
8659 hardcode_direct=yes
8660 hardcode_shlibpath_var=no
8663 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8664 freebsd2*)
8665 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8666 hardcode_direct=yes
8667 hardcode_minus_L=yes
8668 hardcode_shlibpath_var=no
8671 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8672 freebsd* | dragonfly*)
8673 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8674 hardcode_libdir_flag_spec='-R$libdir'
8675 hardcode_direct=yes
8676 hardcode_shlibpath_var=no
8679 hpux9*)
8680 if test "$GCC" = yes; then
8681 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'
8682 else
8683 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'
8685 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8686 hardcode_libdir_separator=:
8687 hardcode_direct=yes
8689 # hardcode_minus_L: Not really in the search PATH,
8690 # but as the default location of the library.
8691 hardcode_minus_L=yes
8692 export_dynamic_flag_spec='${wl}-E'
8695 hpux10*)
8696 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8697 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8698 else
8699 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8701 if test "$with_gnu_ld" = no; then
8702 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8703 hardcode_libdir_separator=:
8705 hardcode_direct=yes
8706 export_dynamic_flag_spec='${wl}-E'
8708 # hardcode_minus_L: Not really in the search PATH,
8709 # but as the default location of the library.
8710 hardcode_minus_L=yes
8714 hpux11*)
8715 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8716 case $host_cpu in
8717 hppa*64*)
8718 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8720 ia64*)
8721 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8724 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8726 esac
8727 else
8728 case $host_cpu in
8729 hppa*64*)
8730 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8732 ia64*)
8733 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8736 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8738 esac
8740 if test "$with_gnu_ld" = no; then
8741 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8742 hardcode_libdir_separator=:
8744 case $host_cpu in
8745 hppa*64*|ia64*)
8746 hardcode_libdir_flag_spec_ld='+b $libdir'
8747 hardcode_direct=no
8748 hardcode_shlibpath_var=no
8751 hardcode_direct=yes
8752 export_dynamic_flag_spec='${wl}-E'
8754 # hardcode_minus_L: Not really in the search PATH,
8755 # but as the default location of the library.
8756 hardcode_minus_L=yes
8758 esac
8762 irix5* | irix6* | nonstopux*)
8763 if test "$GCC" = yes; then
8764 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'
8765 else
8766 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'
8767 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8769 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8770 hardcode_libdir_separator=:
8771 link_all_deplibs=yes
8774 netbsd*)
8775 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8776 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8777 else
8778 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8780 hardcode_libdir_flag_spec='-R$libdir'
8781 hardcode_direct=yes
8782 hardcode_shlibpath_var=no
8785 newsos6)
8786 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8787 hardcode_direct=yes
8788 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8789 hardcode_libdir_separator=:
8790 hardcode_shlibpath_var=no
8793 openbsd*)
8794 if test -f /usr/libexec/ld.so; then
8795 hardcode_direct=yes
8796 hardcode_shlibpath_var=no
8797 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8798 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8799 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8800 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8801 export_dynamic_flag_spec='${wl}-E'
8802 else
8803 case $host_os in
8804 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8805 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8806 hardcode_libdir_flag_spec='-R$libdir'
8809 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8810 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8812 esac
8814 else
8815 ld_shlibs=no
8819 os2*)
8820 hardcode_libdir_flag_spec='-L$libdir'
8821 hardcode_minus_L=yes
8822 allow_undefined_flag=unsupported
8823 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'
8824 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8827 osf3*)
8828 if test "$GCC" = yes; then
8829 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8830 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'
8831 else
8832 allow_undefined_flag=' -expect_unresolved \*'
8833 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'
8835 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8836 hardcode_libdir_separator=:
8839 osf4* | osf5*) # as osf3* with the addition of -msym flag
8840 if test "$GCC" = yes; then
8841 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8842 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'
8843 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8844 else
8845 allow_undefined_flag=' -expect_unresolved \*'
8846 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'
8847 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8848 $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'
8850 # Both c and cxx compiler support -rpath directly
8851 hardcode_libdir_flag_spec='-rpath $libdir'
8853 hardcode_libdir_separator=:
8856 solaris*)
8857 no_undefined_flag=' -z text'
8858 if test "$GCC" = yes; then
8859 wlarc='${wl}'
8860 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8861 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8862 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8863 else
8864 wlarc=''
8865 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8866 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8867 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8869 hardcode_libdir_flag_spec='-R$libdir'
8870 hardcode_shlibpath_var=no
8871 case $host_os in
8872 solaris2.[0-5] | solaris2.[0-5].*) ;;
8874 # The compiler driver will combine and reorder linker options,
8875 # but understands `-z linker_flag'. GCC discards it without `$wl',
8876 # but is careful enough not to reorder.
8877 # Supported since Solaris 2.6 (maybe 2.5.1?)
8878 if test "$GCC" = yes; then
8879 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8880 else
8881 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8884 esac
8885 link_all_deplibs=yes
8888 sunos4*)
8889 if test "x$host_vendor" = xsequent; then
8890 # Use $CC to link under sequent, because it throws in some extra .o
8891 # files that make .init and .fini sections work.
8892 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8893 else
8894 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8896 hardcode_libdir_flag_spec='-L$libdir'
8897 hardcode_direct=yes
8898 hardcode_minus_L=yes
8899 hardcode_shlibpath_var=no
8902 sysv4)
8903 case $host_vendor in
8904 sni)
8905 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8906 hardcode_direct=yes # is this really true???
8908 siemens)
8909 ## LD is ld it makes a PLAMLIB
8910 ## CC just makes a GrossModule.
8911 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8912 reload_cmds='$CC -r -o $output$reload_objs'
8913 hardcode_direct=no
8915 motorola)
8916 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8917 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8919 esac
8920 runpath_var='LD_RUN_PATH'
8921 hardcode_shlibpath_var=no
8924 sysv4.3*)
8925 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8926 hardcode_shlibpath_var=no
8927 export_dynamic_flag_spec='-Bexport'
8930 sysv4*MP*)
8931 if test -d /usr/nec; then
8932 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8933 hardcode_shlibpath_var=no
8934 runpath_var=LD_RUN_PATH
8935 hardcode_runpath_var=yes
8936 ld_shlibs=yes
8940 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8941 no_undefined_flag='${wl}-z,text'
8942 archive_cmds_need_lc=no
8943 hardcode_shlibpath_var=no
8944 runpath_var='LD_RUN_PATH'
8946 if test "$GCC" = yes; then
8947 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8948 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8949 else
8950 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8951 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8955 sysv5* | sco3.2v5* | sco5v6*)
8956 # Note: We can NOT use -z defs as we might desire, because we do not
8957 # link with -lc, and that would cause any symbols used from libc to
8958 # always be unresolved, which means just about no library would
8959 # ever link correctly. If we're not using GNU ld we use -z text
8960 # though, which does catch some bad symbols but isn't as heavy-handed
8961 # as -z defs.
8962 no_undefined_flag='${wl}-z,text'
8963 allow_undefined_flag='${wl}-z,nodefs'
8964 archive_cmds_need_lc=no
8965 hardcode_shlibpath_var=no
8966 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8967 hardcode_libdir_separator=':'
8968 link_all_deplibs=yes
8969 export_dynamic_flag_spec='${wl}-Bexport'
8970 runpath_var='LD_RUN_PATH'
8972 if test "$GCC" = yes; then
8973 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8974 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8975 else
8976 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8977 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8981 uts4*)
8982 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8983 hardcode_libdir_flag_spec='-L$libdir'
8984 hardcode_shlibpath_var=no
8988 ld_shlibs=no
8990 esac
8993 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8994 echo "${ECHO_T}$ld_shlibs" >&6; }
8995 test "$ld_shlibs" = no && can_build_shared=no
8998 # Do we need to explicitly link libc?
9000 case "x$archive_cmds_need_lc" in
9001 x|xyes)
9002 # Assume -lc should be added
9003 archive_cmds_need_lc=yes
9005 if test "$enable_shared" = yes && test "$GCC" = yes; then
9006 case $archive_cmds in
9007 *'~'*)
9008 # FIXME: we may have to deal with multi-command sequences.
9010 '$CC '*)
9011 # Test whether the compiler implicitly links with -lc since on some
9012 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9013 # to ld, don't add -lc before -lgcc.
9014 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9015 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9016 $rm conftest*
9017 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9020 (eval $ac_compile) 2>&5
9021 ac_status=$?
9022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023 (exit $ac_status); } 2>conftest.err; then
9024 soname=conftest
9025 lib=conftest
9026 libobjs=conftest.$ac_objext
9027 deplibs=
9028 wl=$lt_prog_compiler_wl
9029 pic_flag=$lt_prog_compiler_pic
9030 compiler_flags=-v
9031 linker_flags=-v
9032 verstring=
9033 output_objdir=.
9034 libname=conftest
9035 lt_save_allow_undefined_flag=$allow_undefined_flag
9036 allow_undefined_flag=
9037 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9038 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9039 ac_status=$?
9040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041 (exit $ac_status); }
9042 then
9043 archive_cmds_need_lc=no
9044 else
9045 archive_cmds_need_lc=yes
9047 allow_undefined_flag=$lt_save_allow_undefined_flag
9048 else
9049 cat conftest.err 1>&5
9051 $rm conftest*
9052 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9053 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9055 esac
9058 esac
9060 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9061 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9062 library_names_spec=
9063 libname_spec='lib$name'
9064 soname_spec=
9065 shrext_cmds=".so"
9066 postinstall_cmds=
9067 postuninstall_cmds=
9068 finish_cmds=
9069 finish_eval=
9070 shlibpath_var=
9071 shlibpath_overrides_runpath=unknown
9072 version_type=none
9073 dynamic_linker="$host_os ld.so"
9074 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9076 if test "$GCC" = yes; then
9077 case $host_os in
9078 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9079 *) lt_awk_arg="/^libraries:/" ;;
9080 esac
9081 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9082 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9083 # if the path contains ";" then we assume it to be the separator
9084 # otherwise default to the standard path separator (i.e. ":") - it is
9085 # assumed that no part of a normal pathname contains ";" but that should
9086 # okay in the real world where ";" in dirpaths is itself problematic.
9087 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9088 else
9089 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9091 # Ok, now we have the path, separated by spaces, we can step through it
9092 # and add multilib dir if necessary.
9093 lt_tmp_lt_search_path_spec=
9094 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9095 for lt_sys_path in $lt_search_path_spec; do
9096 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9097 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9098 else
9099 test -d "$lt_sys_path" && \
9100 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9102 done
9103 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9104 BEGIN {RS=" "; FS="/|\n";} {
9105 lt_foo="";
9106 lt_count=0;
9107 for (lt_i = NF; lt_i > 0; lt_i--) {
9108 if ($lt_i != "" && $lt_i != ".") {
9109 if ($lt_i == "..") {
9110 lt_count++;
9111 } else {
9112 if (lt_count == 0) {
9113 lt_foo="/" $lt_i lt_foo;
9114 } else {
9115 lt_count--;
9120 if (lt_foo != "") { lt_freq[lt_foo]++; }
9121 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9123 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9124 else
9125 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9127 need_lib_prefix=unknown
9128 hardcode_into_libs=no
9130 # when you set need_version to no, make sure it does not cause -set_version
9131 # flags to be left without arguments
9132 need_version=unknown
9134 case $host_os in
9135 aix3*)
9136 version_type=linux
9137 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9138 shlibpath_var=LIBPATH
9140 # AIX 3 has no versioning support, so we append a major version to the name.
9141 soname_spec='${libname}${release}${shared_ext}$major'
9144 aix4* | aix5*)
9145 version_type=linux
9146 need_lib_prefix=no
9147 need_version=no
9148 hardcode_into_libs=yes
9149 if test "$host_cpu" = ia64; then
9150 # AIX 5 supports IA64
9151 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9152 shlibpath_var=LD_LIBRARY_PATH
9153 else
9154 # With GCC up to 2.95.x, collect2 would create an import file
9155 # for dependence libraries. The import file would start with
9156 # the line `#! .'. This would cause the generated library to
9157 # depend on `.', always an invalid library. This was fixed in
9158 # development snapshots of GCC prior to 3.0.
9159 case $host_os in
9160 aix4 | aix4.[01] | aix4.[01].*)
9161 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9162 echo ' yes '
9163 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9165 else
9166 can_build_shared=no
9169 esac
9170 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9171 # soname into executable. Probably we can add versioning support to
9172 # collect2, so additional links can be useful in future.
9173 if test "$aix_use_runtimelinking" = yes; then
9174 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9175 # instead of lib<name>.a to let people know that these are not
9176 # typical AIX shared libraries.
9177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9178 else
9179 # We preserve .a as extension for shared libraries through AIX4.2
9180 # and later when we are not doing run time linking.
9181 library_names_spec='${libname}${release}.a $libname.a'
9182 soname_spec='${libname}${release}${shared_ext}$major'
9184 shlibpath_var=LIBPATH
9188 amigaos*)
9189 library_names_spec='$libname.ixlibrary $libname.a'
9190 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9191 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'
9194 beos*)
9195 library_names_spec='${libname}${shared_ext}'
9196 dynamic_linker="$host_os ld.so"
9197 shlibpath_var=LIBRARY_PATH
9200 bsdi[45]*)
9201 version_type=linux
9202 need_version=no
9203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9204 soname_spec='${libname}${release}${shared_ext}$major'
9205 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9206 shlibpath_var=LD_LIBRARY_PATH
9207 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9208 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9209 # the default ld.so.conf also contains /usr/contrib/lib and
9210 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9211 # libtool to hard-code these into programs
9214 cygwin* | mingw* | pw32*)
9215 version_type=windows
9216 shrext_cmds=".dll"
9217 need_version=no
9218 need_lib_prefix=no
9220 case $GCC,$host_os in
9221 yes,cygwin* | yes,mingw* | yes,pw32*)
9222 library_names_spec='$libname.dll.a'
9223 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9224 postinstall_cmds='base_file=`basename \${file}`~
9225 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9226 dldir=$destdir/`dirname \$dlpath`~
9227 test -d \$dldir || mkdir -p \$dldir~
9228 $install_prog $dir/$dlname \$dldir/$dlname~
9229 chmod a+x \$dldir/$dlname'
9230 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9231 dlpath=$dir/\$dldll~
9232 $rm \$dlpath'
9233 shlibpath_overrides_runpath=yes
9235 case $host_os in
9236 cygwin*)
9237 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9238 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9239 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9241 mingw*)
9242 # MinGW DLLs use traditional 'lib' prefix
9243 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9244 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9245 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9246 # It is most probably a Windows format PATH printed by
9247 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9248 # path with ; separators, and with drive letters. We can handle the
9249 # drive letters (cygwin fileutils understands them), so leave them,
9250 # especially as we might pass files found there to a mingw objdump,
9251 # which wouldn't understand a cygwinified path. Ahh.
9252 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9253 else
9254 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9257 pw32*)
9258 # pw32 DLLs use 'pw' prefix rather than 'lib'
9259 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9261 esac
9265 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9267 esac
9268 dynamic_linker='Win32 ld.exe'
9269 # FIXME: first we should search . and the directory the executable is in
9270 shlibpath_var=PATH
9273 darwin* | rhapsody*)
9274 dynamic_linker="$host_os dyld"
9275 version_type=darwin
9276 need_lib_prefix=no
9277 need_version=no
9278 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9279 soname_spec='${libname}${release}${major}$shared_ext'
9280 shlibpath_overrides_runpath=yes
9281 shlibpath_var=DYLD_LIBRARY_PATH
9282 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9284 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9285 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9288 dgux*)
9289 version_type=linux
9290 need_lib_prefix=no
9291 need_version=no
9292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9293 soname_spec='${libname}${release}${shared_ext}$major'
9294 shlibpath_var=LD_LIBRARY_PATH
9297 freebsd1*)
9298 dynamic_linker=no
9301 freebsd* | dragonfly*)
9302 # DragonFly does not have aout. When/if they implement a new
9303 # versioning mechanism, adjust this.
9304 if test -x /usr/bin/objformat; then
9305 objformat=`/usr/bin/objformat`
9306 else
9307 case $host_os in
9308 freebsd[123]*) objformat=aout ;;
9309 *) objformat=elf ;;
9310 esac
9312 version_type=freebsd-$objformat
9313 case $version_type in
9314 freebsd-elf*)
9315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9316 need_version=no
9317 need_lib_prefix=no
9319 freebsd-*)
9320 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9321 need_version=yes
9323 esac
9324 shlibpath_var=LD_LIBRARY_PATH
9325 case $host_os in
9326 freebsd2*)
9327 shlibpath_overrides_runpath=yes
9329 freebsd3.[01]* | freebsdelf3.[01]*)
9330 shlibpath_overrides_runpath=yes
9331 hardcode_into_libs=yes
9333 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9334 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9335 shlibpath_overrides_runpath=no
9336 hardcode_into_libs=yes
9338 *) # from 4.6 on, and DragonFly
9339 shlibpath_overrides_runpath=yes
9340 hardcode_into_libs=yes
9342 esac
9345 gnu*)
9346 version_type=linux
9347 need_lib_prefix=no
9348 need_version=no
9349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9350 soname_spec='${libname}${release}${shared_ext}$major'
9351 shlibpath_var=LD_LIBRARY_PATH
9352 hardcode_into_libs=yes
9355 hpux9* | hpux10* | hpux11*)
9356 # Give a soname corresponding to the major version so that dld.sl refuses to
9357 # link against other versions.
9358 version_type=sunos
9359 need_lib_prefix=no
9360 need_version=no
9361 case $host_cpu in
9362 ia64*)
9363 shrext_cmds='.so'
9364 hardcode_into_libs=yes
9365 dynamic_linker="$host_os dld.so"
9366 shlibpath_var=LD_LIBRARY_PATH
9367 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9369 soname_spec='${libname}${release}${shared_ext}$major'
9370 if test "X$HPUX_IA64_MODE" = X32; then
9371 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9372 else
9373 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9375 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9377 hppa*64*)
9378 shrext_cmds='.sl'
9379 hardcode_into_libs=yes
9380 dynamic_linker="$host_os dld.sl"
9381 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9382 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9384 soname_spec='${libname}${release}${shared_ext}$major'
9385 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9386 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9389 shrext_cmds='.sl'
9390 dynamic_linker="$host_os dld.sl"
9391 shlibpath_var=SHLIB_PATH
9392 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9394 soname_spec='${libname}${release}${shared_ext}$major'
9396 esac
9397 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9398 postinstall_cmds='chmod 555 $lib'
9401 interix[3-9]*)
9402 version_type=linux
9403 need_lib_prefix=no
9404 need_version=no
9405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9406 soname_spec='${libname}${release}${shared_ext}$major'
9407 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9408 shlibpath_var=LD_LIBRARY_PATH
9409 shlibpath_overrides_runpath=no
9410 hardcode_into_libs=yes
9413 irix5* | irix6* | nonstopux*)
9414 case $host_os in
9415 nonstopux*) version_type=nonstopux ;;
9417 if test "$lt_cv_prog_gnu_ld" = yes; then
9418 version_type=linux
9419 else
9420 version_type=irix
9421 fi ;;
9422 esac
9423 need_lib_prefix=no
9424 need_version=no
9425 soname_spec='${libname}${release}${shared_ext}$major'
9426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9427 case $host_os in
9428 irix5* | nonstopux*)
9429 libsuff= shlibsuff=
9432 case $LD in # libtool.m4 will add one of these switches to LD
9433 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9434 libsuff= shlibsuff= libmagic=32-bit;;
9435 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9436 libsuff=32 shlibsuff=N32 libmagic=N32;;
9437 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9438 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9439 *) libsuff= shlibsuff= libmagic=never-match;;
9440 esac
9442 esac
9443 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9444 shlibpath_overrides_runpath=no
9445 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9446 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9447 hardcode_into_libs=yes
9450 # No shared lib support for Linux oldld, aout, or coff.
9451 linux*oldld* | linux*aout* | linux*coff*)
9452 dynamic_linker=no
9455 # This must be Linux ELF.
9456 linux* | k*bsd*-gnu)
9457 version_type=linux
9458 need_lib_prefix=no
9459 need_version=no
9460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9461 soname_spec='${libname}${release}${shared_ext}$major'
9462 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9463 shlibpath_var=LD_LIBRARY_PATH
9464 shlibpath_overrides_runpath=no
9465 # This implies no fast_install, which is unacceptable.
9466 # Some rework will be needed to allow for fast_install
9467 # before this can be enabled.
9468 hardcode_into_libs=yes
9470 # Append ld.so.conf contents to the search path
9471 if test -f /etc/ld.so.conf; then
9472 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9473 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9476 # We used to test for /lib/ld.so.1 and disable shared libraries on
9477 # powerpc, because MkLinux only supported shared libraries with the
9478 # GNU dynamic linker. Since this was broken with cross compilers,
9479 # most powerpc-linux boxes support dynamic linking these days and
9480 # people can always --disable-shared, the test was removed, and we
9481 # assume the GNU/Linux dynamic linker is in use.
9482 dynamic_linker='GNU/Linux ld.so'
9485 netbsd*)
9486 version_type=sunos
9487 need_lib_prefix=no
9488 need_version=no
9489 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9491 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9492 dynamic_linker='NetBSD (a.out) ld.so'
9493 else
9494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9495 soname_spec='${libname}${release}${shared_ext}$major'
9496 dynamic_linker='NetBSD ld.elf_so'
9498 shlibpath_var=LD_LIBRARY_PATH
9499 shlibpath_overrides_runpath=yes
9500 hardcode_into_libs=yes
9503 newsos6)
9504 version_type=linux
9505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9506 shlibpath_var=LD_LIBRARY_PATH
9507 shlibpath_overrides_runpath=yes
9510 nto-qnx*)
9511 version_type=linux
9512 need_lib_prefix=no
9513 need_version=no
9514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9515 soname_spec='${libname}${release}${shared_ext}$major'
9516 shlibpath_var=LD_LIBRARY_PATH
9517 shlibpath_overrides_runpath=yes
9520 openbsd*)
9521 version_type=sunos
9522 sys_lib_dlsearch_path_spec="/usr/lib"
9523 need_lib_prefix=no
9524 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9525 case $host_os in
9526 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9527 *) need_version=no ;;
9528 esac
9529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9530 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9531 shlibpath_var=LD_LIBRARY_PATH
9532 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9533 case $host_os in
9534 openbsd2.[89] | openbsd2.[89].*)
9535 shlibpath_overrides_runpath=no
9538 shlibpath_overrides_runpath=yes
9540 esac
9541 else
9542 shlibpath_overrides_runpath=yes
9546 os2*)
9547 libname_spec='$name'
9548 shrext_cmds=".dll"
9549 need_lib_prefix=no
9550 library_names_spec='$libname${shared_ext} $libname.a'
9551 dynamic_linker='OS/2 ld.exe'
9552 shlibpath_var=LIBPATH
9555 osf3* | osf4* | osf5*)
9556 version_type=osf
9557 need_lib_prefix=no
9558 need_version=no
9559 soname_spec='${libname}${release}${shared_ext}$major'
9560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9561 shlibpath_var=LD_LIBRARY_PATH
9562 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9563 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9566 rdos*)
9567 dynamic_linker=no
9570 solaris*)
9571 version_type=linux
9572 need_lib_prefix=no
9573 need_version=no
9574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9575 soname_spec='${libname}${release}${shared_ext}$major'
9576 shlibpath_var=LD_LIBRARY_PATH
9577 shlibpath_overrides_runpath=yes
9578 hardcode_into_libs=yes
9579 # ldd complains unless libraries are executable
9580 postinstall_cmds='chmod +x $lib'
9583 sunos4*)
9584 version_type=sunos
9585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9586 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9587 shlibpath_var=LD_LIBRARY_PATH
9588 shlibpath_overrides_runpath=yes
9589 if test "$with_gnu_ld" = yes; then
9590 need_lib_prefix=no
9592 need_version=yes
9595 sysv4 | sysv4.3*)
9596 version_type=linux
9597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9598 soname_spec='${libname}${release}${shared_ext}$major'
9599 shlibpath_var=LD_LIBRARY_PATH
9600 case $host_vendor in
9601 sni)
9602 shlibpath_overrides_runpath=no
9603 need_lib_prefix=no
9604 export_dynamic_flag_spec='${wl}-Blargedynsym'
9605 runpath_var=LD_RUN_PATH
9607 siemens)
9608 need_lib_prefix=no
9610 motorola)
9611 need_lib_prefix=no
9612 need_version=no
9613 shlibpath_overrides_runpath=no
9614 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9616 esac
9619 sysv4*MP*)
9620 if test -d /usr/nec ;then
9621 version_type=linux
9622 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9623 soname_spec='$libname${shared_ext}.$major'
9624 shlibpath_var=LD_LIBRARY_PATH
9628 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9629 version_type=freebsd-elf
9630 need_lib_prefix=no
9631 need_version=no
9632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9633 soname_spec='${libname}${release}${shared_ext}$major'
9634 shlibpath_var=LD_LIBRARY_PATH
9635 hardcode_into_libs=yes
9636 if test "$with_gnu_ld" = yes; then
9637 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9638 shlibpath_overrides_runpath=no
9639 else
9640 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9641 shlibpath_overrides_runpath=yes
9642 case $host_os in
9643 sco3.2v5*)
9644 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9646 esac
9648 sys_lib_dlsearch_path_spec='/usr/lib'
9651 uts4*)
9652 version_type=linux
9653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9654 soname_spec='${libname}${release}${shared_ext}$major'
9655 shlibpath_var=LD_LIBRARY_PATH
9659 dynamic_linker=no
9661 esac
9662 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9663 echo "${ECHO_T}$dynamic_linker" >&6; }
9664 test "$dynamic_linker" = no && can_build_shared=no
9666 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9667 if test "$GCC" = yes; then
9668 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9671 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9672 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9673 hardcode_action=
9674 if test -n "$hardcode_libdir_flag_spec" || \
9675 test -n "$runpath_var" || \
9676 test "X$hardcode_automatic" = "Xyes" ; then
9678 # We can hardcode non-existant directories.
9679 if test "$hardcode_direct" != no &&
9680 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9681 # have to relink, otherwise we might link with an installed library
9682 # when we should be linking with a yet-to-be-installed one
9683 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9684 test "$hardcode_minus_L" != no; then
9685 # Linking always hardcodes the temporary library directory.
9686 hardcode_action=relink
9687 else
9688 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9689 hardcode_action=immediate
9691 else
9692 # We cannot hardcode anything, or else we can only hardcode existing
9693 # directories.
9694 hardcode_action=unsupported
9696 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9697 echo "${ECHO_T}$hardcode_action" >&6; }
9699 if test "$hardcode_action" = relink; then
9700 # Fast installation is not supported
9701 enable_fast_install=no
9702 elif test "$shlibpath_overrides_runpath" = yes ||
9703 test "$enable_shared" = no; then
9704 # Fast installation is not necessary
9705 enable_fast_install=needless
9708 striplib=
9709 old_striplib=
9710 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9711 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9712 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9713 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9714 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9715 { echo "$as_me:$LINENO: result: yes" >&5
9716 echo "${ECHO_T}yes" >&6; }
9717 else
9718 # FIXME - insert some real tests, host_os isn't really good enough
9719 case $host_os in
9720 darwin*)
9721 if test -n "$STRIP" ; then
9722 striplib="$STRIP -x"
9723 old_striplib="$STRIP -S"
9724 { echo "$as_me:$LINENO: result: yes" >&5
9725 echo "${ECHO_T}yes" >&6; }
9726 else
9727 { echo "$as_me:$LINENO: result: no" >&5
9728 echo "${ECHO_T}no" >&6; }
9732 { echo "$as_me:$LINENO: result: no" >&5
9733 echo "${ECHO_T}no" >&6; }
9735 esac
9738 if test "x$enable_dlopen" != xyes; then
9739 enable_dlopen=unknown
9740 enable_dlopen_self=unknown
9741 enable_dlopen_self_static=unknown
9742 else
9743 lt_cv_dlopen=no
9744 lt_cv_dlopen_libs=
9746 case $host_os in
9747 beos*)
9748 lt_cv_dlopen="load_add_on"
9749 lt_cv_dlopen_libs=
9750 lt_cv_dlopen_self=yes
9753 mingw* | pw32*)
9754 lt_cv_dlopen="LoadLibrary"
9755 lt_cv_dlopen_libs=
9758 cygwin*)
9759 lt_cv_dlopen="dlopen"
9760 lt_cv_dlopen_libs=
9763 darwin*)
9764 # if libdl is installed we need to link against it
9765 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9766 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9767 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9768 echo $ECHO_N "(cached) $ECHO_C" >&6
9769 else
9770 ac_check_lib_save_LIBS=$LIBS
9771 LIBS="-ldl $LIBS"
9772 cat >conftest.$ac_ext <<_ACEOF
9773 /* confdefs.h. */
9774 _ACEOF
9775 cat confdefs.h >>conftest.$ac_ext
9776 cat >>conftest.$ac_ext <<_ACEOF
9777 /* end confdefs.h. */
9779 /* Override any GCC internal prototype to avoid an error.
9780 Use char because int might match the return type of a GCC
9781 builtin and then its argument prototype would still apply. */
9782 #ifdef __cplusplus
9783 extern "C"
9784 #endif
9785 char dlopen ();
9787 main ()
9789 return dlopen ();
9791 return 0;
9793 _ACEOF
9794 rm -f conftest.$ac_objext conftest$ac_exeext
9795 if { (ac_try="$ac_link"
9796 case "(($ac_try" in
9797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9798 *) ac_try_echo=$ac_try;;
9799 esac
9800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9801 (eval "$ac_link") 2>conftest.er1
9802 ac_status=$?
9803 grep -v '^ *+' conftest.er1 >conftest.err
9804 rm -f conftest.er1
9805 cat conftest.err >&5
9806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807 (exit $ac_status); } && {
9808 test -z "$ac_c_werror_flag" ||
9809 test ! -s conftest.err
9810 } && test -s conftest$ac_exeext &&
9811 $as_test_x conftest$ac_exeext; then
9812 ac_cv_lib_dl_dlopen=yes
9813 else
9814 echo "$as_me: failed program was:" >&5
9815 sed 's/^/| /' conftest.$ac_ext >&5
9817 ac_cv_lib_dl_dlopen=no
9820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9821 conftest$ac_exeext conftest.$ac_ext
9822 LIBS=$ac_check_lib_save_LIBS
9824 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9825 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9826 if test $ac_cv_lib_dl_dlopen = yes; then
9827 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9828 else
9830 lt_cv_dlopen="dyld"
9831 lt_cv_dlopen_libs=
9832 lt_cv_dlopen_self=yes
9839 { echo "$as_me:$LINENO: checking for shl_load" >&5
9840 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9841 if test "${ac_cv_func_shl_load+set}" = set; then
9842 echo $ECHO_N "(cached) $ECHO_C" >&6
9843 else
9844 cat >conftest.$ac_ext <<_ACEOF
9845 /* confdefs.h. */
9846 _ACEOF
9847 cat confdefs.h >>conftest.$ac_ext
9848 cat >>conftest.$ac_ext <<_ACEOF
9849 /* end confdefs.h. */
9850 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9851 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9852 #define shl_load innocuous_shl_load
9854 /* System header to define __stub macros and hopefully few prototypes,
9855 which can conflict with char shl_load (); below.
9856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9857 <limits.h> exists even on freestanding compilers. */
9859 #ifdef __STDC__
9860 # include <limits.h>
9861 #else
9862 # include <assert.h>
9863 #endif
9865 #undef shl_load
9867 /* Override any GCC internal prototype to avoid an error.
9868 Use char because int might match the return type of a GCC
9869 builtin and then its argument prototype would still apply. */
9870 #ifdef __cplusplus
9871 extern "C"
9872 #endif
9873 char shl_load ();
9874 /* The GNU C library defines this for functions which it implements
9875 to always fail with ENOSYS. Some functions are actually named
9876 something starting with __ and the normal name is an alias. */
9877 #if defined __stub_shl_load || defined __stub___shl_load
9878 choke me
9879 #endif
9882 main ()
9884 return shl_load ();
9886 return 0;
9888 _ACEOF
9889 rm -f conftest.$ac_objext conftest$ac_exeext
9890 if { (ac_try="$ac_link"
9891 case "(($ac_try" in
9892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9893 *) ac_try_echo=$ac_try;;
9894 esac
9895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9896 (eval "$ac_link") 2>conftest.er1
9897 ac_status=$?
9898 grep -v '^ *+' conftest.er1 >conftest.err
9899 rm -f conftest.er1
9900 cat conftest.err >&5
9901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902 (exit $ac_status); } && {
9903 test -z "$ac_c_werror_flag" ||
9904 test ! -s conftest.err
9905 } && test -s conftest$ac_exeext &&
9906 $as_test_x conftest$ac_exeext; then
9907 ac_cv_func_shl_load=yes
9908 else
9909 echo "$as_me: failed program was:" >&5
9910 sed 's/^/| /' conftest.$ac_ext >&5
9912 ac_cv_func_shl_load=no
9915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9916 conftest$ac_exeext conftest.$ac_ext
9918 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9919 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9920 if test $ac_cv_func_shl_load = yes; then
9921 lt_cv_dlopen="shl_load"
9922 else
9923 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9924 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9925 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9926 echo $ECHO_N "(cached) $ECHO_C" >&6
9927 else
9928 ac_check_lib_save_LIBS=$LIBS
9929 LIBS="-ldld $LIBS"
9930 cat >conftest.$ac_ext <<_ACEOF
9931 /* confdefs.h. */
9932 _ACEOF
9933 cat confdefs.h >>conftest.$ac_ext
9934 cat >>conftest.$ac_ext <<_ACEOF
9935 /* end confdefs.h. */
9937 /* Override any GCC internal prototype to avoid an error.
9938 Use char because int might match the return type of a GCC
9939 builtin and then its argument prototype would still apply. */
9940 #ifdef __cplusplus
9941 extern "C"
9942 #endif
9943 char shl_load ();
9945 main ()
9947 return shl_load ();
9949 return 0;
9951 _ACEOF
9952 rm -f conftest.$ac_objext conftest$ac_exeext
9953 if { (ac_try="$ac_link"
9954 case "(($ac_try" in
9955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9956 *) ac_try_echo=$ac_try;;
9957 esac
9958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9959 (eval "$ac_link") 2>conftest.er1
9960 ac_status=$?
9961 grep -v '^ *+' conftest.er1 >conftest.err
9962 rm -f conftest.er1
9963 cat conftest.err >&5
9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965 (exit $ac_status); } && {
9966 test -z "$ac_c_werror_flag" ||
9967 test ! -s conftest.err
9968 } && test -s conftest$ac_exeext &&
9969 $as_test_x conftest$ac_exeext; then
9970 ac_cv_lib_dld_shl_load=yes
9971 else
9972 echo "$as_me: failed program was:" >&5
9973 sed 's/^/| /' conftest.$ac_ext >&5
9975 ac_cv_lib_dld_shl_load=no
9978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9979 conftest$ac_exeext conftest.$ac_ext
9980 LIBS=$ac_check_lib_save_LIBS
9982 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9983 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9984 if test $ac_cv_lib_dld_shl_load = yes; then
9985 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9986 else
9987 { echo "$as_me:$LINENO: checking for dlopen" >&5
9988 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9989 if test "${ac_cv_func_dlopen+set}" = set; then
9990 echo $ECHO_N "(cached) $ECHO_C" >&6
9991 else
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 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10000 #define dlopen innocuous_dlopen
10002 /* System header to define __stub macros and hopefully few prototypes,
10003 which can conflict with char dlopen (); below.
10004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10005 <limits.h> exists even on freestanding compilers. */
10007 #ifdef __STDC__
10008 # include <limits.h>
10009 #else
10010 # include <assert.h>
10011 #endif
10013 #undef dlopen
10015 /* Override any GCC internal prototype to avoid an error.
10016 Use char because int might match the return type of a GCC
10017 builtin and then its argument prototype would still apply. */
10018 #ifdef __cplusplus
10019 extern "C"
10020 #endif
10021 char dlopen ();
10022 /* The GNU C library defines this for functions which it implements
10023 to always fail with ENOSYS. Some functions are actually named
10024 something starting with __ and the normal name is an alias. */
10025 #if defined __stub_dlopen || defined __stub___dlopen
10026 choke me
10027 #endif
10030 main ()
10032 return dlopen ();
10034 return 0;
10036 _ACEOF
10037 rm -f conftest.$ac_objext conftest$ac_exeext
10038 if { (ac_try="$ac_link"
10039 case "(($ac_try" in
10040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10041 *) ac_try_echo=$ac_try;;
10042 esac
10043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10044 (eval "$ac_link") 2>conftest.er1
10045 ac_status=$?
10046 grep -v '^ *+' conftest.er1 >conftest.err
10047 rm -f conftest.er1
10048 cat conftest.err >&5
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); } && {
10051 test -z "$ac_c_werror_flag" ||
10052 test ! -s conftest.err
10053 } && test -s conftest$ac_exeext &&
10054 $as_test_x conftest$ac_exeext; then
10055 ac_cv_func_dlopen=yes
10056 else
10057 echo "$as_me: failed program was:" >&5
10058 sed 's/^/| /' conftest.$ac_ext >&5
10060 ac_cv_func_dlopen=no
10063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10064 conftest$ac_exeext conftest.$ac_ext
10066 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10067 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10068 if test $ac_cv_func_dlopen = yes; then
10069 lt_cv_dlopen="dlopen"
10070 else
10071 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10072 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10073 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10074 echo $ECHO_N "(cached) $ECHO_C" >&6
10075 else
10076 ac_check_lib_save_LIBS=$LIBS
10077 LIBS="-ldl $LIBS"
10078 cat >conftest.$ac_ext <<_ACEOF
10079 /* confdefs.h. */
10080 _ACEOF
10081 cat confdefs.h >>conftest.$ac_ext
10082 cat >>conftest.$ac_ext <<_ACEOF
10083 /* end confdefs.h. */
10085 /* Override any GCC internal prototype to avoid an error.
10086 Use char because int might match the return type of a GCC
10087 builtin and then its argument prototype would still apply. */
10088 #ifdef __cplusplus
10089 extern "C"
10090 #endif
10091 char dlopen ();
10093 main ()
10095 return dlopen ();
10097 return 0;
10099 _ACEOF
10100 rm -f conftest.$ac_objext conftest$ac_exeext
10101 if { (ac_try="$ac_link"
10102 case "(($ac_try" in
10103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10104 *) ac_try_echo=$ac_try;;
10105 esac
10106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10107 (eval "$ac_link") 2>conftest.er1
10108 ac_status=$?
10109 grep -v '^ *+' conftest.er1 >conftest.err
10110 rm -f conftest.er1
10111 cat conftest.err >&5
10112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113 (exit $ac_status); } && {
10114 test -z "$ac_c_werror_flag" ||
10115 test ! -s conftest.err
10116 } && test -s conftest$ac_exeext &&
10117 $as_test_x conftest$ac_exeext; then
10118 ac_cv_lib_dl_dlopen=yes
10119 else
10120 echo "$as_me: failed program was:" >&5
10121 sed 's/^/| /' conftest.$ac_ext >&5
10123 ac_cv_lib_dl_dlopen=no
10126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10127 conftest$ac_exeext conftest.$ac_ext
10128 LIBS=$ac_check_lib_save_LIBS
10130 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10131 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10132 if test $ac_cv_lib_dl_dlopen = yes; then
10133 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10134 else
10135 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10136 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10137 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10138 echo $ECHO_N "(cached) $ECHO_C" >&6
10139 else
10140 ac_check_lib_save_LIBS=$LIBS
10141 LIBS="-lsvld $LIBS"
10142 cat >conftest.$ac_ext <<_ACEOF
10143 /* confdefs.h. */
10144 _ACEOF
10145 cat confdefs.h >>conftest.$ac_ext
10146 cat >>conftest.$ac_ext <<_ACEOF
10147 /* end confdefs.h. */
10149 /* Override any GCC internal prototype to avoid an error.
10150 Use char because int might match the return type of a GCC
10151 builtin and then its argument prototype would still apply. */
10152 #ifdef __cplusplus
10153 extern "C"
10154 #endif
10155 char dlopen ();
10157 main ()
10159 return dlopen ();
10161 return 0;
10163 _ACEOF
10164 rm -f conftest.$ac_objext conftest$ac_exeext
10165 if { (ac_try="$ac_link"
10166 case "(($ac_try" in
10167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10168 *) ac_try_echo=$ac_try;;
10169 esac
10170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10171 (eval "$ac_link") 2>conftest.er1
10172 ac_status=$?
10173 grep -v '^ *+' conftest.er1 >conftest.err
10174 rm -f conftest.er1
10175 cat conftest.err >&5
10176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177 (exit $ac_status); } && {
10178 test -z "$ac_c_werror_flag" ||
10179 test ! -s conftest.err
10180 } && test -s conftest$ac_exeext &&
10181 $as_test_x conftest$ac_exeext; then
10182 ac_cv_lib_svld_dlopen=yes
10183 else
10184 echo "$as_me: failed program was:" >&5
10185 sed 's/^/| /' conftest.$ac_ext >&5
10187 ac_cv_lib_svld_dlopen=no
10190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10191 conftest$ac_exeext conftest.$ac_ext
10192 LIBS=$ac_check_lib_save_LIBS
10194 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10195 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10196 if test $ac_cv_lib_svld_dlopen = yes; then
10197 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10198 else
10199 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10200 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10201 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10202 echo $ECHO_N "(cached) $ECHO_C" >&6
10203 else
10204 ac_check_lib_save_LIBS=$LIBS
10205 LIBS="-ldld $LIBS"
10206 cat >conftest.$ac_ext <<_ACEOF
10207 /* confdefs.h. */
10208 _ACEOF
10209 cat confdefs.h >>conftest.$ac_ext
10210 cat >>conftest.$ac_ext <<_ACEOF
10211 /* end confdefs.h. */
10213 /* Override any GCC internal prototype to avoid an error.
10214 Use char because int might match the return type of a GCC
10215 builtin and then its argument prototype would still apply. */
10216 #ifdef __cplusplus
10217 extern "C"
10218 #endif
10219 char dld_link ();
10221 main ()
10223 return dld_link ();
10225 return 0;
10227 _ACEOF
10228 rm -f conftest.$ac_objext conftest$ac_exeext
10229 if { (ac_try="$ac_link"
10230 case "(($ac_try" in
10231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10232 *) ac_try_echo=$ac_try;;
10233 esac
10234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10235 (eval "$ac_link") 2>conftest.er1
10236 ac_status=$?
10237 grep -v '^ *+' conftest.er1 >conftest.err
10238 rm -f conftest.er1
10239 cat conftest.err >&5
10240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241 (exit $ac_status); } && {
10242 test -z "$ac_c_werror_flag" ||
10243 test ! -s conftest.err
10244 } && test -s conftest$ac_exeext &&
10245 $as_test_x conftest$ac_exeext; then
10246 ac_cv_lib_dld_dld_link=yes
10247 else
10248 echo "$as_me: failed program was:" >&5
10249 sed 's/^/| /' conftest.$ac_ext >&5
10251 ac_cv_lib_dld_dld_link=no
10254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10255 conftest$ac_exeext conftest.$ac_ext
10256 LIBS=$ac_check_lib_save_LIBS
10258 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10259 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10260 if test $ac_cv_lib_dld_dld_link = yes; then
10261 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10280 esac
10282 if test "x$lt_cv_dlopen" != xno; then
10283 enable_dlopen=yes
10284 else
10285 enable_dlopen=no
10288 case $lt_cv_dlopen in
10289 dlopen)
10290 save_CPPFLAGS="$CPPFLAGS"
10291 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10293 save_LDFLAGS="$LDFLAGS"
10294 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10296 save_LIBS="$LIBS"
10297 LIBS="$lt_cv_dlopen_libs $LIBS"
10299 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10300 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10301 if test "${lt_cv_dlopen_self+set}" = set; then
10302 echo $ECHO_N "(cached) $ECHO_C" >&6
10303 else
10304 if test "$cross_compiling" = yes; then :
10305 lt_cv_dlopen_self=cross
10306 else
10307 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10308 lt_status=$lt_dlunknown
10309 cat > conftest.$ac_ext <<EOF
10310 #line 10310 "configure"
10311 #include "confdefs.h"
10313 #if HAVE_DLFCN_H
10314 #include <dlfcn.h>
10315 #endif
10317 #include <stdio.h>
10319 #ifdef RTLD_GLOBAL
10320 # define LT_DLGLOBAL RTLD_GLOBAL
10321 #else
10322 # ifdef DL_GLOBAL
10323 # define LT_DLGLOBAL DL_GLOBAL
10324 # else
10325 # define LT_DLGLOBAL 0
10326 # endif
10327 #endif
10329 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10330 find out it does not work in some platform. */
10331 #ifndef LT_DLLAZY_OR_NOW
10332 # ifdef RTLD_LAZY
10333 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10334 # else
10335 # ifdef DL_LAZY
10336 # define LT_DLLAZY_OR_NOW DL_LAZY
10337 # else
10338 # ifdef RTLD_NOW
10339 # define LT_DLLAZY_OR_NOW RTLD_NOW
10340 # else
10341 # ifdef DL_NOW
10342 # define LT_DLLAZY_OR_NOW DL_NOW
10343 # else
10344 # define LT_DLLAZY_OR_NOW 0
10345 # endif
10346 # endif
10347 # endif
10348 # endif
10349 #endif
10351 #ifdef __cplusplus
10352 extern "C" void exit (int);
10353 #endif
10355 void fnord() { int i=42;}
10356 int main ()
10358 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10359 int status = $lt_dlunknown;
10361 if (self)
10363 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10364 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10365 /* dlclose (self); */
10367 else
10368 puts (dlerror ());
10370 exit (status);
10373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10374 (eval $ac_link) 2>&5
10375 ac_status=$?
10376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10378 (./conftest; exit; ) >&5 2>/dev/null
10379 lt_status=$?
10380 case x$lt_status in
10381 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10382 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10383 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10384 esac
10385 else :
10386 # compilation failed
10387 lt_cv_dlopen_self=no
10390 rm -fr conftest*
10394 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10395 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10397 if test "x$lt_cv_dlopen_self" = xyes; then
10398 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10399 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10400 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10401 if test "${lt_cv_dlopen_self_static+set}" = set; then
10402 echo $ECHO_N "(cached) $ECHO_C" >&6
10403 else
10404 if test "$cross_compiling" = yes; then :
10405 lt_cv_dlopen_self_static=cross
10406 else
10407 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10408 lt_status=$lt_dlunknown
10409 cat > conftest.$ac_ext <<EOF
10410 #line 10410 "configure"
10411 #include "confdefs.h"
10413 #if HAVE_DLFCN_H
10414 #include <dlfcn.h>
10415 #endif
10417 #include <stdio.h>
10419 #ifdef RTLD_GLOBAL
10420 # define LT_DLGLOBAL RTLD_GLOBAL
10421 #else
10422 # ifdef DL_GLOBAL
10423 # define LT_DLGLOBAL DL_GLOBAL
10424 # else
10425 # define LT_DLGLOBAL 0
10426 # endif
10427 #endif
10429 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10430 find out it does not work in some platform. */
10431 #ifndef LT_DLLAZY_OR_NOW
10432 # ifdef RTLD_LAZY
10433 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10434 # else
10435 # ifdef DL_LAZY
10436 # define LT_DLLAZY_OR_NOW DL_LAZY
10437 # else
10438 # ifdef RTLD_NOW
10439 # define LT_DLLAZY_OR_NOW RTLD_NOW
10440 # else
10441 # ifdef DL_NOW
10442 # define LT_DLLAZY_OR_NOW DL_NOW
10443 # else
10444 # define LT_DLLAZY_OR_NOW 0
10445 # endif
10446 # endif
10447 # endif
10448 # endif
10449 #endif
10451 #ifdef __cplusplus
10452 extern "C" void exit (int);
10453 #endif
10455 void fnord() { int i=42;}
10456 int main ()
10458 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10459 int status = $lt_dlunknown;
10461 if (self)
10463 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10464 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10465 /* dlclose (self); */
10467 else
10468 puts (dlerror ());
10470 exit (status);
10473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10474 (eval $ac_link) 2>&5
10475 ac_status=$?
10476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10478 (./conftest; exit; ) >&5 2>/dev/null
10479 lt_status=$?
10480 case x$lt_status in
10481 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10482 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10483 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10484 esac
10485 else :
10486 # compilation failed
10487 lt_cv_dlopen_self_static=no
10490 rm -fr conftest*
10494 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10495 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10498 CPPFLAGS="$save_CPPFLAGS"
10499 LDFLAGS="$save_LDFLAGS"
10500 LIBS="$save_LIBS"
10502 esac
10504 case $lt_cv_dlopen_self in
10505 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10506 *) enable_dlopen_self=unknown ;;
10507 esac
10509 case $lt_cv_dlopen_self_static in
10510 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10511 *) enable_dlopen_self_static=unknown ;;
10512 esac
10516 # Report which library types will actually be built
10517 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10518 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10519 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10520 echo "${ECHO_T}$can_build_shared" >&6; }
10522 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10523 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10524 test "$can_build_shared" = "no" && enable_shared=no
10526 # On AIX, shared libraries and static libraries use the same namespace, and
10527 # are all built from PIC.
10528 case $host_os in
10529 aix3*)
10530 test "$enable_shared" = yes && enable_static=no
10531 if test -n "$RANLIB"; then
10532 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10533 postinstall_cmds='$RANLIB $lib'
10537 aix4* | aix5*)
10538 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10539 test "$enable_shared" = yes && enable_static=no
10542 esac
10543 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10544 echo "${ECHO_T}$enable_shared" >&6; }
10546 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10547 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10548 # Make sure either enable_shared or enable_static is yes.
10549 test "$enable_shared" = yes || enable_static=yes
10550 { echo "$as_me:$LINENO: result: $enable_static" >&5
10551 echo "${ECHO_T}$enable_static" >&6; }
10553 # The else clause should only fire when bootstrapping the
10554 # libtool distribution, otherwise you forgot to ship ltmain.sh
10555 # with your package, and you will get complaints that there are
10556 # no rules to generate ltmain.sh.
10557 if test -f "$ltmain"; then
10558 # See if we are running on zsh, and set the options which allow our commands through
10559 # without removal of \ escapes.
10560 if test -n "${ZSH_VERSION+set}" ; then
10561 setopt NO_GLOB_SUBST
10563 # Now quote all the things that may contain metacharacters while being
10564 # careful not to overquote the AC_SUBSTed values. We take copies of the
10565 # variables and quote the copies for generation of the libtool script.
10566 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10567 SED SHELL STRIP \
10568 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10569 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10570 deplibs_check_method reload_flag reload_cmds need_locks \
10571 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10572 lt_cv_sys_global_symbol_to_c_name_address \
10573 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10574 old_postinstall_cmds old_postuninstall_cmds \
10575 compiler \
10576 CC \
10577 LD \
10578 lt_prog_compiler_wl \
10579 lt_prog_compiler_pic \
10580 lt_prog_compiler_static \
10581 lt_prog_compiler_no_builtin_flag \
10582 export_dynamic_flag_spec \
10583 thread_safe_flag_spec \
10584 whole_archive_flag_spec \
10585 enable_shared_with_static_runtimes \
10586 old_archive_cmds \
10587 old_archive_from_new_cmds \
10588 predep_objects \
10589 postdep_objects \
10590 predeps \
10591 postdeps \
10592 compiler_lib_search_path \
10593 archive_cmds \
10594 archive_expsym_cmds \
10595 postinstall_cmds \
10596 postuninstall_cmds \
10597 old_archive_from_expsyms_cmds \
10598 allow_undefined_flag \
10599 no_undefined_flag \
10600 export_symbols_cmds \
10601 hardcode_libdir_flag_spec \
10602 hardcode_libdir_flag_spec_ld \
10603 hardcode_libdir_separator \
10604 hardcode_automatic \
10605 module_cmds \
10606 module_expsym_cmds \
10607 lt_cv_prog_compiler_c_o \
10608 fix_srcfile_path \
10609 exclude_expsyms \
10610 include_expsyms; do
10612 case $var in
10613 old_archive_cmds | \
10614 old_archive_from_new_cmds | \
10615 archive_cmds | \
10616 archive_expsym_cmds | \
10617 module_cmds | \
10618 module_expsym_cmds | \
10619 old_archive_from_expsyms_cmds | \
10620 export_symbols_cmds | \
10621 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10622 postinstall_cmds | postuninstall_cmds | \
10623 old_postinstall_cmds | old_postuninstall_cmds | \
10624 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10625 # Double-quote double-evaled strings.
10626 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10629 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10631 esac
10632 done
10634 case $lt_echo in
10635 *'\$0 --fallback-echo"')
10636 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10638 esac
10640 cfgfile="${ofile}T"
10641 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10642 $rm -f "$cfgfile"
10643 { echo "$as_me:$LINENO: creating $ofile" >&5
10644 echo "$as_me: creating $ofile" >&6;}
10646 cat <<__EOF__ >> "$cfgfile"
10647 #! $SHELL
10649 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10650 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10651 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10653 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10654 # Free Software Foundation, Inc.
10656 # This file is part of GNU Libtool:
10657 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10659 # This program is free software; you can redistribute it and/or modify
10660 # it under the terms of the GNU General Public License as published by
10661 # the Free Software Foundation; either version 2 of the License, or
10662 # (at your option) any later version.
10664 # This program is distributed in the hope that it will be useful, but
10665 # WITHOUT ANY WARRANTY; without even the implied warranty of
10666 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10667 # General Public License for more details.
10669 # You should have received a copy of the GNU General Public License
10670 # along with this program; if not, write to the Free Software
10671 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10673 # As a special exception to the GNU General Public License, if you
10674 # distribute this file as part of a program that contains a
10675 # configuration script generated by Autoconf, you may include it under
10676 # the same distribution terms that you use for the rest of that program.
10678 # A sed program that does not truncate output.
10679 SED=$lt_SED
10681 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10682 Xsed="$SED -e 1s/^X//"
10684 # The HP-UX ksh and POSIX shell print the target directory to stdout
10685 # if CDPATH is set.
10686 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10688 # The names of the tagged configurations supported by this script.
10689 available_tags=
10691 # ### BEGIN LIBTOOL CONFIG
10693 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10695 # Shell to use when invoking shell scripts.
10696 SHELL=$lt_SHELL
10698 # Whether or not to build shared libraries.
10699 build_libtool_libs=$enable_shared
10701 # Whether or not to build static libraries.
10702 build_old_libs=$enable_static
10704 # Whether or not to add -lc for building shared libraries.
10705 build_libtool_need_lc=$archive_cmds_need_lc
10707 # Whether or not to disallow shared libs when runtime libs are static
10708 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10710 # Whether or not to optimize for fast installation.
10711 fast_install=$enable_fast_install
10713 # The host system.
10714 host_alias=$host_alias
10715 host=$host
10716 host_os=$host_os
10718 # The build system.
10719 build_alias=$build_alias
10720 build=$build
10721 build_os=$build_os
10723 # An echo program that does not interpret backslashes.
10724 echo=$lt_echo
10726 # The archiver.
10727 AR=$lt_AR
10728 AR_FLAGS=$lt_AR_FLAGS
10730 # A C compiler.
10731 LTCC=$lt_LTCC
10733 # LTCC compiler flags.
10734 LTCFLAGS=$lt_LTCFLAGS
10736 # A language-specific compiler.
10737 CC=$lt_compiler
10739 # Is the compiler the GNU C compiler?
10740 with_gcc=$GCC
10742 # An ERE matcher.
10743 EGREP=$lt_EGREP
10745 # The linker used to build libraries.
10746 LD=$lt_LD
10748 # Whether we need hard or soft links.
10749 LN_S=$lt_LN_S
10751 # A BSD-compatible nm program.
10752 NM=$lt_NM
10754 # A symbol stripping program
10755 STRIP=$lt_STRIP
10757 # Used to examine libraries when file_magic_cmd begins "file"
10758 MAGIC_CMD=$MAGIC_CMD
10760 # Used on cygwin: DLL creation program.
10761 DLLTOOL="$DLLTOOL"
10763 # Used on cygwin: object dumper.
10764 OBJDUMP="$OBJDUMP"
10766 # Used on cygwin: assembler.
10767 AS="$AS"
10769 # The name of the directory that contains temporary libtool files.
10770 objdir=$objdir
10772 # How to create reloadable object files.
10773 reload_flag=$lt_reload_flag
10774 reload_cmds=$lt_reload_cmds
10776 # How to pass a linker flag through the compiler.
10777 wl=$lt_lt_prog_compiler_wl
10779 # Object file suffix (normally "o").
10780 objext="$ac_objext"
10782 # Old archive suffix (normally "a").
10783 libext="$libext"
10785 # Shared library suffix (normally ".so").
10786 shrext_cmds='$shrext_cmds'
10788 # Executable file suffix (normally "").
10789 exeext="$exeext"
10791 # Additional compiler flags for building library objects.
10792 pic_flag=$lt_lt_prog_compiler_pic
10793 pic_mode=$pic_mode
10795 # What is the maximum length of a command?
10796 max_cmd_len=$lt_cv_sys_max_cmd_len
10798 # Does compiler simultaneously support -c and -o options?
10799 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10801 # Must we lock files when doing compilation?
10802 need_locks=$lt_need_locks
10804 # Do we need the lib prefix for modules?
10805 need_lib_prefix=$need_lib_prefix
10807 # Do we need a version for libraries?
10808 need_version=$need_version
10810 # Whether dlopen is supported.
10811 dlopen_support=$enable_dlopen
10813 # Whether dlopen of programs is supported.
10814 dlopen_self=$enable_dlopen_self
10816 # Whether dlopen of statically linked programs is supported.
10817 dlopen_self_static=$enable_dlopen_self_static
10819 # Compiler flag to prevent dynamic linking.
10820 link_static_flag=$lt_lt_prog_compiler_static
10822 # Compiler flag to turn off builtin functions.
10823 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10825 # Compiler flag to allow reflexive dlopens.
10826 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10828 # Compiler flag to generate shared objects directly from archives.
10829 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10831 # Compiler flag to generate thread-safe objects.
10832 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10834 # Library versioning type.
10835 version_type=$version_type
10837 # Format of library name prefix.
10838 libname_spec=$lt_libname_spec
10840 # List of archive names. First name is the real one, the rest are links.
10841 # The last name is the one that the linker finds with -lNAME.
10842 library_names_spec=$lt_library_names_spec
10844 # The coded name of the library, if different from the real name.
10845 soname_spec=$lt_soname_spec
10847 # Commands used to build and install an old-style archive.
10848 RANLIB=$lt_RANLIB
10849 old_archive_cmds=$lt_old_archive_cmds
10850 old_postinstall_cmds=$lt_old_postinstall_cmds
10851 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10853 # Create an old-style archive from a shared archive.
10854 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10856 # Create a temporary old-style archive to link instead of a shared archive.
10857 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10859 # Commands used to build and install a shared archive.
10860 archive_cmds=$lt_archive_cmds
10861 archive_expsym_cmds=$lt_archive_expsym_cmds
10862 postinstall_cmds=$lt_postinstall_cmds
10863 postuninstall_cmds=$lt_postuninstall_cmds
10865 # Commands used to build a loadable module (assumed same as above if empty)
10866 module_cmds=$lt_module_cmds
10867 module_expsym_cmds=$lt_module_expsym_cmds
10869 # Commands to strip libraries.
10870 old_striplib=$lt_old_striplib
10871 striplib=$lt_striplib
10873 # Dependencies to place before the objects being linked to create a
10874 # shared library.
10875 predep_objects=$lt_predep_objects
10877 # Dependencies to place after the objects being linked to create a
10878 # shared library.
10879 postdep_objects=$lt_postdep_objects
10881 # Dependencies to place before the objects being linked to create a
10882 # shared library.
10883 predeps=$lt_predeps
10885 # Dependencies to place after the objects being linked to create a
10886 # shared library.
10887 postdeps=$lt_postdeps
10889 # The library search path used internally by the compiler when linking
10890 # a shared library.
10891 compiler_lib_search_path=$lt_compiler_lib_search_path
10893 # Method to check whether dependent libraries are shared objects.
10894 deplibs_check_method=$lt_deplibs_check_method
10896 # Command to use when deplibs_check_method == file_magic.
10897 file_magic_cmd=$lt_file_magic_cmd
10899 # Flag that allows shared libraries with undefined symbols to be built.
10900 allow_undefined_flag=$lt_allow_undefined_flag
10902 # Flag that forces no undefined symbols.
10903 no_undefined_flag=$lt_no_undefined_flag
10905 # Commands used to finish a libtool library installation in a directory.
10906 finish_cmds=$lt_finish_cmds
10908 # Same as above, but a single script fragment to be evaled but not shown.
10909 finish_eval=$lt_finish_eval
10911 # Take the output of nm and produce a listing of raw symbols and C names.
10912 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10914 # Transform the output of nm in a proper C declaration
10915 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10917 # Transform the output of nm in a C name address pair
10918 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10920 # This is the shared library runtime path variable.
10921 runpath_var=$runpath_var
10923 # This is the shared library path variable.
10924 shlibpath_var=$shlibpath_var
10926 # Is shlibpath searched before the hard-coded library search path?
10927 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10929 # How to hardcode a shared library path into an executable.
10930 hardcode_action=$hardcode_action
10932 # Whether we should hardcode library paths into libraries.
10933 hardcode_into_libs=$hardcode_into_libs
10935 # Flag to hardcode \$libdir into a binary during linking.
10936 # This must work even if \$libdir does not exist.
10937 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10939 # If ld is used when linking, flag to hardcode \$libdir into
10940 # a binary during linking. This must work even if \$libdir does
10941 # not exist.
10942 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10944 # Whether we need a single -rpath flag with a separated argument.
10945 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10947 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10948 # resulting binary.
10949 hardcode_direct=$hardcode_direct
10951 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10952 # resulting binary.
10953 hardcode_minus_L=$hardcode_minus_L
10955 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10956 # the resulting binary.
10957 hardcode_shlibpath_var=$hardcode_shlibpath_var
10959 # Set to yes if building a shared library automatically hardcodes DIR into the library
10960 # and all subsequent libraries and executables linked against it.
10961 hardcode_automatic=$hardcode_automatic
10963 # Variables whose values should be saved in libtool wrapper scripts and
10964 # restored at relink time.
10965 variables_saved_for_relink="$variables_saved_for_relink"
10967 # Whether libtool must link a program against all its dependency libraries.
10968 link_all_deplibs=$link_all_deplibs
10970 # Compile-time system search path for libraries
10971 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10973 # Run-time system search path for libraries
10974 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10976 # Fix the shell variable \$srcfile for the compiler.
10977 fix_srcfile_path=$lt_fix_srcfile_path
10979 # Set to yes if exported symbols are required.
10980 always_export_symbols=$always_export_symbols
10982 # The commands to list exported symbols.
10983 export_symbols_cmds=$lt_export_symbols_cmds
10985 # The commands to extract the exported symbol list from a shared archive.
10986 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10988 # Symbols that should not be listed in the preloaded symbols.
10989 exclude_expsyms=$lt_exclude_expsyms
10991 # Symbols that must always be exported.
10992 include_expsyms=$lt_include_expsyms
10994 # ### END LIBTOOL CONFIG
10996 __EOF__
10999 case $host_os in
11000 aix3*)
11001 cat <<\EOF >> "$cfgfile"
11003 # AIX sometimes has problems with the GCC collect2 program. For some
11004 # reason, if we set the COLLECT_NAMES environment variable, the problems
11005 # vanish in a puff of smoke.
11006 if test "X${COLLECT_NAMES+set}" != Xset; then
11007 COLLECT_NAMES=
11008 export COLLECT_NAMES
11012 esac
11014 # We use sed instead of cat because bash on DJGPP gets confused if
11015 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11016 # text mode, it properly converts lines to CR/LF. This bash problem
11017 # is reportedly fixed, but why not run on old versions too?
11018 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11020 mv -f "$cfgfile" "$ofile" || \
11021 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11022 chmod +x "$ofile"
11024 else
11025 # If there is no Makefile yet, we rely on a make rule to execute
11026 # `config.status --recheck' to rerun these tests and create the
11027 # libtool script then.
11028 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11029 if test -f "$ltmain_in"; then
11030 test -f Makefile && make "$ltmain"
11035 ac_ext=c
11036 ac_cpp='$CPP $CPPFLAGS'
11037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11041 CC="$lt_save_CC"
11044 # Check whether --with-tags was given.
11045 if test "${with_tags+set}" = set; then
11046 withval=$with_tags; tagnames="$withval"
11050 if test -f "$ltmain" && test -n "$tagnames"; then
11051 if test ! -f "${ofile}"; then
11052 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11053 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11056 if test -z "$LTCC"; then
11057 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11058 if test -z "$LTCC"; then
11059 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11060 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11061 else
11062 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11063 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11066 if test -z "$LTCFLAGS"; then
11067 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11070 # Extract list of available tagged configurations in $ofile.
11071 # Note that this assumes the entire list is on one line.
11072 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11074 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11075 for tagname in $tagnames; do
11076 IFS="$lt_save_ifs"
11077 # Check whether tagname contains only valid characters
11078 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11079 "") ;;
11080 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11081 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11082 { (exit 1); exit 1; }; }
11084 esac
11086 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11087 then
11088 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11089 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11090 { (exit 1); exit 1; }; }
11093 # Update the list of available tags.
11094 if test -n "$tagname"; then
11095 echo appending configuration tag \"$tagname\" to $ofile
11097 case $tagname in
11098 CXX)
11099 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11100 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11101 (test "X$CXX" != "Xg++"))) ; then
11102 ac_ext=cpp
11103 ac_cpp='$CXXCPP $CPPFLAGS'
11104 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11105 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11106 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11111 archive_cmds_need_lc_CXX=no
11112 allow_undefined_flag_CXX=
11113 always_export_symbols_CXX=no
11114 archive_expsym_cmds_CXX=
11115 export_dynamic_flag_spec_CXX=
11116 hardcode_direct_CXX=no
11117 hardcode_libdir_flag_spec_CXX=
11118 hardcode_libdir_flag_spec_ld_CXX=
11119 hardcode_libdir_separator_CXX=
11120 hardcode_minus_L_CXX=no
11121 hardcode_shlibpath_var_CXX=unsupported
11122 hardcode_automatic_CXX=no
11123 module_cmds_CXX=
11124 module_expsym_cmds_CXX=
11125 link_all_deplibs_CXX=unknown
11126 old_archive_cmds_CXX=$old_archive_cmds
11127 no_undefined_flag_CXX=
11128 whole_archive_flag_spec_CXX=
11129 enable_shared_with_static_runtimes_CXX=no
11131 # Dependencies to place before and after the object being linked:
11132 predep_objects_CXX=
11133 postdep_objects_CXX=
11134 predeps_CXX=
11135 postdeps_CXX=
11136 compiler_lib_search_path_CXX=
11138 # Source file extension for C++ test sources.
11139 ac_ext=cpp
11141 # Object file extension for compiled C++ test sources.
11142 objext=o
11143 objext_CXX=$objext
11145 # Code to be used in simple compile tests
11146 lt_simple_compile_test_code="int some_variable = 0;"
11148 # Code to be used in simple link tests
11149 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11151 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11153 # If no C compiler was specified, use CC.
11154 LTCC=${LTCC-"$CC"}
11156 # If no C compiler flags were specified, use CFLAGS.
11157 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11159 # Allow CC to be a program name with arguments.
11160 compiler=$CC
11163 # save warnings/boilerplate of simple test code
11164 ac_outfile=conftest.$ac_objext
11165 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11166 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11167 _lt_compiler_boilerplate=`cat conftest.err`
11168 $rm conftest*
11170 ac_outfile=conftest.$ac_objext
11171 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11172 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11173 _lt_linker_boilerplate=`cat conftest.err`
11174 $rm conftest*
11177 # Allow CC to be a program name with arguments.
11178 lt_save_CC=$CC
11179 lt_save_LD=$LD
11180 lt_save_GCC=$GCC
11181 GCC=$GXX
11182 lt_save_with_gnu_ld=$with_gnu_ld
11183 lt_save_path_LD=$lt_cv_path_LD
11184 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11185 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11186 else
11187 $as_unset lt_cv_prog_gnu_ld
11189 if test -n "${lt_cv_path_LDCXX+set}"; then
11190 lt_cv_path_LD=$lt_cv_path_LDCXX
11191 else
11192 $as_unset lt_cv_path_LD
11194 test -z "${LDCXX+set}" || LD=$LDCXX
11195 CC=${CXX-"c++"}
11196 compiler=$CC
11197 compiler_CXX=$CC
11198 for cc_temp in $compiler""; do
11199 case $cc_temp in
11200 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11201 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11202 \-*) ;;
11203 *) break;;
11204 esac
11205 done
11206 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11209 # We don't want -fno-exception wen compiling C++ code, so set the
11210 # no_builtin_flag separately
11211 if test "$GXX" = yes; then
11212 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11213 else
11214 lt_prog_compiler_no_builtin_flag_CXX=
11217 if test "$GXX" = yes; then
11218 # Set up default GNU C++ configuration
11221 # Check whether --with-gnu-ld was given.
11222 if test "${with_gnu_ld+set}" = set; then
11223 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11224 else
11225 with_gnu_ld=no
11228 ac_prog=ld
11229 if test "$GCC" = yes; then
11230 # Check if gcc -print-prog-name=ld gives a path.
11231 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11232 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11233 case $host in
11234 *-*-mingw*)
11235 # gcc leaves a trailing carriage return which upsets mingw
11236 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11238 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11239 esac
11240 case $ac_prog in
11241 # Accept absolute paths.
11242 [\\/]* | ?:[\\/]*)
11243 re_direlt='/[^/][^/]*/\.\./'
11244 # Canonicalize the pathname of ld
11245 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11246 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11247 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11248 done
11249 test -z "$LD" && LD="$ac_prog"
11252 # If it fails, then pretend we aren't using GCC.
11253 ac_prog=ld
11256 # If it is relative, then search for the first ld in PATH.
11257 with_gnu_ld=unknown
11259 esac
11260 elif test "$with_gnu_ld" = yes; then
11261 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11262 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11263 else
11264 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11265 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11267 if test "${lt_cv_path_LD+set}" = set; then
11268 echo $ECHO_N "(cached) $ECHO_C" >&6
11269 else
11270 if test -z "$LD"; then
11271 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11272 for ac_dir in $PATH; do
11273 IFS="$lt_save_ifs"
11274 test -z "$ac_dir" && ac_dir=.
11275 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11276 lt_cv_path_LD="$ac_dir/$ac_prog"
11277 # Check to see if the program is GNU ld. I'd rather use --version,
11278 # but apparently some variants of GNU ld only accept -v.
11279 # Break only if it was the GNU/non-GNU ld that we prefer.
11280 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11281 *GNU* | *'with BFD'*)
11282 test "$with_gnu_ld" != no && break
11285 test "$with_gnu_ld" != yes && break
11287 esac
11289 done
11290 IFS="$lt_save_ifs"
11291 else
11292 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11296 LD="$lt_cv_path_LD"
11297 if test -n "$LD"; then
11298 { echo "$as_me:$LINENO: result: $LD" >&5
11299 echo "${ECHO_T}$LD" >&6; }
11300 else
11301 { echo "$as_me:$LINENO: result: no" >&5
11302 echo "${ECHO_T}no" >&6; }
11304 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11305 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11306 { (exit 1); exit 1; }; }
11307 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11308 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11309 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11310 echo $ECHO_N "(cached) $ECHO_C" >&6
11311 else
11312 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11313 case `$LD -v 2>&1 </dev/null` in
11314 *GNU* | *'with BFD'*)
11315 lt_cv_prog_gnu_ld=yes
11318 lt_cv_prog_gnu_ld=no
11320 esac
11322 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11323 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11324 with_gnu_ld=$lt_cv_prog_gnu_ld
11328 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11329 # archiving commands below assume that GNU ld is being used.
11330 if test "$with_gnu_ld" = yes; then
11331 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11332 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'
11334 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11335 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11337 # If archive_cmds runs LD, not CC, wlarc should be empty
11338 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11339 # investigate it a little bit more. (MM)
11340 wlarc='${wl}'
11342 # ancient GNU ld didn't support --whole-archive et. al.
11343 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11344 grep 'no-whole-archive' > /dev/null; then
11345 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11346 else
11347 whole_archive_flag_spec_CXX=
11349 else
11350 with_gnu_ld=no
11351 wlarc=
11353 # A generic and very simple default shared library creation
11354 # command for GNU C++ for the case where it uses the native
11355 # linker, instead of GNU ld. If possible, this setting should
11356 # overridden to take advantage of the native linker features on
11357 # the platform it is being used on.
11358 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11361 # Commands to make compiler produce verbose output that lists
11362 # what "hidden" libraries, object files and flags are used when
11363 # linking a shared library.
11364 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11366 else
11367 GXX=no
11368 with_gnu_ld=no
11369 wlarc=
11372 # PORTME: fill in a description of your system's C++ link characteristics
11373 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11374 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11375 ld_shlibs_CXX=yes
11376 case $host_os in
11377 aix3*)
11378 # FIXME: insert proper C++ library support
11379 ld_shlibs_CXX=no
11381 aix4* | aix5*)
11382 if test "$host_cpu" = ia64; then
11383 # On IA64, the linker does run time linking by default, so we don't
11384 # have to do anything special.
11385 aix_use_runtimelinking=no
11386 exp_sym_flag='-Bexport'
11387 no_entry_flag=""
11388 else
11389 aix_use_runtimelinking=no
11391 # Test if we are trying to use run time linking or normal
11392 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11393 # need to do runtime linking.
11394 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11395 for ld_flag in $LDFLAGS; do
11396 case $ld_flag in
11397 *-brtl*)
11398 aix_use_runtimelinking=yes
11399 break
11401 esac
11402 done
11404 esac
11406 exp_sym_flag='-bexport'
11407 no_entry_flag='-bnoentry'
11410 # When large executables or shared objects are built, AIX ld can
11411 # have problems creating the table of contents. If linking a library
11412 # or program results in "error TOC overflow" add -mminimal-toc to
11413 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11414 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11416 archive_cmds_CXX=''
11417 hardcode_direct_CXX=yes
11418 hardcode_libdir_separator_CXX=':'
11419 link_all_deplibs_CXX=yes
11421 if test "$GXX" = yes; then
11422 case $host_os in aix4.[012]|aix4.[012].*)
11423 # We only want to do this on AIX 4.2 and lower, the check
11424 # below for broken collect2 doesn't work under 4.3+
11425 collect2name=`${CC} -print-prog-name=collect2`
11426 if test -f "$collect2name" && \
11427 strings "$collect2name" | grep resolve_lib_name >/dev/null
11428 then
11429 # We have reworked collect2
11431 else
11432 # We have old collect2
11433 hardcode_direct_CXX=unsupported
11434 # It fails to find uninstalled libraries when the uninstalled
11435 # path is not listed in the libpath. Setting hardcode_minus_L
11436 # to unsupported forces relinking
11437 hardcode_minus_L_CXX=yes
11438 hardcode_libdir_flag_spec_CXX='-L$libdir'
11439 hardcode_libdir_separator_CXX=
11442 esac
11443 shared_flag='-shared'
11444 if test "$aix_use_runtimelinking" = yes; then
11445 shared_flag="$shared_flag "'${wl}-G'
11447 else
11448 # not using gcc
11449 if test "$host_cpu" = ia64; then
11450 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11451 # chokes on -Wl,-G. The following line is correct:
11452 shared_flag='-G'
11453 else
11454 if test "$aix_use_runtimelinking" = yes; then
11455 shared_flag='${wl}-G'
11456 else
11457 shared_flag='${wl}-bM:SRE'
11462 # It seems that -bexpall does not export symbols beginning with
11463 # underscore (_), so it is better to generate a list of symbols to export.
11464 always_export_symbols_CXX=yes
11465 if test "$aix_use_runtimelinking" = yes; then
11466 # Warning - without using the other runtime loading flags (-brtl),
11467 # -berok will link without error, but may produce a broken library.
11468 allow_undefined_flag_CXX='-berok'
11469 # Determine the default libpath from the value encoded in an empty executable.
11470 cat >conftest.$ac_ext <<_ACEOF
11471 /* confdefs.h. */
11472 _ACEOF
11473 cat confdefs.h >>conftest.$ac_ext
11474 cat >>conftest.$ac_ext <<_ACEOF
11475 /* end confdefs.h. */
11478 main ()
11482 return 0;
11484 _ACEOF
11485 rm -f conftest.$ac_objext conftest$ac_exeext
11486 if { (ac_try="$ac_link"
11487 case "(($ac_try" in
11488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11489 *) ac_try_echo=$ac_try;;
11490 esac
11491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11492 (eval "$ac_link") 2>conftest.er1
11493 ac_status=$?
11494 grep -v '^ *+' conftest.er1 >conftest.err
11495 rm -f conftest.er1
11496 cat conftest.err >&5
11497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498 (exit $ac_status); } && {
11499 test -z "$ac_cxx_werror_flag" ||
11500 test ! -s conftest.err
11501 } && test -s conftest$ac_exeext &&
11502 $as_test_x conftest$ac_exeext; then
11504 lt_aix_libpath_sed='
11505 /Import File Strings/,/^$/ {
11506 /^0/ {
11507 s/^0 *\(.*\)$/\1/
11511 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11512 # Check for a 64-bit object if we didn't find anything.
11513 if test -z "$aix_libpath"; then
11514 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11516 else
11517 echo "$as_me: failed program was:" >&5
11518 sed 's/^/| /' conftest.$ac_ext >&5
11523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11524 conftest$ac_exeext conftest.$ac_ext
11525 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11527 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11529 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"
11530 else
11531 if test "$host_cpu" = ia64; then
11532 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11533 allow_undefined_flag_CXX="-z nodefs"
11534 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"
11535 else
11536 # Determine the default libpath from the value encoded in an empty executable.
11537 cat >conftest.$ac_ext <<_ACEOF
11538 /* confdefs.h. */
11539 _ACEOF
11540 cat confdefs.h >>conftest.$ac_ext
11541 cat >>conftest.$ac_ext <<_ACEOF
11542 /* end confdefs.h. */
11545 main ()
11549 return 0;
11551 _ACEOF
11552 rm -f conftest.$ac_objext conftest$ac_exeext
11553 if { (ac_try="$ac_link"
11554 case "(($ac_try" in
11555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11556 *) ac_try_echo=$ac_try;;
11557 esac
11558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11559 (eval "$ac_link") 2>conftest.er1
11560 ac_status=$?
11561 grep -v '^ *+' conftest.er1 >conftest.err
11562 rm -f conftest.er1
11563 cat conftest.err >&5
11564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565 (exit $ac_status); } && {
11566 test -z "$ac_cxx_werror_flag" ||
11567 test ! -s conftest.err
11568 } && test -s conftest$ac_exeext &&
11569 $as_test_x conftest$ac_exeext; then
11571 lt_aix_libpath_sed='
11572 /Import File Strings/,/^$/ {
11573 /^0/ {
11574 s/^0 *\(.*\)$/\1/
11578 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11579 # Check for a 64-bit object if we didn't find anything.
11580 if test -z "$aix_libpath"; then
11581 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11583 else
11584 echo "$as_me: failed program was:" >&5
11585 sed 's/^/| /' conftest.$ac_ext >&5
11590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11591 conftest$ac_exeext conftest.$ac_ext
11592 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11594 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11595 # Warning - without using the other run time loading flags,
11596 # -berok will link without error, but may produce a broken library.
11597 no_undefined_flag_CXX=' ${wl}-bernotok'
11598 allow_undefined_flag_CXX=' ${wl}-berok'
11599 # Exported symbols can be pulled into shared objects from archives
11600 whole_archive_flag_spec_CXX='$convenience'
11601 archive_cmds_need_lc_CXX=yes
11602 # This is similar to how AIX traditionally builds its shared libraries.
11603 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'
11608 beos*)
11609 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11610 allow_undefined_flag_CXX=unsupported
11611 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11612 # support --undefined. This deserves some investigation. FIXME
11613 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11614 else
11615 ld_shlibs_CXX=no
11619 chorus*)
11620 case $cc_basename in
11622 # FIXME: insert proper C++ library support
11623 ld_shlibs_CXX=no
11625 esac
11628 cygwin* | mingw* | pw32*)
11629 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11630 # as there is no search path for DLLs.
11631 hardcode_libdir_flag_spec_CXX='-L$libdir'
11632 allow_undefined_flag_CXX=unsupported
11633 always_export_symbols_CXX=no
11634 enable_shared_with_static_runtimes_CXX=yes
11636 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11637 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'
11638 # If the export-symbols file already is a .def file (1st line
11639 # is EXPORTS), use it as is; otherwise, prepend...
11640 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11641 cp $export_symbols $output_objdir/$soname.def;
11642 else
11643 echo EXPORTS > $output_objdir/$soname.def;
11644 cat $export_symbols >> $output_objdir/$soname.def;
11646 $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'
11647 else
11648 ld_shlibs_CXX=no
11651 darwin* | rhapsody*)
11652 case $host_os in
11653 rhapsody* | darwin1.[012])
11654 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11656 *) # Darwin 1.3 on
11657 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11658 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11659 else
11660 case ${MACOSX_DEPLOYMENT_TARGET} in
11661 10.[012])
11662 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11664 10.*)
11665 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11667 esac
11670 esac
11671 archive_cmds_need_lc_CXX=no
11672 hardcode_direct_CXX=no
11673 hardcode_automatic_CXX=yes
11674 hardcode_shlibpath_var_CXX=unsupported
11675 whole_archive_flag_spec_CXX=''
11676 link_all_deplibs_CXX=yes
11678 if test "$GXX" = yes ; then
11679 lt_int_apple_cc_single_mod=no
11680 output_verbose_link_cmd='echo'
11681 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11682 lt_int_apple_cc_single_mod=yes
11684 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11685 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11686 else
11687 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'
11689 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11690 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11691 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11692 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}'
11693 else
11694 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}'
11696 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}'
11697 else
11698 case $cc_basename in
11699 xlc*)
11700 output_verbose_link_cmd='echo'
11701 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11702 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11703 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11704 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11705 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}'
11708 ld_shlibs_CXX=no
11710 esac
11714 dgux*)
11715 case $cc_basename in
11716 ec++*)
11717 # FIXME: insert proper C++ library support
11718 ld_shlibs_CXX=no
11720 ghcx*)
11721 # Green Hills C++ Compiler
11722 # FIXME: insert proper C++ library support
11723 ld_shlibs_CXX=no
11726 # FIXME: insert proper C++ library support
11727 ld_shlibs_CXX=no
11729 esac
11731 freebsd[12]*)
11732 # C++ shared libraries reported to be fairly broken before switch to ELF
11733 ld_shlibs_CXX=no
11735 freebsd-elf*)
11736 archive_cmds_need_lc_CXX=no
11738 freebsd* | dragonfly*)
11739 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11740 # conventions
11741 ld_shlibs_CXX=yes
11743 gnu*)
11745 hpux9*)
11746 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11747 hardcode_libdir_separator_CXX=:
11748 export_dynamic_flag_spec_CXX='${wl}-E'
11749 hardcode_direct_CXX=yes
11750 hardcode_minus_L_CXX=yes # Not in the search PATH,
11751 # but as the default
11752 # location of the library.
11754 case $cc_basename in
11755 CC*)
11756 # FIXME: insert proper C++ library support
11757 ld_shlibs_CXX=no
11759 aCC*)
11760 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'
11761 # Commands to make compiler produce verbose output that lists
11762 # what "hidden" libraries, object files and flags are used when
11763 # linking a shared library.
11765 # There doesn't appear to be a way to prevent this compiler from
11766 # explicitly linking system object files so we need to strip them
11767 # from the output so that they don't get included in the library
11768 # dependencies.
11769 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'
11772 if test "$GXX" = yes; then
11773 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'
11774 else
11775 # FIXME: insert proper C++ library support
11776 ld_shlibs_CXX=no
11779 esac
11781 hpux10*|hpux11*)
11782 if test $with_gnu_ld = no; then
11783 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11784 hardcode_libdir_separator_CXX=:
11786 case $host_cpu in
11787 hppa*64*|ia64*) ;;
11789 export_dynamic_flag_spec_CXX='${wl}-E'
11791 esac
11793 case $host_cpu in
11794 hppa*64*|ia64*)
11795 hardcode_direct_CXX=no
11796 hardcode_shlibpath_var_CXX=no
11799 hardcode_direct_CXX=yes
11800 hardcode_minus_L_CXX=yes # Not in the search PATH,
11801 # but as the default
11802 # location of the library.
11804 esac
11806 case $cc_basename in
11807 CC*)
11808 # FIXME: insert proper C++ library support
11809 ld_shlibs_CXX=no
11811 aCC*)
11812 case $host_cpu in
11813 hppa*64*)
11814 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11816 ia64*)
11817 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11820 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11822 esac
11823 # Commands to make compiler produce verbose output that lists
11824 # what "hidden" libraries, object files and flags are used when
11825 # linking a shared library.
11827 # There doesn't appear to be a way to prevent this compiler from
11828 # explicitly linking system object files so we need to strip them
11829 # from the output so that they don't get included in the library
11830 # dependencies.
11831 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'
11834 if test "$GXX" = yes; then
11835 if test $with_gnu_ld = no; then
11836 case $host_cpu in
11837 hppa*64*)
11838 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11840 ia64*)
11841 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11844 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'
11846 esac
11848 else
11849 # FIXME: insert proper C++ library support
11850 ld_shlibs_CXX=no
11853 esac
11855 interix[3-9]*)
11856 hardcode_direct_CXX=no
11857 hardcode_shlibpath_var_CXX=no
11858 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11859 export_dynamic_flag_spec_CXX='${wl}-E'
11860 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11861 # Instead, shared libraries are loaded at an image base (0x10000000 by
11862 # default) and relocated if they conflict, which is a slow very memory
11863 # consuming and fragmenting process. To avoid this, we pick a random,
11864 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11865 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11866 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'
11867 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'
11869 irix5* | irix6*)
11870 case $cc_basename in
11871 CC*)
11872 # SGI C++
11873 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'
11875 # Archives containing C++ object files must be created using
11876 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11877 # necessary to make sure instantiated templates are included
11878 # in the archive.
11879 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11882 if test "$GXX" = yes; then
11883 if test "$with_gnu_ld" = no; then
11884 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'
11885 else
11886 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'
11889 link_all_deplibs_CXX=yes
11891 esac
11892 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11893 hardcode_libdir_separator_CXX=:
11895 linux* | k*bsd*-gnu)
11896 case $cc_basename in
11897 KCC*)
11898 # Kuck and Associates, Inc. (KAI) C++ Compiler
11900 # KCC will only create a shared library if the output file
11901 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11902 # to its proper name (with version) after linking.
11903 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'
11904 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'
11905 # Commands to make compiler produce verbose output that lists
11906 # what "hidden" libraries, object files and flags are used when
11907 # linking a shared library.
11909 # There doesn't appear to be a way to prevent this compiler from
11910 # explicitly linking system object files so we need to strip them
11911 # from the output so that they don't get included in the library
11912 # dependencies.
11913 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'
11915 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11916 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11918 # Archives containing C++ object files must be created using
11919 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11920 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11922 icpc*)
11923 # Intel C++
11924 with_gnu_ld=yes
11925 # version 8.0 and above of icpc choke on multiply defined symbols
11926 # if we add $predep_objects and $postdep_objects, however 7.1 and
11927 # earlier do not add the objects themselves.
11928 case `$CC -V 2>&1` in
11929 *"Version 7."*)
11930 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11931 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'
11933 *) # Version 8.0 or newer
11934 tmp_idyn=
11935 case $host_cpu in
11936 ia64*) tmp_idyn=' -i_dynamic';;
11937 esac
11938 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11939 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'
11941 esac
11942 archive_cmds_need_lc_CXX=no
11943 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11944 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11945 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11947 pgCC*)
11948 # Portland Group C++ compiler
11949 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11950 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'
11952 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11953 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11954 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'
11956 cxx*)
11957 # Compaq C++
11958 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11959 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'
11961 runpath_var=LD_RUN_PATH
11962 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11963 hardcode_libdir_separator_CXX=:
11965 # Commands to make compiler produce verbose output that lists
11966 # what "hidden" libraries, object files and flags are used when
11967 # linking a shared library.
11969 # There doesn't appear to be a way to prevent this compiler from
11970 # explicitly linking system object files so we need to strip them
11971 # from the output so that they don't get included in the library
11972 # dependencies.
11973 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'
11976 case `$CC -V 2>&1 | sed 5q` in
11977 *Sun\ C*)
11978 # Sun C++ 5.9
11979 no_undefined_flag_CXX=' -zdefs'
11980 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11981 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11982 hardcode_libdir_flag_spec_CXX='-R$libdir'
11983 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11985 # Not sure whether something based on
11986 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11987 # would be better.
11988 output_verbose_link_cmd='echo'
11990 # Archives containing C++ object files must be created using
11991 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11992 # necessary to make sure instantiated templates are included
11993 # in the archive.
11994 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11996 esac
11998 esac
12000 lynxos*)
12001 # FIXME: insert proper C++ library support
12002 ld_shlibs_CXX=no
12004 m88k*)
12005 # FIXME: insert proper C++ library support
12006 ld_shlibs_CXX=no
12008 mvs*)
12009 case $cc_basename in
12010 cxx*)
12011 # FIXME: insert proper C++ library support
12012 ld_shlibs_CXX=no
12015 # FIXME: insert proper C++ library support
12016 ld_shlibs_CXX=no
12018 esac
12020 netbsd*)
12021 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12022 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12023 wlarc=
12024 hardcode_libdir_flag_spec_CXX='-R$libdir'
12025 hardcode_direct_CXX=yes
12026 hardcode_shlibpath_var_CXX=no
12028 # Workaround some broken pre-1.5 toolchains
12029 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12031 openbsd2*)
12032 # C++ shared libraries are fairly broken
12033 ld_shlibs_CXX=no
12035 openbsd*)
12036 if test -f /usr/libexec/ld.so; then
12037 hardcode_direct_CXX=yes
12038 hardcode_shlibpath_var_CXX=no
12039 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12040 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12041 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12042 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12043 export_dynamic_flag_spec_CXX='${wl}-E'
12044 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12046 output_verbose_link_cmd='echo'
12047 else
12048 ld_shlibs_CXX=no
12051 osf3*)
12052 case $cc_basename in
12053 KCC*)
12054 # Kuck and Associates, Inc. (KAI) C++ Compiler
12056 # KCC will only create a shared library if the output file
12057 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12058 # to its proper name (with version) after linking.
12059 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'
12061 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12062 hardcode_libdir_separator_CXX=:
12064 # Archives containing C++ object files must be created using
12065 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12066 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12069 RCC*)
12070 # Rational C++ 2.4.1
12071 # FIXME: insert proper C++ library support
12072 ld_shlibs_CXX=no
12074 cxx*)
12075 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12076 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'
12078 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12079 hardcode_libdir_separator_CXX=:
12081 # Commands to make compiler produce verbose output that lists
12082 # what "hidden" libraries, object files and flags are used when
12083 # linking a shared library.
12085 # There doesn't appear to be a way to prevent this compiler from
12086 # explicitly linking system object files so we need to strip them
12087 # from the output so that they don't get included in the library
12088 # dependencies.
12089 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'
12092 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12093 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12094 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'
12096 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12097 hardcode_libdir_separator_CXX=:
12099 # Commands to make compiler produce verbose output that lists
12100 # what "hidden" libraries, object files and flags are used when
12101 # linking a shared library.
12102 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12104 else
12105 # FIXME: insert proper C++ library support
12106 ld_shlibs_CXX=no
12109 esac
12111 osf4* | osf5*)
12112 case $cc_basename in
12113 KCC*)
12114 # Kuck and Associates, Inc. (KAI) C++ Compiler
12116 # KCC will only create a shared library if the output file
12117 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12118 # to its proper name (with version) after linking.
12119 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'
12121 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12122 hardcode_libdir_separator_CXX=:
12124 # Archives containing C++ object files must be created using
12125 # the KAI C++ compiler.
12126 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12128 RCC*)
12129 # Rational C++ 2.4.1
12130 # FIXME: insert proper C++ library support
12131 ld_shlibs_CXX=no
12133 cxx*)
12134 allow_undefined_flag_CXX=' -expect_unresolved \*'
12135 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'
12136 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12137 echo "-hidden">> $lib.exp~
12138 $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~
12139 $rm $lib.exp'
12141 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12142 hardcode_libdir_separator_CXX=:
12144 # Commands to make compiler produce verbose output that lists
12145 # what "hidden" libraries, object files and flags are used when
12146 # linking a shared library.
12148 # There doesn't appear to be a way to prevent this compiler from
12149 # explicitly linking system object files so we need to strip them
12150 # from the output so that they don't get included in the library
12151 # dependencies.
12152 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'
12155 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12156 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12157 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'
12159 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12160 hardcode_libdir_separator_CXX=:
12162 # Commands to make compiler produce verbose output that lists
12163 # what "hidden" libraries, object files and flags are used when
12164 # linking a shared library.
12165 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12167 else
12168 # FIXME: insert proper C++ library support
12169 ld_shlibs_CXX=no
12172 esac
12174 psos*)
12175 # FIXME: insert proper C++ library support
12176 ld_shlibs_CXX=no
12178 sunos4*)
12179 case $cc_basename in
12180 CC*)
12181 # Sun C++ 4.x
12182 # FIXME: insert proper C++ library support
12183 ld_shlibs_CXX=no
12185 lcc*)
12186 # Lucid
12187 # FIXME: insert proper C++ library support
12188 ld_shlibs_CXX=no
12191 # FIXME: insert proper C++ library support
12192 ld_shlibs_CXX=no
12194 esac
12196 solaris*)
12197 case $cc_basename in
12198 CC*)
12199 # Sun C++ 4.2, 5.x and Centerline C++
12200 archive_cmds_need_lc_CXX=yes
12201 no_undefined_flag_CXX=' -zdefs'
12202 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12203 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12204 $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'
12206 hardcode_libdir_flag_spec_CXX='-R$libdir'
12207 hardcode_shlibpath_var_CXX=no
12208 case $host_os in
12209 solaris2.[0-5] | solaris2.[0-5].*) ;;
12211 # The compiler driver will combine and reorder linker options,
12212 # but understands `-z linker_flag'.
12213 # Supported since Solaris 2.6 (maybe 2.5.1?)
12214 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12216 esac
12217 link_all_deplibs_CXX=yes
12219 output_verbose_link_cmd='echo'
12221 # Archives containing C++ object files must be created using
12222 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12223 # necessary to make sure instantiated templates are included
12224 # in the archive.
12225 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12227 gcx*)
12228 # Green Hills C++ Compiler
12229 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12231 # The C++ compiler must be used to create the archive.
12232 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12235 # GNU C++ compiler with Solaris linker
12236 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12237 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12238 if $CC --version | grep -v '^2\.7' > /dev/null; then
12239 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12240 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12241 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12243 # Commands to make compiler produce verbose output that lists
12244 # what "hidden" libraries, object files and flags are used when
12245 # linking a shared library.
12246 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12247 else
12248 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12249 # platform.
12250 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12251 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12252 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12254 # Commands to make compiler produce verbose output that lists
12255 # what "hidden" libraries, object files and flags are used when
12256 # linking a shared library.
12257 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12260 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12261 case $host_os in
12262 solaris2.[0-5] | solaris2.[0-5].*) ;;
12264 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12266 esac
12269 esac
12271 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12272 no_undefined_flag_CXX='${wl}-z,text'
12273 archive_cmds_need_lc_CXX=no
12274 hardcode_shlibpath_var_CXX=no
12275 runpath_var='LD_RUN_PATH'
12277 case $cc_basename in
12278 CC*)
12279 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12280 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12283 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12284 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12286 esac
12288 sysv5* | sco3.2v5* | sco5v6*)
12289 # Note: We can NOT use -z defs as we might desire, because we do not
12290 # link with -lc, and that would cause any symbols used from libc to
12291 # always be unresolved, which means just about no library would
12292 # ever link correctly. If we're not using GNU ld we use -z text
12293 # though, which does catch some bad symbols but isn't as heavy-handed
12294 # as -z defs.
12295 # For security reasons, it is highly recommended that you always
12296 # use absolute paths for naming shared libraries, and exclude the
12297 # DT_RUNPATH tag from executables and libraries. But doing so
12298 # requires that you compile everything twice, which is a pain.
12299 # So that behaviour is only enabled if SCOABSPATH is set to a
12300 # non-empty value in the environment. Most likely only useful for
12301 # creating official distributions of packages.
12302 # This is a hack until libtool officially supports absolute path
12303 # names for shared libraries.
12304 no_undefined_flag_CXX='${wl}-z,text'
12305 allow_undefined_flag_CXX='${wl}-z,nodefs'
12306 archive_cmds_need_lc_CXX=no
12307 hardcode_shlibpath_var_CXX=no
12308 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12309 hardcode_libdir_separator_CXX=':'
12310 link_all_deplibs_CXX=yes
12311 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12312 runpath_var='LD_RUN_PATH'
12314 case $cc_basename in
12315 CC*)
12316 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12317 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12320 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12321 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12323 esac
12325 tandem*)
12326 case $cc_basename in
12327 NCC*)
12328 # NonStop-UX NCC 3.20
12329 # FIXME: insert proper C++ library support
12330 ld_shlibs_CXX=no
12333 # FIXME: insert proper C++ library support
12334 ld_shlibs_CXX=no
12336 esac
12338 vxworks*)
12339 # FIXME: insert proper C++ library support
12340 ld_shlibs_CXX=no
12343 # FIXME: insert proper C++ library support
12344 ld_shlibs_CXX=no
12346 esac
12347 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12348 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12349 test "$ld_shlibs_CXX" = no && can_build_shared=no
12351 GCC_CXX="$GXX"
12352 LD_CXX="$LD"
12354 ## CAVEAT EMPTOR:
12355 ## There is no encapsulation within the following macros, do not change
12356 ## the running order or otherwise move them around unless you know exactly
12357 ## what you are doing...
12359 cat > conftest.$ac_ext <<EOF
12360 class Foo
12362 public:
12363 Foo (void) { a = 0; }
12364 private:
12365 int a;
12369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12370 (eval $ac_compile) 2>&5
12371 ac_status=$?
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); }; then
12374 # Parse the compiler output and extract the necessary
12375 # objects, libraries and library flags.
12377 # Sentinel used to keep track of whether or not we are before
12378 # the conftest object file.
12379 pre_test_object_deps_done=no
12381 # The `*' in the case matches for architectures that use `case' in
12382 # $output_verbose_cmd can trigger glob expansion during the loop
12383 # eval without this substitution.
12384 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12386 for p in `eval $output_verbose_link_cmd`; do
12387 case $p in
12389 -L* | -R* | -l*)
12390 # Some compilers place space between "-{L,R}" and the path.
12391 # Remove the space.
12392 if test $p = "-L" \
12393 || test $p = "-R"; then
12394 prev=$p
12395 continue
12396 else
12397 prev=
12400 if test "$pre_test_object_deps_done" = no; then
12401 case $p in
12402 -L* | -R*)
12403 # Internal compiler library paths should come after those
12404 # provided the user. The postdeps already come after the
12405 # user supplied libs so there is no need to process them.
12406 if test -z "$compiler_lib_search_path_CXX"; then
12407 compiler_lib_search_path_CXX="${prev}${p}"
12408 else
12409 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12412 # The "-l" case would never come before the object being
12413 # linked, so don't bother handling this case.
12414 esac
12415 else
12416 if test -z "$postdeps_CXX"; then
12417 postdeps_CXX="${prev}${p}"
12418 else
12419 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12424 *.$objext)
12425 # This assumes that the test object file only shows up
12426 # once in the compiler output.
12427 if test "$p" = "conftest.$objext"; then
12428 pre_test_object_deps_done=yes
12429 continue
12432 if test "$pre_test_object_deps_done" = no; then
12433 if test -z "$predep_objects_CXX"; then
12434 predep_objects_CXX="$p"
12435 else
12436 predep_objects_CXX="$predep_objects_CXX $p"
12438 else
12439 if test -z "$postdep_objects_CXX"; then
12440 postdep_objects_CXX="$p"
12441 else
12442 postdep_objects_CXX="$postdep_objects_CXX $p"
12447 *) ;; # Ignore the rest.
12449 esac
12450 done
12452 # Clean up.
12453 rm -f a.out a.exe
12454 else
12455 echo "libtool.m4: error: problem compiling CXX test program"
12458 $rm -f confest.$objext
12460 # PORTME: override above test on systems where it is broken
12461 case $host_os in
12462 interix[3-9]*)
12463 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12464 # hack all around it, let's just trust "g++" to DTRT.
12465 predep_objects_CXX=
12466 postdep_objects_CXX=
12467 postdeps_CXX=
12470 linux*)
12471 case `$CC -V 2>&1 | sed 5q` in
12472 *Sun\ C*)
12473 # Sun C++ 5.9
12475 # The more standards-conforming stlport4 library is
12476 # incompatible with the Cstd library. Avoid specifying
12477 # it if it's in CXXFLAGS. Ignore libCrun as
12478 # -library=stlport4 depends on it.
12479 case " $CXX $CXXFLAGS " in
12480 *" -library=stlport4 "*)
12481 solaris_use_stlport4=yes
12483 esac
12484 if test "$solaris_use_stlport4" != yes; then
12485 postdeps_CXX='-library=Cstd -library=Crun'
12488 esac
12491 solaris*)
12492 case $cc_basename in
12493 CC*)
12494 # The more standards-conforming stlport4 library is
12495 # incompatible with the Cstd library. Avoid specifying
12496 # it if it's in CXXFLAGS. Ignore libCrun as
12497 # -library=stlport4 depends on it.
12498 case " $CXX $CXXFLAGS " in
12499 *" -library=stlport4 "*)
12500 solaris_use_stlport4=yes
12502 esac
12504 # Adding this requires a known-good setup of shared libraries for
12505 # Sun compiler versions before 5.6, else PIC objects from an old
12506 # archive will be linked into the output, leading to subtle bugs.
12507 if test "$solaris_use_stlport4" != yes; then
12508 postdeps_CXX='-library=Cstd -library=Crun'
12511 esac
12513 esac
12516 case " $postdeps_CXX " in
12517 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12518 esac
12520 lt_prog_compiler_wl_CXX=
12521 lt_prog_compiler_pic_CXX=
12522 lt_prog_compiler_static_CXX=
12524 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12525 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12527 # C++ specific cases for pic, static, wl, etc.
12528 if test "$GXX" = yes; then
12529 lt_prog_compiler_wl_CXX='-Wl,'
12530 lt_prog_compiler_static_CXX='-static'
12532 case $host_os in
12533 aix*)
12534 # All AIX code is PIC.
12535 if test "$host_cpu" = ia64; then
12536 # AIX 5 now supports IA64 processor
12537 lt_prog_compiler_static_CXX='-Bstatic'
12540 amigaos*)
12541 # FIXME: we need at least 68020 code to build shared libraries, but
12542 # adding the `-m68020' flag to GCC prevents building anything better,
12543 # like `-m68040'.
12544 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12546 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12547 # PIC is the default for these OSes.
12549 mingw* | cygwin* | os2* | pw32*)
12550 # This hack is so that the source file can tell whether it is being
12551 # built for inclusion in a dll (and should export symbols for example).
12552 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12553 # (--disable-auto-import) libraries
12554 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12556 darwin* | rhapsody*)
12557 # PIC is the default on this platform
12558 # Common symbols not allowed in MH_DYLIB files
12559 lt_prog_compiler_pic_CXX='-fno-common'
12561 *djgpp*)
12562 # DJGPP does not support shared libraries at all
12563 lt_prog_compiler_pic_CXX=
12565 interix[3-9]*)
12566 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12567 # Instead, we relocate shared libraries at runtime.
12569 sysv4*MP*)
12570 if test -d /usr/nec; then
12571 lt_prog_compiler_pic_CXX=-Kconform_pic
12574 hpux*)
12575 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12576 # not for PA HP-UX.
12577 case $host_cpu in
12578 hppa*64*|ia64*)
12581 lt_prog_compiler_pic_CXX='-fPIC'
12583 esac
12586 lt_prog_compiler_pic_CXX='-fPIC'
12588 esac
12589 else
12590 case $host_os in
12591 aix4* | aix5*)
12592 # All AIX code is PIC.
12593 if test "$host_cpu" = ia64; then
12594 # AIX 5 now supports IA64 processor
12595 lt_prog_compiler_static_CXX='-Bstatic'
12596 else
12597 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12600 chorus*)
12601 case $cc_basename in
12602 cxch68*)
12603 # Green Hills C++ Compiler
12604 # _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"
12606 esac
12608 darwin*)
12609 # PIC is the default on this platform
12610 # Common symbols not allowed in MH_DYLIB files
12611 case $cc_basename in
12612 xlc*)
12613 lt_prog_compiler_pic_CXX='-qnocommon'
12614 lt_prog_compiler_wl_CXX='-Wl,'
12616 esac
12618 dgux*)
12619 case $cc_basename in
12620 ec++*)
12621 lt_prog_compiler_pic_CXX='-KPIC'
12623 ghcx*)
12624 # Green Hills C++ Compiler
12625 lt_prog_compiler_pic_CXX='-pic'
12629 esac
12631 freebsd* | dragonfly*)
12632 # FreeBSD uses GNU C++
12634 hpux9* | hpux10* | hpux11*)
12635 case $cc_basename in
12636 CC*)
12637 lt_prog_compiler_wl_CXX='-Wl,'
12638 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12639 if test "$host_cpu" != ia64; then
12640 lt_prog_compiler_pic_CXX='+Z'
12643 aCC*)
12644 lt_prog_compiler_wl_CXX='-Wl,'
12645 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12646 case $host_cpu in
12647 hppa*64*|ia64*)
12648 # +Z the default
12651 lt_prog_compiler_pic_CXX='+Z'
12653 esac
12657 esac
12659 interix*)
12660 # This is c89, which is MS Visual C++ (no shared libs)
12661 # Anyone wants to do a port?
12663 irix5* | irix6* | nonstopux*)
12664 case $cc_basename in
12665 CC*)
12666 lt_prog_compiler_wl_CXX='-Wl,'
12667 lt_prog_compiler_static_CXX='-non_shared'
12668 # CC pic flag -KPIC is the default.
12672 esac
12674 linux* | k*bsd*-gnu)
12675 case $cc_basename in
12676 KCC*)
12677 # KAI C++ Compiler
12678 lt_prog_compiler_wl_CXX='--backend -Wl,'
12679 lt_prog_compiler_pic_CXX='-fPIC'
12681 icpc* | ecpc*)
12682 # Intel C++
12683 lt_prog_compiler_wl_CXX='-Wl,'
12684 lt_prog_compiler_pic_CXX='-KPIC'
12685 lt_prog_compiler_static_CXX='-static'
12687 pgCC*)
12688 # Portland Group C++ compiler.
12689 lt_prog_compiler_wl_CXX='-Wl,'
12690 lt_prog_compiler_pic_CXX='-fpic'
12691 lt_prog_compiler_static_CXX='-Bstatic'
12693 cxx*)
12694 # Compaq C++
12695 # Make sure the PIC flag is empty. It appears that all Alpha
12696 # Linux and Compaq Tru64 Unix objects are PIC.
12697 lt_prog_compiler_pic_CXX=
12698 lt_prog_compiler_static_CXX='-non_shared'
12701 case `$CC -V 2>&1 | sed 5q` in
12702 *Sun\ C*)
12703 # Sun C++ 5.9
12704 lt_prog_compiler_pic_CXX='-KPIC'
12705 lt_prog_compiler_static_CXX='-Bstatic'
12706 lt_prog_compiler_wl_CXX='-Qoption ld '
12708 esac
12710 esac
12712 lynxos*)
12714 m88k*)
12716 mvs*)
12717 case $cc_basename in
12718 cxx*)
12719 lt_prog_compiler_pic_CXX='-W c,exportall'
12723 esac
12725 netbsd*)
12727 osf3* | osf4* | osf5*)
12728 case $cc_basename in
12729 KCC*)
12730 lt_prog_compiler_wl_CXX='--backend -Wl,'
12732 RCC*)
12733 # Rational C++ 2.4.1
12734 lt_prog_compiler_pic_CXX='-pic'
12736 cxx*)
12737 # Digital/Compaq C++
12738 lt_prog_compiler_wl_CXX='-Wl,'
12739 # Make sure the PIC flag is empty. It appears that all Alpha
12740 # Linux and Compaq Tru64 Unix objects are PIC.
12741 lt_prog_compiler_pic_CXX=
12742 lt_prog_compiler_static_CXX='-non_shared'
12746 esac
12748 psos*)
12750 solaris*)
12751 case $cc_basename in
12752 CC*)
12753 # Sun C++ 4.2, 5.x and Centerline C++
12754 lt_prog_compiler_pic_CXX='-KPIC'
12755 lt_prog_compiler_static_CXX='-Bstatic'
12756 lt_prog_compiler_wl_CXX='-Qoption ld '
12758 gcx*)
12759 # Green Hills C++ Compiler
12760 lt_prog_compiler_pic_CXX='-PIC'
12764 esac
12766 sunos4*)
12767 case $cc_basename in
12768 CC*)
12769 # Sun C++ 4.x
12770 lt_prog_compiler_pic_CXX='-pic'
12771 lt_prog_compiler_static_CXX='-Bstatic'
12773 lcc*)
12774 # Lucid
12775 lt_prog_compiler_pic_CXX='-pic'
12779 esac
12781 tandem*)
12782 case $cc_basename in
12783 NCC*)
12784 # NonStop-UX NCC 3.20
12785 lt_prog_compiler_pic_CXX='-KPIC'
12789 esac
12791 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12792 case $cc_basename in
12793 CC*)
12794 lt_prog_compiler_wl_CXX='-Wl,'
12795 lt_prog_compiler_pic_CXX='-KPIC'
12796 lt_prog_compiler_static_CXX='-Bstatic'
12798 esac
12800 vxworks*)
12803 lt_prog_compiler_can_build_shared_CXX=no
12805 esac
12808 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12809 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12812 # Check to make sure the PIC flag actually works.
12814 if test -n "$lt_prog_compiler_pic_CXX"; then
12816 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12817 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12818 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12819 echo $ECHO_N "(cached) $ECHO_C" >&6
12820 else
12821 lt_prog_compiler_pic_works_CXX=no
12822 ac_outfile=conftest.$ac_objext
12823 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12824 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12825 # Insert the option either (1) after the last *FLAGS variable, or
12826 # (2) before a word containing "conftest.", or (3) at the end.
12827 # Note that $ac_compile itself does not contain backslashes and begins
12828 # with a dollar sign (not a hyphen), so the echo should work correctly.
12829 # The option is referenced via a variable to avoid confusing sed.
12830 lt_compile=`echo "$ac_compile" | $SED \
12831 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12832 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12833 -e 's:$: $lt_compiler_flag:'`
12834 (eval echo "\"\$as_me:12834: $lt_compile\"" >&5)
12835 (eval "$lt_compile" 2>conftest.err)
12836 ac_status=$?
12837 cat conftest.err >&5
12838 echo "$as_me:12838: \$? = $ac_status" >&5
12839 if (exit $ac_status) && test -s "$ac_outfile"; then
12840 # The compiler can only warn and ignore the option if not recognized
12841 # So say no if there are warnings other than the usual output.
12842 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12843 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12844 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12845 lt_prog_compiler_pic_works_CXX=yes
12848 $rm conftest*
12851 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12852 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12854 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12855 case $lt_prog_compiler_pic_CXX in
12856 "" | " "*) ;;
12857 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12858 esac
12859 else
12860 lt_prog_compiler_pic_CXX=
12861 lt_prog_compiler_can_build_shared_CXX=no
12865 case $host_os in
12866 # For platforms which do not support PIC, -DPIC is meaningless:
12867 *djgpp*)
12868 lt_prog_compiler_pic_CXX=
12871 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12873 esac
12876 # Check to make sure the static flag actually works.
12878 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12879 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12880 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12881 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12882 echo $ECHO_N "(cached) $ECHO_C" >&6
12883 else
12884 lt_prog_compiler_static_works_CXX=no
12885 save_LDFLAGS="$LDFLAGS"
12886 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12887 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12888 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12889 # The linker can only warn and ignore the option if not recognized
12890 # So say no if there are warnings
12891 if test -s conftest.err; then
12892 # Append any errors to the config.log.
12893 cat conftest.err 1>&5
12894 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12895 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12896 if diff conftest.exp conftest.er2 >/dev/null; then
12897 lt_prog_compiler_static_works_CXX=yes
12899 else
12900 lt_prog_compiler_static_works_CXX=yes
12903 $rm conftest*
12904 LDFLAGS="$save_LDFLAGS"
12907 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12908 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12910 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12912 else
12913 lt_prog_compiler_static_CXX=
12917 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12918 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12919 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12920 echo $ECHO_N "(cached) $ECHO_C" >&6
12921 else
12922 lt_cv_prog_compiler_c_o_CXX=no
12923 $rm -r conftest 2>/dev/null
12924 mkdir conftest
12925 cd conftest
12926 mkdir out
12927 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12929 lt_compiler_flag="-o out/conftest2.$ac_objext"
12930 # Insert the option either (1) after the last *FLAGS variable, or
12931 # (2) before a word containing "conftest.", or (3) at the end.
12932 # Note that $ac_compile itself does not contain backslashes and begins
12933 # with a dollar sign (not a hyphen), so the echo should work correctly.
12934 lt_compile=`echo "$ac_compile" | $SED \
12935 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12936 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12937 -e 's:$: $lt_compiler_flag:'`
12938 (eval echo "\"\$as_me:12938: $lt_compile\"" >&5)
12939 (eval "$lt_compile" 2>out/conftest.err)
12940 ac_status=$?
12941 cat out/conftest.err >&5
12942 echo "$as_me:12942: \$? = $ac_status" >&5
12943 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12944 then
12945 # The compiler can only warn and ignore the option if not recognized
12946 # So say no if there are warnings
12947 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12948 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12949 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12950 lt_cv_prog_compiler_c_o_CXX=yes
12953 chmod u+w . 2>&5
12954 $rm conftest*
12955 # SGI C++ compiler will create directory out/ii_files/ for
12956 # template instantiation
12957 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12958 $rm out/* && rmdir out
12959 cd ..
12960 rmdir conftest
12961 $rm conftest*
12964 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12965 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12968 hard_links="nottested"
12969 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12970 # do not overwrite the value of need_locks provided by the user
12971 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12972 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12973 hard_links=yes
12974 $rm conftest*
12975 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12976 touch conftest.a
12977 ln conftest.a conftest.b 2>&5 || hard_links=no
12978 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12979 { echo "$as_me:$LINENO: result: $hard_links" >&5
12980 echo "${ECHO_T}$hard_links" >&6; }
12981 if test "$hard_links" = no; then
12982 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12983 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12984 need_locks=warn
12986 else
12987 need_locks=no
12990 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12991 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12993 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12994 case $host_os in
12995 aix4* | aix5*)
12996 # If we're using GNU nm, then we don't want the "-C" option.
12997 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12998 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12999 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'
13000 else
13001 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'
13004 pw32*)
13005 export_symbols_cmds_CXX="$ltdll_cmds"
13007 cygwin* | mingw*)
13008 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'
13011 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13013 esac
13015 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13016 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13017 test "$ld_shlibs_CXX" = no && can_build_shared=no
13020 # Do we need to explicitly link libc?
13022 case "x$archive_cmds_need_lc_CXX" in
13023 x|xyes)
13024 # Assume -lc should be added
13025 archive_cmds_need_lc_CXX=yes
13027 if test "$enable_shared" = yes && test "$GCC" = yes; then
13028 case $archive_cmds_CXX in
13029 *'~'*)
13030 # FIXME: we may have to deal with multi-command sequences.
13032 '$CC '*)
13033 # Test whether the compiler implicitly links with -lc since on some
13034 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13035 # to ld, don't add -lc before -lgcc.
13036 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13037 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13038 $rm conftest*
13039 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13042 (eval $ac_compile) 2>&5
13043 ac_status=$?
13044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045 (exit $ac_status); } 2>conftest.err; then
13046 soname=conftest
13047 lib=conftest
13048 libobjs=conftest.$ac_objext
13049 deplibs=
13050 wl=$lt_prog_compiler_wl_CXX
13051 pic_flag=$lt_prog_compiler_pic_CXX
13052 compiler_flags=-v
13053 linker_flags=-v
13054 verstring=
13055 output_objdir=.
13056 libname=conftest
13057 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13058 allow_undefined_flag_CXX=
13059 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13060 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13061 ac_status=$?
13062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063 (exit $ac_status); }
13064 then
13065 archive_cmds_need_lc_CXX=no
13066 else
13067 archive_cmds_need_lc_CXX=yes
13069 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13070 else
13071 cat conftest.err 1>&5
13073 $rm conftest*
13074 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13075 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13077 esac
13080 esac
13082 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13083 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13084 library_names_spec=
13085 libname_spec='lib$name'
13086 soname_spec=
13087 shrext_cmds=".so"
13088 postinstall_cmds=
13089 postuninstall_cmds=
13090 finish_cmds=
13091 finish_eval=
13092 shlibpath_var=
13093 shlibpath_overrides_runpath=unknown
13094 version_type=none
13095 dynamic_linker="$host_os ld.so"
13096 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13098 need_lib_prefix=unknown
13099 hardcode_into_libs=no
13101 # when you set need_version to no, make sure it does not cause -set_version
13102 # flags to be left without arguments
13103 need_version=unknown
13105 case $host_os in
13106 aix3*)
13107 version_type=linux
13108 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13109 shlibpath_var=LIBPATH
13111 # AIX 3 has no versioning support, so we append a major version to the name.
13112 soname_spec='${libname}${release}${shared_ext}$major'
13115 aix4* | aix5*)
13116 version_type=linux
13117 need_lib_prefix=no
13118 need_version=no
13119 hardcode_into_libs=yes
13120 if test "$host_cpu" = ia64; then
13121 # AIX 5 supports IA64
13122 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13123 shlibpath_var=LD_LIBRARY_PATH
13124 else
13125 # With GCC up to 2.95.x, collect2 would create an import file
13126 # for dependence libraries. The import file would start with
13127 # the line `#! .'. This would cause the generated library to
13128 # depend on `.', always an invalid library. This was fixed in
13129 # development snapshots of GCC prior to 3.0.
13130 case $host_os in
13131 aix4 | aix4.[01] | aix4.[01].*)
13132 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13133 echo ' yes '
13134 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13136 else
13137 can_build_shared=no
13140 esac
13141 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13142 # soname into executable. Probably we can add versioning support to
13143 # collect2, so additional links can be useful in future.
13144 if test "$aix_use_runtimelinking" = yes; then
13145 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13146 # instead of lib<name>.a to let people know that these are not
13147 # typical AIX shared libraries.
13148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13149 else
13150 # We preserve .a as extension for shared libraries through AIX4.2
13151 # and later when we are not doing run time linking.
13152 library_names_spec='${libname}${release}.a $libname.a'
13153 soname_spec='${libname}${release}${shared_ext}$major'
13155 shlibpath_var=LIBPATH
13159 amigaos*)
13160 library_names_spec='$libname.ixlibrary $libname.a'
13161 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13162 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'
13165 beos*)
13166 library_names_spec='${libname}${shared_ext}'
13167 dynamic_linker="$host_os ld.so"
13168 shlibpath_var=LIBRARY_PATH
13171 bsdi[45]*)
13172 version_type=linux
13173 need_version=no
13174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13175 soname_spec='${libname}${release}${shared_ext}$major'
13176 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13177 shlibpath_var=LD_LIBRARY_PATH
13178 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13179 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13180 # the default ld.so.conf also contains /usr/contrib/lib and
13181 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13182 # libtool to hard-code these into programs
13185 cygwin* | mingw* | pw32*)
13186 version_type=windows
13187 shrext_cmds=".dll"
13188 need_version=no
13189 need_lib_prefix=no
13191 case $GCC,$host_os in
13192 yes,cygwin* | yes,mingw* | yes,pw32*)
13193 library_names_spec='$libname.dll.a'
13194 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13195 postinstall_cmds='base_file=`basename \${file}`~
13196 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13197 dldir=$destdir/`dirname \$dlpath`~
13198 test -d \$dldir || mkdir -p \$dldir~
13199 $install_prog $dir/$dlname \$dldir/$dlname~
13200 chmod a+x \$dldir/$dlname'
13201 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13202 dlpath=$dir/\$dldll~
13203 $rm \$dlpath'
13204 shlibpath_overrides_runpath=yes
13206 case $host_os in
13207 cygwin*)
13208 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13209 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13210 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13212 mingw*)
13213 # MinGW DLLs use traditional 'lib' prefix
13214 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13215 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13216 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13217 # It is most probably a Windows format PATH printed by
13218 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13219 # path with ; separators, and with drive letters. We can handle the
13220 # drive letters (cygwin fileutils understands them), so leave them,
13221 # especially as we might pass files found there to a mingw objdump,
13222 # which wouldn't understand a cygwinified path. Ahh.
13223 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13224 else
13225 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13228 pw32*)
13229 # pw32 DLLs use 'pw' prefix rather than 'lib'
13230 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13232 esac
13236 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13238 esac
13239 dynamic_linker='Win32 ld.exe'
13240 # FIXME: first we should search . and the directory the executable is in
13241 shlibpath_var=PATH
13244 darwin* | rhapsody*)
13245 dynamic_linker="$host_os dyld"
13246 version_type=darwin
13247 need_lib_prefix=no
13248 need_version=no
13249 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13250 soname_spec='${libname}${release}${major}$shared_ext'
13251 shlibpath_overrides_runpath=yes
13252 shlibpath_var=DYLD_LIBRARY_PATH
13253 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13255 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13258 dgux*)
13259 version_type=linux
13260 need_lib_prefix=no
13261 need_version=no
13262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13263 soname_spec='${libname}${release}${shared_ext}$major'
13264 shlibpath_var=LD_LIBRARY_PATH
13267 freebsd1*)
13268 dynamic_linker=no
13271 freebsd* | dragonfly*)
13272 # DragonFly does not have aout. When/if they implement a new
13273 # versioning mechanism, adjust this.
13274 if test -x /usr/bin/objformat; then
13275 objformat=`/usr/bin/objformat`
13276 else
13277 case $host_os in
13278 freebsd[123]*) objformat=aout ;;
13279 *) objformat=elf ;;
13280 esac
13282 version_type=freebsd-$objformat
13283 case $version_type in
13284 freebsd-elf*)
13285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13286 need_version=no
13287 need_lib_prefix=no
13289 freebsd-*)
13290 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13291 need_version=yes
13293 esac
13294 shlibpath_var=LD_LIBRARY_PATH
13295 case $host_os in
13296 freebsd2*)
13297 shlibpath_overrides_runpath=yes
13299 freebsd3.[01]* | freebsdelf3.[01]*)
13300 shlibpath_overrides_runpath=yes
13301 hardcode_into_libs=yes
13303 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13304 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13305 shlibpath_overrides_runpath=no
13306 hardcode_into_libs=yes
13308 *) # from 4.6 on, and DragonFly
13309 shlibpath_overrides_runpath=yes
13310 hardcode_into_libs=yes
13312 esac
13315 gnu*)
13316 version_type=linux
13317 need_lib_prefix=no
13318 need_version=no
13319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13320 soname_spec='${libname}${release}${shared_ext}$major'
13321 shlibpath_var=LD_LIBRARY_PATH
13322 hardcode_into_libs=yes
13325 hpux9* | hpux10* | hpux11*)
13326 # Give a soname corresponding to the major version so that dld.sl refuses to
13327 # link against other versions.
13328 version_type=sunos
13329 need_lib_prefix=no
13330 need_version=no
13331 case $host_cpu in
13332 ia64*)
13333 shrext_cmds='.so'
13334 hardcode_into_libs=yes
13335 dynamic_linker="$host_os dld.so"
13336 shlibpath_var=LD_LIBRARY_PATH
13337 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13339 soname_spec='${libname}${release}${shared_ext}$major'
13340 if test "X$HPUX_IA64_MODE" = X32; then
13341 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13342 else
13343 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13345 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13347 hppa*64*)
13348 shrext_cmds='.sl'
13349 hardcode_into_libs=yes
13350 dynamic_linker="$host_os dld.sl"
13351 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13352 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13354 soname_spec='${libname}${release}${shared_ext}$major'
13355 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13356 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13359 shrext_cmds='.sl'
13360 dynamic_linker="$host_os dld.sl"
13361 shlibpath_var=SHLIB_PATH
13362 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13364 soname_spec='${libname}${release}${shared_ext}$major'
13366 esac
13367 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13368 postinstall_cmds='chmod 555 $lib'
13371 interix[3-9]*)
13372 version_type=linux
13373 need_lib_prefix=no
13374 need_version=no
13375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13376 soname_spec='${libname}${release}${shared_ext}$major'
13377 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13378 shlibpath_var=LD_LIBRARY_PATH
13379 shlibpath_overrides_runpath=no
13380 hardcode_into_libs=yes
13383 irix5* | irix6* | nonstopux*)
13384 case $host_os in
13385 nonstopux*) version_type=nonstopux ;;
13387 if test "$lt_cv_prog_gnu_ld" = yes; then
13388 version_type=linux
13389 else
13390 version_type=irix
13391 fi ;;
13392 esac
13393 need_lib_prefix=no
13394 need_version=no
13395 soname_spec='${libname}${release}${shared_ext}$major'
13396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13397 case $host_os in
13398 irix5* | nonstopux*)
13399 libsuff= shlibsuff=
13402 case $LD in # libtool.m4 will add one of these switches to LD
13403 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13404 libsuff= shlibsuff= libmagic=32-bit;;
13405 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13406 libsuff=32 shlibsuff=N32 libmagic=N32;;
13407 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13408 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13409 *) libsuff= shlibsuff= libmagic=never-match;;
13410 esac
13412 esac
13413 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13414 shlibpath_overrides_runpath=no
13415 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13416 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13417 hardcode_into_libs=yes
13420 # No shared lib support for Linux oldld, aout, or coff.
13421 linux*oldld* | linux*aout* | linux*coff*)
13422 dynamic_linker=no
13425 # This must be Linux ELF.
13426 linux* | k*bsd*-gnu)
13427 version_type=linux
13428 need_lib_prefix=no
13429 need_version=no
13430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13431 soname_spec='${libname}${release}${shared_ext}$major'
13432 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13433 shlibpath_var=LD_LIBRARY_PATH
13434 shlibpath_overrides_runpath=no
13435 # This implies no fast_install, which is unacceptable.
13436 # Some rework will be needed to allow for fast_install
13437 # before this can be enabled.
13438 hardcode_into_libs=yes
13440 # Append ld.so.conf contents to the search path
13441 if test -f /etc/ld.so.conf; then
13442 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13443 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13446 # We used to test for /lib/ld.so.1 and disable shared libraries on
13447 # powerpc, because MkLinux only supported shared libraries with the
13448 # GNU dynamic linker. Since this was broken with cross compilers,
13449 # most powerpc-linux boxes support dynamic linking these days and
13450 # people can always --disable-shared, the test was removed, and we
13451 # assume the GNU/Linux dynamic linker is in use.
13452 dynamic_linker='GNU/Linux ld.so'
13455 netbsd*)
13456 version_type=sunos
13457 need_lib_prefix=no
13458 need_version=no
13459 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13461 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13462 dynamic_linker='NetBSD (a.out) ld.so'
13463 else
13464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13465 soname_spec='${libname}${release}${shared_ext}$major'
13466 dynamic_linker='NetBSD ld.elf_so'
13468 shlibpath_var=LD_LIBRARY_PATH
13469 shlibpath_overrides_runpath=yes
13470 hardcode_into_libs=yes
13473 newsos6)
13474 version_type=linux
13475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13476 shlibpath_var=LD_LIBRARY_PATH
13477 shlibpath_overrides_runpath=yes
13480 nto-qnx*)
13481 version_type=linux
13482 need_lib_prefix=no
13483 need_version=no
13484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13485 soname_spec='${libname}${release}${shared_ext}$major'
13486 shlibpath_var=LD_LIBRARY_PATH
13487 shlibpath_overrides_runpath=yes
13490 openbsd*)
13491 version_type=sunos
13492 sys_lib_dlsearch_path_spec="/usr/lib"
13493 need_lib_prefix=no
13494 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13495 case $host_os in
13496 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13497 *) need_version=no ;;
13498 esac
13499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13500 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13501 shlibpath_var=LD_LIBRARY_PATH
13502 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13503 case $host_os in
13504 openbsd2.[89] | openbsd2.[89].*)
13505 shlibpath_overrides_runpath=no
13508 shlibpath_overrides_runpath=yes
13510 esac
13511 else
13512 shlibpath_overrides_runpath=yes
13516 os2*)
13517 libname_spec='$name'
13518 shrext_cmds=".dll"
13519 need_lib_prefix=no
13520 library_names_spec='$libname${shared_ext} $libname.a'
13521 dynamic_linker='OS/2 ld.exe'
13522 shlibpath_var=LIBPATH
13525 osf3* | osf4* | osf5*)
13526 version_type=osf
13527 need_lib_prefix=no
13528 need_version=no
13529 soname_spec='${libname}${release}${shared_ext}$major'
13530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13531 shlibpath_var=LD_LIBRARY_PATH
13532 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13533 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13536 rdos*)
13537 dynamic_linker=no
13540 solaris*)
13541 version_type=linux
13542 need_lib_prefix=no
13543 need_version=no
13544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13545 soname_spec='${libname}${release}${shared_ext}$major'
13546 shlibpath_var=LD_LIBRARY_PATH
13547 shlibpath_overrides_runpath=yes
13548 hardcode_into_libs=yes
13549 # ldd complains unless libraries are executable
13550 postinstall_cmds='chmod +x $lib'
13553 sunos4*)
13554 version_type=sunos
13555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13556 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13557 shlibpath_var=LD_LIBRARY_PATH
13558 shlibpath_overrides_runpath=yes
13559 if test "$with_gnu_ld" = yes; then
13560 need_lib_prefix=no
13562 need_version=yes
13565 sysv4 | sysv4.3*)
13566 version_type=linux
13567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13568 soname_spec='${libname}${release}${shared_ext}$major'
13569 shlibpath_var=LD_LIBRARY_PATH
13570 case $host_vendor in
13571 sni)
13572 shlibpath_overrides_runpath=no
13573 need_lib_prefix=no
13574 export_dynamic_flag_spec='${wl}-Blargedynsym'
13575 runpath_var=LD_RUN_PATH
13577 siemens)
13578 need_lib_prefix=no
13580 motorola)
13581 need_lib_prefix=no
13582 need_version=no
13583 shlibpath_overrides_runpath=no
13584 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13586 esac
13589 sysv4*MP*)
13590 if test -d /usr/nec ;then
13591 version_type=linux
13592 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13593 soname_spec='$libname${shared_ext}.$major'
13594 shlibpath_var=LD_LIBRARY_PATH
13598 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13599 version_type=freebsd-elf
13600 need_lib_prefix=no
13601 need_version=no
13602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13603 soname_spec='${libname}${release}${shared_ext}$major'
13604 shlibpath_var=LD_LIBRARY_PATH
13605 hardcode_into_libs=yes
13606 if test "$with_gnu_ld" = yes; then
13607 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13608 shlibpath_overrides_runpath=no
13609 else
13610 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13611 shlibpath_overrides_runpath=yes
13612 case $host_os in
13613 sco3.2v5*)
13614 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13616 esac
13618 sys_lib_dlsearch_path_spec='/usr/lib'
13621 uts4*)
13622 version_type=linux
13623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13624 soname_spec='${libname}${release}${shared_ext}$major'
13625 shlibpath_var=LD_LIBRARY_PATH
13629 dynamic_linker=no
13631 esac
13632 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13633 echo "${ECHO_T}$dynamic_linker" >&6; }
13634 test "$dynamic_linker" = no && can_build_shared=no
13636 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13637 if test "$GCC" = yes; then
13638 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13641 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13642 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13643 hardcode_action_CXX=
13644 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13645 test -n "$runpath_var_CXX" || \
13646 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13648 # We can hardcode non-existant directories.
13649 if test "$hardcode_direct_CXX" != no &&
13650 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13651 # have to relink, otherwise we might link with an installed library
13652 # when we should be linking with a yet-to-be-installed one
13653 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13654 test "$hardcode_minus_L_CXX" != no; then
13655 # Linking always hardcodes the temporary library directory.
13656 hardcode_action_CXX=relink
13657 else
13658 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13659 hardcode_action_CXX=immediate
13661 else
13662 # We cannot hardcode anything, or else we can only hardcode existing
13663 # directories.
13664 hardcode_action_CXX=unsupported
13666 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13667 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13669 if test "$hardcode_action_CXX" = relink; then
13670 # Fast installation is not supported
13671 enable_fast_install=no
13672 elif test "$shlibpath_overrides_runpath" = yes ||
13673 test "$enable_shared" = no; then
13674 # Fast installation is not necessary
13675 enable_fast_install=needless
13679 # The else clause should only fire when bootstrapping the
13680 # libtool distribution, otherwise you forgot to ship ltmain.sh
13681 # with your package, and you will get complaints that there are
13682 # no rules to generate ltmain.sh.
13683 if test -f "$ltmain"; then
13684 # See if we are running on zsh, and set the options which allow our commands through
13685 # without removal of \ escapes.
13686 if test -n "${ZSH_VERSION+set}" ; then
13687 setopt NO_GLOB_SUBST
13689 # Now quote all the things that may contain metacharacters while being
13690 # careful not to overquote the AC_SUBSTed values. We take copies of the
13691 # variables and quote the copies for generation of the libtool script.
13692 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13693 SED SHELL STRIP \
13694 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13695 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13696 deplibs_check_method reload_flag reload_cmds need_locks \
13697 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13698 lt_cv_sys_global_symbol_to_c_name_address \
13699 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13700 old_postinstall_cmds old_postuninstall_cmds \
13701 compiler_CXX \
13702 CC_CXX \
13703 LD_CXX \
13704 lt_prog_compiler_wl_CXX \
13705 lt_prog_compiler_pic_CXX \
13706 lt_prog_compiler_static_CXX \
13707 lt_prog_compiler_no_builtin_flag_CXX \
13708 export_dynamic_flag_spec_CXX \
13709 thread_safe_flag_spec_CXX \
13710 whole_archive_flag_spec_CXX \
13711 enable_shared_with_static_runtimes_CXX \
13712 old_archive_cmds_CXX \
13713 old_archive_from_new_cmds_CXX \
13714 predep_objects_CXX \
13715 postdep_objects_CXX \
13716 predeps_CXX \
13717 postdeps_CXX \
13718 compiler_lib_search_path_CXX \
13719 archive_cmds_CXX \
13720 archive_expsym_cmds_CXX \
13721 postinstall_cmds_CXX \
13722 postuninstall_cmds_CXX \
13723 old_archive_from_expsyms_cmds_CXX \
13724 allow_undefined_flag_CXX \
13725 no_undefined_flag_CXX \
13726 export_symbols_cmds_CXX \
13727 hardcode_libdir_flag_spec_CXX \
13728 hardcode_libdir_flag_spec_ld_CXX \
13729 hardcode_libdir_separator_CXX \
13730 hardcode_automatic_CXX \
13731 module_cmds_CXX \
13732 module_expsym_cmds_CXX \
13733 lt_cv_prog_compiler_c_o_CXX \
13734 fix_srcfile_path_CXX \
13735 exclude_expsyms_CXX \
13736 include_expsyms_CXX; do
13738 case $var in
13739 old_archive_cmds_CXX | \
13740 old_archive_from_new_cmds_CXX | \
13741 archive_cmds_CXX | \
13742 archive_expsym_cmds_CXX | \
13743 module_cmds_CXX | \
13744 module_expsym_cmds_CXX | \
13745 old_archive_from_expsyms_cmds_CXX | \
13746 export_symbols_cmds_CXX | \
13747 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13748 postinstall_cmds | postuninstall_cmds | \
13749 old_postinstall_cmds | old_postuninstall_cmds | \
13750 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13751 # Double-quote double-evaled strings.
13752 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13755 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13757 esac
13758 done
13760 case $lt_echo in
13761 *'\$0 --fallback-echo"')
13762 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13764 esac
13766 cfgfile="$ofile"
13768 cat <<__EOF__ >> "$cfgfile"
13769 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13771 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13773 # Shell to use when invoking shell scripts.
13774 SHELL=$lt_SHELL
13776 # Whether or not to build shared libraries.
13777 build_libtool_libs=$enable_shared
13779 # Whether or not to build static libraries.
13780 build_old_libs=$enable_static
13782 # Whether or not to add -lc for building shared libraries.
13783 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13785 # Whether or not to disallow shared libs when runtime libs are static
13786 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13788 # Whether or not to optimize for fast installation.
13789 fast_install=$enable_fast_install
13791 # The host system.
13792 host_alias=$host_alias
13793 host=$host
13794 host_os=$host_os
13796 # The build system.
13797 build_alias=$build_alias
13798 build=$build
13799 build_os=$build_os
13801 # An echo program that does not interpret backslashes.
13802 echo=$lt_echo
13804 # The archiver.
13805 AR=$lt_AR
13806 AR_FLAGS=$lt_AR_FLAGS
13808 # A C compiler.
13809 LTCC=$lt_LTCC
13811 # LTCC compiler flags.
13812 LTCFLAGS=$lt_LTCFLAGS
13814 # A language-specific compiler.
13815 CC=$lt_compiler_CXX
13817 # Is the compiler the GNU C compiler?
13818 with_gcc=$GCC_CXX
13820 # An ERE matcher.
13821 EGREP=$lt_EGREP
13823 # The linker used to build libraries.
13824 LD=$lt_LD_CXX
13826 # Whether we need hard or soft links.
13827 LN_S=$lt_LN_S
13829 # A BSD-compatible nm program.
13830 NM=$lt_NM
13832 # A symbol stripping program
13833 STRIP=$lt_STRIP
13835 # Used to examine libraries when file_magic_cmd begins "file"
13836 MAGIC_CMD=$MAGIC_CMD
13838 # Used on cygwin: DLL creation program.
13839 DLLTOOL="$DLLTOOL"
13841 # Used on cygwin: object dumper.
13842 OBJDUMP="$OBJDUMP"
13844 # Used on cygwin: assembler.
13845 AS="$AS"
13847 # The name of the directory that contains temporary libtool files.
13848 objdir=$objdir
13850 # How to create reloadable object files.
13851 reload_flag=$lt_reload_flag
13852 reload_cmds=$lt_reload_cmds
13854 # How to pass a linker flag through the compiler.
13855 wl=$lt_lt_prog_compiler_wl_CXX
13857 # Object file suffix (normally "o").
13858 objext="$ac_objext"
13860 # Old archive suffix (normally "a").
13861 libext="$libext"
13863 # Shared library suffix (normally ".so").
13864 shrext_cmds='$shrext_cmds'
13866 # Executable file suffix (normally "").
13867 exeext="$exeext"
13869 # Additional compiler flags for building library objects.
13870 pic_flag=$lt_lt_prog_compiler_pic_CXX
13871 pic_mode=$pic_mode
13873 # What is the maximum length of a command?
13874 max_cmd_len=$lt_cv_sys_max_cmd_len
13876 # Does compiler simultaneously support -c and -o options?
13877 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13879 # Must we lock files when doing compilation?
13880 need_locks=$lt_need_locks
13882 # Do we need the lib prefix for modules?
13883 need_lib_prefix=$need_lib_prefix
13885 # Do we need a version for libraries?
13886 need_version=$need_version
13888 # Whether dlopen is supported.
13889 dlopen_support=$enable_dlopen
13891 # Whether dlopen of programs is supported.
13892 dlopen_self=$enable_dlopen_self
13894 # Whether dlopen of statically linked programs is supported.
13895 dlopen_self_static=$enable_dlopen_self_static
13897 # Compiler flag to prevent dynamic linking.
13898 link_static_flag=$lt_lt_prog_compiler_static_CXX
13900 # Compiler flag to turn off builtin functions.
13901 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13903 # Compiler flag to allow reflexive dlopens.
13904 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13906 # Compiler flag to generate shared objects directly from archives.
13907 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13909 # Compiler flag to generate thread-safe objects.
13910 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13912 # Library versioning type.
13913 version_type=$version_type
13915 # Format of library name prefix.
13916 libname_spec=$lt_libname_spec
13918 # List of archive names. First name is the real one, the rest are links.
13919 # The last name is the one that the linker finds with -lNAME.
13920 library_names_spec=$lt_library_names_spec
13922 # The coded name of the library, if different from the real name.
13923 soname_spec=$lt_soname_spec
13925 # Commands used to build and install an old-style archive.
13926 RANLIB=$lt_RANLIB
13927 old_archive_cmds=$lt_old_archive_cmds_CXX
13928 old_postinstall_cmds=$lt_old_postinstall_cmds
13929 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13931 # Create an old-style archive from a shared archive.
13932 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13934 # Create a temporary old-style archive to link instead of a shared archive.
13935 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13937 # Commands used to build and install a shared archive.
13938 archive_cmds=$lt_archive_cmds_CXX
13939 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13940 postinstall_cmds=$lt_postinstall_cmds
13941 postuninstall_cmds=$lt_postuninstall_cmds
13943 # Commands used to build a loadable module (assumed same as above if empty)
13944 module_cmds=$lt_module_cmds_CXX
13945 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13947 # Commands to strip libraries.
13948 old_striplib=$lt_old_striplib
13949 striplib=$lt_striplib
13951 # Dependencies to place before the objects being linked to create a
13952 # shared library.
13953 predep_objects=$lt_predep_objects_CXX
13955 # Dependencies to place after the objects being linked to create a
13956 # shared library.
13957 postdep_objects=$lt_postdep_objects_CXX
13959 # Dependencies to place before the objects being linked to create a
13960 # shared library.
13961 predeps=$lt_predeps_CXX
13963 # Dependencies to place after the objects being linked to create a
13964 # shared library.
13965 postdeps=$lt_postdeps_CXX
13967 # The library search path used internally by the compiler when linking
13968 # a shared library.
13969 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13971 # Method to check whether dependent libraries are shared objects.
13972 deplibs_check_method=$lt_deplibs_check_method
13974 # Command to use when deplibs_check_method == file_magic.
13975 file_magic_cmd=$lt_file_magic_cmd
13977 # Flag that allows shared libraries with undefined symbols to be built.
13978 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13980 # Flag that forces no undefined symbols.
13981 no_undefined_flag=$lt_no_undefined_flag_CXX
13983 # Commands used to finish a libtool library installation in a directory.
13984 finish_cmds=$lt_finish_cmds
13986 # Same as above, but a single script fragment to be evaled but not shown.
13987 finish_eval=$lt_finish_eval
13989 # Take the output of nm and produce a listing of raw symbols and C names.
13990 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13992 # Transform the output of nm in a proper C declaration
13993 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13995 # Transform the output of nm in a C name address pair
13996 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13998 # This is the shared library runtime path variable.
13999 runpath_var=$runpath_var
14001 # This is the shared library path variable.
14002 shlibpath_var=$shlibpath_var
14004 # Is shlibpath searched before the hard-coded library search path?
14005 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14007 # How to hardcode a shared library path into an executable.
14008 hardcode_action=$hardcode_action_CXX
14010 # Whether we should hardcode library paths into libraries.
14011 hardcode_into_libs=$hardcode_into_libs
14013 # Flag to hardcode \$libdir into a binary during linking.
14014 # This must work even if \$libdir does not exist.
14015 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14017 # If ld is used when linking, flag to hardcode \$libdir into
14018 # a binary during linking. This must work even if \$libdir does
14019 # not exist.
14020 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14022 # Whether we need a single -rpath flag with a separated argument.
14023 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14025 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14026 # resulting binary.
14027 hardcode_direct=$hardcode_direct_CXX
14029 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14030 # resulting binary.
14031 hardcode_minus_L=$hardcode_minus_L_CXX
14033 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14034 # the resulting binary.
14035 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14037 # Set to yes if building a shared library automatically hardcodes DIR into the library
14038 # and all subsequent libraries and executables linked against it.
14039 hardcode_automatic=$hardcode_automatic_CXX
14041 # Variables whose values should be saved in libtool wrapper scripts and
14042 # restored at relink time.
14043 variables_saved_for_relink="$variables_saved_for_relink"
14045 # Whether libtool must link a program against all its dependency libraries.
14046 link_all_deplibs=$link_all_deplibs_CXX
14048 # Compile-time system search path for libraries
14049 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14051 # Run-time system search path for libraries
14052 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14054 # Fix the shell variable \$srcfile for the compiler.
14055 fix_srcfile_path=$lt_fix_srcfile_path
14057 # Set to yes if exported symbols are required.
14058 always_export_symbols=$always_export_symbols_CXX
14060 # The commands to list exported symbols.
14061 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14063 # The commands to extract the exported symbol list from a shared archive.
14064 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14066 # Symbols that should not be listed in the preloaded symbols.
14067 exclude_expsyms=$lt_exclude_expsyms_CXX
14069 # Symbols that must always be exported.
14070 include_expsyms=$lt_include_expsyms_CXX
14072 # ### END LIBTOOL TAG CONFIG: $tagname
14074 __EOF__
14077 else
14078 # If there is no Makefile yet, we rely on a make rule to execute
14079 # `config.status --recheck' to rerun these tests and create the
14080 # libtool script then.
14081 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14082 if test -f "$ltmain_in"; then
14083 test -f Makefile && make "$ltmain"
14088 ac_ext=c
14089 ac_cpp='$CPP $CPPFLAGS'
14090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14094 CC=$lt_save_CC
14095 LDCXX=$LD
14096 LD=$lt_save_LD
14097 GCC=$lt_save_GCC
14098 with_gnu_ldcxx=$with_gnu_ld
14099 with_gnu_ld=$lt_save_with_gnu_ld
14100 lt_cv_path_LDCXX=$lt_cv_path_LD
14101 lt_cv_path_LD=$lt_save_path_LD
14102 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14103 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14105 else
14106 tagname=""
14110 F77)
14111 if test -n "$F77" && test "X$F77" != "Xno"; then
14113 ac_ext=f
14114 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14115 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14116 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14119 archive_cmds_need_lc_F77=no
14120 allow_undefined_flag_F77=
14121 always_export_symbols_F77=no
14122 archive_expsym_cmds_F77=
14123 export_dynamic_flag_spec_F77=
14124 hardcode_direct_F77=no
14125 hardcode_libdir_flag_spec_F77=
14126 hardcode_libdir_flag_spec_ld_F77=
14127 hardcode_libdir_separator_F77=
14128 hardcode_minus_L_F77=no
14129 hardcode_automatic_F77=no
14130 module_cmds_F77=
14131 module_expsym_cmds_F77=
14132 link_all_deplibs_F77=unknown
14133 old_archive_cmds_F77=$old_archive_cmds
14134 no_undefined_flag_F77=
14135 whole_archive_flag_spec_F77=
14136 enable_shared_with_static_runtimes_F77=no
14138 # Source file extension for f77 test sources.
14139 ac_ext=f
14141 # Object file extension for compiled f77 test sources.
14142 objext=o
14143 objext_F77=$objext
14145 # Code to be used in simple compile tests
14146 lt_simple_compile_test_code="\
14147 subroutine t
14148 return
14152 # Code to be used in simple link tests
14153 lt_simple_link_test_code="\
14154 program t
14158 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14160 # If no C compiler was specified, use CC.
14161 LTCC=${LTCC-"$CC"}
14163 # If no C compiler flags were specified, use CFLAGS.
14164 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14166 # Allow CC to be a program name with arguments.
14167 compiler=$CC
14170 # save warnings/boilerplate of simple test code
14171 ac_outfile=conftest.$ac_objext
14172 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14173 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14174 _lt_compiler_boilerplate=`cat conftest.err`
14175 $rm conftest*
14177 ac_outfile=conftest.$ac_objext
14178 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14179 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14180 _lt_linker_boilerplate=`cat conftest.err`
14181 $rm conftest*
14184 # Allow CC to be a program name with arguments.
14185 lt_save_CC="$CC"
14186 CC=${F77-"f77"}
14187 compiler=$CC
14188 compiler_F77=$CC
14189 for cc_temp in $compiler""; do
14190 case $cc_temp in
14191 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14192 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14193 \-*) ;;
14194 *) break;;
14195 esac
14196 done
14197 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14200 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14201 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14202 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14203 echo "${ECHO_T}$can_build_shared" >&6; }
14205 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14206 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14207 test "$can_build_shared" = "no" && enable_shared=no
14209 # On AIX, shared libraries and static libraries use the same namespace, and
14210 # are all built from PIC.
14211 case $host_os in
14212 aix3*)
14213 test "$enable_shared" = yes && enable_static=no
14214 if test -n "$RANLIB"; then
14215 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14216 postinstall_cmds='$RANLIB $lib'
14219 aix4* | aix5*)
14220 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14221 test "$enable_shared" = yes && enable_static=no
14224 esac
14225 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14226 echo "${ECHO_T}$enable_shared" >&6; }
14228 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14229 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14230 # Make sure either enable_shared or enable_static is yes.
14231 test "$enable_shared" = yes || enable_static=yes
14232 { echo "$as_me:$LINENO: result: $enable_static" >&5
14233 echo "${ECHO_T}$enable_static" >&6; }
14235 GCC_F77="$G77"
14236 LD_F77="$LD"
14238 lt_prog_compiler_wl_F77=
14239 lt_prog_compiler_pic_F77=
14240 lt_prog_compiler_static_F77=
14242 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14243 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14245 if test "$GCC" = yes; then
14246 lt_prog_compiler_wl_F77='-Wl,'
14247 lt_prog_compiler_static_F77='-static'
14249 case $host_os in
14250 aix*)
14251 # All AIX code is PIC.
14252 if test "$host_cpu" = ia64; then
14253 # AIX 5 now supports IA64 processor
14254 lt_prog_compiler_static_F77='-Bstatic'
14258 amigaos*)
14259 # FIXME: we need at least 68020 code to build shared libraries, but
14260 # adding the `-m68020' flag to GCC prevents building anything better,
14261 # like `-m68040'.
14262 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14265 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14266 # PIC is the default for these OSes.
14269 mingw* | cygwin* | pw32* | os2*)
14270 # This hack is so that the source file can tell whether it is being
14271 # built for inclusion in a dll (and should export symbols for example).
14272 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14273 # (--disable-auto-import) libraries
14274 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14277 darwin* | rhapsody*)
14278 # PIC is the default on this platform
14279 # Common symbols not allowed in MH_DYLIB files
14280 lt_prog_compiler_pic_F77='-fno-common'
14283 interix[3-9]*)
14284 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14285 # Instead, we relocate shared libraries at runtime.
14288 msdosdjgpp*)
14289 # Just because we use GCC doesn't mean we suddenly get shared libraries
14290 # on systems that don't support them.
14291 lt_prog_compiler_can_build_shared_F77=no
14292 enable_shared=no
14295 sysv4*MP*)
14296 if test -d /usr/nec; then
14297 lt_prog_compiler_pic_F77=-Kconform_pic
14301 hpux*)
14302 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14303 # not for PA HP-UX.
14304 case $host_cpu in
14305 hppa*64*|ia64*)
14306 # +Z the default
14309 lt_prog_compiler_pic_F77='-fPIC'
14311 esac
14315 lt_prog_compiler_pic_F77='-fPIC'
14317 esac
14318 else
14319 # PORTME Check for flag to pass linker flags through the system compiler.
14320 case $host_os in
14321 aix*)
14322 lt_prog_compiler_wl_F77='-Wl,'
14323 if test "$host_cpu" = ia64; then
14324 # AIX 5 now supports IA64 processor
14325 lt_prog_compiler_static_F77='-Bstatic'
14326 else
14327 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14330 darwin*)
14331 # PIC is the default on this platform
14332 # Common symbols not allowed in MH_DYLIB files
14333 case $cc_basename in
14334 xlc*)
14335 lt_prog_compiler_pic_F77='-qnocommon'
14336 lt_prog_compiler_wl_F77='-Wl,'
14338 esac
14341 mingw* | cygwin* | pw32* | os2*)
14342 # This hack is so that the source file can tell whether it is being
14343 # built for inclusion in a dll (and should export symbols for example).
14344 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14347 hpux9* | hpux10* | hpux11*)
14348 lt_prog_compiler_wl_F77='-Wl,'
14349 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14350 # not for PA HP-UX.
14351 case $host_cpu in
14352 hppa*64*|ia64*)
14353 # +Z the default
14356 lt_prog_compiler_pic_F77='+Z'
14358 esac
14359 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14360 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14363 irix5* | irix6* | nonstopux*)
14364 lt_prog_compiler_wl_F77='-Wl,'
14365 # PIC (with -KPIC) is the default.
14366 lt_prog_compiler_static_F77='-non_shared'
14369 newsos6)
14370 lt_prog_compiler_pic_F77='-KPIC'
14371 lt_prog_compiler_static_F77='-Bstatic'
14374 linux* | k*bsd*-gnu)
14375 case $cc_basename in
14376 icc* | ecc*)
14377 lt_prog_compiler_wl_F77='-Wl,'
14378 lt_prog_compiler_pic_F77='-KPIC'
14379 lt_prog_compiler_static_F77='-static'
14381 pgcc* | pgf77* | pgf90* | pgf95*)
14382 # Portland Group compilers (*not* the Pentium gcc compiler,
14383 # which looks to be a dead project)
14384 lt_prog_compiler_wl_F77='-Wl,'
14385 lt_prog_compiler_pic_F77='-fpic'
14386 lt_prog_compiler_static_F77='-Bstatic'
14388 ccc*)
14389 lt_prog_compiler_wl_F77='-Wl,'
14390 # All Alpha code is PIC.
14391 lt_prog_compiler_static_F77='-non_shared'
14394 case `$CC -V 2>&1 | sed 5q` in
14395 *Sun\ C*)
14396 # Sun C 5.9
14397 lt_prog_compiler_pic_F77='-KPIC'
14398 lt_prog_compiler_static_F77='-Bstatic'
14399 lt_prog_compiler_wl_F77='-Wl,'
14401 *Sun\ F*)
14402 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14403 lt_prog_compiler_pic_F77='-KPIC'
14404 lt_prog_compiler_static_F77='-Bstatic'
14405 lt_prog_compiler_wl_F77=''
14407 esac
14409 esac
14412 osf3* | osf4* | osf5*)
14413 lt_prog_compiler_wl_F77='-Wl,'
14414 # All OSF/1 code is PIC.
14415 lt_prog_compiler_static_F77='-non_shared'
14418 rdos*)
14419 lt_prog_compiler_static_F77='-non_shared'
14422 solaris*)
14423 lt_prog_compiler_pic_F77='-KPIC'
14424 lt_prog_compiler_static_F77='-Bstatic'
14425 case $cc_basename in
14426 f77* | f90* | f95*)
14427 lt_prog_compiler_wl_F77='-Qoption ld ';;
14429 lt_prog_compiler_wl_F77='-Wl,';;
14430 esac
14433 sunos4*)
14434 lt_prog_compiler_wl_F77='-Qoption ld '
14435 lt_prog_compiler_pic_F77='-PIC'
14436 lt_prog_compiler_static_F77='-Bstatic'
14439 sysv4 | sysv4.2uw2* | sysv4.3*)
14440 lt_prog_compiler_wl_F77='-Wl,'
14441 lt_prog_compiler_pic_F77='-KPIC'
14442 lt_prog_compiler_static_F77='-Bstatic'
14445 sysv4*MP*)
14446 if test -d /usr/nec ;then
14447 lt_prog_compiler_pic_F77='-Kconform_pic'
14448 lt_prog_compiler_static_F77='-Bstatic'
14452 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14453 lt_prog_compiler_wl_F77='-Wl,'
14454 lt_prog_compiler_pic_F77='-KPIC'
14455 lt_prog_compiler_static_F77='-Bstatic'
14458 unicos*)
14459 lt_prog_compiler_wl_F77='-Wl,'
14460 lt_prog_compiler_can_build_shared_F77=no
14463 uts4*)
14464 lt_prog_compiler_pic_F77='-pic'
14465 lt_prog_compiler_static_F77='-Bstatic'
14469 lt_prog_compiler_can_build_shared_F77=no
14471 esac
14474 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14475 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14478 # Check to make sure the PIC flag actually works.
14480 if test -n "$lt_prog_compiler_pic_F77"; then
14482 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14483 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14484 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14485 echo $ECHO_N "(cached) $ECHO_C" >&6
14486 else
14487 lt_prog_compiler_pic_works_F77=no
14488 ac_outfile=conftest.$ac_objext
14489 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14490 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14491 # Insert the option either (1) after the last *FLAGS variable, or
14492 # (2) before a word containing "conftest.", or (3) at the end.
14493 # Note that $ac_compile itself does not contain backslashes and begins
14494 # with a dollar sign (not a hyphen), so the echo should work correctly.
14495 # The option is referenced via a variable to avoid confusing sed.
14496 lt_compile=`echo "$ac_compile" | $SED \
14497 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14498 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14499 -e 's:$: $lt_compiler_flag:'`
14500 (eval echo "\"\$as_me:14500: $lt_compile\"" >&5)
14501 (eval "$lt_compile" 2>conftest.err)
14502 ac_status=$?
14503 cat conftest.err >&5
14504 echo "$as_me:14504: \$? = $ac_status" >&5
14505 if (exit $ac_status) && test -s "$ac_outfile"; then
14506 # The compiler can only warn and ignore the option if not recognized
14507 # So say no if there are warnings other than the usual output.
14508 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14509 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14510 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14511 lt_prog_compiler_pic_works_F77=yes
14514 $rm conftest*
14517 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14518 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14520 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14521 case $lt_prog_compiler_pic_F77 in
14522 "" | " "*) ;;
14523 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14524 esac
14525 else
14526 lt_prog_compiler_pic_F77=
14527 lt_prog_compiler_can_build_shared_F77=no
14531 case $host_os in
14532 # For platforms which do not support PIC, -DPIC is meaningless:
14533 *djgpp*)
14534 lt_prog_compiler_pic_F77=
14537 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14539 esac
14542 # Check to make sure the static flag actually works.
14544 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14545 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14546 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14547 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14548 echo $ECHO_N "(cached) $ECHO_C" >&6
14549 else
14550 lt_prog_compiler_static_works_F77=no
14551 save_LDFLAGS="$LDFLAGS"
14552 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14553 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14554 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14555 # The linker can only warn and ignore the option if not recognized
14556 # So say no if there are warnings
14557 if test -s conftest.err; then
14558 # Append any errors to the config.log.
14559 cat conftest.err 1>&5
14560 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14561 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14562 if diff conftest.exp conftest.er2 >/dev/null; then
14563 lt_prog_compiler_static_works_F77=yes
14565 else
14566 lt_prog_compiler_static_works_F77=yes
14569 $rm conftest*
14570 LDFLAGS="$save_LDFLAGS"
14573 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14574 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14576 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14578 else
14579 lt_prog_compiler_static_F77=
14583 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14584 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14585 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14586 echo $ECHO_N "(cached) $ECHO_C" >&6
14587 else
14588 lt_cv_prog_compiler_c_o_F77=no
14589 $rm -r conftest 2>/dev/null
14590 mkdir conftest
14591 cd conftest
14592 mkdir out
14593 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14595 lt_compiler_flag="-o out/conftest2.$ac_objext"
14596 # Insert the option either (1) after the last *FLAGS variable, or
14597 # (2) before a word containing "conftest.", or (3) at the end.
14598 # Note that $ac_compile itself does not contain backslashes and begins
14599 # with a dollar sign (not a hyphen), so the echo should work correctly.
14600 lt_compile=`echo "$ac_compile" | $SED \
14601 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14602 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14603 -e 's:$: $lt_compiler_flag:'`
14604 (eval echo "\"\$as_me:14604: $lt_compile\"" >&5)
14605 (eval "$lt_compile" 2>out/conftest.err)
14606 ac_status=$?
14607 cat out/conftest.err >&5
14608 echo "$as_me:14608: \$? = $ac_status" >&5
14609 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14610 then
14611 # The compiler can only warn and ignore the option if not recognized
14612 # So say no if there are warnings
14613 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14614 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14615 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14616 lt_cv_prog_compiler_c_o_F77=yes
14619 chmod u+w . 2>&5
14620 $rm conftest*
14621 # SGI C++ compiler will create directory out/ii_files/ for
14622 # template instantiation
14623 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14624 $rm out/* && rmdir out
14625 cd ..
14626 rmdir conftest
14627 $rm conftest*
14630 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14631 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14634 hard_links="nottested"
14635 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14636 # do not overwrite the value of need_locks provided by the user
14637 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14638 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14639 hard_links=yes
14640 $rm conftest*
14641 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14642 touch conftest.a
14643 ln conftest.a conftest.b 2>&5 || hard_links=no
14644 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14645 { echo "$as_me:$LINENO: result: $hard_links" >&5
14646 echo "${ECHO_T}$hard_links" >&6; }
14647 if test "$hard_links" = no; then
14648 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14649 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14650 need_locks=warn
14652 else
14653 need_locks=no
14656 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14657 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14659 runpath_var=
14660 allow_undefined_flag_F77=
14661 enable_shared_with_static_runtimes_F77=no
14662 archive_cmds_F77=
14663 archive_expsym_cmds_F77=
14664 old_archive_From_new_cmds_F77=
14665 old_archive_from_expsyms_cmds_F77=
14666 export_dynamic_flag_spec_F77=
14667 whole_archive_flag_spec_F77=
14668 thread_safe_flag_spec_F77=
14669 hardcode_libdir_flag_spec_F77=
14670 hardcode_libdir_flag_spec_ld_F77=
14671 hardcode_libdir_separator_F77=
14672 hardcode_direct_F77=no
14673 hardcode_minus_L_F77=no
14674 hardcode_shlibpath_var_F77=unsupported
14675 link_all_deplibs_F77=unknown
14676 hardcode_automatic_F77=no
14677 module_cmds_F77=
14678 module_expsym_cmds_F77=
14679 always_export_symbols_F77=no
14680 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14681 # include_expsyms should be a list of space-separated symbols to be *always*
14682 # included in the symbol list
14683 include_expsyms_F77=
14684 # exclude_expsyms can be an extended regexp of symbols to exclude
14685 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14686 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14687 # as well as any symbol that contains `d'.
14688 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14689 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14690 # platforms (ab)use it in PIC code, but their linkers get confused if
14691 # the symbol is explicitly referenced. Since portable code cannot
14692 # rely on this symbol name, it's probably fine to never include it in
14693 # preloaded symbol tables.
14694 extract_expsyms_cmds=
14695 # Just being paranoid about ensuring that cc_basename is set.
14696 for cc_temp in $compiler""; do
14697 case $cc_temp in
14698 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14699 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14700 \-*) ;;
14701 *) break;;
14702 esac
14703 done
14704 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14706 case $host_os in
14707 cygwin* | mingw* | pw32*)
14708 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14709 # When not using gcc, we currently assume that we are using
14710 # Microsoft Visual C++.
14711 if test "$GCC" != yes; then
14712 with_gnu_ld=no
14715 interix*)
14716 # we just hope/assume this is gcc and not c89 (= MSVC++)
14717 with_gnu_ld=yes
14719 openbsd*)
14720 with_gnu_ld=no
14722 esac
14724 ld_shlibs_F77=yes
14725 if test "$with_gnu_ld" = yes; then
14726 # If archive_cmds runs LD, not CC, wlarc should be empty
14727 wlarc='${wl}'
14729 # Set some defaults for GNU ld with shared library support. These
14730 # are reset later if shared libraries are not supported. Putting them
14731 # here allows them to be overridden if necessary.
14732 runpath_var=LD_RUN_PATH
14733 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14734 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14735 # ancient GNU ld didn't support --whole-archive et. al.
14736 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14737 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14738 else
14739 whole_archive_flag_spec_F77=
14741 supports_anon_versioning=no
14742 case `$LD -v 2>/dev/null` in
14743 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14744 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14745 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14746 *\ 2.11.*) ;; # other 2.11 versions
14747 *) supports_anon_versioning=yes ;;
14748 esac
14750 # See if GNU ld supports shared libraries.
14751 case $host_os in
14752 aix3* | aix4* | aix5*)
14753 # On AIX/PPC, the GNU linker is very broken
14754 if test "$host_cpu" != ia64; then
14755 ld_shlibs_F77=no
14756 cat <<EOF 1>&2
14758 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14759 *** to be unable to reliably create shared libraries on AIX.
14760 *** Therefore, libtool is disabling shared libraries support. If you
14761 *** really care for shared libraries, you may want to modify your PATH
14762 *** so that a non-GNU linker is found, and then restart.
14768 amigaos*)
14769 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)'
14770 hardcode_libdir_flag_spec_F77='-L$libdir'
14771 hardcode_minus_L_F77=yes
14773 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14774 # that the semantics of dynamic libraries on AmigaOS, at least up
14775 # to version 4, is to share data among multiple programs linked
14776 # with the same dynamic library. Since this doesn't match the
14777 # behavior of shared libraries on other platforms, we can't use
14778 # them.
14779 ld_shlibs_F77=no
14782 beos*)
14783 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14784 allow_undefined_flag_F77=unsupported
14785 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14786 # support --undefined. This deserves some investigation. FIXME
14787 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14788 else
14789 ld_shlibs_F77=no
14793 cygwin* | mingw* | pw32*)
14794 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14795 # as there is no search path for DLLs.
14796 hardcode_libdir_flag_spec_F77='-L$libdir'
14797 allow_undefined_flag_F77=unsupported
14798 always_export_symbols_F77=no
14799 enable_shared_with_static_runtimes_F77=yes
14800 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14802 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14803 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14804 # If the export-symbols file already is a .def file (1st line
14805 # is EXPORTS), use it as is; otherwise, prepend...
14806 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14807 cp $export_symbols $output_objdir/$soname.def;
14808 else
14809 echo EXPORTS > $output_objdir/$soname.def;
14810 cat $export_symbols >> $output_objdir/$soname.def;
14812 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14813 else
14814 ld_shlibs_F77=no
14818 interix[3-9]*)
14819 hardcode_direct_F77=no
14820 hardcode_shlibpath_var_F77=no
14821 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14822 export_dynamic_flag_spec_F77='${wl}-E'
14823 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14824 # Instead, shared libraries are loaded at an image base (0x10000000 by
14825 # default) and relocated if they conflict, which is a slow very memory
14826 # consuming and fragmenting process. To avoid this, we pick a random,
14827 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14828 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14829 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'
14830 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'
14833 gnu* | linux* | k*bsd*-gnu)
14834 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14835 tmp_addflag=
14836 case $cc_basename,$host_cpu in
14837 pgcc*) # Portland Group C compiler
14838 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'
14839 tmp_addflag=' $pic_flag'
14841 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14842 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'
14843 tmp_addflag=' $pic_flag -Mnomain' ;;
14844 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14845 tmp_addflag=' -i_dynamic' ;;
14846 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14847 tmp_addflag=' -i_dynamic -nofor_main' ;;
14848 ifc* | ifort*) # Intel Fortran compiler
14849 tmp_addflag=' -nofor_main' ;;
14850 esac
14851 case `$CC -V 2>&1 | sed 5q` in
14852 *Sun\ C*) # Sun C 5.9
14853 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14854 tmp_sharedflag='-G' ;;
14855 *Sun\ F*) # Sun Fortran 8.3
14856 tmp_sharedflag='-G' ;;
14858 tmp_sharedflag='-shared' ;;
14859 esac
14860 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14862 if test $supports_anon_versioning = yes; then
14863 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14864 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14865 $echo "local: *; };" >> $output_objdir/$libname.ver~
14866 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14868 else
14869 ld_shlibs_F77=no
14873 netbsd*)
14874 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14875 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14876 wlarc=
14877 else
14878 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14879 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14883 solaris*)
14884 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14885 ld_shlibs_F77=no
14886 cat <<EOF 1>&2
14888 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14889 *** create shared libraries on Solaris systems. Therefore, libtool
14890 *** is disabling shared libraries support. We urge you to upgrade GNU
14891 *** binutils to release 2.9.1 or newer. Another option is to modify
14892 *** your PATH or compiler configuration so that the native linker is
14893 *** used, and then restart.
14896 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14897 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14898 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14899 else
14900 ld_shlibs_F77=no
14904 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14905 case `$LD -v 2>&1` in
14906 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14907 ld_shlibs_F77=no
14908 cat <<_LT_EOF 1>&2
14910 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14911 *** reliably create shared libraries on SCO systems. Therefore, libtool
14912 *** is disabling shared libraries support. We urge you to upgrade GNU
14913 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14914 *** your PATH or compiler configuration so that the native linker is
14915 *** used, and then restart.
14917 _LT_EOF
14920 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14921 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14922 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14923 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14924 else
14925 ld_shlibs_F77=no
14928 esac
14931 sunos4*)
14932 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14933 wlarc=
14934 hardcode_direct_F77=yes
14935 hardcode_shlibpath_var_F77=no
14939 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14940 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14941 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14942 else
14943 ld_shlibs_F77=no
14946 esac
14948 if test "$ld_shlibs_F77" = no; then
14949 runpath_var=
14950 hardcode_libdir_flag_spec_F77=
14951 export_dynamic_flag_spec_F77=
14952 whole_archive_flag_spec_F77=
14954 else
14955 # PORTME fill in a description of your system's linker (not GNU ld)
14956 case $host_os in
14957 aix3*)
14958 allow_undefined_flag_F77=unsupported
14959 always_export_symbols_F77=yes
14960 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'
14961 # Note: this linker hardcodes the directories in LIBPATH if there
14962 # are no directories specified by -L.
14963 hardcode_minus_L_F77=yes
14964 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14965 # Neither direct hardcoding nor static linking is supported with a
14966 # broken collect2.
14967 hardcode_direct_F77=unsupported
14971 aix4* | aix5*)
14972 if test "$host_cpu" = ia64; then
14973 # On IA64, the linker does run time linking by default, so we don't
14974 # have to do anything special.
14975 aix_use_runtimelinking=no
14976 exp_sym_flag='-Bexport'
14977 no_entry_flag=""
14978 else
14979 # If we're using GNU nm, then we don't want the "-C" option.
14980 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14981 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14982 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'
14983 else
14984 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'
14986 aix_use_runtimelinking=no
14988 # Test if we are trying to use run time linking or normal
14989 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14990 # need to do runtime linking.
14991 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14992 for ld_flag in $LDFLAGS; do
14993 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14994 aix_use_runtimelinking=yes
14995 break
14997 done
14999 esac
15001 exp_sym_flag='-bexport'
15002 no_entry_flag='-bnoentry'
15005 # When large executables or shared objects are built, AIX ld can
15006 # have problems creating the table of contents. If linking a library
15007 # or program results in "error TOC overflow" add -mminimal-toc to
15008 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15009 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15011 archive_cmds_F77=''
15012 hardcode_direct_F77=yes
15013 hardcode_libdir_separator_F77=':'
15014 link_all_deplibs_F77=yes
15016 if test "$GCC" = yes; then
15017 case $host_os in aix4.[012]|aix4.[012].*)
15018 # We only want to do this on AIX 4.2 and lower, the check
15019 # below for broken collect2 doesn't work under 4.3+
15020 collect2name=`${CC} -print-prog-name=collect2`
15021 if test -f "$collect2name" && \
15022 strings "$collect2name" | grep resolve_lib_name >/dev/null
15023 then
15024 # We have reworked collect2
15026 else
15027 # We have old collect2
15028 hardcode_direct_F77=unsupported
15029 # It fails to find uninstalled libraries when the uninstalled
15030 # path is not listed in the libpath. Setting hardcode_minus_L
15031 # to unsupported forces relinking
15032 hardcode_minus_L_F77=yes
15033 hardcode_libdir_flag_spec_F77='-L$libdir'
15034 hardcode_libdir_separator_F77=
15037 esac
15038 shared_flag='-shared'
15039 if test "$aix_use_runtimelinking" = yes; then
15040 shared_flag="$shared_flag "'${wl}-G'
15042 else
15043 # not using gcc
15044 if test "$host_cpu" = ia64; then
15045 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15046 # chokes on -Wl,-G. The following line is correct:
15047 shared_flag='-G'
15048 else
15049 if test "$aix_use_runtimelinking" = yes; then
15050 shared_flag='${wl}-G'
15051 else
15052 shared_flag='${wl}-bM:SRE'
15057 # It seems that -bexpall does not export symbols beginning with
15058 # underscore (_), so it is better to generate a list of symbols to export.
15059 always_export_symbols_F77=yes
15060 if test "$aix_use_runtimelinking" = yes; then
15061 # Warning - without using the other runtime loading flags (-brtl),
15062 # -berok will link without error, but may produce a broken library.
15063 allow_undefined_flag_F77='-berok'
15064 # Determine the default libpath from the value encoded in an empty executable.
15065 cat >conftest.$ac_ext <<_ACEOF
15066 program main
15069 _ACEOF
15070 rm -f conftest.$ac_objext conftest$ac_exeext
15071 if { (ac_try="$ac_link"
15072 case "(($ac_try" in
15073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15074 *) ac_try_echo=$ac_try;;
15075 esac
15076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 test -z "$ac_f77_werror_flag" ||
15085 test ! -s conftest.err
15086 } && test -s conftest$ac_exeext &&
15087 $as_test_x conftest$ac_exeext; then
15089 lt_aix_libpath_sed='
15090 /Import File Strings/,/^$/ {
15091 /^0/ {
15092 s/^0 *\(.*\)$/\1/
15096 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15097 # Check for a 64-bit object if we didn't find anything.
15098 if test -z "$aix_libpath"; then
15099 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15101 else
15102 echo "$as_me: failed program was:" >&5
15103 sed 's/^/| /' conftest.$ac_ext >&5
15108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15109 conftest$ac_exeext conftest.$ac_ext
15110 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15112 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15113 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"
15114 else
15115 if test "$host_cpu" = ia64; then
15116 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15117 allow_undefined_flag_F77="-z nodefs"
15118 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"
15119 else
15120 # Determine the default libpath from the value encoded in an empty executable.
15121 cat >conftest.$ac_ext <<_ACEOF
15122 program main
15125 _ACEOF
15126 rm -f conftest.$ac_objext conftest$ac_exeext
15127 if { (ac_try="$ac_link"
15128 case "(($ac_try" in
15129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15130 *) ac_try_echo=$ac_try;;
15131 esac
15132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15133 (eval "$ac_link") 2>conftest.er1
15134 ac_status=$?
15135 grep -v '^ *+' conftest.er1 >conftest.err
15136 rm -f conftest.er1
15137 cat conftest.err >&5
15138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139 (exit $ac_status); } && {
15140 test -z "$ac_f77_werror_flag" ||
15141 test ! -s conftest.err
15142 } && test -s conftest$ac_exeext &&
15143 $as_test_x conftest$ac_exeext; then
15145 lt_aix_libpath_sed='
15146 /Import File Strings/,/^$/ {
15147 /^0/ {
15148 s/^0 *\(.*\)$/\1/
15152 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15153 # Check for a 64-bit object if we didn't find anything.
15154 if test -z "$aix_libpath"; then
15155 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15157 else
15158 echo "$as_me: failed program was:" >&5
15159 sed 's/^/| /' conftest.$ac_ext >&5
15164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15165 conftest$ac_exeext conftest.$ac_ext
15166 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15168 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15169 # Warning - without using the other run time loading flags,
15170 # -berok will link without error, but may produce a broken library.
15171 no_undefined_flag_F77=' ${wl}-bernotok'
15172 allow_undefined_flag_F77=' ${wl}-berok'
15173 # Exported symbols can be pulled into shared objects from archives
15174 whole_archive_flag_spec_F77='$convenience'
15175 archive_cmds_need_lc_F77=yes
15176 # This is similar to how AIX traditionally builds its shared libraries.
15177 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'
15182 amigaos*)
15183 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)'
15184 hardcode_libdir_flag_spec_F77='-L$libdir'
15185 hardcode_minus_L_F77=yes
15186 # see comment about different semantics on the GNU ld section
15187 ld_shlibs_F77=no
15190 bsdi[45]*)
15191 export_dynamic_flag_spec_F77=-rdynamic
15194 cygwin* | mingw* | pw32*)
15195 # When not using gcc, we currently assume that we are using
15196 # Microsoft Visual C++.
15197 # hardcode_libdir_flag_spec is actually meaningless, as there is
15198 # no search path for DLLs.
15199 hardcode_libdir_flag_spec_F77=' '
15200 allow_undefined_flag_F77=unsupported
15201 # Tell ltmain to make .lib files, not .a files.
15202 libext=lib
15203 # Tell ltmain to make .dll files, not .so files.
15204 shrext_cmds=".dll"
15205 # FIXME: Setting linknames here is a bad hack.
15206 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15207 # The linker will automatically build a .lib file if we build a DLL.
15208 old_archive_From_new_cmds_F77='true'
15209 # FIXME: Should let the user specify the lib program.
15210 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15211 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15212 enable_shared_with_static_runtimes_F77=yes
15215 darwin* | rhapsody*)
15216 case $host_os in
15217 rhapsody* | darwin1.[012])
15218 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15220 *) # Darwin 1.3 on
15221 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15222 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15223 else
15224 case ${MACOSX_DEPLOYMENT_TARGET} in
15225 10.[012])
15226 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15228 10.*)
15229 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15231 esac
15234 esac
15235 archive_cmds_need_lc_F77=no
15236 hardcode_direct_F77=no
15237 hardcode_automatic_F77=yes
15238 hardcode_shlibpath_var_F77=unsupported
15239 whole_archive_flag_spec_F77=''
15240 link_all_deplibs_F77=yes
15241 if test "$GCC" = yes ; then
15242 output_verbose_link_cmd='echo'
15243 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15244 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15245 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15246 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}'
15247 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}'
15248 else
15249 case $cc_basename in
15250 xlc*)
15251 output_verbose_link_cmd='echo'
15252 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15253 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15254 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15255 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15256 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}'
15259 ld_shlibs_F77=no
15261 esac
15265 dgux*)
15266 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15267 hardcode_libdir_flag_spec_F77='-L$libdir'
15268 hardcode_shlibpath_var_F77=no
15271 freebsd1*)
15272 ld_shlibs_F77=no
15275 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15276 # support. Future versions do this automatically, but an explicit c++rt0.o
15277 # does not break anything, and helps significantly (at the cost of a little
15278 # extra space).
15279 freebsd2.2*)
15280 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15281 hardcode_libdir_flag_spec_F77='-R$libdir'
15282 hardcode_direct_F77=yes
15283 hardcode_shlibpath_var_F77=no
15286 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15287 freebsd2*)
15288 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15289 hardcode_direct_F77=yes
15290 hardcode_minus_L_F77=yes
15291 hardcode_shlibpath_var_F77=no
15294 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15295 freebsd* | dragonfly*)
15296 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15297 hardcode_libdir_flag_spec_F77='-R$libdir'
15298 hardcode_direct_F77=yes
15299 hardcode_shlibpath_var_F77=no
15302 hpux9*)
15303 if test "$GCC" = yes; then
15304 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'
15305 else
15306 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'
15308 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15309 hardcode_libdir_separator_F77=:
15310 hardcode_direct_F77=yes
15312 # hardcode_minus_L: Not really in the search PATH,
15313 # but as the default location of the library.
15314 hardcode_minus_L_F77=yes
15315 export_dynamic_flag_spec_F77='${wl}-E'
15318 hpux10*)
15319 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15320 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15321 else
15322 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15324 if test "$with_gnu_ld" = no; then
15325 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15326 hardcode_libdir_separator_F77=:
15328 hardcode_direct_F77=yes
15329 export_dynamic_flag_spec_F77='${wl}-E'
15331 # hardcode_minus_L: Not really in the search PATH,
15332 # but as the default location of the library.
15333 hardcode_minus_L_F77=yes
15337 hpux11*)
15338 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15339 case $host_cpu in
15340 hppa*64*)
15341 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15343 ia64*)
15344 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15347 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15349 esac
15350 else
15351 case $host_cpu in
15352 hppa*64*)
15353 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15355 ia64*)
15356 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15359 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15361 esac
15363 if test "$with_gnu_ld" = no; then
15364 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15365 hardcode_libdir_separator_F77=:
15367 case $host_cpu in
15368 hppa*64*|ia64*)
15369 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15370 hardcode_direct_F77=no
15371 hardcode_shlibpath_var_F77=no
15374 hardcode_direct_F77=yes
15375 export_dynamic_flag_spec_F77='${wl}-E'
15377 # hardcode_minus_L: Not really in the search PATH,
15378 # but as the default location of the library.
15379 hardcode_minus_L_F77=yes
15381 esac
15385 irix5* | irix6* | nonstopux*)
15386 if test "$GCC" = yes; then
15387 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'
15388 else
15389 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'
15390 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15392 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15393 hardcode_libdir_separator_F77=:
15394 link_all_deplibs_F77=yes
15397 netbsd*)
15398 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15399 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15400 else
15401 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15403 hardcode_libdir_flag_spec_F77='-R$libdir'
15404 hardcode_direct_F77=yes
15405 hardcode_shlibpath_var_F77=no
15408 newsos6)
15409 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15410 hardcode_direct_F77=yes
15411 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15412 hardcode_libdir_separator_F77=:
15413 hardcode_shlibpath_var_F77=no
15416 openbsd*)
15417 if test -f /usr/libexec/ld.so; then
15418 hardcode_direct_F77=yes
15419 hardcode_shlibpath_var_F77=no
15420 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15421 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15422 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15423 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15424 export_dynamic_flag_spec_F77='${wl}-E'
15425 else
15426 case $host_os in
15427 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15428 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15429 hardcode_libdir_flag_spec_F77='-R$libdir'
15432 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15433 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15435 esac
15437 else
15438 ld_shlibs_F77=no
15442 os2*)
15443 hardcode_libdir_flag_spec_F77='-L$libdir'
15444 hardcode_minus_L_F77=yes
15445 allow_undefined_flag_F77=unsupported
15446 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'
15447 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15450 osf3*)
15451 if test "$GCC" = yes; then
15452 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15453 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'
15454 else
15455 allow_undefined_flag_F77=' -expect_unresolved \*'
15456 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'
15458 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15459 hardcode_libdir_separator_F77=:
15462 osf4* | osf5*) # as osf3* with the addition of -msym flag
15463 if test "$GCC" = yes; then
15464 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15465 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'
15466 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15467 else
15468 allow_undefined_flag_F77=' -expect_unresolved \*'
15469 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'
15470 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~
15471 $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'
15473 # Both c and cxx compiler support -rpath directly
15474 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15476 hardcode_libdir_separator_F77=:
15479 solaris*)
15480 no_undefined_flag_F77=' -z text'
15481 if test "$GCC" = yes; then
15482 wlarc='${wl}'
15483 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15484 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15485 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15486 else
15487 wlarc=''
15488 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15489 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15490 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15492 hardcode_libdir_flag_spec_F77='-R$libdir'
15493 hardcode_shlibpath_var_F77=no
15494 case $host_os in
15495 solaris2.[0-5] | solaris2.[0-5].*) ;;
15497 # The compiler driver will combine and reorder linker options,
15498 # but understands `-z linker_flag'. GCC discards it without `$wl',
15499 # but is careful enough not to reorder.
15500 # Supported since Solaris 2.6 (maybe 2.5.1?)
15501 if test "$GCC" = yes; then
15502 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15503 else
15504 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15507 esac
15508 link_all_deplibs_F77=yes
15511 sunos4*)
15512 if test "x$host_vendor" = xsequent; then
15513 # Use $CC to link under sequent, because it throws in some extra .o
15514 # files that make .init and .fini sections work.
15515 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15516 else
15517 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15519 hardcode_libdir_flag_spec_F77='-L$libdir'
15520 hardcode_direct_F77=yes
15521 hardcode_minus_L_F77=yes
15522 hardcode_shlibpath_var_F77=no
15525 sysv4)
15526 case $host_vendor in
15527 sni)
15528 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15529 hardcode_direct_F77=yes # is this really true???
15531 siemens)
15532 ## LD is ld it makes a PLAMLIB
15533 ## CC just makes a GrossModule.
15534 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15535 reload_cmds_F77='$CC -r -o $output$reload_objs'
15536 hardcode_direct_F77=no
15538 motorola)
15539 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15540 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15542 esac
15543 runpath_var='LD_RUN_PATH'
15544 hardcode_shlibpath_var_F77=no
15547 sysv4.3*)
15548 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15549 hardcode_shlibpath_var_F77=no
15550 export_dynamic_flag_spec_F77='-Bexport'
15553 sysv4*MP*)
15554 if test -d /usr/nec; then
15555 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15556 hardcode_shlibpath_var_F77=no
15557 runpath_var=LD_RUN_PATH
15558 hardcode_runpath_var=yes
15559 ld_shlibs_F77=yes
15563 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15564 no_undefined_flag_F77='${wl}-z,text'
15565 archive_cmds_need_lc_F77=no
15566 hardcode_shlibpath_var_F77=no
15567 runpath_var='LD_RUN_PATH'
15569 if test "$GCC" = yes; then
15570 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15571 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15572 else
15573 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15574 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15578 sysv5* | sco3.2v5* | sco5v6*)
15579 # Note: We can NOT use -z defs as we might desire, because we do not
15580 # link with -lc, and that would cause any symbols used from libc to
15581 # always be unresolved, which means just about no library would
15582 # ever link correctly. If we're not using GNU ld we use -z text
15583 # though, which does catch some bad symbols but isn't as heavy-handed
15584 # as -z defs.
15585 no_undefined_flag_F77='${wl}-z,text'
15586 allow_undefined_flag_F77='${wl}-z,nodefs'
15587 archive_cmds_need_lc_F77=no
15588 hardcode_shlibpath_var_F77=no
15589 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15590 hardcode_libdir_separator_F77=':'
15591 link_all_deplibs_F77=yes
15592 export_dynamic_flag_spec_F77='${wl}-Bexport'
15593 runpath_var='LD_RUN_PATH'
15595 if test "$GCC" = yes; then
15596 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15597 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15598 else
15599 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15600 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15604 uts4*)
15605 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15606 hardcode_libdir_flag_spec_F77='-L$libdir'
15607 hardcode_shlibpath_var_F77=no
15611 ld_shlibs_F77=no
15613 esac
15616 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15617 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15618 test "$ld_shlibs_F77" = no && can_build_shared=no
15621 # Do we need to explicitly link libc?
15623 case "x$archive_cmds_need_lc_F77" in
15624 x|xyes)
15625 # Assume -lc should be added
15626 archive_cmds_need_lc_F77=yes
15628 if test "$enable_shared" = yes && test "$GCC" = yes; then
15629 case $archive_cmds_F77 in
15630 *'~'*)
15631 # FIXME: we may have to deal with multi-command sequences.
15633 '$CC '*)
15634 # Test whether the compiler implicitly links with -lc since on some
15635 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15636 # to ld, don't add -lc before -lgcc.
15637 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15638 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15639 $rm conftest*
15640 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15643 (eval $ac_compile) 2>&5
15644 ac_status=$?
15645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646 (exit $ac_status); } 2>conftest.err; then
15647 soname=conftest
15648 lib=conftest
15649 libobjs=conftest.$ac_objext
15650 deplibs=
15651 wl=$lt_prog_compiler_wl_F77
15652 pic_flag=$lt_prog_compiler_pic_F77
15653 compiler_flags=-v
15654 linker_flags=-v
15655 verstring=
15656 output_objdir=.
15657 libname=conftest
15658 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15659 allow_undefined_flag_F77=
15660 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15661 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15662 ac_status=$?
15663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664 (exit $ac_status); }
15665 then
15666 archive_cmds_need_lc_F77=no
15667 else
15668 archive_cmds_need_lc_F77=yes
15670 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15671 else
15672 cat conftest.err 1>&5
15674 $rm conftest*
15675 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15676 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15678 esac
15681 esac
15683 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15684 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15685 library_names_spec=
15686 libname_spec='lib$name'
15687 soname_spec=
15688 shrext_cmds=".so"
15689 postinstall_cmds=
15690 postuninstall_cmds=
15691 finish_cmds=
15692 finish_eval=
15693 shlibpath_var=
15694 shlibpath_overrides_runpath=unknown
15695 version_type=none
15696 dynamic_linker="$host_os ld.so"
15697 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15699 need_lib_prefix=unknown
15700 hardcode_into_libs=no
15702 # when you set need_version to no, make sure it does not cause -set_version
15703 # flags to be left without arguments
15704 need_version=unknown
15706 case $host_os in
15707 aix3*)
15708 version_type=linux
15709 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15710 shlibpath_var=LIBPATH
15712 # AIX 3 has no versioning support, so we append a major version to the name.
15713 soname_spec='${libname}${release}${shared_ext}$major'
15716 aix4* | aix5*)
15717 version_type=linux
15718 need_lib_prefix=no
15719 need_version=no
15720 hardcode_into_libs=yes
15721 if test "$host_cpu" = ia64; then
15722 # AIX 5 supports IA64
15723 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15724 shlibpath_var=LD_LIBRARY_PATH
15725 else
15726 # With GCC up to 2.95.x, collect2 would create an import file
15727 # for dependence libraries. The import file would start with
15728 # the line `#! .'. This would cause the generated library to
15729 # depend on `.', always an invalid library. This was fixed in
15730 # development snapshots of GCC prior to 3.0.
15731 case $host_os in
15732 aix4 | aix4.[01] | aix4.[01].*)
15733 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15734 echo ' yes '
15735 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15737 else
15738 can_build_shared=no
15741 esac
15742 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15743 # soname into executable. Probably we can add versioning support to
15744 # collect2, so additional links can be useful in future.
15745 if test "$aix_use_runtimelinking" = yes; then
15746 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15747 # instead of lib<name>.a to let people know that these are not
15748 # typical AIX shared libraries.
15749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15750 else
15751 # We preserve .a as extension for shared libraries through AIX4.2
15752 # and later when we are not doing run time linking.
15753 library_names_spec='${libname}${release}.a $libname.a'
15754 soname_spec='${libname}${release}${shared_ext}$major'
15756 shlibpath_var=LIBPATH
15760 amigaos*)
15761 library_names_spec='$libname.ixlibrary $libname.a'
15762 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15763 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'
15766 beos*)
15767 library_names_spec='${libname}${shared_ext}'
15768 dynamic_linker="$host_os ld.so"
15769 shlibpath_var=LIBRARY_PATH
15772 bsdi[45]*)
15773 version_type=linux
15774 need_version=no
15775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15776 soname_spec='${libname}${release}${shared_ext}$major'
15777 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15778 shlibpath_var=LD_LIBRARY_PATH
15779 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15780 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15781 # the default ld.so.conf also contains /usr/contrib/lib and
15782 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15783 # libtool to hard-code these into programs
15786 cygwin* | mingw* | pw32*)
15787 version_type=windows
15788 shrext_cmds=".dll"
15789 need_version=no
15790 need_lib_prefix=no
15792 case $GCC,$host_os in
15793 yes,cygwin* | yes,mingw* | yes,pw32*)
15794 library_names_spec='$libname.dll.a'
15795 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15796 postinstall_cmds='base_file=`basename \${file}`~
15797 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15798 dldir=$destdir/`dirname \$dlpath`~
15799 test -d \$dldir || mkdir -p \$dldir~
15800 $install_prog $dir/$dlname \$dldir/$dlname~
15801 chmod a+x \$dldir/$dlname'
15802 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15803 dlpath=$dir/\$dldll~
15804 $rm \$dlpath'
15805 shlibpath_overrides_runpath=yes
15807 case $host_os in
15808 cygwin*)
15809 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15810 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15811 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15813 mingw*)
15814 # MinGW DLLs use traditional 'lib' prefix
15815 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15816 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15817 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15818 # It is most probably a Windows format PATH printed by
15819 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15820 # path with ; separators, and with drive letters. We can handle the
15821 # drive letters (cygwin fileutils understands them), so leave them,
15822 # especially as we might pass files found there to a mingw objdump,
15823 # which wouldn't understand a cygwinified path. Ahh.
15824 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15825 else
15826 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15829 pw32*)
15830 # pw32 DLLs use 'pw' prefix rather than 'lib'
15831 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15833 esac
15837 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15839 esac
15840 dynamic_linker='Win32 ld.exe'
15841 # FIXME: first we should search . and the directory the executable is in
15842 shlibpath_var=PATH
15845 darwin* | rhapsody*)
15846 dynamic_linker="$host_os dyld"
15847 version_type=darwin
15848 need_lib_prefix=no
15849 need_version=no
15850 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15851 soname_spec='${libname}${release}${major}$shared_ext'
15852 shlibpath_overrides_runpath=yes
15853 shlibpath_var=DYLD_LIBRARY_PATH
15854 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15856 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15859 dgux*)
15860 version_type=linux
15861 need_lib_prefix=no
15862 need_version=no
15863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15864 soname_spec='${libname}${release}${shared_ext}$major'
15865 shlibpath_var=LD_LIBRARY_PATH
15868 freebsd1*)
15869 dynamic_linker=no
15872 freebsd* | dragonfly*)
15873 # DragonFly does not have aout. When/if they implement a new
15874 # versioning mechanism, adjust this.
15875 if test -x /usr/bin/objformat; then
15876 objformat=`/usr/bin/objformat`
15877 else
15878 case $host_os in
15879 freebsd[123]*) objformat=aout ;;
15880 *) objformat=elf ;;
15881 esac
15883 version_type=freebsd-$objformat
15884 case $version_type in
15885 freebsd-elf*)
15886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15887 need_version=no
15888 need_lib_prefix=no
15890 freebsd-*)
15891 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15892 need_version=yes
15894 esac
15895 shlibpath_var=LD_LIBRARY_PATH
15896 case $host_os in
15897 freebsd2*)
15898 shlibpath_overrides_runpath=yes
15900 freebsd3.[01]* | freebsdelf3.[01]*)
15901 shlibpath_overrides_runpath=yes
15902 hardcode_into_libs=yes
15904 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15905 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15906 shlibpath_overrides_runpath=no
15907 hardcode_into_libs=yes
15909 *) # from 4.6 on, and DragonFly
15910 shlibpath_overrides_runpath=yes
15911 hardcode_into_libs=yes
15913 esac
15916 gnu*)
15917 version_type=linux
15918 need_lib_prefix=no
15919 need_version=no
15920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15921 soname_spec='${libname}${release}${shared_ext}$major'
15922 shlibpath_var=LD_LIBRARY_PATH
15923 hardcode_into_libs=yes
15926 hpux9* | hpux10* | hpux11*)
15927 # Give a soname corresponding to the major version so that dld.sl refuses to
15928 # link against other versions.
15929 version_type=sunos
15930 need_lib_prefix=no
15931 need_version=no
15932 case $host_cpu in
15933 ia64*)
15934 shrext_cmds='.so'
15935 hardcode_into_libs=yes
15936 dynamic_linker="$host_os dld.so"
15937 shlibpath_var=LD_LIBRARY_PATH
15938 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15940 soname_spec='${libname}${release}${shared_ext}$major'
15941 if test "X$HPUX_IA64_MODE" = X32; then
15942 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15943 else
15944 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15946 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15948 hppa*64*)
15949 shrext_cmds='.sl'
15950 hardcode_into_libs=yes
15951 dynamic_linker="$host_os dld.sl"
15952 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15953 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15955 soname_spec='${libname}${release}${shared_ext}$major'
15956 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15957 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15960 shrext_cmds='.sl'
15961 dynamic_linker="$host_os dld.sl"
15962 shlibpath_var=SHLIB_PATH
15963 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15965 soname_spec='${libname}${release}${shared_ext}$major'
15967 esac
15968 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15969 postinstall_cmds='chmod 555 $lib'
15972 interix[3-9]*)
15973 version_type=linux
15974 need_lib_prefix=no
15975 need_version=no
15976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15977 soname_spec='${libname}${release}${shared_ext}$major'
15978 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15979 shlibpath_var=LD_LIBRARY_PATH
15980 shlibpath_overrides_runpath=no
15981 hardcode_into_libs=yes
15984 irix5* | irix6* | nonstopux*)
15985 case $host_os in
15986 nonstopux*) version_type=nonstopux ;;
15988 if test "$lt_cv_prog_gnu_ld" = yes; then
15989 version_type=linux
15990 else
15991 version_type=irix
15992 fi ;;
15993 esac
15994 need_lib_prefix=no
15995 need_version=no
15996 soname_spec='${libname}${release}${shared_ext}$major'
15997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15998 case $host_os in
15999 irix5* | nonstopux*)
16000 libsuff= shlibsuff=
16003 case $LD in # libtool.m4 will add one of these switches to LD
16004 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16005 libsuff= shlibsuff= libmagic=32-bit;;
16006 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16007 libsuff=32 shlibsuff=N32 libmagic=N32;;
16008 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16009 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16010 *) libsuff= shlibsuff= libmagic=never-match;;
16011 esac
16013 esac
16014 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16015 shlibpath_overrides_runpath=no
16016 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16017 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16018 hardcode_into_libs=yes
16021 # No shared lib support for Linux oldld, aout, or coff.
16022 linux*oldld* | linux*aout* | linux*coff*)
16023 dynamic_linker=no
16026 # This must be Linux ELF.
16027 linux* | k*bsd*-gnu)
16028 version_type=linux
16029 need_lib_prefix=no
16030 need_version=no
16031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16032 soname_spec='${libname}${release}${shared_ext}$major'
16033 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16034 shlibpath_var=LD_LIBRARY_PATH
16035 shlibpath_overrides_runpath=no
16036 # This implies no fast_install, which is unacceptable.
16037 # Some rework will be needed to allow for fast_install
16038 # before this can be enabled.
16039 hardcode_into_libs=yes
16041 # Append ld.so.conf contents to the search path
16042 if test -f /etc/ld.so.conf; then
16043 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16044 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16047 # We used to test for /lib/ld.so.1 and disable shared libraries on
16048 # powerpc, because MkLinux only supported shared libraries with the
16049 # GNU dynamic linker. Since this was broken with cross compilers,
16050 # most powerpc-linux boxes support dynamic linking these days and
16051 # people can always --disable-shared, the test was removed, and we
16052 # assume the GNU/Linux dynamic linker is in use.
16053 dynamic_linker='GNU/Linux ld.so'
16056 netbsd*)
16057 version_type=sunos
16058 need_lib_prefix=no
16059 need_version=no
16060 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16062 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16063 dynamic_linker='NetBSD (a.out) ld.so'
16064 else
16065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16066 soname_spec='${libname}${release}${shared_ext}$major'
16067 dynamic_linker='NetBSD ld.elf_so'
16069 shlibpath_var=LD_LIBRARY_PATH
16070 shlibpath_overrides_runpath=yes
16071 hardcode_into_libs=yes
16074 newsos6)
16075 version_type=linux
16076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16077 shlibpath_var=LD_LIBRARY_PATH
16078 shlibpath_overrides_runpath=yes
16081 nto-qnx*)
16082 version_type=linux
16083 need_lib_prefix=no
16084 need_version=no
16085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16086 soname_spec='${libname}${release}${shared_ext}$major'
16087 shlibpath_var=LD_LIBRARY_PATH
16088 shlibpath_overrides_runpath=yes
16091 openbsd*)
16092 version_type=sunos
16093 sys_lib_dlsearch_path_spec="/usr/lib"
16094 need_lib_prefix=no
16095 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16096 case $host_os in
16097 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16098 *) need_version=no ;;
16099 esac
16100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16101 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16102 shlibpath_var=LD_LIBRARY_PATH
16103 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16104 case $host_os in
16105 openbsd2.[89] | openbsd2.[89].*)
16106 shlibpath_overrides_runpath=no
16109 shlibpath_overrides_runpath=yes
16111 esac
16112 else
16113 shlibpath_overrides_runpath=yes
16117 os2*)
16118 libname_spec='$name'
16119 shrext_cmds=".dll"
16120 need_lib_prefix=no
16121 library_names_spec='$libname${shared_ext} $libname.a'
16122 dynamic_linker='OS/2 ld.exe'
16123 shlibpath_var=LIBPATH
16126 osf3* | osf4* | osf5*)
16127 version_type=osf
16128 need_lib_prefix=no
16129 need_version=no
16130 soname_spec='${libname}${release}${shared_ext}$major'
16131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16132 shlibpath_var=LD_LIBRARY_PATH
16133 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16134 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16137 rdos*)
16138 dynamic_linker=no
16141 solaris*)
16142 version_type=linux
16143 need_lib_prefix=no
16144 need_version=no
16145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16146 soname_spec='${libname}${release}${shared_ext}$major'
16147 shlibpath_var=LD_LIBRARY_PATH
16148 shlibpath_overrides_runpath=yes
16149 hardcode_into_libs=yes
16150 # ldd complains unless libraries are executable
16151 postinstall_cmds='chmod +x $lib'
16154 sunos4*)
16155 version_type=sunos
16156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16157 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16158 shlibpath_var=LD_LIBRARY_PATH
16159 shlibpath_overrides_runpath=yes
16160 if test "$with_gnu_ld" = yes; then
16161 need_lib_prefix=no
16163 need_version=yes
16166 sysv4 | sysv4.3*)
16167 version_type=linux
16168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16169 soname_spec='${libname}${release}${shared_ext}$major'
16170 shlibpath_var=LD_LIBRARY_PATH
16171 case $host_vendor in
16172 sni)
16173 shlibpath_overrides_runpath=no
16174 need_lib_prefix=no
16175 export_dynamic_flag_spec='${wl}-Blargedynsym'
16176 runpath_var=LD_RUN_PATH
16178 siemens)
16179 need_lib_prefix=no
16181 motorola)
16182 need_lib_prefix=no
16183 need_version=no
16184 shlibpath_overrides_runpath=no
16185 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16187 esac
16190 sysv4*MP*)
16191 if test -d /usr/nec ;then
16192 version_type=linux
16193 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16194 soname_spec='$libname${shared_ext}.$major'
16195 shlibpath_var=LD_LIBRARY_PATH
16199 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16200 version_type=freebsd-elf
16201 need_lib_prefix=no
16202 need_version=no
16203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16204 soname_spec='${libname}${release}${shared_ext}$major'
16205 shlibpath_var=LD_LIBRARY_PATH
16206 hardcode_into_libs=yes
16207 if test "$with_gnu_ld" = yes; then
16208 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16209 shlibpath_overrides_runpath=no
16210 else
16211 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16212 shlibpath_overrides_runpath=yes
16213 case $host_os in
16214 sco3.2v5*)
16215 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16217 esac
16219 sys_lib_dlsearch_path_spec='/usr/lib'
16222 uts4*)
16223 version_type=linux
16224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16225 soname_spec='${libname}${release}${shared_ext}$major'
16226 shlibpath_var=LD_LIBRARY_PATH
16230 dynamic_linker=no
16232 esac
16233 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16234 echo "${ECHO_T}$dynamic_linker" >&6; }
16235 test "$dynamic_linker" = no && can_build_shared=no
16237 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16238 if test "$GCC" = yes; then
16239 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16242 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16243 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16244 hardcode_action_F77=
16245 if test -n "$hardcode_libdir_flag_spec_F77" || \
16246 test -n "$runpath_var_F77" || \
16247 test "X$hardcode_automatic_F77" = "Xyes" ; then
16249 # We can hardcode non-existant directories.
16250 if test "$hardcode_direct_F77" != no &&
16251 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16252 # have to relink, otherwise we might link with an installed library
16253 # when we should be linking with a yet-to-be-installed one
16254 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16255 test "$hardcode_minus_L_F77" != no; then
16256 # Linking always hardcodes the temporary library directory.
16257 hardcode_action_F77=relink
16258 else
16259 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16260 hardcode_action_F77=immediate
16262 else
16263 # We cannot hardcode anything, or else we can only hardcode existing
16264 # directories.
16265 hardcode_action_F77=unsupported
16267 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16268 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16270 if test "$hardcode_action_F77" = relink; then
16271 # Fast installation is not supported
16272 enable_fast_install=no
16273 elif test "$shlibpath_overrides_runpath" = yes ||
16274 test "$enable_shared" = no; then
16275 # Fast installation is not necessary
16276 enable_fast_install=needless
16280 # The else clause should only fire when bootstrapping the
16281 # libtool distribution, otherwise you forgot to ship ltmain.sh
16282 # with your package, and you will get complaints that there are
16283 # no rules to generate ltmain.sh.
16284 if test -f "$ltmain"; then
16285 # See if we are running on zsh, and set the options which allow our commands through
16286 # without removal of \ escapes.
16287 if test -n "${ZSH_VERSION+set}" ; then
16288 setopt NO_GLOB_SUBST
16290 # Now quote all the things that may contain metacharacters while being
16291 # careful not to overquote the AC_SUBSTed values. We take copies of the
16292 # variables and quote the copies for generation of the libtool script.
16293 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16294 SED SHELL STRIP \
16295 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16296 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16297 deplibs_check_method reload_flag reload_cmds need_locks \
16298 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16299 lt_cv_sys_global_symbol_to_c_name_address \
16300 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16301 old_postinstall_cmds old_postuninstall_cmds \
16302 compiler_F77 \
16303 CC_F77 \
16304 LD_F77 \
16305 lt_prog_compiler_wl_F77 \
16306 lt_prog_compiler_pic_F77 \
16307 lt_prog_compiler_static_F77 \
16308 lt_prog_compiler_no_builtin_flag_F77 \
16309 export_dynamic_flag_spec_F77 \
16310 thread_safe_flag_spec_F77 \
16311 whole_archive_flag_spec_F77 \
16312 enable_shared_with_static_runtimes_F77 \
16313 old_archive_cmds_F77 \
16314 old_archive_from_new_cmds_F77 \
16315 predep_objects_F77 \
16316 postdep_objects_F77 \
16317 predeps_F77 \
16318 postdeps_F77 \
16319 compiler_lib_search_path_F77 \
16320 archive_cmds_F77 \
16321 archive_expsym_cmds_F77 \
16322 postinstall_cmds_F77 \
16323 postuninstall_cmds_F77 \
16324 old_archive_from_expsyms_cmds_F77 \
16325 allow_undefined_flag_F77 \
16326 no_undefined_flag_F77 \
16327 export_symbols_cmds_F77 \
16328 hardcode_libdir_flag_spec_F77 \
16329 hardcode_libdir_flag_spec_ld_F77 \
16330 hardcode_libdir_separator_F77 \
16331 hardcode_automatic_F77 \
16332 module_cmds_F77 \
16333 module_expsym_cmds_F77 \
16334 lt_cv_prog_compiler_c_o_F77 \
16335 fix_srcfile_path_F77 \
16336 exclude_expsyms_F77 \
16337 include_expsyms_F77; do
16339 case $var in
16340 old_archive_cmds_F77 | \
16341 old_archive_from_new_cmds_F77 | \
16342 archive_cmds_F77 | \
16343 archive_expsym_cmds_F77 | \
16344 module_cmds_F77 | \
16345 module_expsym_cmds_F77 | \
16346 old_archive_from_expsyms_cmds_F77 | \
16347 export_symbols_cmds_F77 | \
16348 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16349 postinstall_cmds | postuninstall_cmds | \
16350 old_postinstall_cmds | old_postuninstall_cmds | \
16351 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16352 # Double-quote double-evaled strings.
16353 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16356 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16358 esac
16359 done
16361 case $lt_echo in
16362 *'\$0 --fallback-echo"')
16363 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16365 esac
16367 cfgfile="$ofile"
16369 cat <<__EOF__ >> "$cfgfile"
16370 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16372 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16374 # Shell to use when invoking shell scripts.
16375 SHELL=$lt_SHELL
16377 # Whether or not to build shared libraries.
16378 build_libtool_libs=$enable_shared
16380 # Whether or not to build static libraries.
16381 build_old_libs=$enable_static
16383 # Whether or not to add -lc for building shared libraries.
16384 build_libtool_need_lc=$archive_cmds_need_lc_F77
16386 # Whether or not to disallow shared libs when runtime libs are static
16387 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16389 # Whether or not to optimize for fast installation.
16390 fast_install=$enable_fast_install
16392 # The host system.
16393 host_alias=$host_alias
16394 host=$host
16395 host_os=$host_os
16397 # The build system.
16398 build_alias=$build_alias
16399 build=$build
16400 build_os=$build_os
16402 # An echo program that does not interpret backslashes.
16403 echo=$lt_echo
16405 # The archiver.
16406 AR=$lt_AR
16407 AR_FLAGS=$lt_AR_FLAGS
16409 # A C compiler.
16410 LTCC=$lt_LTCC
16412 # LTCC compiler flags.
16413 LTCFLAGS=$lt_LTCFLAGS
16415 # A language-specific compiler.
16416 CC=$lt_compiler_F77
16418 # Is the compiler the GNU C compiler?
16419 with_gcc=$GCC_F77
16421 # An ERE matcher.
16422 EGREP=$lt_EGREP
16424 # The linker used to build libraries.
16425 LD=$lt_LD_F77
16427 # Whether we need hard or soft links.
16428 LN_S=$lt_LN_S
16430 # A BSD-compatible nm program.
16431 NM=$lt_NM
16433 # A symbol stripping program
16434 STRIP=$lt_STRIP
16436 # Used to examine libraries when file_magic_cmd begins "file"
16437 MAGIC_CMD=$MAGIC_CMD
16439 # Used on cygwin: DLL creation program.
16440 DLLTOOL="$DLLTOOL"
16442 # Used on cygwin: object dumper.
16443 OBJDUMP="$OBJDUMP"
16445 # Used on cygwin: assembler.
16446 AS="$AS"
16448 # The name of the directory that contains temporary libtool files.
16449 objdir=$objdir
16451 # How to create reloadable object files.
16452 reload_flag=$lt_reload_flag
16453 reload_cmds=$lt_reload_cmds
16455 # How to pass a linker flag through the compiler.
16456 wl=$lt_lt_prog_compiler_wl_F77
16458 # Object file suffix (normally "o").
16459 objext="$ac_objext"
16461 # Old archive suffix (normally "a").
16462 libext="$libext"
16464 # Shared library suffix (normally ".so").
16465 shrext_cmds='$shrext_cmds'
16467 # Executable file suffix (normally "").
16468 exeext="$exeext"
16470 # Additional compiler flags for building library objects.
16471 pic_flag=$lt_lt_prog_compiler_pic_F77
16472 pic_mode=$pic_mode
16474 # What is the maximum length of a command?
16475 max_cmd_len=$lt_cv_sys_max_cmd_len
16477 # Does compiler simultaneously support -c and -o options?
16478 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16480 # Must we lock files when doing compilation?
16481 need_locks=$lt_need_locks
16483 # Do we need the lib prefix for modules?
16484 need_lib_prefix=$need_lib_prefix
16486 # Do we need a version for libraries?
16487 need_version=$need_version
16489 # Whether dlopen is supported.
16490 dlopen_support=$enable_dlopen
16492 # Whether dlopen of programs is supported.
16493 dlopen_self=$enable_dlopen_self
16495 # Whether dlopen of statically linked programs is supported.
16496 dlopen_self_static=$enable_dlopen_self_static
16498 # Compiler flag to prevent dynamic linking.
16499 link_static_flag=$lt_lt_prog_compiler_static_F77
16501 # Compiler flag to turn off builtin functions.
16502 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16504 # Compiler flag to allow reflexive dlopens.
16505 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16507 # Compiler flag to generate shared objects directly from archives.
16508 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16510 # Compiler flag to generate thread-safe objects.
16511 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16513 # Library versioning type.
16514 version_type=$version_type
16516 # Format of library name prefix.
16517 libname_spec=$lt_libname_spec
16519 # List of archive names. First name is the real one, the rest are links.
16520 # The last name is the one that the linker finds with -lNAME.
16521 library_names_spec=$lt_library_names_spec
16523 # The coded name of the library, if different from the real name.
16524 soname_spec=$lt_soname_spec
16526 # Commands used to build and install an old-style archive.
16527 RANLIB=$lt_RANLIB
16528 old_archive_cmds=$lt_old_archive_cmds_F77
16529 old_postinstall_cmds=$lt_old_postinstall_cmds
16530 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16532 # Create an old-style archive from a shared archive.
16533 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16535 # Create a temporary old-style archive to link instead of a shared archive.
16536 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16538 # Commands used to build and install a shared archive.
16539 archive_cmds=$lt_archive_cmds_F77
16540 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16541 postinstall_cmds=$lt_postinstall_cmds
16542 postuninstall_cmds=$lt_postuninstall_cmds
16544 # Commands used to build a loadable module (assumed same as above if empty)
16545 module_cmds=$lt_module_cmds_F77
16546 module_expsym_cmds=$lt_module_expsym_cmds_F77
16548 # Commands to strip libraries.
16549 old_striplib=$lt_old_striplib
16550 striplib=$lt_striplib
16552 # Dependencies to place before the objects being linked to create a
16553 # shared library.
16554 predep_objects=$lt_predep_objects_F77
16556 # Dependencies to place after the objects being linked to create a
16557 # shared library.
16558 postdep_objects=$lt_postdep_objects_F77
16560 # Dependencies to place before the objects being linked to create a
16561 # shared library.
16562 predeps=$lt_predeps_F77
16564 # Dependencies to place after the objects being linked to create a
16565 # shared library.
16566 postdeps=$lt_postdeps_F77
16568 # The library search path used internally by the compiler when linking
16569 # a shared library.
16570 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16572 # Method to check whether dependent libraries are shared objects.
16573 deplibs_check_method=$lt_deplibs_check_method
16575 # Command to use when deplibs_check_method == file_magic.
16576 file_magic_cmd=$lt_file_magic_cmd
16578 # Flag that allows shared libraries with undefined symbols to be built.
16579 allow_undefined_flag=$lt_allow_undefined_flag_F77
16581 # Flag that forces no undefined symbols.
16582 no_undefined_flag=$lt_no_undefined_flag_F77
16584 # Commands used to finish a libtool library installation in a directory.
16585 finish_cmds=$lt_finish_cmds
16587 # Same as above, but a single script fragment to be evaled but not shown.
16588 finish_eval=$lt_finish_eval
16590 # Take the output of nm and produce a listing of raw symbols and C names.
16591 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16593 # Transform the output of nm in a proper C declaration
16594 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16596 # Transform the output of nm in a C name address pair
16597 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16599 # This is the shared library runtime path variable.
16600 runpath_var=$runpath_var
16602 # This is the shared library path variable.
16603 shlibpath_var=$shlibpath_var
16605 # Is shlibpath searched before the hard-coded library search path?
16606 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16608 # How to hardcode a shared library path into an executable.
16609 hardcode_action=$hardcode_action_F77
16611 # Whether we should hardcode library paths into libraries.
16612 hardcode_into_libs=$hardcode_into_libs
16614 # Flag to hardcode \$libdir into a binary during linking.
16615 # This must work even if \$libdir does not exist.
16616 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16618 # If ld is used when linking, flag to hardcode \$libdir into
16619 # a binary during linking. This must work even if \$libdir does
16620 # not exist.
16621 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16623 # Whether we need a single -rpath flag with a separated argument.
16624 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16626 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16627 # resulting binary.
16628 hardcode_direct=$hardcode_direct_F77
16630 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16631 # resulting binary.
16632 hardcode_minus_L=$hardcode_minus_L_F77
16634 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16635 # the resulting binary.
16636 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16638 # Set to yes if building a shared library automatically hardcodes DIR into the library
16639 # and all subsequent libraries and executables linked against it.
16640 hardcode_automatic=$hardcode_automatic_F77
16642 # Variables whose values should be saved in libtool wrapper scripts and
16643 # restored at relink time.
16644 variables_saved_for_relink="$variables_saved_for_relink"
16646 # Whether libtool must link a program against all its dependency libraries.
16647 link_all_deplibs=$link_all_deplibs_F77
16649 # Compile-time system search path for libraries
16650 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16652 # Run-time system search path for libraries
16653 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16655 # Fix the shell variable \$srcfile for the compiler.
16656 fix_srcfile_path=$lt_fix_srcfile_path
16658 # Set to yes if exported symbols are required.
16659 always_export_symbols=$always_export_symbols_F77
16661 # The commands to list exported symbols.
16662 export_symbols_cmds=$lt_export_symbols_cmds_F77
16664 # The commands to extract the exported symbol list from a shared archive.
16665 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16667 # Symbols that should not be listed in the preloaded symbols.
16668 exclude_expsyms=$lt_exclude_expsyms_F77
16670 # Symbols that must always be exported.
16671 include_expsyms=$lt_include_expsyms_F77
16673 # ### END LIBTOOL TAG CONFIG: $tagname
16675 __EOF__
16678 else
16679 # If there is no Makefile yet, we rely on a make rule to execute
16680 # `config.status --recheck' to rerun these tests and create the
16681 # libtool script then.
16682 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16683 if test -f "$ltmain_in"; then
16684 test -f Makefile && make "$ltmain"
16689 ac_ext=c
16690 ac_cpp='$CPP $CPPFLAGS'
16691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16695 CC="$lt_save_CC"
16697 else
16698 tagname=""
16702 GCJ)
16703 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16706 # Source file extension for Java test sources.
16707 ac_ext=java
16709 # Object file extension for compiled Java test sources.
16710 objext=o
16711 objext_GCJ=$objext
16713 # Code to be used in simple compile tests
16714 lt_simple_compile_test_code="class foo {}"
16716 # Code to be used in simple link tests
16717 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16719 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16721 # If no C compiler was specified, use CC.
16722 LTCC=${LTCC-"$CC"}
16724 # If no C compiler flags were specified, use CFLAGS.
16725 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16727 # Allow CC to be a program name with arguments.
16728 compiler=$CC
16731 # save warnings/boilerplate of simple test code
16732 ac_outfile=conftest.$ac_objext
16733 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16734 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16735 _lt_compiler_boilerplate=`cat conftest.err`
16736 $rm conftest*
16738 ac_outfile=conftest.$ac_objext
16739 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16740 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16741 _lt_linker_boilerplate=`cat conftest.err`
16742 $rm conftest*
16745 # Allow CC to be a program name with arguments.
16746 lt_save_CC="$CC"
16747 CC=${GCJ-"gcj"}
16748 compiler=$CC
16749 compiler_GCJ=$CC
16750 for cc_temp in $compiler""; do
16751 case $cc_temp in
16752 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16753 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16754 \-*) ;;
16755 *) break;;
16756 esac
16757 done
16758 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16761 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16762 archive_cmds_need_lc_GCJ=no
16764 old_archive_cmds_GCJ=$old_archive_cmds
16766 ## CAVEAT EMPTOR:
16767 ## There is no encapsulation within the following macros, do not change
16768 ## the running order or otherwise move them around unless you know exactly
16769 ## what you are doing...
16771 lt_prog_compiler_no_builtin_flag_GCJ=
16773 if test "$GCC" = yes; then
16774 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16777 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16778 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16779 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16780 echo $ECHO_N "(cached) $ECHO_C" >&6
16781 else
16782 lt_cv_prog_compiler_rtti_exceptions=no
16783 ac_outfile=conftest.$ac_objext
16784 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16785 lt_compiler_flag="-fno-rtti -fno-exceptions"
16786 # Insert the option either (1) after the last *FLAGS variable, or
16787 # (2) before a word containing "conftest.", or (3) at the end.
16788 # Note that $ac_compile itself does not contain backslashes and begins
16789 # with a dollar sign (not a hyphen), so the echo should work correctly.
16790 # The option is referenced via a variable to avoid confusing sed.
16791 lt_compile=`echo "$ac_compile" | $SED \
16792 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16793 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16794 -e 's:$: $lt_compiler_flag:'`
16795 (eval echo "\"\$as_me:16795: $lt_compile\"" >&5)
16796 (eval "$lt_compile" 2>conftest.err)
16797 ac_status=$?
16798 cat conftest.err >&5
16799 echo "$as_me:16799: \$? = $ac_status" >&5
16800 if (exit $ac_status) && test -s "$ac_outfile"; then
16801 # The compiler can only warn and ignore the option if not recognized
16802 # So say no if there are warnings other than the usual output.
16803 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16804 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16805 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16806 lt_cv_prog_compiler_rtti_exceptions=yes
16809 $rm conftest*
16812 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16813 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16815 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16816 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16817 else
16823 lt_prog_compiler_wl_GCJ=
16824 lt_prog_compiler_pic_GCJ=
16825 lt_prog_compiler_static_GCJ=
16827 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16828 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16830 if test "$GCC" = yes; then
16831 lt_prog_compiler_wl_GCJ='-Wl,'
16832 lt_prog_compiler_static_GCJ='-static'
16834 case $host_os in
16835 aix*)
16836 # All AIX code is PIC.
16837 if test "$host_cpu" = ia64; then
16838 # AIX 5 now supports IA64 processor
16839 lt_prog_compiler_static_GCJ='-Bstatic'
16843 amigaos*)
16844 # FIXME: we need at least 68020 code to build shared libraries, but
16845 # adding the `-m68020' flag to GCC prevents building anything better,
16846 # like `-m68040'.
16847 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16850 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16851 # PIC is the default for these OSes.
16854 mingw* | cygwin* | pw32* | os2*)
16855 # This hack is so that the source file can tell whether it is being
16856 # built for inclusion in a dll (and should export symbols for example).
16857 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16858 # (--disable-auto-import) libraries
16859 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16862 darwin* | rhapsody*)
16863 # PIC is the default on this platform
16864 # Common symbols not allowed in MH_DYLIB files
16865 lt_prog_compiler_pic_GCJ='-fno-common'
16868 interix[3-9]*)
16869 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16870 # Instead, we relocate shared libraries at runtime.
16873 msdosdjgpp*)
16874 # Just because we use GCC doesn't mean we suddenly get shared libraries
16875 # on systems that don't support them.
16876 lt_prog_compiler_can_build_shared_GCJ=no
16877 enable_shared=no
16880 sysv4*MP*)
16881 if test -d /usr/nec; then
16882 lt_prog_compiler_pic_GCJ=-Kconform_pic
16886 hpux*)
16887 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16888 # not for PA HP-UX.
16889 case $host_cpu in
16890 hppa*64*|ia64*)
16891 # +Z the default
16894 lt_prog_compiler_pic_GCJ='-fPIC'
16896 esac
16900 lt_prog_compiler_pic_GCJ='-fPIC'
16902 esac
16903 else
16904 # PORTME Check for flag to pass linker flags through the system compiler.
16905 case $host_os in
16906 aix*)
16907 lt_prog_compiler_wl_GCJ='-Wl,'
16908 if test "$host_cpu" = ia64; then
16909 # AIX 5 now supports IA64 processor
16910 lt_prog_compiler_static_GCJ='-Bstatic'
16911 else
16912 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16915 darwin*)
16916 # PIC is the default on this platform
16917 # Common symbols not allowed in MH_DYLIB files
16918 case $cc_basename in
16919 xlc*)
16920 lt_prog_compiler_pic_GCJ='-qnocommon'
16921 lt_prog_compiler_wl_GCJ='-Wl,'
16923 esac
16926 mingw* | cygwin* | pw32* | os2*)
16927 # This hack is so that the source file can tell whether it is being
16928 # built for inclusion in a dll (and should export symbols for example).
16929 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16932 hpux9* | hpux10* | hpux11*)
16933 lt_prog_compiler_wl_GCJ='-Wl,'
16934 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16935 # not for PA HP-UX.
16936 case $host_cpu in
16937 hppa*64*|ia64*)
16938 # +Z the default
16941 lt_prog_compiler_pic_GCJ='+Z'
16943 esac
16944 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16945 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16948 irix5* | irix6* | nonstopux*)
16949 lt_prog_compiler_wl_GCJ='-Wl,'
16950 # PIC (with -KPIC) is the default.
16951 lt_prog_compiler_static_GCJ='-non_shared'
16954 newsos6)
16955 lt_prog_compiler_pic_GCJ='-KPIC'
16956 lt_prog_compiler_static_GCJ='-Bstatic'
16959 linux* | k*bsd*-gnu)
16960 case $cc_basename in
16961 icc* | ecc*)
16962 lt_prog_compiler_wl_GCJ='-Wl,'
16963 lt_prog_compiler_pic_GCJ='-KPIC'
16964 lt_prog_compiler_static_GCJ='-static'
16966 pgcc* | pgf77* | pgf90* | pgf95*)
16967 # Portland Group compilers (*not* the Pentium gcc compiler,
16968 # which looks to be a dead project)
16969 lt_prog_compiler_wl_GCJ='-Wl,'
16970 lt_prog_compiler_pic_GCJ='-fpic'
16971 lt_prog_compiler_static_GCJ='-Bstatic'
16973 ccc*)
16974 lt_prog_compiler_wl_GCJ='-Wl,'
16975 # All Alpha code is PIC.
16976 lt_prog_compiler_static_GCJ='-non_shared'
16979 case `$CC -V 2>&1 | sed 5q` in
16980 *Sun\ C*)
16981 # Sun C 5.9
16982 lt_prog_compiler_pic_GCJ='-KPIC'
16983 lt_prog_compiler_static_GCJ='-Bstatic'
16984 lt_prog_compiler_wl_GCJ='-Wl,'
16986 *Sun\ F*)
16987 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16988 lt_prog_compiler_pic_GCJ='-KPIC'
16989 lt_prog_compiler_static_GCJ='-Bstatic'
16990 lt_prog_compiler_wl_GCJ=''
16992 esac
16994 esac
16997 osf3* | osf4* | osf5*)
16998 lt_prog_compiler_wl_GCJ='-Wl,'
16999 # All OSF/1 code is PIC.
17000 lt_prog_compiler_static_GCJ='-non_shared'
17003 rdos*)
17004 lt_prog_compiler_static_GCJ='-non_shared'
17007 solaris*)
17008 lt_prog_compiler_pic_GCJ='-KPIC'
17009 lt_prog_compiler_static_GCJ='-Bstatic'
17010 case $cc_basename in
17011 f77* | f90* | f95*)
17012 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17014 lt_prog_compiler_wl_GCJ='-Wl,';;
17015 esac
17018 sunos4*)
17019 lt_prog_compiler_wl_GCJ='-Qoption ld '
17020 lt_prog_compiler_pic_GCJ='-PIC'
17021 lt_prog_compiler_static_GCJ='-Bstatic'
17024 sysv4 | sysv4.2uw2* | sysv4.3*)
17025 lt_prog_compiler_wl_GCJ='-Wl,'
17026 lt_prog_compiler_pic_GCJ='-KPIC'
17027 lt_prog_compiler_static_GCJ='-Bstatic'
17030 sysv4*MP*)
17031 if test -d /usr/nec ;then
17032 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17033 lt_prog_compiler_static_GCJ='-Bstatic'
17037 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17038 lt_prog_compiler_wl_GCJ='-Wl,'
17039 lt_prog_compiler_pic_GCJ='-KPIC'
17040 lt_prog_compiler_static_GCJ='-Bstatic'
17043 unicos*)
17044 lt_prog_compiler_wl_GCJ='-Wl,'
17045 lt_prog_compiler_can_build_shared_GCJ=no
17048 uts4*)
17049 lt_prog_compiler_pic_GCJ='-pic'
17050 lt_prog_compiler_static_GCJ='-Bstatic'
17054 lt_prog_compiler_can_build_shared_GCJ=no
17056 esac
17059 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17060 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17063 # Check to make sure the PIC flag actually works.
17065 if test -n "$lt_prog_compiler_pic_GCJ"; then
17067 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17068 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17069 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17070 echo $ECHO_N "(cached) $ECHO_C" >&6
17071 else
17072 lt_prog_compiler_pic_works_GCJ=no
17073 ac_outfile=conftest.$ac_objext
17074 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17075 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17076 # Insert the option either (1) after the last *FLAGS variable, or
17077 # (2) before a word containing "conftest.", or (3) at the end.
17078 # Note that $ac_compile itself does not contain backslashes and begins
17079 # with a dollar sign (not a hyphen), so the echo should work correctly.
17080 # The option is referenced via a variable to avoid confusing sed.
17081 lt_compile=`echo "$ac_compile" | $SED \
17082 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17083 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17084 -e 's:$: $lt_compiler_flag:'`
17085 (eval echo "\"\$as_me:17085: $lt_compile\"" >&5)
17086 (eval "$lt_compile" 2>conftest.err)
17087 ac_status=$?
17088 cat conftest.err >&5
17089 echo "$as_me:17089: \$? = $ac_status" >&5
17090 if (exit $ac_status) && test -s "$ac_outfile"; then
17091 # The compiler can only warn and ignore the option if not recognized
17092 # So say no if there are warnings other than the usual output.
17093 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17094 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17095 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17096 lt_prog_compiler_pic_works_GCJ=yes
17099 $rm conftest*
17102 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17103 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17105 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17106 case $lt_prog_compiler_pic_GCJ in
17107 "" | " "*) ;;
17108 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17109 esac
17110 else
17111 lt_prog_compiler_pic_GCJ=
17112 lt_prog_compiler_can_build_shared_GCJ=no
17116 case $host_os in
17117 # For platforms which do not support PIC, -DPIC is meaningless:
17118 *djgpp*)
17119 lt_prog_compiler_pic_GCJ=
17122 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17124 esac
17127 # Check to make sure the static flag actually works.
17129 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17130 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17131 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17132 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17133 echo $ECHO_N "(cached) $ECHO_C" >&6
17134 else
17135 lt_prog_compiler_static_works_GCJ=no
17136 save_LDFLAGS="$LDFLAGS"
17137 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17138 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17139 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17140 # The linker can only warn and ignore the option if not recognized
17141 # So say no if there are warnings
17142 if test -s conftest.err; then
17143 # Append any errors to the config.log.
17144 cat conftest.err 1>&5
17145 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17146 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17147 if diff conftest.exp conftest.er2 >/dev/null; then
17148 lt_prog_compiler_static_works_GCJ=yes
17150 else
17151 lt_prog_compiler_static_works_GCJ=yes
17154 $rm conftest*
17155 LDFLAGS="$save_LDFLAGS"
17158 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17159 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17161 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17163 else
17164 lt_prog_compiler_static_GCJ=
17168 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17169 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17170 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17171 echo $ECHO_N "(cached) $ECHO_C" >&6
17172 else
17173 lt_cv_prog_compiler_c_o_GCJ=no
17174 $rm -r conftest 2>/dev/null
17175 mkdir conftest
17176 cd conftest
17177 mkdir out
17178 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17180 lt_compiler_flag="-o out/conftest2.$ac_objext"
17181 # Insert the option either (1) after the last *FLAGS variable, or
17182 # (2) before a word containing "conftest.", or (3) at the end.
17183 # Note that $ac_compile itself does not contain backslashes and begins
17184 # with a dollar sign (not a hyphen), so the echo should work correctly.
17185 lt_compile=`echo "$ac_compile" | $SED \
17186 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17187 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17188 -e 's:$: $lt_compiler_flag:'`
17189 (eval echo "\"\$as_me:17189: $lt_compile\"" >&5)
17190 (eval "$lt_compile" 2>out/conftest.err)
17191 ac_status=$?
17192 cat out/conftest.err >&5
17193 echo "$as_me:17193: \$? = $ac_status" >&5
17194 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17195 then
17196 # The compiler can only warn and ignore the option if not recognized
17197 # So say no if there are warnings
17198 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17199 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17200 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17201 lt_cv_prog_compiler_c_o_GCJ=yes
17204 chmod u+w . 2>&5
17205 $rm conftest*
17206 # SGI C++ compiler will create directory out/ii_files/ for
17207 # template instantiation
17208 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17209 $rm out/* && rmdir out
17210 cd ..
17211 rmdir conftest
17212 $rm conftest*
17215 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17216 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17219 hard_links="nottested"
17220 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17221 # do not overwrite the value of need_locks provided by the user
17222 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17223 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17224 hard_links=yes
17225 $rm conftest*
17226 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17227 touch conftest.a
17228 ln conftest.a conftest.b 2>&5 || hard_links=no
17229 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17230 { echo "$as_me:$LINENO: result: $hard_links" >&5
17231 echo "${ECHO_T}$hard_links" >&6; }
17232 if test "$hard_links" = no; then
17233 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17234 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17235 need_locks=warn
17237 else
17238 need_locks=no
17241 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17242 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17244 runpath_var=
17245 allow_undefined_flag_GCJ=
17246 enable_shared_with_static_runtimes_GCJ=no
17247 archive_cmds_GCJ=
17248 archive_expsym_cmds_GCJ=
17249 old_archive_From_new_cmds_GCJ=
17250 old_archive_from_expsyms_cmds_GCJ=
17251 export_dynamic_flag_spec_GCJ=
17252 whole_archive_flag_spec_GCJ=
17253 thread_safe_flag_spec_GCJ=
17254 hardcode_libdir_flag_spec_GCJ=
17255 hardcode_libdir_flag_spec_ld_GCJ=
17256 hardcode_libdir_separator_GCJ=
17257 hardcode_direct_GCJ=no
17258 hardcode_minus_L_GCJ=no
17259 hardcode_shlibpath_var_GCJ=unsupported
17260 link_all_deplibs_GCJ=unknown
17261 hardcode_automatic_GCJ=no
17262 module_cmds_GCJ=
17263 module_expsym_cmds_GCJ=
17264 always_export_symbols_GCJ=no
17265 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17266 # include_expsyms should be a list of space-separated symbols to be *always*
17267 # included in the symbol list
17268 include_expsyms_GCJ=
17269 # exclude_expsyms can be an extended regexp of symbols to exclude
17270 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17271 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17272 # as well as any symbol that contains `d'.
17273 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17274 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17275 # platforms (ab)use it in PIC code, but their linkers get confused if
17276 # the symbol is explicitly referenced. Since portable code cannot
17277 # rely on this symbol name, it's probably fine to never include it in
17278 # preloaded symbol tables.
17279 extract_expsyms_cmds=
17280 # Just being paranoid about ensuring that cc_basename is set.
17281 for cc_temp in $compiler""; do
17282 case $cc_temp in
17283 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17284 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17285 \-*) ;;
17286 *) break;;
17287 esac
17288 done
17289 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17291 case $host_os in
17292 cygwin* | mingw* | pw32*)
17293 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17294 # When not using gcc, we currently assume that we are using
17295 # Microsoft Visual C++.
17296 if test "$GCC" != yes; then
17297 with_gnu_ld=no
17300 interix*)
17301 # we just hope/assume this is gcc and not c89 (= MSVC++)
17302 with_gnu_ld=yes
17304 openbsd*)
17305 with_gnu_ld=no
17307 esac
17309 ld_shlibs_GCJ=yes
17310 if test "$with_gnu_ld" = yes; then
17311 # If archive_cmds runs LD, not CC, wlarc should be empty
17312 wlarc='${wl}'
17314 # Set some defaults for GNU ld with shared library support. These
17315 # are reset later if shared libraries are not supported. Putting them
17316 # here allows them to be overridden if necessary.
17317 runpath_var=LD_RUN_PATH
17318 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17319 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17320 # ancient GNU ld didn't support --whole-archive et. al.
17321 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17322 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17323 else
17324 whole_archive_flag_spec_GCJ=
17326 supports_anon_versioning=no
17327 case `$LD -v 2>/dev/null` in
17328 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17329 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17330 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17331 *\ 2.11.*) ;; # other 2.11 versions
17332 *) supports_anon_versioning=yes ;;
17333 esac
17335 # See if GNU ld supports shared libraries.
17336 case $host_os in
17337 aix3* | aix4* | aix5*)
17338 # On AIX/PPC, the GNU linker is very broken
17339 if test "$host_cpu" != ia64; then
17340 ld_shlibs_GCJ=no
17341 cat <<EOF 1>&2
17343 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17344 *** to be unable to reliably create shared libraries on AIX.
17345 *** Therefore, libtool is disabling shared libraries support. If you
17346 *** really care for shared libraries, you may want to modify your PATH
17347 *** so that a non-GNU linker is found, and then restart.
17353 amigaos*)
17354 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)'
17355 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17356 hardcode_minus_L_GCJ=yes
17358 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17359 # that the semantics of dynamic libraries on AmigaOS, at least up
17360 # to version 4, is to share data among multiple programs linked
17361 # with the same dynamic library. Since this doesn't match the
17362 # behavior of shared libraries on other platforms, we can't use
17363 # them.
17364 ld_shlibs_GCJ=no
17367 beos*)
17368 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17369 allow_undefined_flag_GCJ=unsupported
17370 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17371 # support --undefined. This deserves some investigation. FIXME
17372 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17373 else
17374 ld_shlibs_GCJ=no
17378 cygwin* | mingw* | pw32*)
17379 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17380 # as there is no search path for DLLs.
17381 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17382 allow_undefined_flag_GCJ=unsupported
17383 always_export_symbols_GCJ=no
17384 enable_shared_with_static_runtimes_GCJ=yes
17385 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17387 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17388 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17389 # If the export-symbols file already is a .def file (1st line
17390 # is EXPORTS), use it as is; otherwise, prepend...
17391 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17392 cp $export_symbols $output_objdir/$soname.def;
17393 else
17394 echo EXPORTS > $output_objdir/$soname.def;
17395 cat $export_symbols >> $output_objdir/$soname.def;
17397 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17398 else
17399 ld_shlibs_GCJ=no
17403 interix[3-9]*)
17404 hardcode_direct_GCJ=no
17405 hardcode_shlibpath_var_GCJ=no
17406 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17407 export_dynamic_flag_spec_GCJ='${wl}-E'
17408 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17409 # Instead, shared libraries are loaded at an image base (0x10000000 by
17410 # default) and relocated if they conflict, which is a slow very memory
17411 # consuming and fragmenting process. To avoid this, we pick a random,
17412 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17413 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17414 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'
17415 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'
17418 gnu* | linux* | k*bsd*-gnu)
17419 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17420 tmp_addflag=
17421 case $cc_basename,$host_cpu in
17422 pgcc*) # Portland Group C compiler
17423 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'
17424 tmp_addflag=' $pic_flag'
17426 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17427 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'
17428 tmp_addflag=' $pic_flag -Mnomain' ;;
17429 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17430 tmp_addflag=' -i_dynamic' ;;
17431 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17432 tmp_addflag=' -i_dynamic -nofor_main' ;;
17433 ifc* | ifort*) # Intel Fortran compiler
17434 tmp_addflag=' -nofor_main' ;;
17435 esac
17436 case `$CC -V 2>&1 | sed 5q` in
17437 *Sun\ C*) # Sun C 5.9
17438 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17439 tmp_sharedflag='-G' ;;
17440 *Sun\ F*) # Sun Fortran 8.3
17441 tmp_sharedflag='-G' ;;
17443 tmp_sharedflag='-shared' ;;
17444 esac
17445 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17447 if test $supports_anon_versioning = yes; then
17448 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17449 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17450 $echo "local: *; };" >> $output_objdir/$libname.ver~
17451 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17453 else
17454 ld_shlibs_GCJ=no
17458 netbsd*)
17459 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17460 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17461 wlarc=
17462 else
17463 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17464 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17468 solaris*)
17469 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17470 ld_shlibs_GCJ=no
17471 cat <<EOF 1>&2
17473 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17474 *** create shared libraries on Solaris systems. Therefore, libtool
17475 *** is disabling shared libraries support. We urge you to upgrade GNU
17476 *** binutils to release 2.9.1 or newer. Another option is to modify
17477 *** your PATH or compiler configuration so that the native linker is
17478 *** used, and then restart.
17481 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17482 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17483 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17484 else
17485 ld_shlibs_GCJ=no
17489 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17490 case `$LD -v 2>&1` in
17491 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17492 ld_shlibs_GCJ=no
17493 cat <<_LT_EOF 1>&2
17495 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17496 *** reliably create shared libraries on SCO systems. Therefore, libtool
17497 *** is disabling shared libraries support. We urge you to upgrade GNU
17498 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17499 *** your PATH or compiler configuration so that the native linker is
17500 *** used, and then restart.
17502 _LT_EOF
17505 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17506 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17507 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17508 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17509 else
17510 ld_shlibs_GCJ=no
17513 esac
17516 sunos4*)
17517 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17518 wlarc=
17519 hardcode_direct_GCJ=yes
17520 hardcode_shlibpath_var_GCJ=no
17524 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17525 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17526 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17527 else
17528 ld_shlibs_GCJ=no
17531 esac
17533 if test "$ld_shlibs_GCJ" = no; then
17534 runpath_var=
17535 hardcode_libdir_flag_spec_GCJ=
17536 export_dynamic_flag_spec_GCJ=
17537 whole_archive_flag_spec_GCJ=
17539 else
17540 # PORTME fill in a description of your system's linker (not GNU ld)
17541 case $host_os in
17542 aix3*)
17543 allow_undefined_flag_GCJ=unsupported
17544 always_export_symbols_GCJ=yes
17545 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'
17546 # Note: this linker hardcodes the directories in LIBPATH if there
17547 # are no directories specified by -L.
17548 hardcode_minus_L_GCJ=yes
17549 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17550 # Neither direct hardcoding nor static linking is supported with a
17551 # broken collect2.
17552 hardcode_direct_GCJ=unsupported
17556 aix4* | aix5*)
17557 if test "$host_cpu" = ia64; then
17558 # On IA64, the linker does run time linking by default, so we don't
17559 # have to do anything special.
17560 aix_use_runtimelinking=no
17561 exp_sym_flag='-Bexport'
17562 no_entry_flag=""
17563 else
17564 # If we're using GNU nm, then we don't want the "-C" option.
17565 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17566 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17567 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'
17568 else
17569 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'
17571 aix_use_runtimelinking=no
17573 # Test if we are trying to use run time linking or normal
17574 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17575 # need to do runtime linking.
17576 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17577 for ld_flag in $LDFLAGS; do
17578 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17579 aix_use_runtimelinking=yes
17580 break
17582 done
17584 esac
17586 exp_sym_flag='-bexport'
17587 no_entry_flag='-bnoentry'
17590 # When large executables or shared objects are built, AIX ld can
17591 # have problems creating the table of contents. If linking a library
17592 # or program results in "error TOC overflow" add -mminimal-toc to
17593 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17594 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17596 archive_cmds_GCJ=''
17597 hardcode_direct_GCJ=yes
17598 hardcode_libdir_separator_GCJ=':'
17599 link_all_deplibs_GCJ=yes
17601 if test "$GCC" = yes; then
17602 case $host_os in aix4.[012]|aix4.[012].*)
17603 # We only want to do this on AIX 4.2 and lower, the check
17604 # below for broken collect2 doesn't work under 4.3+
17605 collect2name=`${CC} -print-prog-name=collect2`
17606 if test -f "$collect2name" && \
17607 strings "$collect2name" | grep resolve_lib_name >/dev/null
17608 then
17609 # We have reworked collect2
17611 else
17612 # We have old collect2
17613 hardcode_direct_GCJ=unsupported
17614 # It fails to find uninstalled libraries when the uninstalled
17615 # path is not listed in the libpath. Setting hardcode_minus_L
17616 # to unsupported forces relinking
17617 hardcode_minus_L_GCJ=yes
17618 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17619 hardcode_libdir_separator_GCJ=
17622 esac
17623 shared_flag='-shared'
17624 if test "$aix_use_runtimelinking" = yes; then
17625 shared_flag="$shared_flag "'${wl}-G'
17627 else
17628 # not using gcc
17629 if test "$host_cpu" = ia64; then
17630 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17631 # chokes on -Wl,-G. The following line is correct:
17632 shared_flag='-G'
17633 else
17634 if test "$aix_use_runtimelinking" = yes; then
17635 shared_flag='${wl}-G'
17636 else
17637 shared_flag='${wl}-bM:SRE'
17642 # It seems that -bexpall does not export symbols beginning with
17643 # underscore (_), so it is better to generate a list of symbols to export.
17644 always_export_symbols_GCJ=yes
17645 if test "$aix_use_runtimelinking" = yes; then
17646 # Warning - without using the other runtime loading flags (-brtl),
17647 # -berok will link without error, but may produce a broken library.
17648 allow_undefined_flag_GCJ='-berok'
17649 # Determine the default libpath from the value encoded in an empty executable.
17650 cat >conftest.$ac_ext <<_ACEOF
17651 /* confdefs.h. */
17652 _ACEOF
17653 cat confdefs.h >>conftest.$ac_ext
17654 cat >>conftest.$ac_ext <<_ACEOF
17655 /* end confdefs.h. */
17658 main ()
17662 return 0;
17664 _ACEOF
17665 rm -f conftest.$ac_objext conftest$ac_exeext
17666 if { (ac_try="$ac_link"
17667 case "(($ac_try" in
17668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17669 *) ac_try_echo=$ac_try;;
17670 esac
17671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17672 (eval "$ac_link") 2>conftest.er1
17673 ac_status=$?
17674 grep -v '^ *+' conftest.er1 >conftest.err
17675 rm -f conftest.er1
17676 cat conftest.err >&5
17677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678 (exit $ac_status); } && {
17679 test -z "$ac_c_werror_flag" ||
17680 test ! -s conftest.err
17681 } && test -s conftest$ac_exeext &&
17682 $as_test_x conftest$ac_exeext; then
17684 lt_aix_libpath_sed='
17685 /Import File Strings/,/^$/ {
17686 /^0/ {
17687 s/^0 *\(.*\)$/\1/
17691 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17692 # Check for a 64-bit object if we didn't find anything.
17693 if test -z "$aix_libpath"; then
17694 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17696 else
17697 echo "$as_me: failed program was:" >&5
17698 sed 's/^/| /' conftest.$ac_ext >&5
17703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17704 conftest$ac_exeext conftest.$ac_ext
17705 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17707 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17708 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"
17709 else
17710 if test "$host_cpu" = ia64; then
17711 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17712 allow_undefined_flag_GCJ="-z nodefs"
17713 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"
17714 else
17715 # Determine the default libpath from the value encoded in an empty executable.
17716 cat >conftest.$ac_ext <<_ACEOF
17717 /* confdefs.h. */
17718 _ACEOF
17719 cat confdefs.h >>conftest.$ac_ext
17720 cat >>conftest.$ac_ext <<_ACEOF
17721 /* end confdefs.h. */
17724 main ()
17728 return 0;
17730 _ACEOF
17731 rm -f conftest.$ac_objext conftest$ac_exeext
17732 if { (ac_try="$ac_link"
17733 case "(($ac_try" in
17734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17735 *) ac_try_echo=$ac_try;;
17736 esac
17737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17738 (eval "$ac_link") 2>conftest.er1
17739 ac_status=$?
17740 grep -v '^ *+' conftest.er1 >conftest.err
17741 rm -f conftest.er1
17742 cat conftest.err >&5
17743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17744 (exit $ac_status); } && {
17745 test -z "$ac_c_werror_flag" ||
17746 test ! -s conftest.err
17747 } && test -s conftest$ac_exeext &&
17748 $as_test_x conftest$ac_exeext; then
17750 lt_aix_libpath_sed='
17751 /Import File Strings/,/^$/ {
17752 /^0/ {
17753 s/^0 *\(.*\)$/\1/
17757 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17758 # Check for a 64-bit object if we didn't find anything.
17759 if test -z "$aix_libpath"; then
17760 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17762 else
17763 echo "$as_me: failed program was:" >&5
17764 sed 's/^/| /' conftest.$ac_ext >&5
17769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17770 conftest$ac_exeext conftest.$ac_ext
17771 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17773 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17774 # Warning - without using the other run time loading flags,
17775 # -berok will link without error, but may produce a broken library.
17776 no_undefined_flag_GCJ=' ${wl}-bernotok'
17777 allow_undefined_flag_GCJ=' ${wl}-berok'
17778 # Exported symbols can be pulled into shared objects from archives
17779 whole_archive_flag_spec_GCJ='$convenience'
17780 archive_cmds_need_lc_GCJ=yes
17781 # This is similar to how AIX traditionally builds its shared libraries.
17782 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'
17787 amigaos*)
17788 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)'
17789 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17790 hardcode_minus_L_GCJ=yes
17791 # see comment about different semantics on the GNU ld section
17792 ld_shlibs_GCJ=no
17795 bsdi[45]*)
17796 export_dynamic_flag_spec_GCJ=-rdynamic
17799 cygwin* | mingw* | pw32*)
17800 # When not using gcc, we currently assume that we are using
17801 # Microsoft Visual C++.
17802 # hardcode_libdir_flag_spec is actually meaningless, as there is
17803 # no search path for DLLs.
17804 hardcode_libdir_flag_spec_GCJ=' '
17805 allow_undefined_flag_GCJ=unsupported
17806 # Tell ltmain to make .lib files, not .a files.
17807 libext=lib
17808 # Tell ltmain to make .dll files, not .so files.
17809 shrext_cmds=".dll"
17810 # FIXME: Setting linknames here is a bad hack.
17811 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17812 # The linker will automatically build a .lib file if we build a DLL.
17813 old_archive_From_new_cmds_GCJ='true'
17814 # FIXME: Should let the user specify the lib program.
17815 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17816 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17817 enable_shared_with_static_runtimes_GCJ=yes
17820 darwin* | rhapsody*)
17821 case $host_os in
17822 rhapsody* | darwin1.[012])
17823 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17825 *) # Darwin 1.3 on
17826 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17827 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17828 else
17829 case ${MACOSX_DEPLOYMENT_TARGET} in
17830 10.[012])
17831 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17833 10.*)
17834 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17836 esac
17839 esac
17840 archive_cmds_need_lc_GCJ=no
17841 hardcode_direct_GCJ=no
17842 hardcode_automatic_GCJ=yes
17843 hardcode_shlibpath_var_GCJ=unsupported
17844 whole_archive_flag_spec_GCJ=''
17845 link_all_deplibs_GCJ=yes
17846 if test "$GCC" = yes ; then
17847 output_verbose_link_cmd='echo'
17848 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17849 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17850 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17851 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}'
17852 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}'
17853 else
17854 case $cc_basename in
17855 xlc*)
17856 output_verbose_link_cmd='echo'
17857 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17858 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17859 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17860 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17861 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}'
17864 ld_shlibs_GCJ=no
17866 esac
17870 dgux*)
17871 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17872 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17873 hardcode_shlibpath_var_GCJ=no
17876 freebsd1*)
17877 ld_shlibs_GCJ=no
17880 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17881 # support. Future versions do this automatically, but an explicit c++rt0.o
17882 # does not break anything, and helps significantly (at the cost of a little
17883 # extra space).
17884 freebsd2.2*)
17885 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17886 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17887 hardcode_direct_GCJ=yes
17888 hardcode_shlibpath_var_GCJ=no
17891 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17892 freebsd2*)
17893 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17894 hardcode_direct_GCJ=yes
17895 hardcode_minus_L_GCJ=yes
17896 hardcode_shlibpath_var_GCJ=no
17899 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17900 freebsd* | dragonfly*)
17901 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17902 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17903 hardcode_direct_GCJ=yes
17904 hardcode_shlibpath_var_GCJ=no
17907 hpux9*)
17908 if test "$GCC" = yes; then
17909 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'
17910 else
17911 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'
17913 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17914 hardcode_libdir_separator_GCJ=:
17915 hardcode_direct_GCJ=yes
17917 # hardcode_minus_L: Not really in the search PATH,
17918 # but as the default location of the library.
17919 hardcode_minus_L_GCJ=yes
17920 export_dynamic_flag_spec_GCJ='${wl}-E'
17923 hpux10*)
17924 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17925 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17926 else
17927 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17929 if test "$with_gnu_ld" = no; then
17930 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17931 hardcode_libdir_separator_GCJ=:
17933 hardcode_direct_GCJ=yes
17934 export_dynamic_flag_spec_GCJ='${wl}-E'
17936 # hardcode_minus_L: Not really in the search PATH,
17937 # but as the default location of the library.
17938 hardcode_minus_L_GCJ=yes
17942 hpux11*)
17943 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17944 case $host_cpu in
17945 hppa*64*)
17946 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17948 ia64*)
17949 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17952 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17954 esac
17955 else
17956 case $host_cpu in
17957 hppa*64*)
17958 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17960 ia64*)
17961 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17964 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17966 esac
17968 if test "$with_gnu_ld" = no; then
17969 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17970 hardcode_libdir_separator_GCJ=:
17972 case $host_cpu in
17973 hppa*64*|ia64*)
17974 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17975 hardcode_direct_GCJ=no
17976 hardcode_shlibpath_var_GCJ=no
17979 hardcode_direct_GCJ=yes
17980 export_dynamic_flag_spec_GCJ='${wl}-E'
17982 # hardcode_minus_L: Not really in the search PATH,
17983 # but as the default location of the library.
17984 hardcode_minus_L_GCJ=yes
17986 esac
17990 irix5* | irix6* | nonstopux*)
17991 if test "$GCC" = yes; then
17992 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'
17993 else
17994 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'
17995 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17997 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17998 hardcode_libdir_separator_GCJ=:
17999 link_all_deplibs_GCJ=yes
18002 netbsd*)
18003 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18004 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18005 else
18006 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18008 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18009 hardcode_direct_GCJ=yes
18010 hardcode_shlibpath_var_GCJ=no
18013 newsos6)
18014 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18015 hardcode_direct_GCJ=yes
18016 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18017 hardcode_libdir_separator_GCJ=:
18018 hardcode_shlibpath_var_GCJ=no
18021 openbsd*)
18022 if test -f /usr/libexec/ld.so; then
18023 hardcode_direct_GCJ=yes
18024 hardcode_shlibpath_var_GCJ=no
18025 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18026 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18027 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18028 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18029 export_dynamic_flag_spec_GCJ='${wl}-E'
18030 else
18031 case $host_os in
18032 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18033 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18034 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18037 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18038 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18040 esac
18042 else
18043 ld_shlibs_GCJ=no
18047 os2*)
18048 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18049 hardcode_minus_L_GCJ=yes
18050 allow_undefined_flag_GCJ=unsupported
18051 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'
18052 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18055 osf3*)
18056 if test "$GCC" = yes; then
18057 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18058 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'
18059 else
18060 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18061 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'
18063 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18064 hardcode_libdir_separator_GCJ=:
18067 osf4* | osf5*) # as osf3* with the addition of -msym flag
18068 if test "$GCC" = yes; then
18069 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18070 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'
18071 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18072 else
18073 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18074 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'
18075 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~
18076 $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'
18078 # Both c and cxx compiler support -rpath directly
18079 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18081 hardcode_libdir_separator_GCJ=:
18084 solaris*)
18085 no_undefined_flag_GCJ=' -z text'
18086 if test "$GCC" = yes; then
18087 wlarc='${wl}'
18088 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18089 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18090 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18091 else
18092 wlarc=''
18093 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18094 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18095 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18097 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18098 hardcode_shlibpath_var_GCJ=no
18099 case $host_os in
18100 solaris2.[0-5] | solaris2.[0-5].*) ;;
18102 # The compiler driver will combine and reorder linker options,
18103 # but understands `-z linker_flag'. GCC discards it without `$wl',
18104 # but is careful enough not to reorder.
18105 # Supported since Solaris 2.6 (maybe 2.5.1?)
18106 if test "$GCC" = yes; then
18107 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18108 else
18109 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18112 esac
18113 link_all_deplibs_GCJ=yes
18116 sunos4*)
18117 if test "x$host_vendor" = xsequent; then
18118 # Use $CC to link under sequent, because it throws in some extra .o
18119 # files that make .init and .fini sections work.
18120 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18121 else
18122 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18124 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18125 hardcode_direct_GCJ=yes
18126 hardcode_minus_L_GCJ=yes
18127 hardcode_shlibpath_var_GCJ=no
18130 sysv4)
18131 case $host_vendor in
18132 sni)
18133 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18134 hardcode_direct_GCJ=yes # is this really true???
18136 siemens)
18137 ## LD is ld it makes a PLAMLIB
18138 ## CC just makes a GrossModule.
18139 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18140 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18141 hardcode_direct_GCJ=no
18143 motorola)
18144 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18145 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18147 esac
18148 runpath_var='LD_RUN_PATH'
18149 hardcode_shlibpath_var_GCJ=no
18152 sysv4.3*)
18153 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18154 hardcode_shlibpath_var_GCJ=no
18155 export_dynamic_flag_spec_GCJ='-Bexport'
18158 sysv4*MP*)
18159 if test -d /usr/nec; then
18160 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18161 hardcode_shlibpath_var_GCJ=no
18162 runpath_var=LD_RUN_PATH
18163 hardcode_runpath_var=yes
18164 ld_shlibs_GCJ=yes
18168 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18169 no_undefined_flag_GCJ='${wl}-z,text'
18170 archive_cmds_need_lc_GCJ=no
18171 hardcode_shlibpath_var_GCJ=no
18172 runpath_var='LD_RUN_PATH'
18174 if test "$GCC" = yes; then
18175 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18176 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18177 else
18178 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18179 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18183 sysv5* | sco3.2v5* | sco5v6*)
18184 # Note: We can NOT use -z defs as we might desire, because we do not
18185 # link with -lc, and that would cause any symbols used from libc to
18186 # always be unresolved, which means just about no library would
18187 # ever link correctly. If we're not using GNU ld we use -z text
18188 # though, which does catch some bad symbols but isn't as heavy-handed
18189 # as -z defs.
18190 no_undefined_flag_GCJ='${wl}-z,text'
18191 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18192 archive_cmds_need_lc_GCJ=no
18193 hardcode_shlibpath_var_GCJ=no
18194 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18195 hardcode_libdir_separator_GCJ=':'
18196 link_all_deplibs_GCJ=yes
18197 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18198 runpath_var='LD_RUN_PATH'
18200 if test "$GCC" = yes; then
18201 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18202 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18203 else
18204 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18205 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18209 uts4*)
18210 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18211 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18212 hardcode_shlibpath_var_GCJ=no
18216 ld_shlibs_GCJ=no
18218 esac
18221 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18222 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18223 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18226 # Do we need to explicitly link libc?
18228 case "x$archive_cmds_need_lc_GCJ" in
18229 x|xyes)
18230 # Assume -lc should be added
18231 archive_cmds_need_lc_GCJ=yes
18233 if test "$enable_shared" = yes && test "$GCC" = yes; then
18234 case $archive_cmds_GCJ in
18235 *'~'*)
18236 # FIXME: we may have to deal with multi-command sequences.
18238 '$CC '*)
18239 # Test whether the compiler implicitly links with -lc since on some
18240 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18241 # to ld, don't add -lc before -lgcc.
18242 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18243 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18244 $rm conftest*
18245 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18248 (eval $ac_compile) 2>&5
18249 ac_status=$?
18250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251 (exit $ac_status); } 2>conftest.err; then
18252 soname=conftest
18253 lib=conftest
18254 libobjs=conftest.$ac_objext
18255 deplibs=
18256 wl=$lt_prog_compiler_wl_GCJ
18257 pic_flag=$lt_prog_compiler_pic_GCJ
18258 compiler_flags=-v
18259 linker_flags=-v
18260 verstring=
18261 output_objdir=.
18262 libname=conftest
18263 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18264 allow_undefined_flag_GCJ=
18265 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18266 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18267 ac_status=$?
18268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18269 (exit $ac_status); }
18270 then
18271 archive_cmds_need_lc_GCJ=no
18272 else
18273 archive_cmds_need_lc_GCJ=yes
18275 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18276 else
18277 cat conftest.err 1>&5
18279 $rm conftest*
18280 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18281 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18283 esac
18286 esac
18288 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18289 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18290 library_names_spec=
18291 libname_spec='lib$name'
18292 soname_spec=
18293 shrext_cmds=".so"
18294 postinstall_cmds=
18295 postuninstall_cmds=
18296 finish_cmds=
18297 finish_eval=
18298 shlibpath_var=
18299 shlibpath_overrides_runpath=unknown
18300 version_type=none
18301 dynamic_linker="$host_os ld.so"
18302 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18304 need_lib_prefix=unknown
18305 hardcode_into_libs=no
18307 # when you set need_version to no, make sure it does not cause -set_version
18308 # flags to be left without arguments
18309 need_version=unknown
18311 case $host_os in
18312 aix3*)
18313 version_type=linux
18314 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18315 shlibpath_var=LIBPATH
18317 # AIX 3 has no versioning support, so we append a major version to the name.
18318 soname_spec='${libname}${release}${shared_ext}$major'
18321 aix4* | aix5*)
18322 version_type=linux
18323 need_lib_prefix=no
18324 need_version=no
18325 hardcode_into_libs=yes
18326 if test "$host_cpu" = ia64; then
18327 # AIX 5 supports IA64
18328 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18329 shlibpath_var=LD_LIBRARY_PATH
18330 else
18331 # With GCC up to 2.95.x, collect2 would create an import file
18332 # for dependence libraries. The import file would start with
18333 # the line `#! .'. This would cause the generated library to
18334 # depend on `.', always an invalid library. This was fixed in
18335 # development snapshots of GCC prior to 3.0.
18336 case $host_os in
18337 aix4 | aix4.[01] | aix4.[01].*)
18338 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18339 echo ' yes '
18340 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18342 else
18343 can_build_shared=no
18346 esac
18347 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18348 # soname into executable. Probably we can add versioning support to
18349 # collect2, so additional links can be useful in future.
18350 if test "$aix_use_runtimelinking" = yes; then
18351 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18352 # instead of lib<name>.a to let people know that these are not
18353 # typical AIX shared libraries.
18354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18355 else
18356 # We preserve .a as extension for shared libraries through AIX4.2
18357 # and later when we are not doing run time linking.
18358 library_names_spec='${libname}${release}.a $libname.a'
18359 soname_spec='${libname}${release}${shared_ext}$major'
18361 shlibpath_var=LIBPATH
18365 amigaos*)
18366 library_names_spec='$libname.ixlibrary $libname.a'
18367 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18368 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'
18371 beos*)
18372 library_names_spec='${libname}${shared_ext}'
18373 dynamic_linker="$host_os ld.so"
18374 shlibpath_var=LIBRARY_PATH
18377 bsdi[45]*)
18378 version_type=linux
18379 need_version=no
18380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18381 soname_spec='${libname}${release}${shared_ext}$major'
18382 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18383 shlibpath_var=LD_LIBRARY_PATH
18384 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18385 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18386 # the default ld.so.conf also contains /usr/contrib/lib and
18387 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18388 # libtool to hard-code these into programs
18391 cygwin* | mingw* | pw32*)
18392 version_type=windows
18393 shrext_cmds=".dll"
18394 need_version=no
18395 need_lib_prefix=no
18397 case $GCC,$host_os in
18398 yes,cygwin* | yes,mingw* | yes,pw32*)
18399 library_names_spec='$libname.dll.a'
18400 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18401 postinstall_cmds='base_file=`basename \${file}`~
18402 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18403 dldir=$destdir/`dirname \$dlpath`~
18404 test -d \$dldir || mkdir -p \$dldir~
18405 $install_prog $dir/$dlname \$dldir/$dlname~
18406 chmod a+x \$dldir/$dlname'
18407 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18408 dlpath=$dir/\$dldll~
18409 $rm \$dlpath'
18410 shlibpath_overrides_runpath=yes
18412 case $host_os in
18413 cygwin*)
18414 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18415 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18416 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18418 mingw*)
18419 # MinGW DLLs use traditional 'lib' prefix
18420 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18421 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18422 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18423 # It is most probably a Windows format PATH printed by
18424 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18425 # path with ; separators, and with drive letters. We can handle the
18426 # drive letters (cygwin fileutils understands them), so leave them,
18427 # especially as we might pass files found there to a mingw objdump,
18428 # which wouldn't understand a cygwinified path. Ahh.
18429 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18430 else
18431 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18434 pw32*)
18435 # pw32 DLLs use 'pw' prefix rather than 'lib'
18436 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18438 esac
18442 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18444 esac
18445 dynamic_linker='Win32 ld.exe'
18446 # FIXME: first we should search . and the directory the executable is in
18447 shlibpath_var=PATH
18450 darwin* | rhapsody*)
18451 dynamic_linker="$host_os dyld"
18452 version_type=darwin
18453 need_lib_prefix=no
18454 need_version=no
18455 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18456 soname_spec='${libname}${release}${major}$shared_ext'
18457 shlibpath_overrides_runpath=yes
18458 shlibpath_var=DYLD_LIBRARY_PATH
18459 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18461 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18464 dgux*)
18465 version_type=linux
18466 need_lib_prefix=no
18467 need_version=no
18468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18469 soname_spec='${libname}${release}${shared_ext}$major'
18470 shlibpath_var=LD_LIBRARY_PATH
18473 freebsd1*)
18474 dynamic_linker=no
18477 freebsd* | dragonfly*)
18478 # DragonFly does not have aout. When/if they implement a new
18479 # versioning mechanism, adjust this.
18480 if test -x /usr/bin/objformat; then
18481 objformat=`/usr/bin/objformat`
18482 else
18483 case $host_os in
18484 freebsd[123]*) objformat=aout ;;
18485 *) objformat=elf ;;
18486 esac
18488 version_type=freebsd-$objformat
18489 case $version_type in
18490 freebsd-elf*)
18491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18492 need_version=no
18493 need_lib_prefix=no
18495 freebsd-*)
18496 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18497 need_version=yes
18499 esac
18500 shlibpath_var=LD_LIBRARY_PATH
18501 case $host_os in
18502 freebsd2*)
18503 shlibpath_overrides_runpath=yes
18505 freebsd3.[01]* | freebsdelf3.[01]*)
18506 shlibpath_overrides_runpath=yes
18507 hardcode_into_libs=yes
18509 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18510 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18511 shlibpath_overrides_runpath=no
18512 hardcode_into_libs=yes
18514 *) # from 4.6 on, and DragonFly
18515 shlibpath_overrides_runpath=yes
18516 hardcode_into_libs=yes
18518 esac
18521 gnu*)
18522 version_type=linux
18523 need_lib_prefix=no
18524 need_version=no
18525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18526 soname_spec='${libname}${release}${shared_ext}$major'
18527 shlibpath_var=LD_LIBRARY_PATH
18528 hardcode_into_libs=yes
18531 hpux9* | hpux10* | hpux11*)
18532 # Give a soname corresponding to the major version so that dld.sl refuses to
18533 # link against other versions.
18534 version_type=sunos
18535 need_lib_prefix=no
18536 need_version=no
18537 case $host_cpu in
18538 ia64*)
18539 shrext_cmds='.so'
18540 hardcode_into_libs=yes
18541 dynamic_linker="$host_os dld.so"
18542 shlibpath_var=LD_LIBRARY_PATH
18543 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18545 soname_spec='${libname}${release}${shared_ext}$major'
18546 if test "X$HPUX_IA64_MODE" = X32; then
18547 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18548 else
18549 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18551 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18553 hppa*64*)
18554 shrext_cmds='.sl'
18555 hardcode_into_libs=yes
18556 dynamic_linker="$host_os dld.sl"
18557 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18558 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18560 soname_spec='${libname}${release}${shared_ext}$major'
18561 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18562 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18565 shrext_cmds='.sl'
18566 dynamic_linker="$host_os dld.sl"
18567 shlibpath_var=SHLIB_PATH
18568 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18570 soname_spec='${libname}${release}${shared_ext}$major'
18572 esac
18573 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18574 postinstall_cmds='chmod 555 $lib'
18577 interix[3-9]*)
18578 version_type=linux
18579 need_lib_prefix=no
18580 need_version=no
18581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18582 soname_spec='${libname}${release}${shared_ext}$major'
18583 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18584 shlibpath_var=LD_LIBRARY_PATH
18585 shlibpath_overrides_runpath=no
18586 hardcode_into_libs=yes
18589 irix5* | irix6* | nonstopux*)
18590 case $host_os in
18591 nonstopux*) version_type=nonstopux ;;
18593 if test "$lt_cv_prog_gnu_ld" = yes; then
18594 version_type=linux
18595 else
18596 version_type=irix
18597 fi ;;
18598 esac
18599 need_lib_prefix=no
18600 need_version=no
18601 soname_spec='${libname}${release}${shared_ext}$major'
18602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18603 case $host_os in
18604 irix5* | nonstopux*)
18605 libsuff= shlibsuff=
18608 case $LD in # libtool.m4 will add one of these switches to LD
18609 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18610 libsuff= shlibsuff= libmagic=32-bit;;
18611 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18612 libsuff=32 shlibsuff=N32 libmagic=N32;;
18613 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18614 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18615 *) libsuff= shlibsuff= libmagic=never-match;;
18616 esac
18618 esac
18619 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18620 shlibpath_overrides_runpath=no
18621 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18622 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18623 hardcode_into_libs=yes
18626 # No shared lib support for Linux oldld, aout, or coff.
18627 linux*oldld* | linux*aout* | linux*coff*)
18628 dynamic_linker=no
18631 # This must be Linux ELF.
18632 linux* | k*bsd*-gnu)
18633 version_type=linux
18634 need_lib_prefix=no
18635 need_version=no
18636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18637 soname_spec='${libname}${release}${shared_ext}$major'
18638 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18639 shlibpath_var=LD_LIBRARY_PATH
18640 shlibpath_overrides_runpath=no
18641 # This implies no fast_install, which is unacceptable.
18642 # Some rework will be needed to allow for fast_install
18643 # before this can be enabled.
18644 hardcode_into_libs=yes
18646 # Append ld.so.conf contents to the search path
18647 if test -f /etc/ld.so.conf; then
18648 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18649 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18652 # We used to test for /lib/ld.so.1 and disable shared libraries on
18653 # powerpc, because MkLinux only supported shared libraries with the
18654 # GNU dynamic linker. Since this was broken with cross compilers,
18655 # most powerpc-linux boxes support dynamic linking these days and
18656 # people can always --disable-shared, the test was removed, and we
18657 # assume the GNU/Linux dynamic linker is in use.
18658 dynamic_linker='GNU/Linux ld.so'
18661 netbsd*)
18662 version_type=sunos
18663 need_lib_prefix=no
18664 need_version=no
18665 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18667 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18668 dynamic_linker='NetBSD (a.out) ld.so'
18669 else
18670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18671 soname_spec='${libname}${release}${shared_ext}$major'
18672 dynamic_linker='NetBSD ld.elf_so'
18674 shlibpath_var=LD_LIBRARY_PATH
18675 shlibpath_overrides_runpath=yes
18676 hardcode_into_libs=yes
18679 newsos6)
18680 version_type=linux
18681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18682 shlibpath_var=LD_LIBRARY_PATH
18683 shlibpath_overrides_runpath=yes
18686 nto-qnx*)
18687 version_type=linux
18688 need_lib_prefix=no
18689 need_version=no
18690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18691 soname_spec='${libname}${release}${shared_ext}$major'
18692 shlibpath_var=LD_LIBRARY_PATH
18693 shlibpath_overrides_runpath=yes
18696 openbsd*)
18697 version_type=sunos
18698 sys_lib_dlsearch_path_spec="/usr/lib"
18699 need_lib_prefix=no
18700 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18701 case $host_os in
18702 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18703 *) need_version=no ;;
18704 esac
18705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18706 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18707 shlibpath_var=LD_LIBRARY_PATH
18708 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18709 case $host_os in
18710 openbsd2.[89] | openbsd2.[89].*)
18711 shlibpath_overrides_runpath=no
18714 shlibpath_overrides_runpath=yes
18716 esac
18717 else
18718 shlibpath_overrides_runpath=yes
18722 os2*)
18723 libname_spec='$name'
18724 shrext_cmds=".dll"
18725 need_lib_prefix=no
18726 library_names_spec='$libname${shared_ext} $libname.a'
18727 dynamic_linker='OS/2 ld.exe'
18728 shlibpath_var=LIBPATH
18731 osf3* | osf4* | osf5*)
18732 version_type=osf
18733 need_lib_prefix=no
18734 need_version=no
18735 soname_spec='${libname}${release}${shared_ext}$major'
18736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18737 shlibpath_var=LD_LIBRARY_PATH
18738 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18739 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18742 rdos*)
18743 dynamic_linker=no
18746 solaris*)
18747 version_type=linux
18748 need_lib_prefix=no
18749 need_version=no
18750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18751 soname_spec='${libname}${release}${shared_ext}$major'
18752 shlibpath_var=LD_LIBRARY_PATH
18753 shlibpath_overrides_runpath=yes
18754 hardcode_into_libs=yes
18755 # ldd complains unless libraries are executable
18756 postinstall_cmds='chmod +x $lib'
18759 sunos4*)
18760 version_type=sunos
18761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18762 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18763 shlibpath_var=LD_LIBRARY_PATH
18764 shlibpath_overrides_runpath=yes
18765 if test "$with_gnu_ld" = yes; then
18766 need_lib_prefix=no
18768 need_version=yes
18771 sysv4 | sysv4.3*)
18772 version_type=linux
18773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18774 soname_spec='${libname}${release}${shared_ext}$major'
18775 shlibpath_var=LD_LIBRARY_PATH
18776 case $host_vendor in
18777 sni)
18778 shlibpath_overrides_runpath=no
18779 need_lib_prefix=no
18780 export_dynamic_flag_spec='${wl}-Blargedynsym'
18781 runpath_var=LD_RUN_PATH
18783 siemens)
18784 need_lib_prefix=no
18786 motorola)
18787 need_lib_prefix=no
18788 need_version=no
18789 shlibpath_overrides_runpath=no
18790 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18792 esac
18795 sysv4*MP*)
18796 if test -d /usr/nec ;then
18797 version_type=linux
18798 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18799 soname_spec='$libname${shared_ext}.$major'
18800 shlibpath_var=LD_LIBRARY_PATH
18804 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18805 version_type=freebsd-elf
18806 need_lib_prefix=no
18807 need_version=no
18808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18809 soname_spec='${libname}${release}${shared_ext}$major'
18810 shlibpath_var=LD_LIBRARY_PATH
18811 hardcode_into_libs=yes
18812 if test "$with_gnu_ld" = yes; then
18813 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18814 shlibpath_overrides_runpath=no
18815 else
18816 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18817 shlibpath_overrides_runpath=yes
18818 case $host_os in
18819 sco3.2v5*)
18820 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18822 esac
18824 sys_lib_dlsearch_path_spec='/usr/lib'
18827 uts4*)
18828 version_type=linux
18829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18830 soname_spec='${libname}${release}${shared_ext}$major'
18831 shlibpath_var=LD_LIBRARY_PATH
18835 dynamic_linker=no
18837 esac
18838 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18839 echo "${ECHO_T}$dynamic_linker" >&6; }
18840 test "$dynamic_linker" = no && can_build_shared=no
18842 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18843 if test "$GCC" = yes; then
18844 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18847 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18848 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18849 hardcode_action_GCJ=
18850 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18851 test -n "$runpath_var_GCJ" || \
18852 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18854 # We can hardcode non-existant directories.
18855 if test "$hardcode_direct_GCJ" != no &&
18856 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18857 # have to relink, otherwise we might link with an installed library
18858 # when we should be linking with a yet-to-be-installed one
18859 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18860 test "$hardcode_minus_L_GCJ" != no; then
18861 # Linking always hardcodes the temporary library directory.
18862 hardcode_action_GCJ=relink
18863 else
18864 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18865 hardcode_action_GCJ=immediate
18867 else
18868 # We cannot hardcode anything, or else we can only hardcode existing
18869 # directories.
18870 hardcode_action_GCJ=unsupported
18872 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18873 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18875 if test "$hardcode_action_GCJ" = relink; then
18876 # Fast installation is not supported
18877 enable_fast_install=no
18878 elif test "$shlibpath_overrides_runpath" = yes ||
18879 test "$enable_shared" = no; then
18880 # Fast installation is not necessary
18881 enable_fast_install=needless
18885 # The else clause should only fire when bootstrapping the
18886 # libtool distribution, otherwise you forgot to ship ltmain.sh
18887 # with your package, and you will get complaints that there are
18888 # no rules to generate ltmain.sh.
18889 if test -f "$ltmain"; then
18890 # See if we are running on zsh, and set the options which allow our commands through
18891 # without removal of \ escapes.
18892 if test -n "${ZSH_VERSION+set}" ; then
18893 setopt NO_GLOB_SUBST
18895 # Now quote all the things that may contain metacharacters while being
18896 # careful not to overquote the AC_SUBSTed values. We take copies of the
18897 # variables and quote the copies for generation of the libtool script.
18898 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18899 SED SHELL STRIP \
18900 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18901 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18902 deplibs_check_method reload_flag reload_cmds need_locks \
18903 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18904 lt_cv_sys_global_symbol_to_c_name_address \
18905 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18906 old_postinstall_cmds old_postuninstall_cmds \
18907 compiler_GCJ \
18908 CC_GCJ \
18909 LD_GCJ \
18910 lt_prog_compiler_wl_GCJ \
18911 lt_prog_compiler_pic_GCJ \
18912 lt_prog_compiler_static_GCJ \
18913 lt_prog_compiler_no_builtin_flag_GCJ \
18914 export_dynamic_flag_spec_GCJ \
18915 thread_safe_flag_spec_GCJ \
18916 whole_archive_flag_spec_GCJ \
18917 enable_shared_with_static_runtimes_GCJ \
18918 old_archive_cmds_GCJ \
18919 old_archive_from_new_cmds_GCJ \
18920 predep_objects_GCJ \
18921 postdep_objects_GCJ \
18922 predeps_GCJ \
18923 postdeps_GCJ \
18924 compiler_lib_search_path_GCJ \
18925 archive_cmds_GCJ \
18926 archive_expsym_cmds_GCJ \
18927 postinstall_cmds_GCJ \
18928 postuninstall_cmds_GCJ \
18929 old_archive_from_expsyms_cmds_GCJ \
18930 allow_undefined_flag_GCJ \
18931 no_undefined_flag_GCJ \
18932 export_symbols_cmds_GCJ \
18933 hardcode_libdir_flag_spec_GCJ \
18934 hardcode_libdir_flag_spec_ld_GCJ \
18935 hardcode_libdir_separator_GCJ \
18936 hardcode_automatic_GCJ \
18937 module_cmds_GCJ \
18938 module_expsym_cmds_GCJ \
18939 lt_cv_prog_compiler_c_o_GCJ \
18940 fix_srcfile_path_GCJ \
18941 exclude_expsyms_GCJ \
18942 include_expsyms_GCJ; do
18944 case $var in
18945 old_archive_cmds_GCJ | \
18946 old_archive_from_new_cmds_GCJ | \
18947 archive_cmds_GCJ | \
18948 archive_expsym_cmds_GCJ | \
18949 module_cmds_GCJ | \
18950 module_expsym_cmds_GCJ | \
18951 old_archive_from_expsyms_cmds_GCJ | \
18952 export_symbols_cmds_GCJ | \
18953 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18954 postinstall_cmds | postuninstall_cmds | \
18955 old_postinstall_cmds | old_postuninstall_cmds | \
18956 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18957 # Double-quote double-evaled strings.
18958 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18961 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18963 esac
18964 done
18966 case $lt_echo in
18967 *'\$0 --fallback-echo"')
18968 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18970 esac
18972 cfgfile="$ofile"
18974 cat <<__EOF__ >> "$cfgfile"
18975 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18977 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18979 # Shell to use when invoking shell scripts.
18980 SHELL=$lt_SHELL
18982 # Whether or not to build shared libraries.
18983 build_libtool_libs=$enable_shared
18985 # Whether or not to build static libraries.
18986 build_old_libs=$enable_static
18988 # Whether or not to add -lc for building shared libraries.
18989 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18991 # Whether or not to disallow shared libs when runtime libs are static
18992 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18994 # Whether or not to optimize for fast installation.
18995 fast_install=$enable_fast_install
18997 # The host system.
18998 host_alias=$host_alias
18999 host=$host
19000 host_os=$host_os
19002 # The build system.
19003 build_alias=$build_alias
19004 build=$build
19005 build_os=$build_os
19007 # An echo program that does not interpret backslashes.
19008 echo=$lt_echo
19010 # The archiver.
19011 AR=$lt_AR
19012 AR_FLAGS=$lt_AR_FLAGS
19014 # A C compiler.
19015 LTCC=$lt_LTCC
19017 # LTCC compiler flags.
19018 LTCFLAGS=$lt_LTCFLAGS
19020 # A language-specific compiler.
19021 CC=$lt_compiler_GCJ
19023 # Is the compiler the GNU C compiler?
19024 with_gcc=$GCC_GCJ
19026 # An ERE matcher.
19027 EGREP=$lt_EGREP
19029 # The linker used to build libraries.
19030 LD=$lt_LD_GCJ
19032 # Whether we need hard or soft links.
19033 LN_S=$lt_LN_S
19035 # A BSD-compatible nm program.
19036 NM=$lt_NM
19038 # A symbol stripping program
19039 STRIP=$lt_STRIP
19041 # Used to examine libraries when file_magic_cmd begins "file"
19042 MAGIC_CMD=$MAGIC_CMD
19044 # Used on cygwin: DLL creation program.
19045 DLLTOOL="$DLLTOOL"
19047 # Used on cygwin: object dumper.
19048 OBJDUMP="$OBJDUMP"
19050 # Used on cygwin: assembler.
19051 AS="$AS"
19053 # The name of the directory that contains temporary libtool files.
19054 objdir=$objdir
19056 # How to create reloadable object files.
19057 reload_flag=$lt_reload_flag
19058 reload_cmds=$lt_reload_cmds
19060 # How to pass a linker flag through the compiler.
19061 wl=$lt_lt_prog_compiler_wl_GCJ
19063 # Object file suffix (normally "o").
19064 objext="$ac_objext"
19066 # Old archive suffix (normally "a").
19067 libext="$libext"
19069 # Shared library suffix (normally ".so").
19070 shrext_cmds='$shrext_cmds'
19072 # Executable file suffix (normally "").
19073 exeext="$exeext"
19075 # Additional compiler flags for building library objects.
19076 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19077 pic_mode=$pic_mode
19079 # What is the maximum length of a command?
19080 max_cmd_len=$lt_cv_sys_max_cmd_len
19082 # Does compiler simultaneously support -c and -o options?
19083 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19085 # Must we lock files when doing compilation?
19086 need_locks=$lt_need_locks
19088 # Do we need the lib prefix for modules?
19089 need_lib_prefix=$need_lib_prefix
19091 # Do we need a version for libraries?
19092 need_version=$need_version
19094 # Whether dlopen is supported.
19095 dlopen_support=$enable_dlopen
19097 # Whether dlopen of programs is supported.
19098 dlopen_self=$enable_dlopen_self
19100 # Whether dlopen of statically linked programs is supported.
19101 dlopen_self_static=$enable_dlopen_self_static
19103 # Compiler flag to prevent dynamic linking.
19104 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19106 # Compiler flag to turn off builtin functions.
19107 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19109 # Compiler flag to allow reflexive dlopens.
19110 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19112 # Compiler flag to generate shared objects directly from archives.
19113 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19115 # Compiler flag to generate thread-safe objects.
19116 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19118 # Library versioning type.
19119 version_type=$version_type
19121 # Format of library name prefix.
19122 libname_spec=$lt_libname_spec
19124 # List of archive names. First name is the real one, the rest are links.
19125 # The last name is the one that the linker finds with -lNAME.
19126 library_names_spec=$lt_library_names_spec
19128 # The coded name of the library, if different from the real name.
19129 soname_spec=$lt_soname_spec
19131 # Commands used to build and install an old-style archive.
19132 RANLIB=$lt_RANLIB
19133 old_archive_cmds=$lt_old_archive_cmds_GCJ
19134 old_postinstall_cmds=$lt_old_postinstall_cmds
19135 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19137 # Create an old-style archive from a shared archive.
19138 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19140 # Create a temporary old-style archive to link instead of a shared archive.
19141 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19143 # Commands used to build and install a shared archive.
19144 archive_cmds=$lt_archive_cmds_GCJ
19145 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19146 postinstall_cmds=$lt_postinstall_cmds
19147 postuninstall_cmds=$lt_postuninstall_cmds
19149 # Commands used to build a loadable module (assumed same as above if empty)
19150 module_cmds=$lt_module_cmds_GCJ
19151 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19153 # Commands to strip libraries.
19154 old_striplib=$lt_old_striplib
19155 striplib=$lt_striplib
19157 # Dependencies to place before the objects being linked to create a
19158 # shared library.
19159 predep_objects=$lt_predep_objects_GCJ
19161 # Dependencies to place after the objects being linked to create a
19162 # shared library.
19163 postdep_objects=$lt_postdep_objects_GCJ
19165 # Dependencies to place before the objects being linked to create a
19166 # shared library.
19167 predeps=$lt_predeps_GCJ
19169 # Dependencies to place after the objects being linked to create a
19170 # shared library.
19171 postdeps=$lt_postdeps_GCJ
19173 # The library search path used internally by the compiler when linking
19174 # a shared library.
19175 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19177 # Method to check whether dependent libraries are shared objects.
19178 deplibs_check_method=$lt_deplibs_check_method
19180 # Command to use when deplibs_check_method == file_magic.
19181 file_magic_cmd=$lt_file_magic_cmd
19183 # Flag that allows shared libraries with undefined symbols to be built.
19184 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19186 # Flag that forces no undefined symbols.
19187 no_undefined_flag=$lt_no_undefined_flag_GCJ
19189 # Commands used to finish a libtool library installation in a directory.
19190 finish_cmds=$lt_finish_cmds
19192 # Same as above, but a single script fragment to be evaled but not shown.
19193 finish_eval=$lt_finish_eval
19195 # Take the output of nm and produce a listing of raw symbols and C names.
19196 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19198 # Transform the output of nm in a proper C declaration
19199 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19201 # Transform the output of nm in a C name address pair
19202 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19204 # This is the shared library runtime path variable.
19205 runpath_var=$runpath_var
19207 # This is the shared library path variable.
19208 shlibpath_var=$shlibpath_var
19210 # Is shlibpath searched before the hard-coded library search path?
19211 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19213 # How to hardcode a shared library path into an executable.
19214 hardcode_action=$hardcode_action_GCJ
19216 # Whether we should hardcode library paths into libraries.
19217 hardcode_into_libs=$hardcode_into_libs
19219 # Flag to hardcode \$libdir into a binary during linking.
19220 # This must work even if \$libdir does not exist.
19221 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19223 # If ld is used when linking, flag to hardcode \$libdir into
19224 # a binary during linking. This must work even if \$libdir does
19225 # not exist.
19226 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19228 # Whether we need a single -rpath flag with a separated argument.
19229 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19231 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19232 # resulting binary.
19233 hardcode_direct=$hardcode_direct_GCJ
19235 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19236 # resulting binary.
19237 hardcode_minus_L=$hardcode_minus_L_GCJ
19239 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19240 # the resulting binary.
19241 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19243 # Set to yes if building a shared library automatically hardcodes DIR into the library
19244 # and all subsequent libraries and executables linked against it.
19245 hardcode_automatic=$hardcode_automatic_GCJ
19247 # Variables whose values should be saved in libtool wrapper scripts and
19248 # restored at relink time.
19249 variables_saved_for_relink="$variables_saved_for_relink"
19251 # Whether libtool must link a program against all its dependency libraries.
19252 link_all_deplibs=$link_all_deplibs_GCJ
19254 # Compile-time system search path for libraries
19255 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19257 # Run-time system search path for libraries
19258 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19260 # Fix the shell variable \$srcfile for the compiler.
19261 fix_srcfile_path=$lt_fix_srcfile_path
19263 # Set to yes if exported symbols are required.
19264 always_export_symbols=$always_export_symbols_GCJ
19266 # The commands to list exported symbols.
19267 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19269 # The commands to extract the exported symbol list from a shared archive.
19270 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19272 # Symbols that should not be listed in the preloaded symbols.
19273 exclude_expsyms=$lt_exclude_expsyms_GCJ
19275 # Symbols that must always be exported.
19276 include_expsyms=$lt_include_expsyms_GCJ
19278 # ### END LIBTOOL TAG CONFIG: $tagname
19280 __EOF__
19283 else
19284 # If there is no Makefile yet, we rely on a make rule to execute
19285 # `config.status --recheck' to rerun these tests and create the
19286 # libtool script then.
19287 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19288 if test -f "$ltmain_in"; then
19289 test -f Makefile && make "$ltmain"
19294 ac_ext=c
19295 ac_cpp='$CPP $CPPFLAGS'
19296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19300 CC="$lt_save_CC"
19302 else
19303 tagname=""
19310 # Source file extension for RC test sources.
19311 ac_ext=rc
19313 # Object file extension for compiled RC test sources.
19314 objext=o
19315 objext_RC=$objext
19317 # Code to be used in simple compile tests
19318 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19320 # Code to be used in simple link tests
19321 lt_simple_link_test_code="$lt_simple_compile_test_code"
19323 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19325 # If no C compiler was specified, use CC.
19326 LTCC=${LTCC-"$CC"}
19328 # If no C compiler flags were specified, use CFLAGS.
19329 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19331 # Allow CC to be a program name with arguments.
19332 compiler=$CC
19335 # save warnings/boilerplate of simple test code
19336 ac_outfile=conftest.$ac_objext
19337 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19338 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19339 _lt_compiler_boilerplate=`cat conftest.err`
19340 $rm conftest*
19342 ac_outfile=conftest.$ac_objext
19343 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19344 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19345 _lt_linker_boilerplate=`cat conftest.err`
19346 $rm conftest*
19349 # Allow CC to be a program name with arguments.
19350 lt_save_CC="$CC"
19351 CC=${RC-"windres"}
19352 compiler=$CC
19353 compiler_RC=$CC
19354 for cc_temp in $compiler""; do
19355 case $cc_temp in
19356 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19357 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19358 \-*) ;;
19359 *) break;;
19360 esac
19361 done
19362 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19364 lt_cv_prog_compiler_c_o_RC=yes
19366 # The else clause should only fire when bootstrapping the
19367 # libtool distribution, otherwise you forgot to ship ltmain.sh
19368 # with your package, and you will get complaints that there are
19369 # no rules to generate ltmain.sh.
19370 if test -f "$ltmain"; then
19371 # See if we are running on zsh, and set the options which allow our commands through
19372 # without removal of \ escapes.
19373 if test -n "${ZSH_VERSION+set}" ; then
19374 setopt NO_GLOB_SUBST
19376 # Now quote all the things that may contain metacharacters while being
19377 # careful not to overquote the AC_SUBSTed values. We take copies of the
19378 # variables and quote the copies for generation of the libtool script.
19379 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19380 SED SHELL STRIP \
19381 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19382 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19383 deplibs_check_method reload_flag reload_cmds need_locks \
19384 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19385 lt_cv_sys_global_symbol_to_c_name_address \
19386 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19387 old_postinstall_cmds old_postuninstall_cmds \
19388 compiler_RC \
19389 CC_RC \
19390 LD_RC \
19391 lt_prog_compiler_wl_RC \
19392 lt_prog_compiler_pic_RC \
19393 lt_prog_compiler_static_RC \
19394 lt_prog_compiler_no_builtin_flag_RC \
19395 export_dynamic_flag_spec_RC \
19396 thread_safe_flag_spec_RC \
19397 whole_archive_flag_spec_RC \
19398 enable_shared_with_static_runtimes_RC \
19399 old_archive_cmds_RC \
19400 old_archive_from_new_cmds_RC \
19401 predep_objects_RC \
19402 postdep_objects_RC \
19403 predeps_RC \
19404 postdeps_RC \
19405 compiler_lib_search_path_RC \
19406 archive_cmds_RC \
19407 archive_expsym_cmds_RC \
19408 postinstall_cmds_RC \
19409 postuninstall_cmds_RC \
19410 old_archive_from_expsyms_cmds_RC \
19411 allow_undefined_flag_RC \
19412 no_undefined_flag_RC \
19413 export_symbols_cmds_RC \
19414 hardcode_libdir_flag_spec_RC \
19415 hardcode_libdir_flag_spec_ld_RC \
19416 hardcode_libdir_separator_RC \
19417 hardcode_automatic_RC \
19418 module_cmds_RC \
19419 module_expsym_cmds_RC \
19420 lt_cv_prog_compiler_c_o_RC \
19421 fix_srcfile_path_RC \
19422 exclude_expsyms_RC \
19423 include_expsyms_RC; do
19425 case $var in
19426 old_archive_cmds_RC | \
19427 old_archive_from_new_cmds_RC | \
19428 archive_cmds_RC | \
19429 archive_expsym_cmds_RC | \
19430 module_cmds_RC | \
19431 module_expsym_cmds_RC | \
19432 old_archive_from_expsyms_cmds_RC | \
19433 export_symbols_cmds_RC | \
19434 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19435 postinstall_cmds | postuninstall_cmds | \
19436 old_postinstall_cmds | old_postuninstall_cmds | \
19437 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19438 # Double-quote double-evaled strings.
19439 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19442 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19444 esac
19445 done
19447 case $lt_echo in
19448 *'\$0 --fallback-echo"')
19449 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19451 esac
19453 cfgfile="$ofile"
19455 cat <<__EOF__ >> "$cfgfile"
19456 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19458 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19460 # Shell to use when invoking shell scripts.
19461 SHELL=$lt_SHELL
19463 # Whether or not to build shared libraries.
19464 build_libtool_libs=$enable_shared
19466 # Whether or not to build static libraries.
19467 build_old_libs=$enable_static
19469 # Whether or not to add -lc for building shared libraries.
19470 build_libtool_need_lc=$archive_cmds_need_lc_RC
19472 # Whether or not to disallow shared libs when runtime libs are static
19473 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19475 # Whether or not to optimize for fast installation.
19476 fast_install=$enable_fast_install
19478 # The host system.
19479 host_alias=$host_alias
19480 host=$host
19481 host_os=$host_os
19483 # The build system.
19484 build_alias=$build_alias
19485 build=$build
19486 build_os=$build_os
19488 # An echo program that does not interpret backslashes.
19489 echo=$lt_echo
19491 # The archiver.
19492 AR=$lt_AR
19493 AR_FLAGS=$lt_AR_FLAGS
19495 # A C compiler.
19496 LTCC=$lt_LTCC
19498 # LTCC compiler flags.
19499 LTCFLAGS=$lt_LTCFLAGS
19501 # A language-specific compiler.
19502 CC=$lt_compiler_RC
19504 # Is the compiler the GNU C compiler?
19505 with_gcc=$GCC_RC
19507 # An ERE matcher.
19508 EGREP=$lt_EGREP
19510 # The linker used to build libraries.
19511 LD=$lt_LD_RC
19513 # Whether we need hard or soft links.
19514 LN_S=$lt_LN_S
19516 # A BSD-compatible nm program.
19517 NM=$lt_NM
19519 # A symbol stripping program
19520 STRIP=$lt_STRIP
19522 # Used to examine libraries when file_magic_cmd begins "file"
19523 MAGIC_CMD=$MAGIC_CMD
19525 # Used on cygwin: DLL creation program.
19526 DLLTOOL="$DLLTOOL"
19528 # Used on cygwin: object dumper.
19529 OBJDUMP="$OBJDUMP"
19531 # Used on cygwin: assembler.
19532 AS="$AS"
19534 # The name of the directory that contains temporary libtool files.
19535 objdir=$objdir
19537 # How to create reloadable object files.
19538 reload_flag=$lt_reload_flag
19539 reload_cmds=$lt_reload_cmds
19541 # How to pass a linker flag through the compiler.
19542 wl=$lt_lt_prog_compiler_wl_RC
19544 # Object file suffix (normally "o").
19545 objext="$ac_objext"
19547 # Old archive suffix (normally "a").
19548 libext="$libext"
19550 # Shared library suffix (normally ".so").
19551 shrext_cmds='$shrext_cmds'
19553 # Executable file suffix (normally "").
19554 exeext="$exeext"
19556 # Additional compiler flags for building library objects.
19557 pic_flag=$lt_lt_prog_compiler_pic_RC
19558 pic_mode=$pic_mode
19560 # What is the maximum length of a command?
19561 max_cmd_len=$lt_cv_sys_max_cmd_len
19563 # Does compiler simultaneously support -c and -o options?
19564 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19566 # Must we lock files when doing compilation?
19567 need_locks=$lt_need_locks
19569 # Do we need the lib prefix for modules?
19570 need_lib_prefix=$need_lib_prefix
19572 # Do we need a version for libraries?
19573 need_version=$need_version
19575 # Whether dlopen is supported.
19576 dlopen_support=$enable_dlopen
19578 # Whether dlopen of programs is supported.
19579 dlopen_self=$enable_dlopen_self
19581 # Whether dlopen of statically linked programs is supported.
19582 dlopen_self_static=$enable_dlopen_self_static
19584 # Compiler flag to prevent dynamic linking.
19585 link_static_flag=$lt_lt_prog_compiler_static_RC
19587 # Compiler flag to turn off builtin functions.
19588 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19590 # Compiler flag to allow reflexive dlopens.
19591 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19593 # Compiler flag to generate shared objects directly from archives.
19594 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19596 # Compiler flag to generate thread-safe objects.
19597 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19599 # Library versioning type.
19600 version_type=$version_type
19602 # Format of library name prefix.
19603 libname_spec=$lt_libname_spec
19605 # List of archive names. First name is the real one, the rest are links.
19606 # The last name is the one that the linker finds with -lNAME.
19607 library_names_spec=$lt_library_names_spec
19609 # The coded name of the library, if different from the real name.
19610 soname_spec=$lt_soname_spec
19612 # Commands used to build and install an old-style archive.
19613 RANLIB=$lt_RANLIB
19614 old_archive_cmds=$lt_old_archive_cmds_RC
19615 old_postinstall_cmds=$lt_old_postinstall_cmds
19616 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19618 # Create an old-style archive from a shared archive.
19619 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19621 # Create a temporary old-style archive to link instead of a shared archive.
19622 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19624 # Commands used to build and install a shared archive.
19625 archive_cmds=$lt_archive_cmds_RC
19626 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19627 postinstall_cmds=$lt_postinstall_cmds
19628 postuninstall_cmds=$lt_postuninstall_cmds
19630 # Commands used to build a loadable module (assumed same as above if empty)
19631 module_cmds=$lt_module_cmds_RC
19632 module_expsym_cmds=$lt_module_expsym_cmds_RC
19634 # Commands to strip libraries.
19635 old_striplib=$lt_old_striplib
19636 striplib=$lt_striplib
19638 # Dependencies to place before the objects being linked to create a
19639 # shared library.
19640 predep_objects=$lt_predep_objects_RC
19642 # Dependencies to place after the objects being linked to create a
19643 # shared library.
19644 postdep_objects=$lt_postdep_objects_RC
19646 # Dependencies to place before the objects being linked to create a
19647 # shared library.
19648 predeps=$lt_predeps_RC
19650 # Dependencies to place after the objects being linked to create a
19651 # shared library.
19652 postdeps=$lt_postdeps_RC
19654 # The library search path used internally by the compiler when linking
19655 # a shared library.
19656 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19658 # Method to check whether dependent libraries are shared objects.
19659 deplibs_check_method=$lt_deplibs_check_method
19661 # Command to use when deplibs_check_method == file_magic.
19662 file_magic_cmd=$lt_file_magic_cmd
19664 # Flag that allows shared libraries with undefined symbols to be built.
19665 allow_undefined_flag=$lt_allow_undefined_flag_RC
19667 # Flag that forces no undefined symbols.
19668 no_undefined_flag=$lt_no_undefined_flag_RC
19670 # Commands used to finish a libtool library installation in a directory.
19671 finish_cmds=$lt_finish_cmds
19673 # Same as above, but a single script fragment to be evaled but not shown.
19674 finish_eval=$lt_finish_eval
19676 # Take the output of nm and produce a listing of raw symbols and C names.
19677 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19679 # Transform the output of nm in a proper C declaration
19680 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19682 # Transform the output of nm in a C name address pair
19683 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19685 # This is the shared library runtime path variable.
19686 runpath_var=$runpath_var
19688 # This is the shared library path variable.
19689 shlibpath_var=$shlibpath_var
19691 # Is shlibpath searched before the hard-coded library search path?
19692 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19694 # How to hardcode a shared library path into an executable.
19695 hardcode_action=$hardcode_action_RC
19697 # Whether we should hardcode library paths into libraries.
19698 hardcode_into_libs=$hardcode_into_libs
19700 # Flag to hardcode \$libdir into a binary during linking.
19701 # This must work even if \$libdir does not exist.
19702 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19704 # If ld is used when linking, flag to hardcode \$libdir into
19705 # a binary during linking. This must work even if \$libdir does
19706 # not exist.
19707 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19709 # Whether we need a single -rpath flag with a separated argument.
19710 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19712 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19713 # resulting binary.
19714 hardcode_direct=$hardcode_direct_RC
19716 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19717 # resulting binary.
19718 hardcode_minus_L=$hardcode_minus_L_RC
19720 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19721 # the resulting binary.
19722 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19724 # Set to yes if building a shared library automatically hardcodes DIR into the library
19725 # and all subsequent libraries and executables linked against it.
19726 hardcode_automatic=$hardcode_automatic_RC
19728 # Variables whose values should be saved in libtool wrapper scripts and
19729 # restored at relink time.
19730 variables_saved_for_relink="$variables_saved_for_relink"
19732 # Whether libtool must link a program against all its dependency libraries.
19733 link_all_deplibs=$link_all_deplibs_RC
19735 # Compile-time system search path for libraries
19736 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19738 # Run-time system search path for libraries
19739 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19741 # Fix the shell variable \$srcfile for the compiler.
19742 fix_srcfile_path=$lt_fix_srcfile_path
19744 # Set to yes if exported symbols are required.
19745 always_export_symbols=$always_export_symbols_RC
19747 # The commands to list exported symbols.
19748 export_symbols_cmds=$lt_export_symbols_cmds_RC
19750 # The commands to extract the exported symbol list from a shared archive.
19751 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19753 # Symbols that should not be listed in the preloaded symbols.
19754 exclude_expsyms=$lt_exclude_expsyms_RC
19756 # Symbols that must always be exported.
19757 include_expsyms=$lt_include_expsyms_RC
19759 # ### END LIBTOOL TAG CONFIG: $tagname
19761 __EOF__
19764 else
19765 # If there is no Makefile yet, we rely on a make rule to execute
19766 # `config.status --recheck' to rerun these tests and create the
19767 # libtool script then.
19768 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19769 if test -f "$ltmain_in"; then
19770 test -f Makefile && make "$ltmain"
19775 ac_ext=c
19776 ac_cpp='$CPP $CPPFLAGS'
19777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19781 CC="$lt_save_CC"
19786 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19787 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19788 { (exit 1); exit 1; }; }
19790 esac
19792 # Append the new tag name to the list of available tags.
19793 if test -n "$tagname" ; then
19794 available_tags="$available_tags $tagname"
19797 done
19798 IFS="$lt_save_ifs"
19800 # Now substitute the updated list of available tags.
19801 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19802 mv "${ofile}T" "$ofile"
19803 chmod +x "$ofile"
19804 else
19805 rm -f "${ofile}T"
19806 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19807 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19808 { (exit 1); exit 1; }; }
19814 # This can be used to rebuild libtool when needed
19815 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19817 # Always use our own libtool.
19818 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19820 # Prevent multiple expansion
19848 ac_header_dirent=no
19849 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19850 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19851 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19852 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
19853 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19854 echo $ECHO_N "(cached) $ECHO_C" >&6
19855 else
19856 cat >conftest.$ac_ext <<_ACEOF
19857 /* confdefs.h. */
19858 _ACEOF
19859 cat confdefs.h >>conftest.$ac_ext
19860 cat >>conftest.$ac_ext <<_ACEOF
19861 /* end confdefs.h. */
19862 #include <sys/types.h>
19863 #include <$ac_hdr>
19866 main ()
19868 if ((DIR *) 0)
19869 return 0;
19871 return 0;
19873 _ACEOF
19874 rm -f conftest.$ac_objext
19875 if { (ac_try="$ac_compile"
19876 case "(($ac_try" in
19877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19878 *) ac_try_echo=$ac_try;;
19879 esac
19880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19881 (eval "$ac_compile") 2>conftest.er1
19882 ac_status=$?
19883 grep -v '^ *+' conftest.er1 >conftest.err
19884 rm -f conftest.er1
19885 cat conftest.err >&5
19886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887 (exit $ac_status); } && {
19888 test -z "$ac_c_werror_flag" ||
19889 test ! -s conftest.err
19890 } && test -s conftest.$ac_objext; then
19891 eval "$as_ac_Header=yes"
19892 else
19893 echo "$as_me: failed program was:" >&5
19894 sed 's/^/| /' conftest.$ac_ext >&5
19896 eval "$as_ac_Header=no"
19899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19901 ac_res=`eval echo '${'$as_ac_Header'}'`
19902 { echo "$as_me:$LINENO: result: $ac_res" >&5
19903 echo "${ECHO_T}$ac_res" >&6; }
19904 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19905 cat >>confdefs.h <<_ACEOF
19906 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19907 _ACEOF
19909 ac_header_dirent=$ac_hdr; break
19912 done
19913 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19914 if test $ac_header_dirent = dirent.h; then
19915 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
19916 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
19917 if test "${ac_cv_search_opendir+set}" = set; then
19918 echo $ECHO_N "(cached) $ECHO_C" >&6
19919 else
19920 ac_func_search_save_LIBS=$LIBS
19921 cat >conftest.$ac_ext <<_ACEOF
19922 /* confdefs.h. */
19923 _ACEOF
19924 cat confdefs.h >>conftest.$ac_ext
19925 cat >>conftest.$ac_ext <<_ACEOF
19926 /* end confdefs.h. */
19928 /* Override any GCC internal prototype to avoid an error.
19929 Use char because int might match the return type of a GCC
19930 builtin and then its argument prototype would still apply. */
19931 #ifdef __cplusplus
19932 extern "C"
19933 #endif
19934 char opendir ();
19936 main ()
19938 return opendir ();
19940 return 0;
19942 _ACEOF
19943 for ac_lib in '' dir; do
19944 if test -z "$ac_lib"; then
19945 ac_res="none required"
19946 else
19947 ac_res=-l$ac_lib
19948 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19950 rm -f conftest.$ac_objext conftest$ac_exeext
19951 if { (ac_try="$ac_link"
19952 case "(($ac_try" in
19953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19954 *) ac_try_echo=$ac_try;;
19955 esac
19956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19957 (eval "$ac_link") 2>conftest.er1
19958 ac_status=$?
19959 grep -v '^ *+' conftest.er1 >conftest.err
19960 rm -f conftest.er1
19961 cat conftest.err >&5
19962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19963 (exit $ac_status); } && {
19964 test -z "$ac_c_werror_flag" ||
19965 test ! -s conftest.err
19966 } && test -s conftest$ac_exeext &&
19967 $as_test_x conftest$ac_exeext; then
19968 ac_cv_search_opendir=$ac_res
19969 else
19970 echo "$as_me: failed program was:" >&5
19971 sed 's/^/| /' conftest.$ac_ext >&5
19976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19977 conftest$ac_exeext
19978 if test "${ac_cv_search_opendir+set}" = set; then
19979 break
19981 done
19982 if test "${ac_cv_search_opendir+set}" = set; then
19984 else
19985 ac_cv_search_opendir=no
19987 rm conftest.$ac_ext
19988 LIBS=$ac_func_search_save_LIBS
19990 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19991 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
19992 ac_res=$ac_cv_search_opendir
19993 if test "$ac_res" != no; then
19994 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19998 else
19999 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20000 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20001 if test "${ac_cv_search_opendir+set}" = set; then
20002 echo $ECHO_N "(cached) $ECHO_C" >&6
20003 else
20004 ac_func_search_save_LIBS=$LIBS
20005 cat >conftest.$ac_ext <<_ACEOF
20006 /* confdefs.h. */
20007 _ACEOF
20008 cat confdefs.h >>conftest.$ac_ext
20009 cat >>conftest.$ac_ext <<_ACEOF
20010 /* end confdefs.h. */
20012 /* Override any GCC internal prototype to avoid an error.
20013 Use char because int might match the return type of a GCC
20014 builtin and then its argument prototype would still apply. */
20015 #ifdef __cplusplus
20016 extern "C"
20017 #endif
20018 char opendir ();
20020 main ()
20022 return opendir ();
20024 return 0;
20026 _ACEOF
20027 for ac_lib in '' x; do
20028 if test -z "$ac_lib"; then
20029 ac_res="none required"
20030 else
20031 ac_res=-l$ac_lib
20032 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20034 rm -f conftest.$ac_objext conftest$ac_exeext
20035 if { (ac_try="$ac_link"
20036 case "(($ac_try" in
20037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20038 *) ac_try_echo=$ac_try;;
20039 esac
20040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20041 (eval "$ac_link") 2>conftest.er1
20042 ac_status=$?
20043 grep -v '^ *+' conftest.er1 >conftest.err
20044 rm -f conftest.er1
20045 cat conftest.err >&5
20046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047 (exit $ac_status); } && {
20048 test -z "$ac_c_werror_flag" ||
20049 test ! -s conftest.err
20050 } && test -s conftest$ac_exeext &&
20051 $as_test_x conftest$ac_exeext; then
20052 ac_cv_search_opendir=$ac_res
20053 else
20054 echo "$as_me: failed program was:" >&5
20055 sed 's/^/| /' conftest.$ac_ext >&5
20060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20061 conftest$ac_exeext
20062 if test "${ac_cv_search_opendir+set}" = set; then
20063 break
20065 done
20066 if test "${ac_cv_search_opendir+set}" = set; then
20068 else
20069 ac_cv_search_opendir=no
20071 rm conftest.$ac_ext
20072 LIBS=$ac_func_search_save_LIBS
20074 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20075 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20076 ac_res=$ac_cv_search_opendir
20077 if test "$ac_res" != no; then
20078 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20084 # Check whether --enable-ltdl-install was given.
20085 if test "${enable_ltdl_install+set}" = set; then
20086 enableval=$enable_ltdl_install;
20090 if test x"${enable_ltdl_install-no}" != xno; then
20091 INSTALL_LTDL_TRUE=
20092 INSTALL_LTDL_FALSE='#'
20093 else
20094 INSTALL_LTDL_TRUE='#'
20095 INSTALL_LTDL_FALSE=
20098 if test x"${enable_ltdl_convenience-no}" != xno; then
20099 CONVENIENCE_LTDL_TRUE=
20100 CONVENIENCE_LTDL_FALSE='#'
20101 else
20102 CONVENIENCE_LTDL_TRUE='#'
20103 CONVENIENCE_LTDL_FALSE=
20108 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
20109 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
20110 if test "${libltdl_cv_shlibext+set}" = set; then
20111 echo $ECHO_N "(cached) $ECHO_C" >&6
20112 else
20114 module=yes
20115 eval libltdl_cv_shlibext=$shrext_cmds
20118 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
20119 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
20120 if test -n "$libltdl_cv_shlibext"; then
20122 cat >>confdefs.h <<_ACEOF
20123 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
20124 _ACEOF
20129 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
20130 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
20131 if test "${libltdl_cv_shlibpath_var+set}" = set; then
20132 echo $ECHO_N "(cached) $ECHO_C" >&6
20133 else
20134 libltdl_cv_shlibpath_var="$shlibpath_var"
20136 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
20137 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
20138 if test -n "$libltdl_cv_shlibpath_var"; then
20140 cat >>confdefs.h <<_ACEOF
20141 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
20142 _ACEOF
20147 { echo "$as_me:$LINENO: checking for the default library search path" >&5
20148 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
20149 if test "${libltdl_cv_sys_search_path+set}" = set; then
20150 echo $ECHO_N "(cached) $ECHO_C" >&6
20151 else
20152 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
20154 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
20155 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
20156 if test -n "$libltdl_cv_sys_search_path"; then
20157 sys_search_path=
20158 for dir in $libltdl_cv_sys_search_path; do
20159 if test -z "$sys_search_path"; then
20160 sys_search_path="$dir"
20161 else
20162 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
20164 done
20166 cat >>confdefs.h <<_ACEOF
20167 #define LTDL_SYSSEARCHPATH "$sys_search_path"
20168 _ACEOF
20172 { echo "$as_me:$LINENO: checking for objdir" >&5
20173 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
20174 if test "${libltdl_cv_objdir+set}" = set; then
20175 echo $ECHO_N "(cached) $ECHO_C" >&6
20176 else
20177 libltdl_cv_objdir="$objdir"
20178 if test -n "$objdir"; then
20180 else
20181 rm -f .libs 2>/dev/null
20182 mkdir .libs 2>/dev/null
20183 if test -d .libs; then
20184 libltdl_cv_objdir=.libs
20185 else
20186 # MS-DOS does not allow filenames that begin with a dot.
20187 libltdl_cv_objdir=_libs
20189 rmdir .libs 2>/dev/null
20193 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
20194 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
20196 cat >>confdefs.h <<_ACEOF
20197 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
20198 _ACEOF
20202 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
20203 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
20204 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
20205 echo $ECHO_N "(cached) $ECHO_C" >&6
20206 else
20207 if test -n "$lt_cv_sys_global_symbol_pipe"; then
20208 libltdl_cv_preloaded_symbols=yes
20209 else
20210 libltdl_cv_preloaded_symbols=no
20214 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
20215 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
20216 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
20218 cat >>confdefs.h <<\_ACEOF
20219 #define HAVE_PRELOADED_SYMBOLS 1
20220 _ACEOF
20224 LIBADD_DL=
20226 ac_ext=c
20227 ac_cpp='$CPP $CPPFLAGS'
20228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20233 { echo "$as_me:$LINENO: checking for shl_load" >&5
20234 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
20235 if test "${ac_cv_func_shl_load+set}" = set; then
20236 echo $ECHO_N "(cached) $ECHO_C" >&6
20237 else
20238 cat >conftest.$ac_ext <<_ACEOF
20239 /* confdefs.h. */
20240 _ACEOF
20241 cat confdefs.h >>conftest.$ac_ext
20242 cat >>conftest.$ac_ext <<_ACEOF
20243 /* end confdefs.h. */
20244 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20246 #define shl_load innocuous_shl_load
20248 /* System header to define __stub macros and hopefully few prototypes,
20249 which can conflict with char shl_load (); below.
20250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20251 <limits.h> exists even on freestanding compilers. */
20253 #ifdef __STDC__
20254 # include <limits.h>
20255 #else
20256 # include <assert.h>
20257 #endif
20259 #undef shl_load
20261 /* Override any GCC internal prototype to avoid an error.
20262 Use char because int might match the return type of a GCC
20263 builtin and then its argument prototype would still apply. */
20264 #ifdef __cplusplus
20265 extern "C"
20266 #endif
20267 char shl_load ();
20268 /* The GNU C library defines this for functions which it implements
20269 to always fail with ENOSYS. Some functions are actually named
20270 something starting with __ and the normal name is an alias. */
20271 #if defined __stub_shl_load || defined __stub___shl_load
20272 choke me
20273 #endif
20276 main ()
20278 return shl_load ();
20280 return 0;
20282 _ACEOF
20283 rm -f conftest.$ac_objext conftest$ac_exeext
20284 if { (ac_try="$ac_link"
20285 case "(($ac_try" in
20286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20287 *) ac_try_echo=$ac_try;;
20288 esac
20289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20290 (eval "$ac_link") 2>conftest.er1
20291 ac_status=$?
20292 grep -v '^ *+' conftest.er1 >conftest.err
20293 rm -f conftest.er1
20294 cat conftest.err >&5
20295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20296 (exit $ac_status); } && {
20297 test -z "$ac_c_werror_flag" ||
20298 test ! -s conftest.err
20299 } && test -s conftest$ac_exeext &&
20300 $as_test_x conftest$ac_exeext; then
20301 ac_cv_func_shl_load=yes
20302 else
20303 echo "$as_me: failed program was:" >&5
20304 sed 's/^/| /' conftest.$ac_ext >&5
20306 ac_cv_func_shl_load=no
20309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20310 conftest$ac_exeext conftest.$ac_ext
20312 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20313 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
20314 if test $ac_cv_func_shl_load = yes; then
20316 cat >>confdefs.h <<\_ACEOF
20317 #define HAVE_SHL_LOAD 1
20318 _ACEOF
20320 else
20321 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20322 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
20323 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20324 echo $ECHO_N "(cached) $ECHO_C" >&6
20325 else
20326 ac_check_lib_save_LIBS=$LIBS
20327 LIBS="-ldld $LIBS"
20328 cat >conftest.$ac_ext <<_ACEOF
20329 /* confdefs.h. */
20330 _ACEOF
20331 cat confdefs.h >>conftest.$ac_ext
20332 cat >>conftest.$ac_ext <<_ACEOF
20333 /* end confdefs.h. */
20335 /* Override any GCC internal prototype to avoid an error.
20336 Use char because int might match the return type of a GCC
20337 builtin and then its argument prototype would still apply. */
20338 #ifdef __cplusplus
20339 extern "C"
20340 #endif
20341 char shl_load ();
20343 main ()
20345 return shl_load ();
20347 return 0;
20349 _ACEOF
20350 rm -f conftest.$ac_objext conftest$ac_exeext
20351 if { (ac_try="$ac_link"
20352 case "(($ac_try" in
20353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20354 *) ac_try_echo=$ac_try;;
20355 esac
20356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20357 (eval "$ac_link") 2>conftest.er1
20358 ac_status=$?
20359 grep -v '^ *+' conftest.er1 >conftest.err
20360 rm -f conftest.er1
20361 cat conftest.err >&5
20362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363 (exit $ac_status); } && {
20364 test -z "$ac_c_werror_flag" ||
20365 test ! -s conftest.err
20366 } && test -s conftest$ac_exeext &&
20367 $as_test_x conftest$ac_exeext; then
20368 ac_cv_lib_dld_shl_load=yes
20369 else
20370 echo "$as_me: failed program was:" >&5
20371 sed 's/^/| /' conftest.$ac_ext >&5
20373 ac_cv_lib_dld_shl_load=no
20376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20377 conftest$ac_exeext conftest.$ac_ext
20378 LIBS=$ac_check_lib_save_LIBS
20380 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20381 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
20382 if test $ac_cv_lib_dld_shl_load = yes; then
20384 cat >>confdefs.h <<\_ACEOF
20385 #define HAVE_SHL_LOAD 1
20386 _ACEOF
20388 LIBADD_DL="$LIBADD_DL -ldld"
20389 else
20390 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20391 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
20392 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20393 echo $ECHO_N "(cached) $ECHO_C" >&6
20394 else
20395 ac_check_lib_save_LIBS=$LIBS
20396 LIBS="-ldl $LIBS"
20397 cat >conftest.$ac_ext <<_ACEOF
20398 /* confdefs.h. */
20399 _ACEOF
20400 cat confdefs.h >>conftest.$ac_ext
20401 cat >>conftest.$ac_ext <<_ACEOF
20402 /* end confdefs.h. */
20404 /* Override any GCC internal prototype to avoid an error.
20405 Use char because int might match the return type of a GCC
20406 builtin and then its argument prototype would still apply. */
20407 #ifdef __cplusplus
20408 extern "C"
20409 #endif
20410 char dlopen ();
20412 main ()
20414 return dlopen ();
20416 return 0;
20418 _ACEOF
20419 rm -f conftest.$ac_objext conftest$ac_exeext
20420 if { (ac_try="$ac_link"
20421 case "(($ac_try" in
20422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20423 *) ac_try_echo=$ac_try;;
20424 esac
20425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20426 (eval "$ac_link") 2>conftest.er1
20427 ac_status=$?
20428 grep -v '^ *+' conftest.er1 >conftest.err
20429 rm -f conftest.er1
20430 cat conftest.err >&5
20431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20432 (exit $ac_status); } && {
20433 test -z "$ac_c_werror_flag" ||
20434 test ! -s conftest.err
20435 } && test -s conftest$ac_exeext &&
20436 $as_test_x conftest$ac_exeext; then
20437 ac_cv_lib_dl_dlopen=yes
20438 else
20439 echo "$as_me: failed program was:" >&5
20440 sed 's/^/| /' conftest.$ac_ext >&5
20442 ac_cv_lib_dl_dlopen=no
20445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20446 conftest$ac_exeext conftest.$ac_ext
20447 LIBS=$ac_check_lib_save_LIBS
20449 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20450 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
20451 if test $ac_cv_lib_dl_dlopen = yes; then
20453 cat >>confdefs.h <<\_ACEOF
20454 #define HAVE_LIBDL 1
20455 _ACEOF
20457 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
20458 else
20459 cat >conftest.$ac_ext <<_ACEOF
20460 /* confdefs.h. */
20461 _ACEOF
20462 cat confdefs.h >>conftest.$ac_ext
20463 cat >>conftest.$ac_ext <<_ACEOF
20464 /* end confdefs.h. */
20465 #if HAVE_DLFCN_H
20466 # include <dlfcn.h>
20467 #endif
20470 main ()
20472 dlopen(0, 0);
20474 return 0;
20476 _ACEOF
20477 rm -f conftest.$ac_objext conftest$ac_exeext
20478 if { (ac_try="$ac_link"
20479 case "(($ac_try" in
20480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20481 *) ac_try_echo=$ac_try;;
20482 esac
20483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20484 (eval "$ac_link") 2>conftest.er1
20485 ac_status=$?
20486 grep -v '^ *+' conftest.er1 >conftest.err
20487 rm -f conftest.er1
20488 cat conftest.err >&5
20489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490 (exit $ac_status); } && {
20491 test -z "$ac_c_werror_flag" ||
20492 test ! -s conftest.err
20493 } && test -s conftest$ac_exeext &&
20494 $as_test_x conftest$ac_exeext; then
20496 cat >>confdefs.h <<\_ACEOF
20497 #define HAVE_LIBDL 1
20498 _ACEOF
20499 libltdl_cv_func_dlopen="yes"
20500 else
20501 echo "$as_me: failed program was:" >&5
20502 sed 's/^/| /' conftest.$ac_ext >&5
20504 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20505 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
20506 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20507 echo $ECHO_N "(cached) $ECHO_C" >&6
20508 else
20509 ac_check_lib_save_LIBS=$LIBS
20510 LIBS="-lsvld $LIBS"
20511 cat >conftest.$ac_ext <<_ACEOF
20512 /* confdefs.h. */
20513 _ACEOF
20514 cat confdefs.h >>conftest.$ac_ext
20515 cat >>conftest.$ac_ext <<_ACEOF
20516 /* end confdefs.h. */
20518 /* Override any GCC internal prototype to avoid an error.
20519 Use char because int might match the return type of a GCC
20520 builtin and then its argument prototype would still apply. */
20521 #ifdef __cplusplus
20522 extern "C"
20523 #endif
20524 char dlopen ();
20526 main ()
20528 return dlopen ();
20530 return 0;
20532 _ACEOF
20533 rm -f conftest.$ac_objext conftest$ac_exeext
20534 if { (ac_try="$ac_link"
20535 case "(($ac_try" in
20536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20537 *) ac_try_echo=$ac_try;;
20538 esac
20539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20540 (eval "$ac_link") 2>conftest.er1
20541 ac_status=$?
20542 grep -v '^ *+' conftest.er1 >conftest.err
20543 rm -f conftest.er1
20544 cat conftest.err >&5
20545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20546 (exit $ac_status); } && {
20547 test -z "$ac_c_werror_flag" ||
20548 test ! -s conftest.err
20549 } && test -s conftest$ac_exeext &&
20550 $as_test_x conftest$ac_exeext; then
20551 ac_cv_lib_svld_dlopen=yes
20552 else
20553 echo "$as_me: failed program was:" >&5
20554 sed 's/^/| /' conftest.$ac_ext >&5
20556 ac_cv_lib_svld_dlopen=no
20559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20560 conftest$ac_exeext conftest.$ac_ext
20561 LIBS=$ac_check_lib_save_LIBS
20563 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20564 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
20565 if test $ac_cv_lib_svld_dlopen = yes; then
20567 cat >>confdefs.h <<\_ACEOF
20568 #define HAVE_LIBDL 1
20569 _ACEOF
20571 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
20572 else
20573 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20574 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
20575 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20576 echo $ECHO_N "(cached) $ECHO_C" >&6
20577 else
20578 ac_check_lib_save_LIBS=$LIBS
20579 LIBS="-ldld $LIBS"
20580 cat >conftest.$ac_ext <<_ACEOF
20581 /* confdefs.h. */
20582 _ACEOF
20583 cat confdefs.h >>conftest.$ac_ext
20584 cat >>conftest.$ac_ext <<_ACEOF
20585 /* end confdefs.h. */
20587 /* Override any GCC internal prototype to avoid an error.
20588 Use char because int might match the return type of a GCC
20589 builtin and then its argument prototype would still apply. */
20590 #ifdef __cplusplus
20591 extern "C"
20592 #endif
20593 char dld_link ();
20595 main ()
20597 return dld_link ();
20599 return 0;
20601 _ACEOF
20602 rm -f conftest.$ac_objext conftest$ac_exeext
20603 if { (ac_try="$ac_link"
20604 case "(($ac_try" in
20605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20606 *) ac_try_echo=$ac_try;;
20607 esac
20608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20609 (eval "$ac_link") 2>conftest.er1
20610 ac_status=$?
20611 grep -v '^ *+' conftest.er1 >conftest.err
20612 rm -f conftest.er1
20613 cat conftest.err >&5
20614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615 (exit $ac_status); } && {
20616 test -z "$ac_c_werror_flag" ||
20617 test ! -s conftest.err
20618 } && test -s conftest$ac_exeext &&
20619 $as_test_x conftest$ac_exeext; then
20620 ac_cv_lib_dld_dld_link=yes
20621 else
20622 echo "$as_me: failed program was:" >&5
20623 sed 's/^/| /' conftest.$ac_ext >&5
20625 ac_cv_lib_dld_dld_link=no
20628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20629 conftest$ac_exeext conftest.$ac_ext
20630 LIBS=$ac_check_lib_save_LIBS
20632 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20633 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
20634 if test $ac_cv_lib_dld_dld_link = yes; then
20636 cat >>confdefs.h <<\_ACEOF
20637 #define HAVE_DLD 1
20638 _ACEOF
20640 LIBADD_DL="$LIBADD_DL -ldld"
20641 else
20642 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
20643 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
20644 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
20645 echo $ECHO_N "(cached) $ECHO_C" >&6
20646 else
20647 cat >conftest.$ac_ext <<_ACEOF
20648 /* confdefs.h. */
20649 _ACEOF
20650 cat confdefs.h >>conftest.$ac_ext
20651 cat >>conftest.$ac_ext <<_ACEOF
20652 /* end confdefs.h. */
20653 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
20654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20655 #define _dyld_func_lookup innocuous__dyld_func_lookup
20657 /* System header to define __stub macros and hopefully few prototypes,
20658 which can conflict with char _dyld_func_lookup (); below.
20659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20660 <limits.h> exists even on freestanding compilers. */
20662 #ifdef __STDC__
20663 # include <limits.h>
20664 #else
20665 # include <assert.h>
20666 #endif
20668 #undef _dyld_func_lookup
20670 /* Override any GCC internal prototype to avoid an error.
20671 Use char because int might match the return type of a GCC
20672 builtin and then its argument prototype would still apply. */
20673 #ifdef __cplusplus
20674 extern "C"
20675 #endif
20676 char _dyld_func_lookup ();
20677 /* The GNU C library defines this for functions which it implements
20678 to always fail with ENOSYS. Some functions are actually named
20679 something starting with __ and the normal name is an alias. */
20680 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
20681 choke me
20682 #endif
20685 main ()
20687 return _dyld_func_lookup ();
20689 return 0;
20691 _ACEOF
20692 rm -f conftest.$ac_objext conftest$ac_exeext
20693 if { (ac_try="$ac_link"
20694 case "(($ac_try" in
20695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20696 *) ac_try_echo=$ac_try;;
20697 esac
20698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20699 (eval "$ac_link") 2>conftest.er1
20700 ac_status=$?
20701 grep -v '^ *+' conftest.er1 >conftest.err
20702 rm -f conftest.er1
20703 cat conftest.err >&5
20704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20705 (exit $ac_status); } && {
20706 test -z "$ac_c_werror_flag" ||
20707 test ! -s conftest.err
20708 } && test -s conftest$ac_exeext &&
20709 $as_test_x conftest$ac_exeext; then
20710 ac_cv_func__dyld_func_lookup=yes
20711 else
20712 echo "$as_me: failed program was:" >&5
20713 sed 's/^/| /' conftest.$ac_ext >&5
20715 ac_cv_func__dyld_func_lookup=no
20718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20719 conftest$ac_exeext conftest.$ac_ext
20721 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
20722 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
20723 if test $ac_cv_func__dyld_func_lookup = yes; then
20725 cat >>confdefs.h <<\_ACEOF
20726 #define HAVE_DYLD 1
20727 _ACEOF
20740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20741 conftest$ac_exeext conftest.$ac_ext
20752 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
20753 then
20754 lt_save_LIBS="$LIBS"
20755 LIBS="$LIBS $LIBADD_DL"
20757 for ac_func in dlerror
20759 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20760 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20761 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20762 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20763 echo $ECHO_N "(cached) $ECHO_C" >&6
20764 else
20765 cat >conftest.$ac_ext <<_ACEOF
20766 /* confdefs.h. */
20767 _ACEOF
20768 cat confdefs.h >>conftest.$ac_ext
20769 cat >>conftest.$ac_ext <<_ACEOF
20770 /* end confdefs.h. */
20771 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20773 #define $ac_func innocuous_$ac_func
20775 /* System header to define __stub macros and hopefully few prototypes,
20776 which can conflict with char $ac_func (); below.
20777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20778 <limits.h> exists even on freestanding compilers. */
20780 #ifdef __STDC__
20781 # include <limits.h>
20782 #else
20783 # include <assert.h>
20784 #endif
20786 #undef $ac_func
20788 /* Override any GCC internal prototype to avoid an error.
20789 Use char because int might match the return type of a GCC
20790 builtin and then its argument prototype would still apply. */
20791 #ifdef __cplusplus
20792 extern "C"
20793 #endif
20794 char $ac_func ();
20795 /* The GNU C library defines this for functions which it implements
20796 to always fail with ENOSYS. Some functions are actually named
20797 something starting with __ and the normal name is an alias. */
20798 #if defined __stub_$ac_func || defined __stub___$ac_func
20799 choke me
20800 #endif
20803 main ()
20805 return $ac_func ();
20807 return 0;
20809 _ACEOF
20810 rm -f conftest.$ac_objext conftest$ac_exeext
20811 if { (ac_try="$ac_link"
20812 case "(($ac_try" in
20813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20814 *) ac_try_echo=$ac_try;;
20815 esac
20816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20817 (eval "$ac_link") 2>conftest.er1
20818 ac_status=$?
20819 grep -v '^ *+' conftest.er1 >conftest.err
20820 rm -f conftest.er1
20821 cat conftest.err >&5
20822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823 (exit $ac_status); } && {
20824 test -z "$ac_c_werror_flag" ||
20825 test ! -s conftest.err
20826 } && test -s conftest$ac_exeext &&
20827 $as_test_x conftest$ac_exeext; then
20828 eval "$as_ac_var=yes"
20829 else
20830 echo "$as_me: failed program was:" >&5
20831 sed 's/^/| /' conftest.$ac_ext >&5
20833 eval "$as_ac_var=no"
20836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20837 conftest$ac_exeext conftest.$ac_ext
20839 ac_res=`eval echo '${'$as_ac_var'}'`
20840 { echo "$as_me:$LINENO: result: $ac_res" >&5
20841 echo "${ECHO_T}$ac_res" >&6; }
20842 if test `eval echo '${'$as_ac_var'}'` = yes; then
20843 cat >>confdefs.h <<_ACEOF
20844 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20845 _ACEOF
20848 done
20850 LIBS="$lt_save_LIBS"
20852 ac_ext=c
20853 ac_cpp='$CPP $CPPFLAGS'
20854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20860 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
20861 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
20862 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
20863 echo $ECHO_N "(cached) $ECHO_C" >&6
20864 else
20865 ac_cv_sys_symbol_underscore=no
20866 cat > conftest.$ac_ext <<EOF
20867 void nm_test_func(){}
20868 int main(){nm_test_func;return 0;}
20870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20871 (eval $ac_compile) 2>&5
20872 ac_status=$?
20873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20874 (exit $ac_status); }; then
20875 # Now try to grab the symbols.
20876 ac_nlist=conftest.nm
20877 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
20878 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20879 ac_status=$?
20880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881 (exit $ac_status); } && test -s "$ac_nlist"; then
20882 # See whether the symbols have a leading underscore.
20883 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20884 ac_cv_sys_symbol_underscore=yes
20885 else
20886 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20888 else
20889 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20892 else
20893 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20895 else
20896 echo "configure: failed program was:" >&5
20897 cat conftest.c >&5
20899 rm -rf conftest*
20902 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
20903 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
20906 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
20907 if test x"$libltdl_cv_func_dlopen" = xyes ||
20908 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20909 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
20910 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
20911 if test "${libltdl_cv_need_uscore+set}" = set; then
20912 echo $ECHO_N "(cached) $ECHO_C" >&6
20913 else
20914 libltdl_cv_need_uscore=unknown
20915 save_LIBS="$LIBS"
20916 LIBS="$LIBS $LIBADD_DL"
20917 if test "$cross_compiling" = yes; then :
20918 libltdl_cv_need_uscore=cross
20919 else
20920 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20921 lt_status=$lt_dlunknown
20922 cat > conftest.$ac_ext <<EOF
20923 #line 20923 "configure"
20924 #include "confdefs.h"
20926 #if HAVE_DLFCN_H
20927 #include <dlfcn.h>
20928 #endif
20930 #include <stdio.h>
20932 #ifdef RTLD_GLOBAL
20933 # define LT_DLGLOBAL RTLD_GLOBAL
20934 #else
20935 # ifdef DL_GLOBAL
20936 # define LT_DLGLOBAL DL_GLOBAL
20937 # else
20938 # define LT_DLGLOBAL 0
20939 # endif
20940 #endif
20942 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20943 find out it does not work in some platform. */
20944 #ifndef LT_DLLAZY_OR_NOW
20945 # ifdef RTLD_LAZY
20946 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20947 # else
20948 # ifdef DL_LAZY
20949 # define LT_DLLAZY_OR_NOW DL_LAZY
20950 # else
20951 # ifdef RTLD_NOW
20952 # define LT_DLLAZY_OR_NOW RTLD_NOW
20953 # else
20954 # ifdef DL_NOW
20955 # define LT_DLLAZY_OR_NOW DL_NOW
20956 # else
20957 # define LT_DLLAZY_OR_NOW 0
20958 # endif
20959 # endif
20960 # endif
20961 # endif
20962 #endif
20964 #ifdef __cplusplus
20965 extern "C" void exit (int);
20966 #endif
20968 void fnord() { int i=42;}
20969 int main ()
20971 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20972 int status = $lt_dlunknown;
20974 if (self)
20976 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20977 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20978 /* dlclose (self); */
20980 else
20981 puts (dlerror ());
20983 exit (status);
20986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20987 (eval $ac_link) 2>&5
20988 ac_status=$?
20989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20990 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20991 (./conftest; exit; ) >&5 2>/dev/null
20992 lt_status=$?
20993 case x$lt_status in
20994 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
20995 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
20996 x$lt_dlunknown|x*) ;;
20997 esac
20998 else :
20999 # compilation failed
21003 rm -fr conftest*
21005 LIBS="$save_LIBS"
21008 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
21009 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
21013 if test x"$libltdl_cv_need_uscore" = xyes; then
21015 cat >>confdefs.h <<\_ACEOF
21016 #define NEED_USCORE 1
21017 _ACEOF
21022 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
21023 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
21024 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
21025 echo $ECHO_N "(cached) $ECHO_C" >&6
21026 else
21027 # PORTME does your system automatically load deplibs for dlopen?
21028 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
21029 # For now, we just catch OSes we know something about -- in the
21030 # future, we'll try test this programmatically.
21031 libltdl_cv_sys_dlopen_deplibs=unknown
21032 case "$host_os" in
21033 aix3*|aix4.1.*|aix4.2.*)
21034 # Unknown whether this is true for these versions of AIX, but
21035 # we want this `case' here to explicitly catch those versions.
21036 libltdl_cv_sys_dlopen_deplibs=unknown
21038 aix[45]*)
21039 libltdl_cv_sys_dlopen_deplibs=yes
21041 darwin*)
21042 # Assuming the user has installed a libdl from somewhere, this is true
21043 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
21044 libltdl_cv_sys_dlopen_deplibs=yes
21046 freebsd* | dragonfly*)
21047 libltdl_cv_sys_dlopen_deplibs=yes
21049 gnu* | linux* | k*bsd*-gnu)
21050 # GNU and its variants, using gnu ld.so (Glibc)
21051 libltdl_cv_sys_dlopen_deplibs=yes
21053 hpux10*|hpux11*)
21054 libltdl_cv_sys_dlopen_deplibs=yes
21056 interix*)
21057 libltdl_cv_sys_dlopen_deplibs=yes
21059 irix[12345]*|irix6.[01]*)
21060 # Catch all versions of IRIX before 6.2, and indicate that we don't
21061 # know how it worked for any of those versions.
21062 libltdl_cv_sys_dlopen_deplibs=unknown
21064 irix*)
21065 # The case above catches anything before 6.2, and it's known that
21066 # at 6.2 and later dlopen does load deplibs.
21067 libltdl_cv_sys_dlopen_deplibs=yes
21069 netbsd*)
21070 libltdl_cv_sys_dlopen_deplibs=yes
21072 openbsd*)
21073 libltdl_cv_sys_dlopen_deplibs=yes
21075 osf[1234]*)
21076 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
21077 # it did *not* use an RPATH in a shared library to find objects the
21078 # library depends on, so we explictly say `no'.
21079 libltdl_cv_sys_dlopen_deplibs=no
21081 osf5.0|osf5.0a|osf5.1)
21082 # dlopen *does* load deplibs and with the right loader patch applied
21083 # it even uses RPATH in a shared library to search for shared objects
21084 # that the library depends on, but there's no easy way to know if that
21085 # patch is installed. Since this is the case, all we can really
21086 # say is unknown -- it depends on the patch being installed. If
21087 # it is, this changes to `yes'. Without it, it would be `no'.
21088 libltdl_cv_sys_dlopen_deplibs=unknown
21090 osf*)
21091 # the two cases above should catch all versions of osf <= 5.1. Read
21092 # the comments above for what we know about them.
21093 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
21094 # is used to find them so we can finally say `yes'.
21095 libltdl_cv_sys_dlopen_deplibs=yes
21097 solaris*)
21098 libltdl_cv_sys_dlopen_deplibs=yes
21100 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21101 libltdl_cv_sys_dlopen_deplibs=yes
21103 esac
21106 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
21107 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
21108 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
21110 cat >>confdefs.h <<\_ACEOF
21111 #define LTDL_DLOPEN_DEPLIBS 1
21112 _ACEOF
21117 for ac_header in argz.h
21119 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21120 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21121 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21124 echo $ECHO_N "(cached) $ECHO_C" >&6
21126 ac_res=`eval echo '${'$as_ac_Header'}'`
21127 { echo "$as_me:$LINENO: result: $ac_res" >&5
21128 echo "${ECHO_T}$ac_res" >&6; }
21129 else
21130 # Is the header compilable?
21131 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21132 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21133 cat >conftest.$ac_ext <<_ACEOF
21134 /* confdefs.h. */
21135 _ACEOF
21136 cat confdefs.h >>conftest.$ac_ext
21137 cat >>conftest.$ac_ext <<_ACEOF
21138 /* end confdefs.h. */
21139 $ac_includes_default
21140 #include <$ac_header>
21141 _ACEOF
21142 rm -f conftest.$ac_objext
21143 if { (ac_try="$ac_compile"
21144 case "(($ac_try" in
21145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21146 *) ac_try_echo=$ac_try;;
21147 esac
21148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21149 (eval "$ac_compile") 2>conftest.er1
21150 ac_status=$?
21151 grep -v '^ *+' conftest.er1 >conftest.err
21152 rm -f conftest.er1
21153 cat conftest.err >&5
21154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21155 (exit $ac_status); } && {
21156 test -z "$ac_c_werror_flag" ||
21157 test ! -s conftest.err
21158 } && test -s conftest.$ac_objext; then
21159 ac_header_compiler=yes
21160 else
21161 echo "$as_me: failed program was:" >&5
21162 sed 's/^/| /' conftest.$ac_ext >&5
21164 ac_header_compiler=no
21167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21168 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21169 echo "${ECHO_T}$ac_header_compiler" >&6; }
21171 # Is the header present?
21172 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21173 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21174 cat >conftest.$ac_ext <<_ACEOF
21175 /* confdefs.h. */
21176 _ACEOF
21177 cat confdefs.h >>conftest.$ac_ext
21178 cat >>conftest.$ac_ext <<_ACEOF
21179 /* end confdefs.h. */
21180 #include <$ac_header>
21181 _ACEOF
21182 if { (ac_try="$ac_cpp conftest.$ac_ext"
21183 case "(($ac_try" in
21184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21185 *) ac_try_echo=$ac_try;;
21186 esac
21187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21188 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21189 ac_status=$?
21190 grep -v '^ *+' conftest.er1 >conftest.err
21191 rm -f conftest.er1
21192 cat conftest.err >&5
21193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21194 (exit $ac_status); } >/dev/null && {
21195 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21196 test ! -s conftest.err
21197 }; then
21198 ac_header_preproc=yes
21199 else
21200 echo "$as_me: failed program was:" >&5
21201 sed 's/^/| /' conftest.$ac_ext >&5
21203 ac_header_preproc=no
21206 rm -f conftest.err conftest.$ac_ext
21207 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21208 echo "${ECHO_T}$ac_header_preproc" >&6; }
21210 # So? What about this header?
21211 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21212 yes:no: )
21213 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21214 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21216 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21217 ac_header_preproc=yes
21219 no:yes:* )
21220 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21221 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21222 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21223 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21224 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21225 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21226 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21227 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21228 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21229 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21230 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21231 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21232 ( cat <<\_ASBOX
21233 ## ---------------------------------- ##
21234 ## Report this to bug-libtool@gnu.org ##
21235 ## ---------------------------------- ##
21236 _ASBOX
21237 ) | sed "s/^/$as_me: WARNING: /" >&2
21239 esac
21240 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21243 echo $ECHO_N "(cached) $ECHO_C" >&6
21244 else
21245 eval "$as_ac_Header=\$ac_header_preproc"
21247 ac_res=`eval echo '${'$as_ac_Header'}'`
21248 { echo "$as_me:$LINENO: result: $ac_res" >&5
21249 echo "${ECHO_T}$ac_res" >&6; }
21252 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21253 cat >>confdefs.h <<_ACEOF
21254 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21255 _ACEOF
21259 done
21262 { echo "$as_me:$LINENO: checking for error_t" >&5
21263 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
21264 if test "${ac_cv_type_error_t+set}" = set; then
21265 echo $ECHO_N "(cached) $ECHO_C" >&6
21266 else
21267 cat >conftest.$ac_ext <<_ACEOF
21268 /* confdefs.h. */
21269 _ACEOF
21270 cat confdefs.h >>conftest.$ac_ext
21271 cat >>conftest.$ac_ext <<_ACEOF
21272 /* end confdefs.h. */
21273 #if HAVE_ARGZ_H
21274 # include <argz.h>
21275 #endif
21277 typedef error_t ac__type_new_;
21279 main ()
21281 if ((ac__type_new_ *) 0)
21282 return 0;
21283 if (sizeof (ac__type_new_))
21284 return 0;
21286 return 0;
21288 _ACEOF
21289 rm -f conftest.$ac_objext
21290 if { (ac_try="$ac_compile"
21291 case "(($ac_try" in
21292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21293 *) ac_try_echo=$ac_try;;
21294 esac
21295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21296 (eval "$ac_compile") 2>conftest.er1
21297 ac_status=$?
21298 grep -v '^ *+' conftest.er1 >conftest.err
21299 rm -f conftest.er1
21300 cat conftest.err >&5
21301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21302 (exit $ac_status); } && {
21303 test -z "$ac_c_werror_flag" ||
21304 test ! -s conftest.err
21305 } && test -s conftest.$ac_objext; then
21306 ac_cv_type_error_t=yes
21307 else
21308 echo "$as_me: failed program was:" >&5
21309 sed 's/^/| /' conftest.$ac_ext >&5
21311 ac_cv_type_error_t=no
21314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21316 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
21317 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
21318 if test $ac_cv_type_error_t = yes; then
21320 cat >>confdefs.h <<_ACEOF
21321 #define HAVE_ERROR_T 1
21322 _ACEOF
21325 else
21327 cat >>confdefs.h <<\_ACEOF
21328 #define error_t int
21329 _ACEOF
21339 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
21341 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21342 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21343 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21344 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21345 echo $ECHO_N "(cached) $ECHO_C" >&6
21346 else
21347 cat >conftest.$ac_ext <<_ACEOF
21348 /* confdefs.h. */
21349 _ACEOF
21350 cat confdefs.h >>conftest.$ac_ext
21351 cat >>conftest.$ac_ext <<_ACEOF
21352 /* end confdefs.h. */
21353 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21355 #define $ac_func innocuous_$ac_func
21357 /* System header to define __stub macros and hopefully few prototypes,
21358 which can conflict with char $ac_func (); below.
21359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21360 <limits.h> exists even on freestanding compilers. */
21362 #ifdef __STDC__
21363 # include <limits.h>
21364 #else
21365 # include <assert.h>
21366 #endif
21368 #undef $ac_func
21370 /* Override any GCC internal prototype to avoid an error.
21371 Use char because int might match the return type of a GCC
21372 builtin and then its argument prototype would still apply. */
21373 #ifdef __cplusplus
21374 extern "C"
21375 #endif
21376 char $ac_func ();
21377 /* The GNU C library defines this for functions which it implements
21378 to always fail with ENOSYS. Some functions are actually named
21379 something starting with __ and the normal name is an alias. */
21380 #if defined __stub_$ac_func || defined __stub___$ac_func
21381 choke me
21382 #endif
21385 main ()
21387 return $ac_func ();
21389 return 0;
21391 _ACEOF
21392 rm -f conftest.$ac_objext conftest$ac_exeext
21393 if { (ac_try="$ac_link"
21394 case "(($ac_try" in
21395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21396 *) ac_try_echo=$ac_try;;
21397 esac
21398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21399 (eval "$ac_link") 2>conftest.er1
21400 ac_status=$?
21401 grep -v '^ *+' conftest.er1 >conftest.err
21402 rm -f conftest.er1
21403 cat conftest.err >&5
21404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405 (exit $ac_status); } && {
21406 test -z "$ac_c_werror_flag" ||
21407 test ! -s conftest.err
21408 } && test -s conftest$ac_exeext &&
21409 $as_test_x conftest$ac_exeext; then
21410 eval "$as_ac_var=yes"
21411 else
21412 echo "$as_me: failed program was:" >&5
21413 sed 's/^/| /' conftest.$ac_ext >&5
21415 eval "$as_ac_var=no"
21418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21419 conftest$ac_exeext conftest.$ac_ext
21421 ac_res=`eval echo '${'$as_ac_var'}'`
21422 { echo "$as_me:$LINENO: result: $ac_res" >&5
21423 echo "${ECHO_T}$ac_res" >&6; }
21424 if test `eval echo '${'$as_ac_var'}'` = yes; then
21425 cat >>confdefs.h <<_ACEOF
21426 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21427 _ACEOF
21430 done
21459 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
21460 stdio.h unistd.h
21462 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21463 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21464 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21466 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21467 echo $ECHO_N "(cached) $ECHO_C" >&6
21469 ac_res=`eval echo '${'$as_ac_Header'}'`
21470 { echo "$as_me:$LINENO: result: $ac_res" >&5
21471 echo "${ECHO_T}$ac_res" >&6; }
21472 else
21473 # Is the header compilable?
21474 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21475 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21476 cat >conftest.$ac_ext <<_ACEOF
21477 /* confdefs.h. */
21478 _ACEOF
21479 cat confdefs.h >>conftest.$ac_ext
21480 cat >>conftest.$ac_ext <<_ACEOF
21481 /* end confdefs.h. */
21482 $ac_includes_default
21483 #include <$ac_header>
21484 _ACEOF
21485 rm -f conftest.$ac_objext
21486 if { (ac_try="$ac_compile"
21487 case "(($ac_try" in
21488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21489 *) ac_try_echo=$ac_try;;
21490 esac
21491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21492 (eval "$ac_compile") 2>conftest.er1
21493 ac_status=$?
21494 grep -v '^ *+' conftest.er1 >conftest.err
21495 rm -f conftest.er1
21496 cat conftest.err >&5
21497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21498 (exit $ac_status); } && {
21499 test -z "$ac_c_werror_flag" ||
21500 test ! -s conftest.err
21501 } && test -s conftest.$ac_objext; then
21502 ac_header_compiler=yes
21503 else
21504 echo "$as_me: failed program was:" >&5
21505 sed 's/^/| /' conftest.$ac_ext >&5
21507 ac_header_compiler=no
21510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21511 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21512 echo "${ECHO_T}$ac_header_compiler" >&6; }
21514 # Is the header present?
21515 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21516 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21517 cat >conftest.$ac_ext <<_ACEOF
21518 /* confdefs.h. */
21519 _ACEOF
21520 cat confdefs.h >>conftest.$ac_ext
21521 cat >>conftest.$ac_ext <<_ACEOF
21522 /* end confdefs.h. */
21523 #include <$ac_header>
21524 _ACEOF
21525 if { (ac_try="$ac_cpp conftest.$ac_ext"
21526 case "(($ac_try" in
21527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21528 *) ac_try_echo=$ac_try;;
21529 esac
21530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21531 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21532 ac_status=$?
21533 grep -v '^ *+' conftest.er1 >conftest.err
21534 rm -f conftest.er1
21535 cat conftest.err >&5
21536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21537 (exit $ac_status); } >/dev/null && {
21538 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21539 test ! -s conftest.err
21540 }; then
21541 ac_header_preproc=yes
21542 else
21543 echo "$as_me: failed program was:" >&5
21544 sed 's/^/| /' conftest.$ac_ext >&5
21546 ac_header_preproc=no
21549 rm -f conftest.err conftest.$ac_ext
21550 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21551 echo "${ECHO_T}$ac_header_preproc" >&6; }
21553 # So? What about this header?
21554 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21555 yes:no: )
21556 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21557 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21558 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21559 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21560 ac_header_preproc=yes
21562 no:yes:* )
21563 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21564 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21565 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21566 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21567 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21568 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21569 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21570 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21572 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21573 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21574 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21575 ( cat <<\_ASBOX
21576 ## ---------------------------------- ##
21577 ## Report this to bug-libtool@gnu.org ##
21578 ## ---------------------------------- ##
21579 _ASBOX
21580 ) | sed "s/^/$as_me: WARNING: /" >&2
21582 esac
21583 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21585 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21586 echo $ECHO_N "(cached) $ECHO_C" >&6
21587 else
21588 eval "$as_ac_Header=\$ac_header_preproc"
21590 ac_res=`eval echo '${'$as_ac_Header'}'`
21591 { echo "$as_me:$LINENO: result: $ac_res" >&5
21592 echo "${ECHO_T}$ac_res" >&6; }
21595 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21596 cat >>confdefs.h <<_ACEOF
21597 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21598 _ACEOF
21602 done
21608 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
21610 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21611 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21612 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21615 echo $ECHO_N "(cached) $ECHO_C" >&6
21617 ac_res=`eval echo '${'$as_ac_Header'}'`
21618 { echo "$as_me:$LINENO: result: $ac_res" >&5
21619 echo "${ECHO_T}$ac_res" >&6; }
21620 else
21621 # Is the header compilable?
21622 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21623 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21624 cat >conftest.$ac_ext <<_ACEOF
21625 /* confdefs.h. */
21626 _ACEOF
21627 cat confdefs.h >>conftest.$ac_ext
21628 cat >>conftest.$ac_ext <<_ACEOF
21629 /* end confdefs.h. */
21630 $ac_includes_default
21631 #include <$ac_header>
21632 _ACEOF
21633 rm -f conftest.$ac_objext
21634 if { (ac_try="$ac_compile"
21635 case "(($ac_try" in
21636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21637 *) ac_try_echo=$ac_try;;
21638 esac
21639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21640 (eval "$ac_compile") 2>conftest.er1
21641 ac_status=$?
21642 grep -v '^ *+' conftest.er1 >conftest.err
21643 rm -f conftest.er1
21644 cat conftest.err >&5
21645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21646 (exit $ac_status); } && {
21647 test -z "$ac_c_werror_flag" ||
21648 test ! -s conftest.err
21649 } && test -s conftest.$ac_objext; then
21650 ac_header_compiler=yes
21651 else
21652 echo "$as_me: failed program was:" >&5
21653 sed 's/^/| /' conftest.$ac_ext >&5
21655 ac_header_compiler=no
21658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21659 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21660 echo "${ECHO_T}$ac_header_compiler" >&6; }
21662 # Is the header present?
21663 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21664 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21665 cat >conftest.$ac_ext <<_ACEOF
21666 /* confdefs.h. */
21667 _ACEOF
21668 cat confdefs.h >>conftest.$ac_ext
21669 cat >>conftest.$ac_ext <<_ACEOF
21670 /* end confdefs.h. */
21671 #include <$ac_header>
21672 _ACEOF
21673 if { (ac_try="$ac_cpp conftest.$ac_ext"
21674 case "(($ac_try" in
21675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21676 *) ac_try_echo=$ac_try;;
21677 esac
21678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21679 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21680 ac_status=$?
21681 grep -v '^ *+' conftest.er1 >conftest.err
21682 rm -f conftest.er1
21683 cat conftest.err >&5
21684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21685 (exit $ac_status); } >/dev/null && {
21686 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21687 test ! -s conftest.err
21688 }; then
21689 ac_header_preproc=yes
21690 else
21691 echo "$as_me: failed program was:" >&5
21692 sed 's/^/| /' conftest.$ac_ext >&5
21694 ac_header_preproc=no
21697 rm -f conftest.err conftest.$ac_ext
21698 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21699 echo "${ECHO_T}$ac_header_preproc" >&6; }
21701 # So? What about this header?
21702 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21703 yes:no: )
21704 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21705 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21706 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21707 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21708 ac_header_preproc=yes
21710 no:yes:* )
21711 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21712 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21713 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21714 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21715 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21716 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21717 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21718 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21719 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21720 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21721 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21722 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21723 ( cat <<\_ASBOX
21724 ## ---------------------------------- ##
21725 ## Report this to bug-libtool@gnu.org ##
21726 ## ---------------------------------- ##
21727 _ASBOX
21728 ) | sed "s/^/$as_me: WARNING: /" >&2
21730 esac
21731 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21733 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21734 echo $ECHO_N "(cached) $ECHO_C" >&6
21735 else
21736 eval "$as_ac_Header=\$ac_header_preproc"
21738 ac_res=`eval echo '${'$as_ac_Header'}'`
21739 { echo "$as_me:$LINENO: result: $ac_res" >&5
21740 echo "${ECHO_T}$ac_res" >&6; }
21743 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21744 cat >>confdefs.h <<_ACEOF
21745 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21746 _ACEOF
21750 done
21754 for ac_header in string.h strings.h
21756 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21757 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21758 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21760 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21761 echo $ECHO_N "(cached) $ECHO_C" >&6
21763 ac_res=`eval echo '${'$as_ac_Header'}'`
21764 { echo "$as_me:$LINENO: result: $ac_res" >&5
21765 echo "${ECHO_T}$ac_res" >&6; }
21766 else
21767 # Is the header compilable?
21768 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21769 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21770 cat >conftest.$ac_ext <<_ACEOF
21771 /* confdefs.h. */
21772 _ACEOF
21773 cat confdefs.h >>conftest.$ac_ext
21774 cat >>conftest.$ac_ext <<_ACEOF
21775 /* end confdefs.h. */
21776 $ac_includes_default
21777 #include <$ac_header>
21778 _ACEOF
21779 rm -f conftest.$ac_objext
21780 if { (ac_try="$ac_compile"
21781 case "(($ac_try" in
21782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21783 *) ac_try_echo=$ac_try;;
21784 esac
21785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21786 (eval "$ac_compile") 2>conftest.er1
21787 ac_status=$?
21788 grep -v '^ *+' conftest.er1 >conftest.err
21789 rm -f conftest.er1
21790 cat conftest.err >&5
21791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21792 (exit $ac_status); } && {
21793 test -z "$ac_c_werror_flag" ||
21794 test ! -s conftest.err
21795 } && test -s conftest.$ac_objext; then
21796 ac_header_compiler=yes
21797 else
21798 echo "$as_me: failed program was:" >&5
21799 sed 's/^/| /' conftest.$ac_ext >&5
21801 ac_header_compiler=no
21804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21805 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21806 echo "${ECHO_T}$ac_header_compiler" >&6; }
21808 # Is the header present?
21809 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21810 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21811 cat >conftest.$ac_ext <<_ACEOF
21812 /* confdefs.h. */
21813 _ACEOF
21814 cat confdefs.h >>conftest.$ac_ext
21815 cat >>conftest.$ac_ext <<_ACEOF
21816 /* end confdefs.h. */
21817 #include <$ac_header>
21818 _ACEOF
21819 if { (ac_try="$ac_cpp conftest.$ac_ext"
21820 case "(($ac_try" in
21821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21822 *) ac_try_echo=$ac_try;;
21823 esac
21824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21825 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21826 ac_status=$?
21827 grep -v '^ *+' conftest.er1 >conftest.err
21828 rm -f conftest.er1
21829 cat conftest.err >&5
21830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21831 (exit $ac_status); } >/dev/null && {
21832 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21833 test ! -s conftest.err
21834 }; then
21835 ac_header_preproc=yes
21836 else
21837 echo "$as_me: failed program was:" >&5
21838 sed 's/^/| /' conftest.$ac_ext >&5
21840 ac_header_preproc=no
21843 rm -f conftest.err conftest.$ac_ext
21844 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21845 echo "${ECHO_T}$ac_header_preproc" >&6; }
21847 # So? What about this header?
21848 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21849 yes:no: )
21850 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21851 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21853 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21854 ac_header_preproc=yes
21856 no:yes:* )
21857 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21858 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21859 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21860 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21861 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21862 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21863 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21864 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21865 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21866 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21867 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21868 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21869 ( cat <<\_ASBOX
21870 ## ---------------------------------- ##
21871 ## Report this to bug-libtool@gnu.org ##
21872 ## ---------------------------------- ##
21873 _ASBOX
21874 ) | sed "s/^/$as_me: WARNING: /" >&2
21876 esac
21877 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21878 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21879 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21880 echo $ECHO_N "(cached) $ECHO_C" >&6
21881 else
21882 eval "$as_ac_Header=\$ac_header_preproc"
21884 ac_res=`eval echo '${'$as_ac_Header'}'`
21885 { echo "$as_me:$LINENO: result: $ac_res" >&5
21886 echo "${ECHO_T}$ac_res" >&6; }
21889 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21890 cat >>confdefs.h <<_ACEOF
21891 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21892 _ACEOF
21893 break
21896 done
21901 for ac_func in strchr index
21903 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21904 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21905 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21906 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21907 echo $ECHO_N "(cached) $ECHO_C" >&6
21908 else
21909 cat >conftest.$ac_ext <<_ACEOF
21910 /* confdefs.h. */
21911 _ACEOF
21912 cat confdefs.h >>conftest.$ac_ext
21913 cat >>conftest.$ac_ext <<_ACEOF
21914 /* end confdefs.h. */
21915 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21916 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21917 #define $ac_func innocuous_$ac_func
21919 /* System header to define __stub macros and hopefully few prototypes,
21920 which can conflict with char $ac_func (); below.
21921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21922 <limits.h> exists even on freestanding compilers. */
21924 #ifdef __STDC__
21925 # include <limits.h>
21926 #else
21927 # include <assert.h>
21928 #endif
21930 #undef $ac_func
21932 /* Override any GCC internal prototype to avoid an error.
21933 Use char because int might match the return type of a GCC
21934 builtin and then its argument prototype would still apply. */
21935 #ifdef __cplusplus
21936 extern "C"
21937 #endif
21938 char $ac_func ();
21939 /* The GNU C library defines this for functions which it implements
21940 to always fail with ENOSYS. Some functions are actually named
21941 something starting with __ and the normal name is an alias. */
21942 #if defined __stub_$ac_func || defined __stub___$ac_func
21943 choke me
21944 #endif
21947 main ()
21949 return $ac_func ();
21951 return 0;
21953 _ACEOF
21954 rm -f conftest.$ac_objext conftest$ac_exeext
21955 if { (ac_try="$ac_link"
21956 case "(($ac_try" in
21957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21958 *) ac_try_echo=$ac_try;;
21959 esac
21960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21961 (eval "$ac_link") 2>conftest.er1
21962 ac_status=$?
21963 grep -v '^ *+' conftest.er1 >conftest.err
21964 rm -f conftest.er1
21965 cat conftest.err >&5
21966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21967 (exit $ac_status); } && {
21968 test -z "$ac_c_werror_flag" ||
21969 test ! -s conftest.err
21970 } && test -s conftest$ac_exeext &&
21971 $as_test_x conftest$ac_exeext; then
21972 eval "$as_ac_var=yes"
21973 else
21974 echo "$as_me: failed program was:" >&5
21975 sed 's/^/| /' conftest.$ac_ext >&5
21977 eval "$as_ac_var=no"
21980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21981 conftest$ac_exeext conftest.$ac_ext
21983 ac_res=`eval echo '${'$as_ac_var'}'`
21984 { echo "$as_me:$LINENO: result: $ac_res" >&5
21985 echo "${ECHO_T}$ac_res" >&6; }
21986 if test `eval echo '${'$as_ac_var'}'` = yes; then
21987 cat >>confdefs.h <<_ACEOF
21988 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21989 _ACEOF
21990 break
21992 done
21996 for ac_func in strrchr rindex
21998 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21999 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22000 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22001 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22002 echo $ECHO_N "(cached) $ECHO_C" >&6
22003 else
22004 cat >conftest.$ac_ext <<_ACEOF
22005 /* confdefs.h. */
22006 _ACEOF
22007 cat confdefs.h >>conftest.$ac_ext
22008 cat >>conftest.$ac_ext <<_ACEOF
22009 /* end confdefs.h. */
22010 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22011 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22012 #define $ac_func innocuous_$ac_func
22014 /* System header to define __stub macros and hopefully few prototypes,
22015 which can conflict with char $ac_func (); below.
22016 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22017 <limits.h> exists even on freestanding compilers. */
22019 #ifdef __STDC__
22020 # include <limits.h>
22021 #else
22022 # include <assert.h>
22023 #endif
22025 #undef $ac_func
22027 /* Override any GCC internal prototype to avoid an error.
22028 Use char because int might match the return type of a GCC
22029 builtin and then its argument prototype would still apply. */
22030 #ifdef __cplusplus
22031 extern "C"
22032 #endif
22033 char $ac_func ();
22034 /* The GNU C library defines this for functions which it implements
22035 to always fail with ENOSYS. Some functions are actually named
22036 something starting with __ and the normal name is an alias. */
22037 #if defined __stub_$ac_func || defined __stub___$ac_func
22038 choke me
22039 #endif
22042 main ()
22044 return $ac_func ();
22046 return 0;
22048 _ACEOF
22049 rm -f conftest.$ac_objext conftest$ac_exeext
22050 if { (ac_try="$ac_link"
22051 case "(($ac_try" in
22052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22053 *) ac_try_echo=$ac_try;;
22054 esac
22055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22056 (eval "$ac_link") 2>conftest.er1
22057 ac_status=$?
22058 grep -v '^ *+' conftest.er1 >conftest.err
22059 rm -f conftest.er1
22060 cat conftest.err >&5
22061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22062 (exit $ac_status); } && {
22063 test -z "$ac_c_werror_flag" ||
22064 test ! -s conftest.err
22065 } && test -s conftest$ac_exeext &&
22066 $as_test_x conftest$ac_exeext; then
22067 eval "$as_ac_var=yes"
22068 else
22069 echo "$as_me: failed program was:" >&5
22070 sed 's/^/| /' conftest.$ac_ext >&5
22072 eval "$as_ac_var=no"
22075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22076 conftest$ac_exeext conftest.$ac_ext
22078 ac_res=`eval echo '${'$as_ac_var'}'`
22079 { echo "$as_me:$LINENO: result: $ac_res" >&5
22080 echo "${ECHO_T}$ac_res" >&6; }
22081 if test `eval echo '${'$as_ac_var'}'` = yes; then
22082 cat >>confdefs.h <<_ACEOF
22083 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22084 _ACEOF
22085 break
22087 done
22091 for ac_func in memcpy bcopy
22093 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22094 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22095 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22096 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22097 echo $ECHO_N "(cached) $ECHO_C" >&6
22098 else
22099 cat >conftest.$ac_ext <<_ACEOF
22100 /* confdefs.h. */
22101 _ACEOF
22102 cat confdefs.h >>conftest.$ac_ext
22103 cat >>conftest.$ac_ext <<_ACEOF
22104 /* end confdefs.h. */
22105 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22106 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22107 #define $ac_func innocuous_$ac_func
22109 /* System header to define __stub macros and hopefully few prototypes,
22110 which can conflict with char $ac_func (); below.
22111 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22112 <limits.h> exists even on freestanding compilers. */
22114 #ifdef __STDC__
22115 # include <limits.h>
22116 #else
22117 # include <assert.h>
22118 #endif
22120 #undef $ac_func
22122 /* Override any GCC internal prototype to avoid an error.
22123 Use char because int might match the return type of a GCC
22124 builtin and then its argument prototype would still apply. */
22125 #ifdef __cplusplus
22126 extern "C"
22127 #endif
22128 char $ac_func ();
22129 /* The GNU C library defines this for functions which it implements
22130 to always fail with ENOSYS. Some functions are actually named
22131 something starting with __ and the normal name is an alias. */
22132 #if defined __stub_$ac_func || defined __stub___$ac_func
22133 choke me
22134 #endif
22137 main ()
22139 return $ac_func ();
22141 return 0;
22143 _ACEOF
22144 rm -f conftest.$ac_objext conftest$ac_exeext
22145 if { (ac_try="$ac_link"
22146 case "(($ac_try" in
22147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22148 *) ac_try_echo=$ac_try;;
22149 esac
22150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22151 (eval "$ac_link") 2>conftest.er1
22152 ac_status=$?
22153 grep -v '^ *+' conftest.er1 >conftest.err
22154 rm -f conftest.er1
22155 cat conftest.err >&5
22156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22157 (exit $ac_status); } && {
22158 test -z "$ac_c_werror_flag" ||
22159 test ! -s conftest.err
22160 } && test -s conftest$ac_exeext &&
22161 $as_test_x conftest$ac_exeext; then
22162 eval "$as_ac_var=yes"
22163 else
22164 echo "$as_me: failed program was:" >&5
22165 sed 's/^/| /' conftest.$ac_ext >&5
22167 eval "$as_ac_var=no"
22170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22171 conftest$ac_exeext conftest.$ac_ext
22173 ac_res=`eval echo '${'$as_ac_var'}'`
22174 { echo "$as_me:$LINENO: result: $ac_res" >&5
22175 echo "${ECHO_T}$ac_res" >&6; }
22176 if test `eval echo '${'$as_ac_var'}'` = yes; then
22177 cat >>confdefs.h <<_ACEOF
22178 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22179 _ACEOF
22180 break
22182 done
22186 for ac_func in memmove strcmp
22188 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22189 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22190 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22191 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22192 echo $ECHO_N "(cached) $ECHO_C" >&6
22193 else
22194 cat >conftest.$ac_ext <<_ACEOF
22195 /* confdefs.h. */
22196 _ACEOF
22197 cat confdefs.h >>conftest.$ac_ext
22198 cat >>conftest.$ac_ext <<_ACEOF
22199 /* end confdefs.h. */
22200 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22201 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22202 #define $ac_func innocuous_$ac_func
22204 /* System header to define __stub macros and hopefully few prototypes,
22205 which can conflict with char $ac_func (); below.
22206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22207 <limits.h> exists even on freestanding compilers. */
22209 #ifdef __STDC__
22210 # include <limits.h>
22211 #else
22212 # include <assert.h>
22213 #endif
22215 #undef $ac_func
22217 /* Override any GCC internal prototype to avoid an error.
22218 Use char because int might match the return type of a GCC
22219 builtin and then its argument prototype would still apply. */
22220 #ifdef __cplusplus
22221 extern "C"
22222 #endif
22223 char $ac_func ();
22224 /* The GNU C library defines this for functions which it implements
22225 to always fail with ENOSYS. Some functions are actually named
22226 something starting with __ and the normal name is an alias. */
22227 #if defined __stub_$ac_func || defined __stub___$ac_func
22228 choke me
22229 #endif
22232 main ()
22234 return $ac_func ();
22236 return 0;
22238 _ACEOF
22239 rm -f conftest.$ac_objext conftest$ac_exeext
22240 if { (ac_try="$ac_link"
22241 case "(($ac_try" in
22242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22243 *) ac_try_echo=$ac_try;;
22244 esac
22245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22246 (eval "$ac_link") 2>conftest.er1
22247 ac_status=$?
22248 grep -v '^ *+' conftest.er1 >conftest.err
22249 rm -f conftest.er1
22250 cat conftest.err >&5
22251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22252 (exit $ac_status); } && {
22253 test -z "$ac_c_werror_flag" ||
22254 test ! -s conftest.err
22255 } && test -s conftest$ac_exeext &&
22256 $as_test_x conftest$ac_exeext; then
22257 eval "$as_ac_var=yes"
22258 else
22259 echo "$as_me: failed program was:" >&5
22260 sed 's/^/| /' conftest.$ac_ext >&5
22262 eval "$as_ac_var=no"
22265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22266 conftest$ac_exeext conftest.$ac_ext
22268 ac_res=`eval echo '${'$as_ac_var'}'`
22269 { echo "$as_me:$LINENO: result: $ac_res" >&5
22270 echo "${ECHO_T}$ac_res" >&6; }
22271 if test `eval echo '${'$as_ac_var'}'` = yes; then
22272 cat >>confdefs.h <<_ACEOF
22273 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22274 _ACEOF
22277 done
22282 for ac_func in closedir opendir readdir
22284 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22285 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22286 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22287 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22288 echo $ECHO_N "(cached) $ECHO_C" >&6
22289 else
22290 cat >conftest.$ac_ext <<_ACEOF
22291 /* confdefs.h. */
22292 _ACEOF
22293 cat confdefs.h >>conftest.$ac_ext
22294 cat >>conftest.$ac_ext <<_ACEOF
22295 /* end confdefs.h. */
22296 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22297 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22298 #define $ac_func innocuous_$ac_func
22300 /* System header to define __stub macros and hopefully few prototypes,
22301 which can conflict with char $ac_func (); below.
22302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22303 <limits.h> exists even on freestanding compilers. */
22305 #ifdef __STDC__
22306 # include <limits.h>
22307 #else
22308 # include <assert.h>
22309 #endif
22311 #undef $ac_func
22313 /* Override any GCC internal prototype to avoid an error.
22314 Use char because int might match the return type of a GCC
22315 builtin and then its argument prototype would still apply. */
22316 #ifdef __cplusplus
22317 extern "C"
22318 #endif
22319 char $ac_func ();
22320 /* The GNU C library defines this for functions which it implements
22321 to always fail with ENOSYS. Some functions are actually named
22322 something starting with __ and the normal name is an alias. */
22323 #if defined __stub_$ac_func || defined __stub___$ac_func
22324 choke me
22325 #endif
22328 main ()
22330 return $ac_func ();
22332 return 0;
22334 _ACEOF
22335 rm -f conftest.$ac_objext conftest$ac_exeext
22336 if { (ac_try="$ac_link"
22337 case "(($ac_try" in
22338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22339 *) ac_try_echo=$ac_try;;
22340 esac
22341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22342 (eval "$ac_link") 2>conftest.er1
22343 ac_status=$?
22344 grep -v '^ *+' conftest.er1 >conftest.err
22345 rm -f conftest.er1
22346 cat conftest.err >&5
22347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22348 (exit $ac_status); } && {
22349 test -z "$ac_c_werror_flag" ||
22350 test ! -s conftest.err
22351 } && test -s conftest$ac_exeext &&
22352 $as_test_x conftest$ac_exeext; then
22353 eval "$as_ac_var=yes"
22354 else
22355 echo "$as_me: failed program was:" >&5
22356 sed 's/^/| /' conftest.$ac_ext >&5
22358 eval "$as_ac_var=no"
22361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22362 conftest$ac_exeext conftest.$ac_ext
22364 ac_res=`eval echo '${'$as_ac_var'}'`
22365 { echo "$as_me:$LINENO: result: $ac_res" >&5
22366 echo "${ECHO_T}$ac_res" >&6; }
22367 if test `eval echo '${'$as_ac_var'}'` = yes; then
22368 cat >>confdefs.h <<_ACEOF
22369 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22370 _ACEOF
22373 done
22378 ## -------- ##
22379 ## Outputs. ##
22380 ## -------- ##
22381 ac_config_files="$ac_config_files Makefile"
22383 cat >confcache <<\_ACEOF
22384 # This file is a shell script that caches the results of configure
22385 # tests run on this system so they can be shared between configure
22386 # scripts and configure runs, see configure's option --config-cache.
22387 # It is not useful on other systems. If it contains results you don't
22388 # want to keep, you may remove or edit it.
22390 # config.status only pays attention to the cache file if you give it
22391 # the --recheck option to rerun configure.
22393 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22394 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22395 # following values.
22397 _ACEOF
22399 # The following way of writing the cache mishandles newlines in values,
22400 # but we know of no workaround that is simple, portable, and efficient.
22401 # So, we kill variables containing newlines.
22402 # Ultrix sh set writes to stderr and can't be redirected directly,
22403 # and sets the high bit in the cache file unless we assign to the vars.
22405 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22406 eval ac_val=\$$ac_var
22407 case $ac_val in #(
22408 *${as_nl}*)
22409 case $ac_var in #(
22410 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22411 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22412 esac
22413 case $ac_var in #(
22414 _ | IFS | as_nl) ;; #(
22415 *) $as_unset $ac_var ;;
22416 esac ;;
22417 esac
22418 done
22420 (set) 2>&1 |
22421 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22422 *${as_nl}ac_space=\ *)
22423 # `set' does not quote correctly, so add quotes (double-quote
22424 # substitution turns \\\\ into \\, and sed turns \\ into \).
22425 sed -n \
22426 "s/'/'\\\\''/g;
22427 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22428 ;; #(
22430 # `set' quotes correctly as required by POSIX, so do not add quotes.
22431 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22433 esac |
22434 sort
22436 sed '
22437 /^ac_cv_env_/b end
22438 t clear
22439 :clear
22440 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22441 t end
22442 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22443 :end' >>confcache
22444 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22445 if test -w "$cache_file"; then
22446 test "x$cache_file" != "x/dev/null" &&
22447 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22448 echo "$as_me: updating cache $cache_file" >&6;}
22449 cat confcache >$cache_file
22450 else
22451 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22452 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22455 rm -f confcache
22457 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22458 # Let make expand exec_prefix.
22459 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22461 DEFS=-DHAVE_CONFIG_H
22463 ac_libobjs=
22464 ac_ltlibobjs=
22465 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22466 # 1. Remove the extension, and $U if already installed.
22467 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22468 ac_i=`echo "$ac_i" | sed "$ac_script"`
22469 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22470 # will be set to the directory where LIBOBJS objects are built.
22471 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22472 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22473 done
22474 LIBOBJS=$ac_libobjs
22476 LTLIBOBJS=$ac_ltlibobjs
22479 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22480 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22481 Usually this means the macro was only invoked conditionally." >&5
22482 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22483 Usually this means the macro was only invoked conditionally." >&2;}
22484 { (exit 1); exit 1; }; }
22486 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22487 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22488 Usually this means the macro was only invoked conditionally." >&5
22489 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22490 Usually this means the macro was only invoked conditionally." >&2;}
22491 { (exit 1); exit 1; }; }
22493 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22494 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22495 Usually this means the macro was only invoked conditionally." >&5
22496 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22497 Usually this means the macro was only invoked conditionally." >&2;}
22498 { (exit 1); exit 1; }; }
22500 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22501 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22502 Usually this means the macro was only invoked conditionally." >&5
22503 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22504 Usually this means the macro was only invoked conditionally." >&2;}
22505 { (exit 1); exit 1; }; }
22507 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22508 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22509 Usually this means the macro was only invoked conditionally." >&5
22510 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22511 Usually this means the macro was only invoked conditionally." >&2;}
22512 { (exit 1); exit 1; }; }
22515 : ${CONFIG_STATUS=./config.status}
22516 ac_clean_files_save=$ac_clean_files
22517 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22518 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22519 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22520 cat >$CONFIG_STATUS <<_ACEOF
22521 #! $SHELL
22522 # Generated by $as_me.
22523 # Run this file to recreate the current configuration.
22524 # Compiler output produced by configure, useful for debugging
22525 # configure, is in config.log if it exists.
22527 debug=false
22528 ac_cs_recheck=false
22529 ac_cs_silent=false
22530 SHELL=\${CONFIG_SHELL-$SHELL}
22531 _ACEOF
22533 cat >>$CONFIG_STATUS <<\_ACEOF
22534 ## --------------------- ##
22535 ## M4sh Initialization. ##
22536 ## --------------------- ##
22538 # Be more Bourne compatible
22539 DUALCASE=1; export DUALCASE # for MKS sh
22540 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22541 emulate sh
22542 NULLCMD=:
22543 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22544 # is contrary to our usage. Disable this feature.
22545 alias -g '${1+"$@"}'='"$@"'
22546 setopt NO_GLOB_SUBST
22547 else
22548 case `(set -o) 2>/dev/null` in
22549 *posix*) set -o posix ;;
22550 esac
22557 # PATH needs CR
22558 # Avoid depending upon Character Ranges.
22559 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22560 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22561 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22562 as_cr_digits='0123456789'
22563 as_cr_alnum=$as_cr_Letters$as_cr_digits
22565 # The user is always right.
22566 if test "${PATH_SEPARATOR+set}" != set; then
22567 echo "#! /bin/sh" >conf$$.sh
22568 echo "exit 0" >>conf$$.sh
22569 chmod +x conf$$.sh
22570 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22571 PATH_SEPARATOR=';'
22572 else
22573 PATH_SEPARATOR=:
22575 rm -f conf$$.sh
22578 # Support unset when possible.
22579 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22580 as_unset=unset
22581 else
22582 as_unset=false
22586 # IFS
22587 # We need space, tab and new line, in precisely that order. Quoting is
22588 # there to prevent editors from complaining about space-tab.
22589 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22590 # splitting by setting IFS to empty value.)
22591 as_nl='
22593 IFS=" "" $as_nl"
22595 # Find who we are. Look in the path if we contain no directory separator.
22596 case $0 in
22597 *[\\/]* ) as_myself=$0 ;;
22598 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22599 for as_dir in $PATH
22601 IFS=$as_save_IFS
22602 test -z "$as_dir" && as_dir=.
22603 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22604 done
22605 IFS=$as_save_IFS
22608 esac
22609 # We did not find ourselves, most probably we were run as `sh COMMAND'
22610 # in which case we are not to be found in the path.
22611 if test "x$as_myself" = x; then
22612 as_myself=$0
22614 if test ! -f "$as_myself"; then
22615 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22616 { (exit 1); exit 1; }
22619 # Work around bugs in pre-3.0 UWIN ksh.
22620 for as_var in ENV MAIL MAILPATH
22621 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22622 done
22623 PS1='$ '
22624 PS2='> '
22625 PS4='+ '
22627 # NLS nuisances.
22628 for as_var in \
22629 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22630 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22631 LC_TELEPHONE LC_TIME
22633 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22634 eval $as_var=C; export $as_var
22635 else
22636 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22638 done
22640 # Required to use basename.
22641 if expr a : '\(a\)' >/dev/null 2>&1 &&
22642 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22643 as_expr=expr
22644 else
22645 as_expr=false
22648 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22649 as_basename=basename
22650 else
22651 as_basename=false
22655 # Name of the executable.
22656 as_me=`$as_basename -- "$0" ||
22657 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22658 X"$0" : 'X\(//\)$' \| \
22659 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22660 echo X/"$0" |
22661 sed '/^.*\/\([^/][^/]*\)\/*$/{
22662 s//\1/
22665 /^X\/\(\/\/\)$/{
22666 s//\1/
22669 /^X\/\(\/\).*/{
22670 s//\1/
22673 s/.*/./; q'`
22675 # CDPATH.
22676 $as_unset CDPATH
22680 as_lineno_1=$LINENO
22681 as_lineno_2=$LINENO
22682 test "x$as_lineno_1" != "x$as_lineno_2" &&
22683 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22685 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22686 # uniformly replaced by the line number. The first 'sed' inserts a
22687 # line-number line after each line using $LINENO; the second 'sed'
22688 # does the real work. The second script uses 'N' to pair each
22689 # line-number line with the line containing $LINENO, and appends
22690 # trailing '-' during substitution so that $LINENO is not a special
22691 # case at line end.
22692 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22693 # scripts with optimization help from Paolo Bonzini. Blame Lee
22694 # E. McMahon (1931-1989) for sed's syntax. :-)
22695 sed -n '
22697 /[$]LINENO/=
22698 ' <$as_myself |
22699 sed '
22700 s/[$]LINENO.*/&-/
22701 t lineno
22703 :lineno
22705 :loop
22706 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22707 t loop
22708 s/-\n.*//
22709 ' >$as_me.lineno &&
22710 chmod +x "$as_me.lineno" ||
22711 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22712 { (exit 1); exit 1; }; }
22714 # Don't try to exec as it changes $[0], causing all sort of problems
22715 # (the dirname of $[0] is not the place where we might find the
22716 # original and so on. Autoconf is especially sensitive to this).
22717 . "./$as_me.lineno"
22718 # Exit status is that of the last command.
22719 exit
22723 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22724 as_dirname=dirname
22725 else
22726 as_dirname=false
22729 ECHO_C= ECHO_N= ECHO_T=
22730 case `echo -n x` in
22731 -n*)
22732 case `echo 'x\c'` in
22733 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22734 *) ECHO_C='\c';;
22735 esac;;
22737 ECHO_N='-n';;
22738 esac
22740 if expr a : '\(a\)' >/dev/null 2>&1 &&
22741 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22742 as_expr=expr
22743 else
22744 as_expr=false
22747 rm -f conf$$ conf$$.exe conf$$.file
22748 if test -d conf$$.dir; then
22749 rm -f conf$$.dir/conf$$.file
22750 else
22751 rm -f conf$$.dir
22752 mkdir conf$$.dir
22754 echo >conf$$.file
22755 if ln -s conf$$.file conf$$ 2>/dev/null; then
22756 as_ln_s='ln -s'
22757 # ... but there are two gotchas:
22758 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22759 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22760 # In both cases, we have to default to `cp -p'.
22761 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22762 as_ln_s='cp -p'
22763 elif ln conf$$.file conf$$ 2>/dev/null; then
22764 as_ln_s=ln
22765 else
22766 as_ln_s='cp -p'
22768 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22769 rmdir conf$$.dir 2>/dev/null
22771 if mkdir -p . 2>/dev/null; then
22772 as_mkdir_p=:
22773 else
22774 test -d ./-p && rmdir ./-p
22775 as_mkdir_p=false
22778 if test -x / >/dev/null 2>&1; then
22779 as_test_x='test -x'
22780 else
22781 if ls -dL / >/dev/null 2>&1; then
22782 as_ls_L_option=L
22783 else
22784 as_ls_L_option=
22786 as_test_x='
22787 eval sh -c '\''
22788 if test -d "$1"; then
22789 test -d "$1/.";
22790 else
22791 case $1 in
22792 -*)set "./$1";;
22793 esac;
22794 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22795 ???[sx]*):;;*)false;;esac;fi
22796 '\'' sh
22799 as_executable_p=$as_test_x
22801 # Sed expression to map a string onto a valid CPP name.
22802 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22804 # Sed expression to map a string onto a valid variable name.
22805 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22808 exec 6>&1
22810 # Save the log message, to keep $[0] and so on meaningful, and to
22811 # report actual input values of CONFIG_FILES etc. instead of their
22812 # values after options handling.
22813 ac_log="
22814 This file was extended by libltdl $as_me 1.2, which was
22815 generated by GNU Autoconf 2.61. Invocation command line was
22817 CONFIG_FILES = $CONFIG_FILES
22818 CONFIG_HEADERS = $CONFIG_HEADERS
22819 CONFIG_LINKS = $CONFIG_LINKS
22820 CONFIG_COMMANDS = $CONFIG_COMMANDS
22821 $ $0 $@
22823 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22826 _ACEOF
22828 cat >>$CONFIG_STATUS <<_ACEOF
22829 # Files that config.status was made for.
22830 config_files="$ac_config_files"
22831 config_headers="$ac_config_headers"
22832 config_commands="$ac_config_commands"
22834 _ACEOF
22836 cat >>$CONFIG_STATUS <<\_ACEOF
22837 ac_cs_usage="\
22838 \`$as_me' instantiates files from templates according to the
22839 current configuration.
22841 Usage: $0 [OPTIONS] [FILE]...
22843 -h, --help print this help, then exit
22844 -V, --version print version number and configuration settings, then exit
22845 -q, --quiet do not print progress messages
22846 -d, --debug don't remove temporary files
22847 --recheck update $as_me by reconfiguring in the same conditions
22848 --file=FILE[:TEMPLATE]
22849 instantiate the configuration file FILE
22850 --header=FILE[:TEMPLATE]
22851 instantiate the configuration header FILE
22853 Configuration files:
22854 $config_files
22856 Configuration headers:
22857 $config_headers
22859 Configuration commands:
22860 $config_commands
22862 Report bugs to <bug-autoconf@gnu.org>."
22864 _ACEOF
22865 cat >>$CONFIG_STATUS <<_ACEOF
22866 ac_cs_version="\\
22867 libltdl config.status 1.2
22868 configured by $0, generated by GNU Autoconf 2.61,
22869 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22871 Copyright (C) 2006 Free Software Foundation, Inc.
22872 This config.status script is free software; the Free Software Foundation
22873 gives unlimited permission to copy, distribute and modify it."
22875 ac_pwd='$ac_pwd'
22876 srcdir='$srcdir'
22877 INSTALL='$INSTALL'
22878 MKDIR_P='$MKDIR_P'
22879 _ACEOF
22881 cat >>$CONFIG_STATUS <<\_ACEOF
22882 # If no file are specified by the user, then we need to provide default
22883 # value. By we need to know if files were specified by the user.
22884 ac_need_defaults=:
22885 while test $# != 0
22887 case $1 in
22888 --*=*)
22889 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22890 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22891 ac_shift=:
22894 ac_option=$1
22895 ac_optarg=$2
22896 ac_shift=shift
22898 esac
22900 case $ac_option in
22901 # Handling of the options.
22902 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22903 ac_cs_recheck=: ;;
22904 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22905 echo "$ac_cs_version"; exit ;;
22906 --debug | --debu | --deb | --de | --d | -d )
22907 debug=: ;;
22908 --file | --fil | --fi | --f )
22909 $ac_shift
22910 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22911 ac_need_defaults=false;;
22912 --header | --heade | --head | --hea )
22913 $ac_shift
22914 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22915 ac_need_defaults=false;;
22916 --he | --h)
22917 # Conflict between --help and --header
22918 { echo "$as_me: error: ambiguous option: $1
22919 Try \`$0 --help' for more information." >&2
22920 { (exit 1); exit 1; }; };;
22921 --help | --hel | -h )
22922 echo "$ac_cs_usage"; exit ;;
22923 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22924 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22925 ac_cs_silent=: ;;
22927 # This is an error.
22928 -*) { echo "$as_me: error: unrecognized option: $1
22929 Try \`$0 --help' for more information." >&2
22930 { (exit 1); exit 1; }; } ;;
22932 *) ac_config_targets="$ac_config_targets $1"
22933 ac_need_defaults=false ;;
22935 esac
22936 shift
22937 done
22939 ac_configure_extra_args=
22941 if $ac_cs_silent; then
22942 exec 6>/dev/null
22943 ac_configure_extra_args="$ac_configure_extra_args --silent"
22946 _ACEOF
22947 cat >>$CONFIG_STATUS <<_ACEOF
22948 if \$ac_cs_recheck; then
22949 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22950 CONFIG_SHELL=$SHELL
22951 export CONFIG_SHELL
22952 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22955 _ACEOF
22956 cat >>$CONFIG_STATUS <<\_ACEOF
22957 exec 5>>config.log
22959 echo
22960 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22961 ## Running $as_me. ##
22962 _ASBOX
22963 echo "$ac_log"
22964 } >&5
22966 _ACEOF
22967 cat >>$CONFIG_STATUS <<_ACEOF
22969 # INIT-COMMANDS
22971 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22973 _ACEOF
22975 cat >>$CONFIG_STATUS <<\_ACEOF
22977 # Handling of arguments.
22978 for ac_config_target in $ac_config_targets
22980 case $ac_config_target in
22981 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config-h.in" ;;
22982 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22983 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22985 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22986 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22987 { (exit 1); exit 1; }; };;
22988 esac
22989 done
22992 # If the user did not use the arguments to specify the items to instantiate,
22993 # then the envvar interface is used. Set only those that are not.
22994 # We use the long form for the default assignment because of an extremely
22995 # bizarre bug on SunOS 4.1.3.
22996 if $ac_need_defaults; then
22997 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22998 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22999 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23002 # Have a temporary directory for convenience. Make it in the build tree
23003 # simply because there is no reason against having it here, and in addition,
23004 # creating and moving files from /tmp can sometimes cause problems.
23005 # Hook for its removal unless debugging.
23006 # Note that there is a small window in which the directory will not be cleaned:
23007 # after its creation but before its name has been assigned to `$tmp'.
23008 $debug ||
23010 tmp=
23011 trap 'exit_status=$?
23012 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23014 trap '{ (exit 1); exit 1; }' 1 2 13 15
23016 # Create a (secure) tmp directory for tmp files.
23019 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23020 test -n "$tmp" && test -d "$tmp"
23021 } ||
23023 tmp=./conf$$-$RANDOM
23024 (umask 077 && mkdir "$tmp")
23025 } ||
23027 echo "$me: cannot create a temporary directory in ." >&2
23028 { (exit 1); exit 1; }
23032 # Set up the sed scripts for CONFIG_FILES section.
23035 # No need to generate the scripts if there are no CONFIG_FILES.
23036 # This happens for instance when ./config.status config.h
23037 if test -n "$CONFIG_FILES"; then
23039 _ACEOF
23043 ac_delim='%!_!# '
23044 for ac_last_try in false false false false false :; do
23045 cat >conf$$subs.sed <<_ACEOF
23046 SHELL!$SHELL$ac_delim
23047 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23048 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23049 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23050 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23051 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23052 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23053 exec_prefix!$exec_prefix$ac_delim
23054 prefix!$prefix$ac_delim
23055 program_transform_name!$program_transform_name$ac_delim
23056 bindir!$bindir$ac_delim
23057 sbindir!$sbindir$ac_delim
23058 libexecdir!$libexecdir$ac_delim
23059 datarootdir!$datarootdir$ac_delim
23060 datadir!$datadir$ac_delim
23061 sysconfdir!$sysconfdir$ac_delim
23062 sharedstatedir!$sharedstatedir$ac_delim
23063 localstatedir!$localstatedir$ac_delim
23064 includedir!$includedir$ac_delim
23065 oldincludedir!$oldincludedir$ac_delim
23066 docdir!$docdir$ac_delim
23067 infodir!$infodir$ac_delim
23068 htmldir!$htmldir$ac_delim
23069 dvidir!$dvidir$ac_delim
23070 pdfdir!$pdfdir$ac_delim
23071 psdir!$psdir$ac_delim
23072 libdir!$libdir$ac_delim
23073 localedir!$localedir$ac_delim
23074 mandir!$mandir$ac_delim
23075 DEFS!$DEFS$ac_delim
23076 ECHO_C!$ECHO_C$ac_delim
23077 ECHO_N!$ECHO_N$ac_delim
23078 ECHO_T!$ECHO_T$ac_delim
23079 LIBS!$LIBS$ac_delim
23080 build_alias!$build_alias$ac_delim
23081 host_alias!$host_alias$ac_delim
23082 target_alias!$target_alias$ac_delim
23083 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23084 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23085 INSTALL_DATA!$INSTALL_DATA$ac_delim
23086 am__isrc!$am__isrc$ac_delim
23087 CYGPATH_W!$CYGPATH_W$ac_delim
23088 PACKAGE!$PACKAGE$ac_delim
23089 VERSION!$VERSION$ac_delim
23090 ACLOCAL!$ACLOCAL$ac_delim
23091 AUTOCONF!$AUTOCONF$ac_delim
23092 AUTOMAKE!$AUTOMAKE$ac_delim
23093 AUTOHEADER!$AUTOHEADER$ac_delim
23094 MAKEINFO!$MAKEINFO$ac_delim
23095 install_sh!$install_sh$ac_delim
23096 STRIP!$STRIP$ac_delim
23097 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
23098 mkdir_p!$mkdir_p$ac_delim
23099 AWK!$AWK$ac_delim
23100 SET_MAKE!$SET_MAKE$ac_delim
23101 am__leading_dot!$am__leading_dot$ac_delim
23102 AMTAR!$AMTAR$ac_delim
23103 am__tar!$am__tar$ac_delim
23104 am__untar!$am__untar$ac_delim
23105 CC!$CC$ac_delim
23106 CFLAGS!$CFLAGS$ac_delim
23107 LDFLAGS!$LDFLAGS$ac_delim
23108 CPPFLAGS!$CPPFLAGS$ac_delim
23109 ac_ct_CC!$ac_ct_CC$ac_delim
23110 EXEEXT!$EXEEXT$ac_delim
23111 OBJEXT!$OBJEXT$ac_delim
23112 DEPDIR!$DEPDIR$ac_delim
23113 am__include!$am__include$ac_delim
23114 am__quote!$am__quote$ac_delim
23115 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
23116 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
23117 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
23118 CCDEPMODE!$CCDEPMODE$ac_delim
23119 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
23120 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
23121 build!$build$ac_delim
23122 build_cpu!$build_cpu$ac_delim
23123 build_vendor!$build_vendor$ac_delim
23124 build_os!$build_os$ac_delim
23125 host!$host$ac_delim
23126 host_cpu!$host_cpu$ac_delim
23127 host_vendor!$host_vendor$ac_delim
23128 host_os!$host_os$ac_delim
23129 SED!$SED$ac_delim
23130 GREP!$GREP$ac_delim
23131 EGREP!$EGREP$ac_delim
23132 LN_S!$LN_S$ac_delim
23133 ECHO!$ECHO$ac_delim
23134 AR!$AR$ac_delim
23135 RANLIB!$RANLIB$ac_delim
23136 DLLTOOL!$DLLTOOL$ac_delim
23137 AS!$AS$ac_delim
23138 OBJDUMP!$OBJDUMP$ac_delim
23139 CPP!$CPP$ac_delim
23140 CXX!$CXX$ac_delim
23141 CXXFLAGS!$CXXFLAGS$ac_delim
23142 ac_ct_CXX!$ac_ct_CXX$ac_delim
23143 _ACEOF
23145 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23146 break
23147 elif $ac_last_try; then
23148 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23149 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23150 { (exit 1); exit 1; }; }
23151 else
23152 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23154 done
23156 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23157 if test -n "$ac_eof"; then
23158 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23159 ac_eof=`expr $ac_eof + 1`
23162 cat >>$CONFIG_STATUS <<_ACEOF
23163 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23164 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23165 _ACEOF
23166 sed '
23167 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23168 s/^/s,@/; s/!/@,|#_!!_#|/
23171 s/'"$ac_delim"'$/,g/; t
23172 s/$/\\/; p
23173 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23174 ' >>$CONFIG_STATUS <conf$$subs.sed
23175 rm -f conf$$subs.sed
23176 cat >>$CONFIG_STATUS <<_ACEOF
23177 CEOF$ac_eof
23178 _ACEOF
23181 ac_delim='%!_!# '
23182 for ac_last_try in false false false false false :; do
23183 cat >conf$$subs.sed <<_ACEOF
23184 CXXDEPMODE!$CXXDEPMODE$ac_delim
23185 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
23186 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
23187 CXXCPP!$CXXCPP$ac_delim
23188 F77!$F77$ac_delim
23189 FFLAGS!$FFLAGS$ac_delim
23190 ac_ct_F77!$ac_ct_F77$ac_delim
23191 LIBTOOL!$LIBTOOL$ac_delim
23192 LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
23193 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23194 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23195 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23196 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23197 LIBADD_DL!$LIBADD_DL$ac_delim
23198 LIBOBJS!$LIBOBJS$ac_delim
23199 LTLIBOBJS!$LTLIBOBJS$ac_delim
23200 _ACEOF
23202 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 16; then
23203 break
23204 elif $ac_last_try; then
23205 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23206 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23207 { (exit 1); exit 1; }; }
23208 else
23209 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23211 done
23213 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23214 if test -n "$ac_eof"; then
23215 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23216 ac_eof=`expr $ac_eof + 1`
23219 cat >>$CONFIG_STATUS <<_ACEOF
23220 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23221 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23222 _ACEOF
23223 sed '
23224 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23225 s/^/s,@/; s/!/@,|#_!!_#|/
23228 s/'"$ac_delim"'$/,g/; t
23229 s/$/\\/; p
23230 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23231 ' >>$CONFIG_STATUS <conf$$subs.sed
23232 rm -f conf$$subs.sed
23233 cat >>$CONFIG_STATUS <<_ACEOF
23234 :end
23235 s/|#_!!_#|//g
23236 CEOF$ac_eof
23237 _ACEOF
23240 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23241 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23242 # trailing colons and then remove the whole line if VPATH becomes empty
23243 # (actually we leave an empty line to preserve line numbers).
23244 if test "x$srcdir" = x.; then
23245 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23246 s/:*\$(srcdir):*/:/
23247 s/:*\${srcdir}:*/:/
23248 s/:*@srcdir@:*/:/
23249 s/^\([^=]*=[ ]*\):*/\1/
23250 s/:*$//
23251 s/^[^=]*=[ ]*$//
23255 cat >>$CONFIG_STATUS <<\_ACEOF
23256 fi # test -n "$CONFIG_FILES"
23259 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23261 case $ac_tag in
23262 :[FHLC]) ac_mode=$ac_tag; continue;;
23263 esac
23264 case $ac_mode$ac_tag in
23265 :[FHL]*:*);;
23266 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23267 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23268 { (exit 1); exit 1; }; };;
23269 :[FH]-) ac_tag=-:-;;
23270 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23271 esac
23272 ac_save_IFS=$IFS
23273 IFS=:
23274 set x $ac_tag
23275 IFS=$ac_save_IFS
23276 shift
23277 ac_file=$1
23278 shift
23280 case $ac_mode in
23281 :L) ac_source=$1;;
23282 :[FH])
23283 ac_file_inputs=
23284 for ac_f
23286 case $ac_f in
23287 -) ac_f="$tmp/stdin";;
23288 *) # Look for the file first in the build tree, then in the source tree
23289 # (if the path is not absolute). The absolute path cannot be DOS-style,
23290 # because $ac_f cannot contain `:'.
23291 test -f "$ac_f" ||
23292 case $ac_f in
23293 [\\/$]*) false;;
23294 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23295 esac ||
23296 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23297 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23298 { (exit 1); exit 1; }; };;
23299 esac
23300 ac_file_inputs="$ac_file_inputs $ac_f"
23301 done
23303 # Let's still pretend it is `configure' which instantiates (i.e., don't
23304 # use $as_me), people would be surprised to read:
23305 # /* config.h. Generated by config.status. */
23306 configure_input="Generated from "`IFS=:
23307 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23308 if test x"$ac_file" != x-; then
23309 configure_input="$ac_file. $configure_input"
23310 { echo "$as_me:$LINENO: creating $ac_file" >&5
23311 echo "$as_me: creating $ac_file" >&6;}
23314 case $ac_tag in
23315 *:-:* | *:-) cat >"$tmp/stdin";;
23316 esac
23318 esac
23320 ac_dir=`$as_dirname -- "$ac_file" ||
23321 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23322 X"$ac_file" : 'X\(//\)[^/]' \| \
23323 X"$ac_file" : 'X\(//\)$' \| \
23324 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23325 echo X"$ac_file" |
23326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23327 s//\1/
23330 /^X\(\/\/\)[^/].*/{
23331 s//\1/
23334 /^X\(\/\/\)$/{
23335 s//\1/
23338 /^X\(\/\).*/{
23339 s//\1/
23342 s/.*/./; q'`
23343 { as_dir="$ac_dir"
23344 case $as_dir in #(
23345 -*) as_dir=./$as_dir;;
23346 esac
23347 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23348 as_dirs=
23349 while :; do
23350 case $as_dir in #(
23351 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23352 *) as_qdir=$as_dir;;
23353 esac
23354 as_dirs="'$as_qdir' $as_dirs"
23355 as_dir=`$as_dirname -- "$as_dir" ||
23356 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23357 X"$as_dir" : 'X\(//\)[^/]' \| \
23358 X"$as_dir" : 'X\(//\)$' \| \
23359 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23360 echo X"$as_dir" |
23361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23362 s//\1/
23365 /^X\(\/\/\)[^/].*/{
23366 s//\1/
23369 /^X\(\/\/\)$/{
23370 s//\1/
23373 /^X\(\/\).*/{
23374 s//\1/
23377 s/.*/./; q'`
23378 test -d "$as_dir" && break
23379 done
23380 test -z "$as_dirs" || eval "mkdir $as_dirs"
23381 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23382 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23383 { (exit 1); exit 1; }; }; }
23384 ac_builddir=.
23386 case "$ac_dir" in
23387 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23389 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23390 # A ".." for each directory in $ac_dir_suffix.
23391 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23392 case $ac_top_builddir_sub in
23393 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23394 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23395 esac ;;
23396 esac
23397 ac_abs_top_builddir=$ac_pwd
23398 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23399 # for backward compatibility:
23400 ac_top_builddir=$ac_top_build_prefix
23402 case $srcdir in
23403 .) # We are building in place.
23404 ac_srcdir=.
23405 ac_top_srcdir=$ac_top_builddir_sub
23406 ac_abs_top_srcdir=$ac_pwd ;;
23407 [\\/]* | ?:[\\/]* ) # Absolute name.
23408 ac_srcdir=$srcdir$ac_dir_suffix;
23409 ac_top_srcdir=$srcdir
23410 ac_abs_top_srcdir=$srcdir ;;
23411 *) # Relative name.
23412 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23413 ac_top_srcdir=$ac_top_build_prefix$srcdir
23414 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23415 esac
23416 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23419 case $ac_mode in
23422 # CONFIG_FILE
23425 case $INSTALL in
23426 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23427 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23428 esac
23429 ac_MKDIR_P=$MKDIR_P
23430 case $MKDIR_P in
23431 [\\/$]* | ?:[\\/]* ) ;;
23432 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23433 esac
23434 _ACEOF
23436 cat >>$CONFIG_STATUS <<\_ACEOF
23437 # If the template does not know about datarootdir, expand it.
23438 # FIXME: This hack should be removed a few years after 2.60.
23439 ac_datarootdir_hack=; ac_datarootdir_seen=
23441 case `sed -n '/datarootdir/ {
23445 /@datadir@/p
23446 /@docdir@/p
23447 /@infodir@/p
23448 /@localedir@/p
23449 /@mandir@/p
23450 ' $ac_file_inputs` in
23451 *datarootdir*) ac_datarootdir_seen=yes;;
23452 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23453 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23454 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23455 _ACEOF
23456 cat >>$CONFIG_STATUS <<_ACEOF
23457 ac_datarootdir_hack='
23458 s&@datadir@&$datadir&g
23459 s&@docdir@&$docdir&g
23460 s&@infodir@&$infodir&g
23461 s&@localedir@&$localedir&g
23462 s&@mandir@&$mandir&g
23463 s&\\\${datarootdir}&$datarootdir&g' ;;
23464 esac
23465 _ACEOF
23467 # Neutralize VPATH when `$srcdir' = `.'.
23468 # Shell code in configure.ac might set extrasub.
23469 # FIXME: do we really want to maintain this feature?
23470 cat >>$CONFIG_STATUS <<_ACEOF
23471 sed "$ac_vpsub
23472 $extrasub
23473 _ACEOF
23474 cat >>$CONFIG_STATUS <<\_ACEOF
23476 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23477 s&@configure_input@&$configure_input&;t t
23478 s&@top_builddir@&$ac_top_builddir_sub&;t t
23479 s&@srcdir@&$ac_srcdir&;t t
23480 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23481 s&@top_srcdir@&$ac_top_srcdir&;t t
23482 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23483 s&@builddir@&$ac_builddir&;t t
23484 s&@abs_builddir@&$ac_abs_builddir&;t t
23485 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23486 s&@INSTALL@&$ac_INSTALL&;t t
23487 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23488 $ac_datarootdir_hack
23489 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
23491 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23492 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23493 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23494 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23495 which seems to be undefined. Please make sure it is defined." >&5
23496 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23497 which seems to be undefined. Please make sure it is defined." >&2;}
23499 rm -f "$tmp/stdin"
23500 case $ac_file in
23501 -) cat "$tmp/out"; rm -f "$tmp/out";;
23502 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23503 esac
23507 # CONFIG_HEADER
23509 _ACEOF
23511 # Transform confdefs.h into a sed script `conftest.defines', that
23512 # substitutes the proper values into config.h.in to produce config.h.
23513 rm -f conftest.defines conftest.tail
23514 # First, append a space to every undef/define line, to ease matching.
23515 echo 's/$/ /' >conftest.defines
23516 # Then, protect against being on the right side of a sed subst, or in
23517 # an unquoted here document, in config.status. If some macros were
23518 # called several times there might be several #defines for the same
23519 # symbol, which is useless. But do not sort them, since the last
23520 # AC_DEFINE must be honored.
23521 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23522 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23523 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23524 # PARAMS is the parameter list in the macro definition--in most cases, it's
23525 # just an empty string.
23526 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23527 ac_dB='\\)[ (].*,\\1define\\2'
23528 ac_dC=' '
23529 ac_dD=' ,'
23531 uniq confdefs.h |
23532 sed -n '
23533 t rset
23534 :rset
23535 s/^[ ]*#[ ]*define[ ][ ]*//
23536 t ok
23539 s/[\\&,]/\\&/g
23540 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23541 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23542 ' >>conftest.defines
23544 # Remove the space that was appended to ease matching.
23545 # Then replace #undef with comments. This is necessary, for
23546 # example, in the case of _POSIX_SOURCE, which is predefined and required
23547 # on some systems where configure will not decide to define it.
23548 # (The regexp can be short, since the line contains either #define or #undef.)
23549 echo 's/ $//
23550 s,^[ #]*u.*,/* & */,' >>conftest.defines
23552 # Break up conftest.defines:
23553 ac_max_sed_lines=50
23555 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23556 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23557 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23558 # et cetera.
23559 ac_in='$ac_file_inputs'
23560 ac_out='"$tmp/out1"'
23561 ac_nxt='"$tmp/out2"'
23563 while :
23565 # Write a here document:
23566 cat >>$CONFIG_STATUS <<_ACEOF
23567 # First, check the format of the line:
23568 cat >"\$tmp/defines.sed" <<\\CEOF
23569 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23570 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23572 :def
23573 _ACEOF
23574 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23575 echo 'CEOF
23576 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23577 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23578 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23579 grep . conftest.tail >/dev/null || break
23580 rm -f conftest.defines
23581 mv conftest.tail conftest.defines
23582 done
23583 rm -f conftest.defines conftest.tail
23585 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23586 cat >>$CONFIG_STATUS <<\_ACEOF
23587 if test x"$ac_file" != x-; then
23588 echo "/* $configure_input */" >"$tmp/config.h"
23589 cat "$ac_result" >>"$tmp/config.h"
23590 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23591 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23592 echo "$as_me: $ac_file is unchanged" >&6;}
23593 else
23594 rm -f $ac_file
23595 mv "$tmp/config.h" $ac_file
23597 else
23598 echo "/* $configure_input */"
23599 cat "$ac_result"
23601 rm -f "$tmp/out12"
23602 # Compute $ac_file's index in $config_headers.
23603 _am_stamp_count=1
23604 for _am_header in $config_headers :; do
23605 case $_am_header in
23606 $ac_file | $ac_file:* )
23607 break ;;
23609 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23610 esac
23611 done
23612 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
23613 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23614 X$ac_file : 'X\(//\)[^/]' \| \
23615 X$ac_file : 'X\(//\)$' \| \
23616 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
23617 echo X$ac_file |
23618 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23619 s//\1/
23622 /^X\(\/\/\)[^/].*/{
23623 s//\1/
23626 /^X\(\/\/\)$/{
23627 s//\1/
23630 /^X\(\/\).*/{
23631 s//\1/
23634 s/.*/./; q'`/stamp-h$_am_stamp_count
23637 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23638 echo "$as_me: executing $ac_file commands" >&6;}
23640 esac
23643 case $ac_file$ac_mode in
23644 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23645 # Strip MF so we end up with the name of the file.
23646 mf=`echo "$mf" | sed -e 's/:.*$//'`
23647 # Check whether this is an Automake generated Makefile or not.
23648 # We used to match only the files named `Makefile.in', but
23649 # some people rename them; so instead we look at the file content.
23650 # Grep'ing the first line is not enough: some people post-process
23651 # each Makefile.in and add a new line on top of each file to say so.
23652 # Grep'ing the whole file is not good either: AIX grep has a line
23653 # limit of 2048, but all sed's we know have understand at least 4000.
23654 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
23655 dirpart=`$as_dirname -- "$mf" ||
23656 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23657 X"$mf" : 'X\(//\)[^/]' \| \
23658 X"$mf" : 'X\(//\)$' \| \
23659 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23660 echo X"$mf" |
23661 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23662 s//\1/
23665 /^X\(\/\/\)[^/].*/{
23666 s//\1/
23669 /^X\(\/\/\)$/{
23670 s//\1/
23673 /^X\(\/\).*/{
23674 s//\1/
23677 s/.*/./; q'`
23678 else
23679 continue
23681 # Extract the definition of DEPDIR, am__include, and am__quote
23682 # from the Makefile without running `make'.
23683 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23684 test -z "$DEPDIR" && continue
23685 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23686 test -z "am__include" && continue
23687 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23688 # When using ansi2knr, U may be empty or an underscore; expand it
23689 U=`sed -n 's/^U = //p' < "$mf"`
23690 # Find all dependency output files, they are included files with
23691 # $(DEPDIR) in their names. We invoke sed twice because it is the
23692 # simplest approach to changing $(DEPDIR) to its actual value in the
23693 # expansion.
23694 for file in `sed -n "
23695 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23696 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23697 # Make sure the directory exists.
23698 test -f "$dirpart/$file" && continue
23699 fdir=`$as_dirname -- "$file" ||
23700 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23701 X"$file" : 'X\(//\)[^/]' \| \
23702 X"$file" : 'X\(//\)$' \| \
23703 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23704 echo X"$file" |
23705 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23706 s//\1/
23709 /^X\(\/\/\)[^/].*/{
23710 s//\1/
23713 /^X\(\/\/\)$/{
23714 s//\1/
23717 /^X\(\/\).*/{
23718 s//\1/
23721 s/.*/./; q'`
23722 { as_dir=$dirpart/$fdir
23723 case $as_dir in #(
23724 -*) as_dir=./$as_dir;;
23725 esac
23726 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23727 as_dirs=
23728 while :; do
23729 case $as_dir in #(
23730 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23731 *) as_qdir=$as_dir;;
23732 esac
23733 as_dirs="'$as_qdir' $as_dirs"
23734 as_dir=`$as_dirname -- "$as_dir" ||
23735 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23736 X"$as_dir" : 'X\(//\)[^/]' \| \
23737 X"$as_dir" : 'X\(//\)$' \| \
23738 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23739 echo X"$as_dir" |
23740 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23741 s//\1/
23744 /^X\(\/\/\)[^/].*/{
23745 s//\1/
23748 /^X\(\/\/\)$/{
23749 s//\1/
23752 /^X\(\/\).*/{
23753 s//\1/
23756 s/.*/./; q'`
23757 test -d "$as_dir" && break
23758 done
23759 test -z "$as_dirs" || eval "mkdir $as_dirs"
23760 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23761 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23762 { (exit 1); exit 1; }; }; }
23763 # echo "creating $dirpart/$file"
23764 echo '# dummy' > "$dirpart/$file"
23765 done
23766 done
23769 esac
23770 done # for ac_tag
23773 { (exit 0); exit 0; }
23774 _ACEOF
23775 chmod +x $CONFIG_STATUS
23776 ac_clean_files=$ac_clean_files_save
23779 # configure is writing to config.log, and then calls config.status.
23780 # config.status does its own redirection, appending to config.log.
23781 # Unfortunately, on DOS this fails, as config.log is still kept open
23782 # by configure, so config.status won't be able to write to it; its
23783 # output is simply discarded. So we exec the FD to /dev/null,
23784 # effectively closing config.log, so it can be properly (re)opened and
23785 # appended to by config.status. When coming back to configure, we
23786 # need to make the FD available again.
23787 if test "$no_create" != yes; then
23788 ac_cs_success=:
23789 ac_config_status_args=
23790 test "$silent" = yes &&
23791 ac_config_status_args="$ac_config_status_args --quiet"
23792 exec 5>/dev/null
23793 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23794 exec 5>>config.log
23795 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23796 # would make configure fail if this is the last instruction.
23797 $ac_cs_success || { (exit 1); exit 1; }