2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for iptables 1.4.3.2.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
558 # Remove one level of quotation (which was required for Make).
559 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
564 if test "X$1" = X--no-reexec; then
565 # Discard the --no-reexec flag, and continue.
567 elif test "X$1" = X--fallback-echo; then
568 # Avoid inline document here, it may be left over
570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $echo works!
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
578 if test "X$1" = X--fallback-echo; then
579 # used as fallback echo
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
591 if test -z "$ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597 echo_test_string=`eval $cmd` &&
598 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
610 # The Solaris, AIX, and Digital Unix default echo programs unquote
611 # backslashes. This makes it impossible to quote backslashes using
612 # echo "$something" | sed 's/\\/\\\\/g'
614 # So, first we look for a working echo in the user's PATH.
616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617 for dir in $PATH /usr/ucb; do
619 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
629 if test "X$echo" = Xecho; then
630 # We didn't find a better echo, so look for alternatives.
631 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633 test "X$echo_testing_string" = "X$echo_test_string"; then
634 # This shell has a builtin print -r that does the trick.
636 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637 test "X$CONFIG_SHELL" != X/bin/ksh; then
638 # If we have ksh, try running configure again with it.
639 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640 export ORIGINAL_CONFIG_SHELL
641 CONFIG_SHELL=/bin/ksh
643 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
647 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649 test "X$echo_testing_string" = "X$echo_test_string"; then
652 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653 test "X$echo_testing_string" = 'X\t' &&
654 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655 test "X$echo_testing_string" = "X$echo_test_string"; then
656 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
658 SHELL="$CONFIG_SHELL"
660 echo="$CONFIG_SHELL $0 --fallback-echo"
661 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662 test "X$echo_testing_string" = 'X\t' &&
663 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664 test "X$echo_testing_string" = "X$echo_test_string"; then
665 echo="$CONFIG_SHELL $0 --fallback-echo"
667 # maybe with a smaller string...
670 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
678 if test "$prev" != 'sed 50q "$0"'; then
679 echo_test_string=`eval $prev`
680 export echo_test_string
681 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
683 # Oops. We lost completely, so just stick with echo.
692 # Copy echo and quote the copy suitably for passing to libtool from
693 # the Makefile, instead of quoting the original, which is used later.
695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
702 tagnames=${tagnames+${tagnames},}CXX
704 tagnames=${tagnames+${tagnames},}F77
706 exec 7<&0 </dev/null 6>&1
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
716 ac_default_prefix=/usr/local
718 ac_config_libobj_dir=.
724 SHELL=${CONFIG_SHELL-/bin/sh}
726 # Identity of this package.
727 PACKAGE_NAME='iptables'
728 PACKAGE_TARNAME='iptables'
729 PACKAGE_VERSION='1.4.3.2'
730 PACKAGE_STRING='iptables 1.4.3.2'
733 # Factoring default headers for most tests.
734 ac_includes_default="\
736 #ifdef HAVE_SYS_TYPES_H
737 # include <sys/types.h>
739 #ifdef HAVE_SYS_STAT_H
740 # include <sys/stat.h>
746 # ifdef HAVE_STDLIB_H
751 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
756 #ifdef HAVE_STRINGS_H
757 # include <strings.h>
759 #ifdef HAVE_INTTYPES_H
760 # include <inttypes.h>
778 program_transform_name
820 INSTALL_STRIP_PROGRAM
898 ac_precious_vars='build_alias
915 # Initialize some variables set by options.
917 ac_init_version=false
918 # The variables have the same names as the options, with
919 # dashes changed to underlines.
927 program_transform_name=s,x,x,
935 # Installation directory options.
936 # These are left unexpanded so users can "make install exec_prefix=/foo"
937 # and all the variables that are supposed to be based on exec_prefix
938 # by default will actually change.
939 # Use braces instead of parens because sh, perl, etc. also accept them.
940 # (The list follows the same order as the GNU Coding Standards.)
941 bindir='${exec_prefix}/bin'
942 sbindir='${exec_prefix}/sbin'
943 libexecdir='${exec_prefix}/libexec'
944 datarootdir='${prefix}/share'
945 datadir='${datarootdir}'
946 sysconfdir='${prefix}/etc'
947 sharedstatedir='${prefix}/com'
948 localstatedir='${prefix}/var'
949 includedir='${prefix}/include'
950 oldincludedir='/usr/include'
951 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
952 infodir='${datarootdir}/info'
957 libdir='${exec_prefix}/lib'
958 localedir='${datarootdir}/locale'
959 mandir='${datarootdir}/man'
965 # If the previous option needs an argument, assign it.
966 if test -n "$ac_prev"; then
967 eval $ac_prev=\$ac_option
973 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
977 # Accept the important Cygnus configure options, so we can diagnose typos.
979 case $ac_dashdash$ac_option in
983 -bindir | --bindir | --bindi | --bind | --bin | --bi)
985 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
988 -build | --build | --buil | --bui | --bu)
989 ac_prev=build_alias ;;
990 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
991 build_alias=$ac_optarg ;;
993 -cache-file | --cache-file | --cache-fil | --cache-fi \
994 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
995 ac_prev=cache_file ;;
996 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
997 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
998 cache_file=$ac_optarg ;;
1000 --config-cache | -C)
1001 cache_file=config.cache ;;
1003 -datadir | --datadir | --datadi | --datad)
1005 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1006 datadir=$ac_optarg ;;
1008 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1009 | --dataroo | --dataro | --datar)
1010 ac_prev=datarootdir ;;
1011 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1012 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1013 datarootdir=$ac_optarg ;;
1015 -disable-* | --disable-*)
1016 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1017 # Reject names that are not valid shell variable names.
1018 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1019 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1020 { (exit 1); exit 1; }; }
1021 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1022 eval enable_$ac_feature=no ;;
1024 -docdir | --docdir | --docdi | --doc | --do)
1026 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1027 docdir=$ac_optarg ;;
1029 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1031 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1032 dvidir=$ac_optarg ;;
1034 -enable-* | --enable-*)
1035 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1036 # Reject names that are not valid shell variable names.
1037 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1038 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1039 { (exit 1); exit 1; }; }
1040 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1041 eval enable_$ac_feature=\$ac_optarg ;;
1043 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1044 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1045 | --exec | --exe | --ex)
1046 ac_prev=exec_prefix ;;
1047 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1048 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1049 | --exec=* | --exe=* | --ex=*)
1050 exec_prefix=$ac_optarg ;;
1052 -gas | --gas | --ga | --g)
1053 # Obsolete; use --with-gas.
1056 -help | --help | --hel | --he | -h)
1057 ac_init_help=long ;;
1058 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1059 ac_init_help=recursive ;;
1060 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1061 ac_init_help=short ;;
1063 -host | --host | --hos | --ho)
1064 ac_prev=host_alias ;;
1065 -host=* | --host=* | --hos=* | --ho=*)
1066 host_alias=$ac_optarg ;;
1068 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1070 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1072 htmldir=$ac_optarg ;;
1074 -includedir | --includedir | --includedi | --included | --include \
1075 | --includ | --inclu | --incl | --inc)
1076 ac_prev=includedir ;;
1077 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1078 | --includ=* | --inclu=* | --incl=* | --inc=*)
1079 includedir=$ac_optarg ;;
1081 -infodir | --infodir | --infodi | --infod | --info | --inf)
1083 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1084 infodir=$ac_optarg ;;
1086 -libdir | --libdir | --libdi | --libd)
1088 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1089 libdir=$ac_optarg ;;
1091 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1092 | --libexe | --libex | --libe)
1093 ac_prev=libexecdir ;;
1094 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1095 | --libexe=* | --libex=* | --libe=*)
1096 libexecdir=$ac_optarg ;;
1098 -localedir | --localedir | --localedi | --localed | --locale)
1099 ac_prev=localedir ;;
1100 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1101 localedir=$ac_optarg ;;
1103 -localstatedir | --localstatedir | --localstatedi | --localstated \
1104 | --localstate | --localstat | --localsta | --localst | --locals)
1105 ac_prev=localstatedir ;;
1106 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1107 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1108 localstatedir=$ac_optarg ;;
1110 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1112 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1113 mandir=$ac_optarg ;;
1115 -nfp | --nfp | --nf)
1116 # Obsolete; use --without-fp.
1119 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1120 | --no-cr | --no-c | -n)
1123 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1124 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1127 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1128 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1129 | --oldin | --oldi | --old | --ol | --o)
1130 ac_prev=oldincludedir ;;
1131 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1132 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1133 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1134 oldincludedir=$ac_optarg ;;
1136 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1138 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1139 prefix=$ac_optarg ;;
1141 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1142 | --program-pre | --program-pr | --program-p)
1143 ac_prev=program_prefix ;;
1144 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1145 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1146 program_prefix=$ac_optarg ;;
1148 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1149 | --program-suf | --program-su | --program-s)
1150 ac_prev=program_suffix ;;
1151 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1152 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1153 program_suffix=$ac_optarg ;;
1155 -program-transform-name | --program-transform-name \
1156 | --program-transform-nam | --program-transform-na \
1157 | --program-transform-n | --program-transform- \
1158 | --program-transform | --program-transfor \
1159 | --program-transfo | --program-transf \
1160 | --program-trans | --program-tran \
1161 | --progr-tra | --program-tr | --program-t)
1162 ac_prev=program_transform_name ;;
1163 -program-transform-name=* | --program-transform-name=* \
1164 | --program-transform-nam=* | --program-transform-na=* \
1165 | --program-transform-n=* | --program-transform-=* \
1166 | --program-transform=* | --program-transfor=* \
1167 | --program-transfo=* | --program-transf=* \
1168 | --program-trans=* | --program-tran=* \
1169 | --progr-tra=* | --program-tr=* | --program-t=*)
1170 program_transform_name=$ac_optarg ;;
1172 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1174 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1175 pdfdir=$ac_optarg ;;
1177 -psdir | --psdir | --psdi | --psd | --ps)
1179 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1182 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1183 | -silent | --silent | --silen | --sile | --sil)
1186 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1188 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1190 sbindir=$ac_optarg ;;
1192 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1193 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1194 | --sharedst | --shareds | --shared | --share | --shar \
1196 ac_prev=sharedstatedir ;;
1197 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1198 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1199 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1201 sharedstatedir=$ac_optarg ;;
1203 -site | --site | --sit)
1205 -site=* | --site=* | --sit=*)
1208 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1210 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1211 srcdir=$ac_optarg ;;
1213 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1214 | --syscon | --sysco | --sysc | --sys | --sy)
1215 ac_prev=sysconfdir ;;
1216 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1217 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1218 sysconfdir=$ac_optarg ;;
1220 -target | --target | --targe | --targ | --tar | --ta | --t)
1221 ac_prev=target_alias ;;
1222 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1223 target_alias=$ac_optarg ;;
1225 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1228 -version | --version | --versio | --versi | --vers | -V)
1229 ac_init_version=: ;;
1232 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1233 # Reject names that are not valid shell variable names.
1234 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1235 { echo "$as_me: error: invalid package name: $ac_package" >&2
1236 { (exit 1); exit 1; }; }
1237 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1238 eval with_$ac_package=\$ac_optarg ;;
1240 -without-* | --without-*)
1241 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1242 # Reject names that are not valid shell variable names.
1243 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1244 { echo "$as_me: error: invalid package name: $ac_package" >&2
1245 { (exit 1); exit 1; }; }
1246 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1247 eval with_$ac_package=no ;;
1250 # Obsolete; use --with-x.
1253 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1254 | --x-incl | --x-inc | --x-in | --x-i)
1255 ac_prev=x_includes ;;
1256 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1257 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1258 x_includes=$ac_optarg ;;
1260 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1261 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1262 ac_prev=x_libraries ;;
1263 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1264 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1265 x_libraries=$ac_optarg ;;
1267 -*) { echo "$as_me: error: unrecognized option: $ac_option
1268 Try \`$0 --help' for more information." >&2
1269 { (exit 1); exit 1; }; }
1273 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1274 # Reject names that are not valid shell variable names.
1275 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1276 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1277 { (exit 1); exit 1; }; }
1278 eval $ac_envvar=\$ac_optarg
1279 export $ac_envvar ;;
1282 # FIXME: should be removed in autoconf 3.0.
1283 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1284 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1285 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1286 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1292 if test -n "$ac_prev"; then
1293 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1294 { echo "$as_me: error: missing argument to $ac_option" >&2
1295 { (exit 1); exit 1; }; }
1298 # Be sure to have absolute directory names.
1299 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1300 datadir sysconfdir sharedstatedir localstatedir includedir \
1301 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1302 libdir localedir mandir
1304 eval ac_val=\$$ac_var
1306 [\\/$]* | ?:[\\/]* ) continue;;
1307 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1309 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1310 { (exit 1); exit 1; }; }
1313 # There might be people who depend on the old broken behavior: `$host'
1314 # used to hold the argument of --host etc.
1315 # FIXME: To remove some day.
1318 target=$target_alias
1320 # FIXME: To remove some day.
1321 if test "x$host_alias" != x; then
1322 if test "x$build_alias" = x; then
1323 cross_compiling=maybe
1324 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1325 If a cross compiler is detected then cross compile mode will be used." >&2
1326 elif test "x$build_alias" != "x$host_alias"; then
1332 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1334 test "$silent" = yes && exec 6>/dev/null
1337 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1338 ac_ls_di=`ls -di .` &&
1339 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1340 { echo "$as_me: error: Working directory cannot be determined" >&2
1341 { (exit 1); exit 1; }; }
1342 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1343 { echo "$as_me: error: pwd does not report name of working directory" >&2
1344 { (exit 1); exit 1; }; }
1347 # Find the source files, if location was not specified.
1348 if test -z "$srcdir"; then
1349 ac_srcdir_defaulted=yes
1350 # Try the directory containing this script, then the parent directory.
1351 ac_confdir=`$as_dirname -- "$0" ||
1352 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1353 X"$0" : 'X\(//\)[^/]' \| \
1354 X"$0" : 'X\(//\)$' \| \
1355 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1375 if test ! -r "$srcdir/$ac_unique_file"; then
1379 ac_srcdir_defaulted=no
1381 if test ! -r "$srcdir/$ac_unique_file"; then
1382 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1383 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1384 { (exit 1); exit 1; }; }
1386 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1388 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1389 { (exit 1); exit 1; }; }
1391 # When building in place, set srcdir=.
1392 if test "$ac_abs_confdir" = "$ac_pwd"; then
1395 # Remove unnecessary trailing slashes from srcdir.
1396 # Double slashes in file names in object file debugging info
1397 # mess up M-x gdb in Emacs.
1399 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1401 for ac_var in $ac_precious_vars; do
1402 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1403 eval ac_env_${ac_var}_value=\$${ac_var}
1404 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1405 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1409 # Report the --help message.
1411 if test "$ac_init_help" = "long"; then
1412 # Omit some internal or obsolete options to make the list less imposing.
1413 # This message is too long to be a string in the A/UX 3.1 sh.
1415 \`configure' configures iptables 1.4.3.2 to adapt to many kinds of systems.
1417 Usage: $0 [OPTION]... [VAR=VALUE]...
1419 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1420 VAR=VALUE. See below for descriptions of some of the useful variables.
1422 Defaults for the options are specified in brackets.
1425 -h, --help display this help and exit
1426 --help=short display options specific to this package
1427 --help=recursive display the short help of all the included packages
1428 -V, --version display version information and exit
1429 -q, --quiet, --silent do not print \`checking...' messages
1430 --cache-file=FILE cache test results in FILE [disabled]
1431 -C, --config-cache alias for \`--cache-file=config.cache'
1432 -n, --no-create do not create output files
1433 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1435 Installation directories:
1436 --prefix=PREFIX install architecture-independent files in PREFIX
1437 [$ac_default_prefix]
1438 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1441 By default, \`make install' will install all the files in
1442 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1443 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1444 for instance \`--prefix=\$HOME'.
1446 For better control, use the options below.
1448 Fine tuning of the installation directories:
1449 --bindir=DIR user executables [EPREFIX/bin]
1450 --sbindir=DIR system admin executables [EPREFIX/sbin]
1451 --libexecdir=DIR program executables [EPREFIX/libexec]
1452 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1453 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1454 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1455 --libdir=DIR object code libraries [EPREFIX/lib]
1456 --includedir=DIR C header files [PREFIX/include]
1457 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1458 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1459 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1460 --infodir=DIR info documentation [DATAROOTDIR/info]
1461 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1462 --mandir=DIR man documentation [DATAROOTDIR/man]
1463 --docdir=DIR documentation root [DATAROOTDIR/doc/iptables]
1464 --htmldir=DIR html documentation [DOCDIR]
1465 --dvidir=DIR dvi documentation [DOCDIR]
1466 --pdfdir=DIR pdf documentation [DOCDIR]
1467 --psdir=DIR ps documentation [DOCDIR]
1473 --program-prefix=PREFIX prepend PREFIX to installed program names
1474 --program-suffix=SUFFIX append SUFFIX to installed program names
1475 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1478 --build=BUILD configure for building on BUILD [guessed]
1479 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1483 if test -n "$ac_init_help"; then
1484 case $ac_init_help in
1485 short | recursive ) echo "Configuration of iptables 1.4.3.2:";;
1490 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1491 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1492 --disable-dependency-tracking speeds up one-time build
1493 --enable-dependency-tracking do not reject slow dependency extractors
1494 --enable-static[=PKGS] build static libraries [default=no]
1495 --enable-shared[=PKGS] build shared libraries [default=yes]
1496 --enable-fast-install[=PKGS]
1497 optimize for fast installation [default=yes]
1498 --disable-libtool-lock avoid locking (might break parallel builds)
1499 --disable-ipv4 Do not build iptables
1500 --disable-ipv6 Do not build ip6tables
1501 --enable-devel Install Xtables development headers
1502 --enable-libipq Build and install libipq
1505 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1506 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1507 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1508 --with-pic try to use only PIC/non-PIC objects [default=use
1510 --with-tags[=TAGS] include additional configurations [automatic]
1511 --with-kernel=PATH Path to kernel source/build directory
1512 --with-kbuild=PATH Path to kernel build directory
1513 [/lib/modules/CURRENT/build]
1514 --with-ksource=PATH Path to kernel source directory
1515 [/lib/modules/CURRENT/source]
1516 --with-xtlibdir=PATH Path where to install Xtables extensions
1517 [LIBEXECDIR/xtables]
1518 --with-pkgconfigdir=PATH
1519 Path to the pkgconfig directory [LIBDIR/pkgconfig]
1521 Some influential environment variables:
1522 CC C compiler command
1523 CFLAGS C compiler flags
1524 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1525 nonstandard directory <lib dir>
1526 LIBS libraries to pass to the linker, e.g. -l<library>
1527 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1528 you have headers in a nonstandard directory <include dir>
1530 CXX C++ compiler command
1531 CXXFLAGS C++ compiler flags
1532 CXXCPP C++ preprocessor
1533 F77 Fortran 77 compiler command
1534 FFLAGS Fortran 77 compiler flags
1536 Use these variables to override the choices made by `configure' or to help
1537 it to find libraries and programs with nonstandard names/locations.
1543 if test "$ac_init_help" = "recursive"; then
1544 # If there are subdirs, report their specific --help.
1545 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1546 test -d "$ac_dir" || continue
1550 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1552 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1553 # A ".." for each directory in $ac_dir_suffix.
1554 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1555 case $ac_top_builddir_sub in
1556 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1557 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1560 ac_abs_top_builddir=$ac_pwd
1561 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1562 # for backward compatibility:
1563 ac_top_builddir=$ac_top_build_prefix
1566 .) # We are building in place.
1568 ac_top_srcdir=$ac_top_builddir_sub
1569 ac_abs_top_srcdir=$ac_pwd ;;
1570 [\\/]* | ?:[\\/]* ) # Absolute name.
1571 ac_srcdir=$srcdir$ac_dir_suffix;
1572 ac_top_srcdir=$srcdir
1573 ac_abs_top_srcdir=$srcdir ;;
1575 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1576 ac_top_srcdir=$ac_top_build_prefix$srcdir
1577 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1579 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1581 cd "$ac_dir" || { ac_status=$?; continue; }
1582 # Check for guested configure.
1583 if test -f "$ac_srcdir/configure.gnu"; then
1585 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1586 elif test -f "$ac_srcdir/configure"; then
1588 $SHELL "$ac_srcdir/configure" --help=recursive
1590 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1592 cd "$ac_pwd" || { ac_status=$?; break; }
1596 test -n "$ac_init_help" && exit $ac_status
1597 if $ac_init_version; then
1599 iptables configure 1.4.3.2
1600 generated by GNU Autoconf 2.61
1602 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1603 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1604 This configure script is free software; the Free Software Foundation
1605 gives unlimited permission to copy, distribute and modify it.
1609 cat >config.log <<_ACEOF
1610 This file contains any messages produced by compilers while
1611 running configure, to aid debugging if configure makes a mistake.
1613 It was created by iptables $as_me 1.4.3.2, which was
1614 generated by GNU Autoconf 2.61. Invocation command line was
1626 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1627 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1628 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1629 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1630 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1632 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1633 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1635 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1636 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1637 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1638 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1639 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1640 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1641 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1649 test -z "$as_dir" && as_dir=.
1650 echo "PATH: $as_dir"
1666 # Keep a trace of the command line.
1667 # Strip out --no-create and --no-recursion so they do not pile up.
1668 # Strip out --silent because we don't want to record it for future runs.
1669 # Also quote any args containing shell meta-characters.
1670 # Make two passes to allow for proper duplicate-argument suppression.
1674 ac_must_keep_next=false
1680 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1681 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1682 | -silent | --silent | --silen | --sile | --sil)
1685 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1688 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1690 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1691 if test $ac_must_keep_next = true; then
1692 ac_must_keep_next=false # Got value, back to normal.
1695 *=* | --config-cache | -C | -disable-* | --disable-* \
1696 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1697 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1698 | -with-* | --with-* | -without-* | --without-* | --x)
1699 case "$ac_configure_args0 " in
1700 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1703 -* ) ac_must_keep_next=true ;;
1706 ac_configure_args="$ac_configure_args '$ac_arg'"
1711 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1712 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1714 # When interrupted or exit'd, cleanup temporary files, and complete
1715 # config.log. We remove comments because anyway the quotes in there
1716 # would cause problems or look ugly.
1717 # WARNING: Use '\'' to represent an apostrophe within the trap.
1718 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1719 trap 'exit_status=$?
1720 # Save into config.log some information that might help in debugging.
1725 ## ---------------- ##
1726 ## Cache variables. ##
1727 ## ---------------- ##
1730 # The following way of writing the cache mishandles newlines in values,
1732 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1733 eval ac_val=\$$ac_var
1737 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1738 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1741 _ | IFS | as_nl) ;; #(
1742 *) $as_unset $ac_var ;;
1747 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1748 *${as_nl}ac_space=\ *)
1750 "s/'\''/'\''\\\\'\'''\''/g;
1751 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1754 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1762 ## ----------------- ##
1763 ## Output variables. ##
1764 ## ----------------- ##
1767 for ac_var in $ac_subst_vars
1769 eval ac_val=\$$ac_var
1771 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1773 echo "$ac_var='\''$ac_val'\''"
1777 if test -n "$ac_subst_files"; then
1779 ## ------------------- ##
1780 ## File substitutions. ##
1781 ## ------------------- ##
1784 for ac_var in $ac_subst_files
1786 eval ac_val=\$$ac_var
1788 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1790 echo "$ac_var='\''$ac_val'\''"
1795 if test -s confdefs.h; then
1805 test "$ac_signal" != 0 &&
1806 echo "$as_me: caught signal $ac_signal"
1807 echo "$as_me: exit $exit_status"
1809 rm -f core *.core core.conftest.* &&
1810 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1813 for ac_signal in 1 2 13 15; do
1814 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1818 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1819 rm -f -r conftest* confdefs.h
1821 # Predefined preprocessor variables.
1823 cat >>confdefs.h <<_ACEOF
1824 #define PACKAGE_NAME "$PACKAGE_NAME"
1828 cat >>confdefs.h <<_ACEOF
1829 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1833 cat >>confdefs.h <<_ACEOF
1834 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1838 cat >>confdefs.h <<_ACEOF
1839 #define PACKAGE_STRING "$PACKAGE_STRING"
1843 cat >>confdefs.h <<_ACEOF
1844 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1848 # Let the site file select an alternate cache file if it wants to.
1849 # Prefer explicitly selected file to automatically selected ones.
1850 if test -n "$CONFIG_SITE"; then
1851 set x "$CONFIG_SITE"
1852 elif test "x$prefix" != xNONE; then
1853 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1855 set x "$ac_default_prefix/share/config.site" \
1856 "$ac_default_prefix/etc/config.site"
1861 if test -r "$ac_site_file"; then
1862 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1863 echo "$as_me: loading site script $ac_site_file" >&6;}
1864 sed 's/^/| /' "$ac_site_file" >&5
1869 if test -r "$cache_file"; then
1870 # Some versions of bash will fail to source /dev/null (special
1871 # files actually), so we avoid doing that.
1872 if test -f "$cache_file"; then
1873 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1874 echo "$as_me: loading cache $cache_file" >&6;}
1876 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1877 *) . "./$cache_file";;
1881 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1882 echo "$as_me: creating cache $cache_file" >&6;}
1886 # Check that the precious variables saved in the cache have kept the same
1888 ac_cache_corrupted=false
1889 for ac_var in $ac_precious_vars; do
1890 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1891 eval ac_new_set=\$ac_env_${ac_var}_set
1892 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1893 eval ac_new_val=\$ac_env_${ac_var}_value
1894 case $ac_old_set,$ac_new_set in
1896 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1897 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1898 ac_cache_corrupted=: ;;
1900 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1901 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1902 ac_cache_corrupted=: ;;
1905 if test "x$ac_old_val" != "x$ac_new_val"; then
1906 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1907 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1908 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1909 echo "$as_me: former value: $ac_old_val" >&2;}
1910 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1911 echo "$as_me: current value: $ac_new_val" >&2;}
1912 ac_cache_corrupted=:
1915 # Pass precious variables to config.status.
1916 if test "$ac_new_set" = set; then
1918 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1919 *) ac_arg=$ac_var=$ac_new_val ;;
1921 case " $ac_configure_args " in
1922 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1923 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1927 if $ac_cache_corrupted; then
1928 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1929 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1930 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1931 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1932 { (exit 1); exit 1; }; }
1960 ac_cpp='$CPP $CPPFLAGS'
1961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1967 # See libtool.info "Libtool's versioning system"
1968 libxtables_vcurrent=2
1971 ac_config_headers="$ac_config_headers config.h"
1975 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1976 if test -f "$ac_dir/install-sh"; then
1978 ac_install_sh="$ac_aux_dir/install-sh -c"
1980 elif test -f "$ac_dir/install.sh"; then
1982 ac_install_sh="$ac_aux_dir/install.sh -c"
1984 elif test -f "$ac_dir/shtool"; then
1986 ac_install_sh="$ac_aux_dir/shtool install -c"
1990 if test -z "$ac_aux_dir"; then
1991 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1992 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1993 { (exit 1); exit 1; }; }
1996 # These three variables are undocumented and unsupported,
1997 # and are intended to be withdrawn in a future Autoconf release.
1998 # They can cause serious problems if a builder's source tree is in a directory
1999 # whose full name contains unusual characters.
2000 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2001 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2002 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2005 # Find a good install program. We prefer a C program (faster),
2006 # so one script is as good as another. But avoid the broken or
2007 # incompatible versions:
2008 # SysV /etc/install, /usr/sbin/install
2009 # SunOS /usr/etc/install
2010 # IRIX /sbin/install
2012 # AmigaOS /C/install, which installs bootblocks on floppy discs
2013 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2014 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2015 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2016 # OS/2's system install, which has a completely different semantic
2017 # ./install, which can be erroneously created by make from ./install.sh.
2018 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2019 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2020 if test -z "$INSTALL"; then
2021 if test "${ac_cv_path_install+set}" = set; then
2022 echo $ECHO_N "(cached) $ECHO_C" >&6
2024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2028 test -z "$as_dir" && as_dir=.
2029 # Account for people who put trailing slashes in PATH elements.
2031 ./ | .// | /cC/* | \
2032 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2033 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2036 # OSF1 and SCO ODT 3.0 have their own names for install.
2037 # Don't use installbsd from OSF since it installs stuff as root
2039 for ac_prog in ginstall scoinst install; do
2040 for ac_exec_ext in '' $ac_executable_extensions; do
2041 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2042 if test $ac_prog = install &&
2043 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2044 # AIX install. It has an incompatible calling convention.
2046 elif test $ac_prog = install &&
2047 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2048 # program-specific install script used by HP pwplus--don't use.
2051 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2064 if test "${ac_cv_path_install+set}" = set; then
2065 INSTALL=$ac_cv_path_install
2067 # As a last resort, use the slow shell script. Don't cache a
2068 # value for INSTALL within a source directory, because that will
2069 # break other packages using the cache if that directory is
2070 # removed, or if the value is a relative name.
2071 INSTALL=$ac_install_sh
2074 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2075 echo "${ECHO_T}$INSTALL" >&6; }
2077 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2078 # It thinks the first close brace ends the variable substitution.
2079 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2081 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2083 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2085 am__api_version='1.10'
2087 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2088 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2091 echo timestamp > conftest.file
2092 # Do `set' in a subshell so we don't clobber the current shell's
2093 # arguments. Must try -L first in case configure is actually a
2094 # symlink; some systems play weird games with the mod time of symlinks
2095 # (eg FreeBSD returns the mod time of the symlink's containing
2098 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2099 if test "$*" = "X"; then
2101 set X `ls -t $srcdir/configure conftest.file`
2104 if test "$*" != "X $srcdir/configure conftest.file" \
2105 && test "$*" != "X conftest.file $srcdir/configure"; then
2107 # If neither matched, then we have a broken ls. This can happen
2108 # if, for instance, CONFIG_SHELL is bash and it inherits a
2109 # broken ls alias from the environment. This has actually
2110 # happened. Such a system could not be considered "sane".
2111 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2112 alias in your environment" >&5
2113 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2114 alias in your environment" >&2;}
2115 { (exit 1); exit 1; }; }
2118 test "$2" = conftest.file
2124 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2125 Check your system clock" >&5
2126 echo "$as_me: error: newly created file is older than distributed files!
2127 Check your system clock" >&2;}
2128 { (exit 1); exit 1; }; }
2130 { echo "$as_me:$LINENO: result: yes" >&5
2131 echo "${ECHO_T}yes" >&6; }
2132 test "$program_prefix" != NONE &&
2133 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2134 # Use a double $ so make ignores it.
2135 test "$program_suffix" != NONE &&
2136 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2137 # Double any \ or $. echo might interpret backslashes.
2138 # By default was `s,x,x', remove it if useless.
2139 cat <<\_ACEOF >conftest.sed
2140 s/[\\$]/&&/g;s/;s,x,x,$//
2142 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2145 # expand $ac_aux_dir to an absolute path
2146 am_aux_dir=`cd $ac_aux_dir && pwd`
2148 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2149 # Use eval to expand $SHELL
2150 if eval "$MISSING --run true"; then
2151 am_missing_run="$MISSING --run "
2154 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2155 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2158 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2159 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2160 if test -z "$MKDIR_P"; then
2161 if test "${ac_cv_path_mkdir+set}" = set; then
2162 echo $ECHO_N "(cached) $ECHO_C" >&6
2164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2165 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2168 test -z "$as_dir" && as_dir=.
2169 for ac_prog in mkdir gmkdir; do
2170 for ac_exec_ext in '' $ac_executable_extensions; do
2171 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2172 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2173 'mkdir (GNU coreutils) '* | \
2174 'mkdir (coreutils) '* | \
2175 'mkdir (fileutils) '4.1*)
2176 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2186 if test "${ac_cv_path_mkdir+set}" = set; then
2187 MKDIR_P="$ac_cv_path_mkdir -p"
2189 # As a last resort, use the slow shell script. Don't cache a
2190 # value for MKDIR_P within a source directory, because that will
2191 # break other packages using the cache if that directory is
2192 # removed, or if the value is a relative name.
2193 test -d ./--version && rmdir ./--version
2194 MKDIR_P="$ac_install_sh -d"
2197 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2198 echo "${ECHO_T}$MKDIR_P" >&6; }
2202 [\\/$]* | ?:[\\/]*) ;;
2203 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2206 for ac_prog in gawk mawk nawk awk
2208 # Extract the first word of "$ac_prog", so it can be a program name with args.
2209 set dummy $ac_prog; ac_word=$2
2210 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2212 if test "${ac_cv_prog_AWK+set}" = set; then
2213 echo $ECHO_N "(cached) $ECHO_C" >&6
2215 if test -n "$AWK"; then
2216 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2222 test -z "$as_dir" && as_dir=.
2223 for ac_exec_ext in '' $ac_executable_extensions; do
2224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2225 ac_cv_prog_AWK="$ac_prog"
2226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2236 if test -n "$AWK"; then
2237 { echo "$as_me:$LINENO: result: $AWK" >&5
2238 echo "${ECHO_T}$AWK" >&6; }
2240 { echo "$as_me:$LINENO: result: no" >&5
2241 echo "${ECHO_T}no" >&6; }
2245 test -n "$AWK" && break
2248 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2249 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2250 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2251 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2252 echo $ECHO_N "(cached) $ECHO_C" >&6
2254 cat >conftest.make <<\_ACEOF
2257 @echo '@@@%%%=$(MAKE)=@@@%%%'
2259 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2260 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2262 eval ac_cv_prog_make_${ac_make}_set=yes;;
2264 eval ac_cv_prog_make_${ac_make}_set=no;;
2268 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2269 { echo "$as_me:$LINENO: result: yes" >&5
2270 echo "${ECHO_T}yes" >&6; }
2273 { echo "$as_me:$LINENO: result: no" >&5
2274 echo "${ECHO_T}no" >&6; }
2275 SET_MAKE="MAKE=${MAKE-make}"
2278 rm -rf .tst 2>/dev/null
2279 mkdir .tst 2>/dev/null
2280 if test -d .tst; then
2285 rmdir .tst 2>/dev/null
2287 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2288 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2289 # is not polluted with repeated "-I."
2290 am__isrc=' -I$(srcdir)'
2291 # test to see if srcdir already configured
2292 if test -f $srcdir/config.status; then
2293 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2294 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2295 { (exit 1); exit 1; }; }
2299 # test whether we have cygpath
2300 if test -z "$CYGPATH_W"; then
2301 if (cygpath --version) >/dev/null 2>/dev/null; then
2302 CYGPATH_W='cygpath -w'
2309 # Define the identity of the package.
2314 cat >>confdefs.h <<_ACEOF
2315 #define PACKAGE "$PACKAGE"
2319 cat >>confdefs.h <<_ACEOF
2320 #define VERSION "$VERSION"
2323 # Some tools Automake needs.
2325 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2328 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2331 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2334 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2337 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2339 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2341 # Installed binaries are usually stripped using `strip' when the user
2342 # run `make install-strip'. However `strip' might not be the right
2343 # tool to use in cross-compilation environments, therefore Automake
2344 # will honor the `STRIP' environment variable to overrule this program.
2345 if test "$cross_compiling" != no; then
2346 if test -n "$ac_tool_prefix"; then
2347 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2348 set dummy ${ac_tool_prefix}strip; ac_word=$2
2349 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2351 if test "${ac_cv_prog_STRIP+set}" = set; then
2352 echo $ECHO_N "(cached) $ECHO_C" >&6
2354 if test -n "$STRIP"; then
2355 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2361 test -z "$as_dir" && as_dir=.
2362 for ac_exec_ext in '' $ac_executable_extensions; do
2363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2364 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2374 STRIP=$ac_cv_prog_STRIP
2375 if test -n "$STRIP"; then
2376 { echo "$as_me:$LINENO: result: $STRIP" >&5
2377 echo "${ECHO_T}$STRIP" >&6; }
2379 { echo "$as_me:$LINENO: result: no" >&5
2380 echo "${ECHO_T}no" >&6; }
2385 if test -z "$ac_cv_prog_STRIP"; then
2387 # Extract the first word of "strip", so it can be a program name with args.
2388 set dummy strip; ac_word=$2
2389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2391 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2392 echo $ECHO_N "(cached) $ECHO_C" >&6
2394 if test -n "$ac_ct_STRIP"; then
2395 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2401 test -z "$as_dir" && as_dir=.
2402 for ac_exec_ext in '' $ac_executable_extensions; do
2403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2404 ac_cv_prog_ac_ct_STRIP="strip"
2405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2414 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2415 if test -n "$ac_ct_STRIP"; then
2416 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2417 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2419 { echo "$as_me:$LINENO: result: no" >&5
2420 echo "${ECHO_T}no" >&6; }
2423 if test "x$ac_ct_STRIP" = x; then
2426 case $cross_compiling:$ac_tool_warned in
2428 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2429 whose name does not start with the host triplet. If you think this
2430 configuration is useful to you, please write to autoconf@gnu.org." >&5
2431 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2432 whose name does not start with the host triplet. If you think this
2433 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2434 ac_tool_warned=yes ;;
2439 STRIP="$ac_cv_prog_STRIP"
2443 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2445 # We need awk for the "check" target. The system "awk" is bad on
2447 # Always define AMTAR for backward compatibility.
2449 AMTAR=${AMTAR-"${am_missing_run}tar"}
2451 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2458 ac_cpp='$CPP $CPPFLAGS'
2459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2462 if test -n "$ac_tool_prefix"; then
2463 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2464 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2467 if test "${ac_cv_prog_CC+set}" = set; then
2468 echo $ECHO_N "(cached) $ECHO_C" >&6
2470 if test -n "$CC"; then
2471 ac_cv_prog_CC="$CC" # Let the user override the test.
2473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477 test -z "$as_dir" && as_dir=.
2478 for ac_exec_ext in '' $ac_executable_extensions; do
2479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2480 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2491 if test -n "$CC"; then
2492 { echo "$as_me:$LINENO: result: $CC" >&5
2493 echo "${ECHO_T}$CC" >&6; }
2495 { echo "$as_me:$LINENO: result: no" >&5
2496 echo "${ECHO_T}no" >&6; }
2501 if test -z "$ac_cv_prog_CC"; then
2503 # Extract the first word of "gcc", so it can be a program name with args.
2504 set dummy gcc; ac_word=$2
2505 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2507 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2508 echo $ECHO_N "(cached) $ECHO_C" >&6
2510 if test -n "$ac_ct_CC"; then
2511 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517 test -z "$as_dir" && as_dir=.
2518 for ac_exec_ext in '' $ac_executable_extensions; do
2519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2520 ac_cv_prog_ac_ct_CC="gcc"
2521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2530 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2531 if test -n "$ac_ct_CC"; then
2532 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2533 echo "${ECHO_T}$ac_ct_CC" >&6; }
2535 { echo "$as_me:$LINENO: result: no" >&5
2536 echo "${ECHO_T}no" >&6; }
2539 if test "x$ac_ct_CC" = x; then
2542 case $cross_compiling:$ac_tool_warned in
2544 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2545 whose name does not start with the host triplet. If you think this
2546 configuration is useful to you, please write to autoconf@gnu.org." >&5
2547 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2548 whose name does not start with the host triplet. If you think this
2549 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2550 ac_tool_warned=yes ;;
2558 if test -z "$CC"; then
2559 if test -n "$ac_tool_prefix"; then
2560 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2561 set dummy ${ac_tool_prefix}cc; ac_word=$2
2562 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2564 if test "${ac_cv_prog_CC+set}" = set; then
2565 echo $ECHO_N "(cached) $ECHO_C" >&6
2567 if test -n "$CC"; then
2568 ac_cv_prog_CC="$CC" # Let the user override the test.
2570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2574 test -z "$as_dir" && as_dir=.
2575 for ac_exec_ext in '' $ac_executable_extensions; do
2576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2577 ac_cv_prog_CC="${ac_tool_prefix}cc"
2578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2588 if test -n "$CC"; then
2589 { echo "$as_me:$LINENO: result: $CC" >&5
2590 echo "${ECHO_T}$CC" >&6; }
2592 { echo "$as_me:$LINENO: result: no" >&5
2593 echo "${ECHO_T}no" >&6; }
2599 if test -z "$CC"; then
2600 # Extract the first word of "cc", so it can be a program name with args.
2601 set dummy cc; ac_word=$2
2602 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2604 if test "${ac_cv_prog_CC+set}" = set; then
2605 echo $ECHO_N "(cached) $ECHO_C" >&6
2607 if test -n "$CC"; then
2608 ac_cv_prog_CC="$CC" # Let the user override the test.
2611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2615 test -z "$as_dir" && as_dir=.
2616 for ac_exec_ext in '' $ac_executable_extensions; do
2617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2618 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2619 ac_prog_rejected=yes
2623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2630 if test $ac_prog_rejected = yes; then
2631 # We found a bogon in the path, so make sure we never use it.
2632 set dummy $ac_cv_prog_CC
2634 if test $# != 0; then
2635 # We chose a different compiler from the bogus one.
2636 # However, it has the same basename, so the bogon will be chosen
2637 # first if we set CC to just the basename; use the full file name.
2639 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2645 if test -n "$CC"; then
2646 { echo "$as_me:$LINENO: result: $CC" >&5
2647 echo "${ECHO_T}$CC" >&6; }
2649 { echo "$as_me:$LINENO: result: no" >&5
2650 echo "${ECHO_T}no" >&6; }
2655 if test -z "$CC"; then
2656 if test -n "$ac_tool_prefix"; then
2657 for ac_prog in cl.exe
2659 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2660 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2661 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2663 if test "${ac_cv_prog_CC+set}" = set; then
2664 echo $ECHO_N "(cached) $ECHO_C" >&6
2666 if test -n "$CC"; then
2667 ac_cv_prog_CC="$CC" # Let the user override the test.
2669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673 test -z "$as_dir" && as_dir=.
2674 for ac_exec_ext in '' $ac_executable_extensions; do
2675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2676 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2687 if test -n "$CC"; then
2688 { echo "$as_me:$LINENO: result: $CC" >&5
2689 echo "${ECHO_T}$CC" >&6; }
2691 { echo "$as_me:$LINENO: result: no" >&5
2692 echo "${ECHO_T}no" >&6; }
2696 test -n "$CC" && break
2699 if test -z "$CC"; then
2701 for ac_prog in cl.exe
2703 # Extract the first word of "$ac_prog", so it can be a program name with args.
2704 set dummy $ac_prog; ac_word=$2
2705 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2707 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2708 echo $ECHO_N "(cached) $ECHO_C" >&6
2710 if test -n "$ac_ct_CC"; then
2711 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2717 test -z "$as_dir" && as_dir=.
2718 for ac_exec_ext in '' $ac_executable_extensions; do
2719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2720 ac_cv_prog_ac_ct_CC="$ac_prog"
2721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2730 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2731 if test -n "$ac_ct_CC"; then
2732 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2733 echo "${ECHO_T}$ac_ct_CC" >&6; }
2735 { echo "$as_me:$LINENO: result: no" >&5
2736 echo "${ECHO_T}no" >&6; }
2740 test -n "$ac_ct_CC" && break
2743 if test "x$ac_ct_CC" = x; then
2746 case $cross_compiling:$ac_tool_warned in
2748 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2749 whose name does not start with the host triplet. If you think this
2750 configuration is useful to you, please write to autoconf@gnu.org." >&5
2751 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2752 whose name does not start with the host triplet. If you think this
2753 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2754 ac_tool_warned=yes ;;
2763 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2764 See \`config.log' for more details." >&5
2765 echo "$as_me: error: no acceptable C compiler found in \$PATH
2766 See \`config.log' for more details." >&2;}
2767 { (exit 1); exit 1; }; }
2769 # Provide some information about the compiler.
2770 echo "$as_me:$LINENO: checking for C compiler version" >&5
2771 ac_compiler=`set X $ac_compile; echo $2`
2772 { (ac_try="$ac_compiler --version >&5"
2774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2775 *) ac_try_echo=$ac_try;;
2777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2778 (eval "$ac_compiler --version >&5") 2>&5
2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); }
2782 { (ac_try="$ac_compiler -v >&5"
2784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2785 *) ac_try_echo=$ac_try;;
2787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2788 (eval "$ac_compiler -v >&5") 2>&5
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); }
2792 { (ac_try="$ac_compiler -V >&5"
2794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2795 *) ac_try_echo=$ac_try;;
2797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2798 (eval "$ac_compiler -V >&5") 2>&5
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); }
2803 cat >conftest.$ac_ext <<_ACEOF
2806 cat confdefs.h >>conftest.$ac_ext
2807 cat >>conftest.$ac_ext <<_ACEOF
2808 /* end confdefs.h. */
2818 ac_clean_files_save=$ac_clean_files
2819 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2820 # Try to create an executable without -o first, disregard a.out.
2821 # It will help us diagnose broken compilers, and finding out an intuition
2823 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2824 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2825 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2827 # List of possible output files, starting from the most likely.
2828 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2829 # only as a last resort. b.out is created by i960 compilers.
2830 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2832 # The IRIX 6 linker writes into existing files which may not be
2833 # executable, retaining their permissions. Remove them first so a
2834 # subsequent execution test works.
2836 for ac_file in $ac_files
2839 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2840 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2845 if { (ac_try="$ac_link_default"
2847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2848 *) ac_try_echo=$ac_try;;
2850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2851 (eval "$ac_link_default") 2>&5
2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 (exit $ac_status); }; then
2855 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2856 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2857 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2858 # so that the user can short-circuit this test for compilers unknown to
2860 for ac_file in $ac_files ''
2862 test -f "$ac_file" || continue
2864 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2867 # We found the default executable, but exeext='' is most
2871 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2873 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2875 # We set ac_cv_exeext here because the later test for it is not
2876 # safe: cross compilers may not add the suffix if given an `-o'
2877 # argument, so we may need to know it at that point already.
2878 # Even if this section looks crufty: it has the advantage of
2885 test "$ac_cv_exeext" = no && ac_cv_exeext=
2891 { echo "$as_me:$LINENO: result: $ac_file" >&5
2892 echo "${ECHO_T}$ac_file" >&6; }
2893 if test -z "$ac_file"; then
2894 echo "$as_me: failed program was:" >&5
2895 sed 's/^/| /' conftest.$ac_ext >&5
2897 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2898 See \`config.log' for more details." >&5
2899 echo "$as_me: error: C compiler cannot create executables
2900 See \`config.log' for more details." >&2;}
2901 { (exit 77); exit 77; }; }
2904 ac_exeext=$ac_cv_exeext
2906 # Check that the compiler produces executables we can run. If not, either
2907 # the compiler is broken, or we cross compile.
2908 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2909 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2910 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2911 # If not cross compiling, check that we can run a simple program.
2912 if test "$cross_compiling" != yes; then
2913 if { ac_try='./$ac_file'
2914 { (case "(($ac_try" in
2915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2916 *) ac_try_echo=$ac_try;;
2918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2919 (eval "$ac_try") 2>&5
2921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922 (exit $ac_status); }; }; then
2925 if test "$cross_compiling" = maybe; then
2928 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2929 If you meant to cross compile, use \`--host'.
2930 See \`config.log' for more details." >&5
2931 echo "$as_me: error: cannot run C compiled programs.
2932 If you meant to cross compile, use \`--host'.
2933 See \`config.log' for more details." >&2;}
2934 { (exit 1); exit 1; }; }
2938 { echo "$as_me:$LINENO: result: yes" >&5
2939 echo "${ECHO_T}yes" >&6; }
2941 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2942 ac_clean_files=$ac_clean_files_save
2943 # Check that the compiler produces executables we can run. If not, either
2944 # the compiler is broken, or we cross compile.
2945 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2946 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2947 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2948 echo "${ECHO_T}$cross_compiling" >&6; }
2950 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2951 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2952 if { (ac_try="$ac_link"
2954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2955 *) ac_try_echo=$ac_try;;
2957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2958 (eval "$ac_link") 2>&5
2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 (exit $ac_status); }; then
2962 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2963 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2964 # work properly (i.e., refer to `conftest.exe'), while it won't with
2966 for ac_file in conftest.exe conftest conftest.*; do
2967 test -f "$ac_file" || continue
2969 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2970 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2976 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2977 See \`config.log' for more details." >&5
2978 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2979 See \`config.log' for more details." >&2;}
2980 { (exit 1); exit 1; }; }
2983 rm -f conftest$ac_cv_exeext
2984 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2985 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2987 rm -f conftest.$ac_ext
2988 EXEEXT=$ac_cv_exeext
2990 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2991 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2992 if test "${ac_cv_objext+set}" = set; then
2993 echo $ECHO_N "(cached) $ECHO_C" >&6
2995 cat >conftest.$ac_ext <<_ACEOF
2998 cat confdefs.h >>conftest.$ac_ext
2999 cat >>conftest.$ac_ext <<_ACEOF
3000 /* end confdefs.h. */
3010 rm -f conftest.o conftest.obj
3011 if { (ac_try="$ac_compile"
3013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3014 *) ac_try_echo=$ac_try;;
3016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3017 (eval "$ac_compile") 2>&5
3019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020 (exit $ac_status); }; then
3021 for ac_file in conftest.o conftest.obj conftest.*; do
3022 test -f "$ac_file" || continue;
3024 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3025 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3030 echo "$as_me: failed program was:" >&5
3031 sed 's/^/| /' conftest.$ac_ext >&5
3033 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3034 See \`config.log' for more details." >&5
3035 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3036 See \`config.log' for more details." >&2;}
3037 { (exit 1); exit 1; }; }
3040 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3042 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3043 echo "${ECHO_T}$ac_cv_objext" >&6; }
3044 OBJEXT=$ac_cv_objext
3046 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3047 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3048 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3049 echo $ECHO_N "(cached) $ECHO_C" >&6
3051 cat >conftest.$ac_ext <<_ACEOF
3054 cat confdefs.h >>conftest.$ac_ext
3055 cat >>conftest.$ac_ext <<_ACEOF
3056 /* end confdefs.h. */
3069 rm -f conftest.$ac_objext
3070 if { (ac_try="$ac_compile"
3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073 *) ac_try_echo=$ac_try;;
3075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3076 (eval "$ac_compile") 2>conftest.er1
3078 grep -v '^ *+' conftest.er1 >conftest.err
3080 cat conftest.err >&5
3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082 (exit $ac_status); } && {
3083 test -z "$ac_c_werror_flag" ||
3084 test ! -s conftest.err
3085 } && test -s conftest.$ac_objext; then
3088 echo "$as_me: failed program was:" >&5
3089 sed 's/^/| /' conftest.$ac_ext >&5
3094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3095 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3098 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3099 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3100 GCC=`test $ac_compiler_gnu = yes && echo yes`
3101 ac_test_CFLAGS=${CFLAGS+set}
3102 ac_save_CFLAGS=$CFLAGS
3103 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3104 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3105 if test "${ac_cv_prog_cc_g+set}" = set; then
3106 echo $ECHO_N "(cached) $ECHO_C" >&6
3108 ac_save_c_werror_flag=$ac_c_werror_flag
3109 ac_c_werror_flag=yes
3112 cat >conftest.$ac_ext <<_ACEOF
3115 cat confdefs.h >>conftest.$ac_ext
3116 cat >>conftest.$ac_ext <<_ACEOF
3117 /* end confdefs.h. */
3127 rm -f conftest.$ac_objext
3128 if { (ac_try="$ac_compile"
3130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131 *) ac_try_echo=$ac_try;;
3133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3134 (eval "$ac_compile") 2>conftest.er1
3136 grep -v '^ *+' conftest.er1 >conftest.err
3138 cat conftest.err >&5
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); } && {
3141 test -z "$ac_c_werror_flag" ||
3142 test ! -s conftest.err
3143 } && test -s conftest.$ac_objext; then
3146 echo "$as_me: failed program was:" >&5
3147 sed 's/^/| /' conftest.$ac_ext >&5
3150 cat >conftest.$ac_ext <<_ACEOF
3153 cat confdefs.h >>conftest.$ac_ext
3154 cat >>conftest.$ac_ext <<_ACEOF
3155 /* end confdefs.h. */
3165 rm -f conftest.$ac_objext
3166 if { (ac_try="$ac_compile"
3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169 *) ac_try_echo=$ac_try;;
3171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3172 (eval "$ac_compile") 2>conftest.er1
3174 grep -v '^ *+' conftest.er1 >conftest.err
3176 cat conftest.err >&5
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); } && {
3179 test -z "$ac_c_werror_flag" ||
3180 test ! -s conftest.err
3181 } && test -s conftest.$ac_objext; then
3184 echo "$as_me: failed program was:" >&5
3185 sed 's/^/| /' conftest.$ac_ext >&5
3187 ac_c_werror_flag=$ac_save_c_werror_flag
3189 cat >conftest.$ac_ext <<_ACEOF
3192 cat confdefs.h >>conftest.$ac_ext
3193 cat >>conftest.$ac_ext <<_ACEOF
3194 /* end confdefs.h. */
3204 rm -f conftest.$ac_objext
3205 if { (ac_try="$ac_compile"
3207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208 *) ac_try_echo=$ac_try;;
3210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3211 (eval "$ac_compile") 2>conftest.er1
3213 grep -v '^ *+' conftest.er1 >conftest.err
3215 cat conftest.err >&5
3216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217 (exit $ac_status); } && {
3218 test -z "$ac_c_werror_flag" ||
3219 test ! -s conftest.err
3220 } && test -s conftest.$ac_objext; then
3223 echo "$as_me: failed program was:" >&5
3224 sed 's/^/| /' conftest.$ac_ext >&5
3229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3236 ac_c_werror_flag=$ac_save_c_werror_flag
3238 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3239 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3240 if test "$ac_test_CFLAGS" = set; then
3241 CFLAGS=$ac_save_CFLAGS
3242 elif test $ac_cv_prog_cc_g = yes; then
3243 if test "$GCC" = yes; then
3249 if test "$GCC" = yes; then
3255 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3256 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3257 if test "${ac_cv_prog_cc_c89+set}" = set; then
3258 echo $ECHO_N "(cached) $ECHO_C" >&6
3260 ac_cv_prog_cc_c89=no
3262 cat >conftest.$ac_ext <<_ACEOF
3265 cat confdefs.h >>conftest.$ac_ext
3266 cat >>conftest.$ac_ext <<_ACEOF
3267 /* end confdefs.h. */
3270 #include <sys/types.h>
3271 #include <sys/stat.h>
3272 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3273 struct buf { int x; };
3274 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3275 static char *e (p, i)
3281 static char *f (char * (*g) (char **, int), char **p, ...)
3286 s = g (p, va_arg (v,int));
3291 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3292 function prototypes and stuff, but not '\xHH' hex character constants.
3293 These don't provoke an error unfortunately, instead are silently treated
3294 as 'x'. The following induces an error, until -std is added to get
3295 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3296 array size at least. It's necessary to write '\x00'==0 to get something
3297 that's true only with -std. */
3298 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3300 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3301 inside strings and character constants. */
3303 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3305 int test (int i, double x);
3306 struct s1 {int (*f) (int a);};
3307 struct s2 {int (*f) (double a);};
3308 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3314 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3319 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3320 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3322 CC="$ac_save_CC $ac_arg"
3323 rm -f conftest.$ac_objext
3324 if { (ac_try="$ac_compile"
3326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3327 *) ac_try_echo=$ac_try;;
3329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3330 (eval "$ac_compile") 2>conftest.er1
3332 grep -v '^ *+' conftest.er1 >conftest.err
3334 cat conftest.err >&5
3335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336 (exit $ac_status); } && {
3337 test -z "$ac_c_werror_flag" ||
3338 test ! -s conftest.err
3339 } && test -s conftest.$ac_objext; then
3340 ac_cv_prog_cc_c89=$ac_arg
3342 echo "$as_me: failed program was:" >&5
3343 sed 's/^/| /' conftest.$ac_ext >&5
3348 rm -f core conftest.err conftest.$ac_objext
3349 test "x$ac_cv_prog_cc_c89" != "xno" && break
3351 rm -f conftest.$ac_ext
3356 case "x$ac_cv_prog_cc_c89" in
3358 { echo "$as_me:$LINENO: result: none needed" >&5
3359 echo "${ECHO_T}none needed" >&6; } ;;
3361 { echo "$as_me:$LINENO: result: unsupported" >&5
3362 echo "${ECHO_T}unsupported" >&6; } ;;
3364 CC="$CC $ac_cv_prog_cc_c89"
3365 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3366 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3371 ac_cpp='$CPP $CPPFLAGS'
3372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3375 DEPDIR="${am__leading_dot}deps"
3377 ac_config_commands="$ac_config_commands depfiles"
3380 am_make=${MAKE-make}
3381 cat > confinc << 'END'
3386 # If we don't find an include directive, just comment out the code.
3387 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3388 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3392 # First try GNU make style include.
3393 echo "include confinc" > confmf
3394 # We grep out `Entering directory' and `Leaving directory'
3395 # messages which can occur if `w' ends up in MAKEFLAGS.
3396 # In particular we don't look at `^make:' because GNU make might
3397 # be invoked under some other name (usually "gmake"), in which
3398 # case it prints its new name instead of `make'.
3399 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3404 # Now try BSD make style include.
3405 if test "$am__include" = "#"; then
3406 echo '.include "confinc"' > confmf
3407 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3408 am__include=.include
3415 { echo "$as_me:$LINENO: result: $_am_result" >&5
3416 echo "${ECHO_T}$_am_result" >&6; }
3417 rm -f confinc confmf
3419 # Check whether --enable-dependency-tracking was given.
3420 if test "${enable_dependency_tracking+set}" = set; then
3421 enableval=$enable_dependency_tracking;
3424 if test "x$enable_dependency_tracking" != xno; then
3425 am_depcomp="$ac_aux_dir/depcomp"
3428 if test "x$enable_dependency_tracking" != xno; then
3438 depcc="$CC" am_compiler_list=
3440 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3441 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3442 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3443 echo $ECHO_N "(cached) $ECHO_C" >&6
3445 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3446 # We make a subdir and do the tests there. Otherwise we can end up
3447 # making bogus files that we don't know about and never remove. For
3448 # instance it was reported that on HP-UX the gcc test will end up
3449 # making a dummy file named `D' -- because `-MD' means `put the output
3452 # Copy depcomp to subdir because otherwise we won't find it if we're
3453 # using a relative directory.
3454 cp "$am_depcomp" conftest.dir
3456 # We will build objects and dependencies in a subdirectory because
3457 # it helps to detect inapplicable dependency modes. For instance
3458 # both Tru64's cc and ICC support -MD to output dependencies as a
3459 # side effect of compilation, but ICC will put the dependencies in
3460 # the current directory while Tru64 will put them in the object
3464 am_cv_CC_dependencies_compiler_type=none
3465 if test "$am_compiler_list" = ""; then
3466 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3468 for depmode in $am_compiler_list; do
3469 # Setup a source with many dependencies, because some compilers
3470 # like to wrap large dependency lists on column 80 (with \), and
3471 # we should not choose a depcomp mode which is confused by this.
3473 # We need to recreate these files for each test, as the compiler may
3474 # overwrite some of them when testing with obscure command lines.
3475 # This happens at least with the AIX C compiler.
3477 for i in 1 2 3 4 5 6; do
3478 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3479 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3480 # Solaris 8's {/usr,}/bin/sh.
3481 touch sub/conftst$i.h
3483 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3487 # after this tag, mechanisms are not by side-effect, so they'll
3488 # only be used when explicitly requested
3489 if test "x$enable_dependency_tracking" = xyes; then
3497 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3498 # mode. It turns out that the SunPro C++ compiler does not properly
3499 # handle `-M -o', and we need to detect this.
3500 if depmode=$depmode \
3501 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3502 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3503 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3504 >/dev/null 2>conftest.err &&
3505 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3506 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3507 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3508 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3509 # icc doesn't choke on unknown options, it will just issue warnings
3510 # or remarks (even with -Werror). So we grep stderr for any message
3511 # that says an option was ignored or not supported.
3512 # When given -MP, icc 7.0 and 7.1 complain thusly:
3513 # icc: Command line warning: ignoring option '-M'; no argument required
3514 # The diagnosis changed in icc 8.0:
3515 # icc: Command line remark: option '-MP' not supported
3516 if (grep 'ignoring option' conftest.err ||
3517 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3518 am_cv_CC_dependencies_compiler_type=$depmode
3527 am_cv_CC_dependencies_compiler_type=none
3531 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3532 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3533 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3536 test "x$enable_dependency_tracking" != xno \
3537 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3539 am__fastdepCC_FALSE='#'
3541 am__fastdepCC_TRUE='#'
3542 am__fastdepCC_FALSE=
3546 if test "x$CC" != xcc; then
3547 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3548 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3550 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3551 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3553 set dummy $CC; ac_cc=`echo $2 |
3554 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3555 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3556 echo $ECHO_N "(cached) $ECHO_C" >&6
3558 cat >conftest.$ac_ext <<_ACEOF
3561 cat confdefs.h >>conftest.$ac_ext
3562 cat >>conftest.$ac_ext <<_ACEOF
3563 /* end confdefs.h. */
3573 # Make sure it works both with $CC and with simple cc.
3574 # We do the test twice because some compilers refuse to overwrite an
3575 # existing .o file with -o, though they will create one.
3576 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3578 if { (case "(($ac_try" in
3579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3580 *) ac_try_echo=$ac_try;;
3582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3583 (eval "$ac_try") 2>&5
3585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586 (exit $ac_status); } &&
3587 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3589 *) ac_try_echo=$ac_try;;
3591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3592 (eval "$ac_try") 2>&5
3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); };
3597 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3598 if test "x$CC" != xcc; then
3599 # Test first that cc exists at all.
3600 if { ac_try='cc -c conftest.$ac_ext >&5'
3601 { (case "(($ac_try" in
3602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603 *) ac_try_echo=$ac_try;;
3605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3606 (eval "$ac_try") 2>&5
3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609 (exit $ac_status); }; }; then
3610 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3612 if { (case "(($ac_try" in
3613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3614 *) ac_try_echo=$ac_try;;
3616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3617 (eval "$ac_try") 2>&5
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); } &&
3621 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3623 *) ac_try_echo=$ac_try;;
3625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3626 (eval "$ac_try") 2>&5
3628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629 (exit $ac_status); };
3634 # cc exists but doesn't like -o.
3635 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3640 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3642 rm -f core conftest*
3645 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3646 { echo "$as_me:$LINENO: result: yes" >&5
3647 echo "${ECHO_T}yes" >&6; }
3649 { echo "$as_me:$LINENO: result: no" >&5
3650 echo "${ECHO_T}no" >&6; }
3652 cat >>confdefs.h <<\_ACEOF
3653 #define NO_MINUS_C_MINUS_O 1
3658 # FIXME: we rely on the cache variable name because
3659 # there is no other way.
3661 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3662 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3663 # Losing compiler, so override with the script.
3664 # FIXME: It is wrong to rewrite CC.
3665 # But if we don't then we get into trouble of one sort or another.
3666 # A longer-term fix would be to have automake use am__CC in this case,
3667 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3668 CC="$am_aux_dir/compile $CC"
3672 # Check whether --enable-static was given.
3673 if test "${enable_static+set}" = set; then
3674 enableval=$enable_static; p=${PACKAGE-default}
3676 yes) enable_static=yes ;;
3677 no) enable_static=no ;;
3680 # Look at the argument we got. We use all the common list separators.
3681 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3682 for pkg in $enableval; do
3684 if test "X$pkg" = "X$p"; then
3697 # Check whether --enable-shared was given.
3698 if test "${enable_shared+set}" = set; then
3699 enableval=$enable_shared; p=${PACKAGE-default}
3701 yes) enable_shared=yes ;;
3702 no) enable_shared=no ;;
3705 # Look at the argument we got. We use all the common list separators.
3706 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3707 for pkg in $enableval; do
3709 if test "X$pkg" = "X$p"; then
3721 # Check whether --enable-fast-install was given.
3722 if test "${enable_fast_install+set}" = set; then
3723 enableval=$enable_fast_install; p=${PACKAGE-default}
3725 yes) enable_fast_install=yes ;;
3726 no) enable_fast_install=no ;;
3728 enable_fast_install=no
3729 # Look at the argument we got. We use all the common list separators.
3730 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3731 for pkg in $enableval; do
3733 if test "X$pkg" = "X$p"; then
3734 enable_fast_install=yes
3741 enable_fast_install=yes
3745 # Make sure we can run config.sub.
3746 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3747 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3748 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3749 { (exit 1); exit 1; }; }
3751 { echo "$as_me:$LINENO: checking build system type" >&5
3752 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3753 if test "${ac_cv_build+set}" = set; then
3754 echo $ECHO_N "(cached) $ECHO_C" >&6
3756 ac_build_alias=$build_alias
3757 test "x$ac_build_alias" = x &&
3758 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3759 test "x$ac_build_alias" = x &&
3760 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3761 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3762 { (exit 1); exit 1; }; }
3763 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3764 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3765 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3766 { (exit 1); exit 1; }; }
3769 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3770 echo "${ECHO_T}$ac_cv_build" >&6; }
3771 case $ac_cv_build in
3773 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3774 echo "$as_me: error: invalid value of canonical build" >&2;}
3775 { (exit 1); exit 1; }; };;
3778 ac_save_IFS=$IFS; IFS='-'
3784 # Remember, the first character of IFS is used to create $*,
3785 # except with old shells:
3788 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3791 { echo "$as_me:$LINENO: checking host system type" >&5
3792 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3793 if test "${ac_cv_host+set}" = set; then
3794 echo $ECHO_N "(cached) $ECHO_C" >&6
3796 if test "x$host_alias" = x; then
3797 ac_cv_host=$ac_cv_build
3799 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3800 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3801 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3802 { (exit 1); exit 1; }; }
3806 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3807 echo "${ECHO_T}$ac_cv_host" >&6; }
3810 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3811 echo "$as_me: error: invalid value of canonical host" >&2;}
3812 { (exit 1); exit 1; }; };;
3815 ac_save_IFS=$IFS; IFS='-'
3821 # Remember, the first character of IFS is used to create $*,
3822 # except with old shells:
3825 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3828 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3829 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3830 if test "${lt_cv_path_SED+set}" = set; then
3831 echo $ECHO_N "(cached) $ECHO_C" >&6
3833 # Loop through the user's path and test for sed and gsed.
3834 # Then use that list of sed's as ones to test for truncation.
3835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3839 test -z "$as_dir" && as_dir=.
3840 for lt_ac_prog in sed gsed; do
3841 for ac_exec_ext in '' $ac_executable_extensions; do
3842 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3843 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3851 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3852 # along with /bin/sed that truncates output.
3853 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3854 test ! -f $lt_ac_sed && continue
3855 cat /dev/null > conftest.in
3857 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3858 # Check for GNU sed and select it if it is found.
3859 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3860 lt_cv_path_SED=$lt_ac_sed
3864 cat conftest.in conftest.in >conftest.tmp
3865 mv conftest.tmp conftest.in
3866 cp conftest.in conftest.nl
3868 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3869 cmp -s conftest.out conftest.nl || break
3870 # 10000 chars as input seems more than enough
3871 test $lt_ac_count -gt 10 && break
3872 lt_ac_count=`expr $lt_ac_count + 1`
3873 if test $lt_ac_count -gt $lt_ac_max; then
3874 lt_ac_max=$lt_ac_count
3875 lt_cv_path_SED=$lt_ac_sed
3884 { echo "$as_me:$LINENO: result: $SED" >&5
3885 echo "${ECHO_T}$SED" >&6; }
3887 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3888 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3889 if test "${ac_cv_path_GREP+set}" = set; then
3890 echo $ECHO_N "(cached) $ECHO_C" >&6
3892 # Extract the first word of "grep ggrep" to use in msg output
3893 if test -z "$GREP"; then
3894 set dummy grep ggrep; ac_prog_name=$2
3895 if test "${ac_cv_path_GREP+set}" = set; then
3896 echo $ECHO_N "(cached) $ECHO_C" >&6
3898 ac_path_GREP_found=false
3899 # Loop through the user's path and test for each of PROGNAME-LIST
3900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3901 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3904 test -z "$as_dir" && as_dir=.
3905 for ac_prog in grep ggrep; do
3906 for ac_exec_ext in '' $ac_executable_extensions; do
3907 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3908 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3909 # Check for GNU ac_path_GREP and select it if it is found.
3910 # Check for GNU $ac_path_GREP
3911 case `"$ac_path_GREP" --version 2>&1` in
3913 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3916 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3919 cat "conftest.in" "conftest.in" >"conftest.tmp"
3920 mv "conftest.tmp" "conftest.in"
3921 cp "conftest.in" "conftest.nl"
3922 echo 'GREP' >> "conftest.nl"
3923 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3924 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3925 ac_count=`expr $ac_count + 1`
3926 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3927 # Best one so far, save it but keep looking for a better one
3928 ac_cv_path_GREP="$ac_path_GREP"
3929 ac_path_GREP_max=$ac_count
3931 # 10*(2^10) chars as input seems more than enough
3932 test $ac_count -gt 10 && break
3934 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3938 $ac_path_GREP_found && break 3
3948 GREP="$ac_cv_path_GREP"
3949 if test -z "$GREP"; then
3950 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3951 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3952 { (exit 1); exit 1; }; }
3956 ac_cv_path_GREP=$GREP
3961 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3962 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3963 GREP="$ac_cv_path_GREP"
3966 { echo "$as_me:$LINENO: checking for egrep" >&5
3967 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3968 if test "${ac_cv_path_EGREP+set}" = set; then
3969 echo $ECHO_N "(cached) $ECHO_C" >&6
3971 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3972 then ac_cv_path_EGREP="$GREP -E"
3974 # Extract the first word of "egrep" to use in msg output
3975 if test -z "$EGREP"; then
3976 set dummy egrep; ac_prog_name=$2
3977 if test "${ac_cv_path_EGREP+set}" = set; then
3978 echo $ECHO_N "(cached) $ECHO_C" >&6
3980 ac_path_EGREP_found=false
3981 # Loop through the user's path and test for each of PROGNAME-LIST
3982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3983 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3986 test -z "$as_dir" && as_dir=.
3987 for ac_prog in egrep; do
3988 for ac_exec_ext in '' $ac_executable_extensions; do
3989 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3990 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3991 # Check for GNU ac_path_EGREP and select it if it is found.
3992 # Check for GNU $ac_path_EGREP
3993 case `"$ac_path_EGREP" --version 2>&1` in
3995 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3998 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4001 cat "conftest.in" "conftest.in" >"conftest.tmp"
4002 mv "conftest.tmp" "conftest.in"
4003 cp "conftest.in" "conftest.nl"
4004 echo 'EGREP' >> "conftest.nl"
4005 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4006 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4007 ac_count=`expr $ac_count + 1`
4008 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4009 # Best one so far, save it but keep looking for a better one
4010 ac_cv_path_EGREP="$ac_path_EGREP"
4011 ac_path_EGREP_max=$ac_count
4013 # 10*(2^10) chars as input seems more than enough
4014 test $ac_count -gt 10 && break
4016 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4020 $ac_path_EGREP_found && break 3
4030 EGREP="$ac_cv_path_EGREP"
4031 if test -z "$EGREP"; then
4032 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4033 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4034 { (exit 1); exit 1; }; }
4038 ac_cv_path_EGREP=$EGREP
4044 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4045 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4046 EGREP="$ac_cv_path_EGREP"
4050 # Check whether --with-gnu-ld was given.
4051 if test "${with_gnu_ld+set}" = set; then
4052 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4058 if test "$GCC" = yes; then
4059 # Check if gcc -print-prog-name=ld gives a path.
4060 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4061 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4064 # gcc leaves a trailing carriage return which upsets mingw
4065 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4067 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4070 # Accept absolute paths.
4072 re_direlt='/[^/][^/]*/\.\./'
4073 # Canonicalize the pathname of ld
4074 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4075 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4076 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4078 test -z "$LD" && LD="$ac_prog"
4081 # If it fails, then pretend we aren't using GCC.
4085 # If it is relative, then search for the first ld in PATH.
4089 elif test "$with_gnu_ld" = yes; then
4090 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4091 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4093 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4094 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4096 if test "${lt_cv_path_LD+set}" = set; then
4097 echo $ECHO_N "(cached) $ECHO_C" >&6
4099 if test -z "$LD"; then
4100 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4101 for ac_dir in $PATH; do
4103 test -z "$ac_dir" && ac_dir=.
4104 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4105 lt_cv_path_LD="$ac_dir/$ac_prog"
4106 # Check to see if the program is GNU ld. I'd rather use --version,
4107 # but apparently some variants of GNU ld only accept -v.
4108 # Break only if it was the GNU/non-GNU ld that we prefer.
4109 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4110 *GNU* | *'with BFD'*)
4111 test "$with_gnu_ld" != no && break
4114 test "$with_gnu_ld" != yes && break
4121 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4126 if test -n "$LD"; then
4127 { echo "$as_me:$LINENO: result: $LD" >&5
4128 echo "${ECHO_T}$LD" >&6; }
4130 { echo "$as_me:$LINENO: result: no" >&5
4131 echo "${ECHO_T}no" >&6; }
4133 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4134 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4135 { (exit 1); exit 1; }; }
4136 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4137 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4138 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4139 echo $ECHO_N "(cached) $ECHO_C" >&6
4141 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4142 case `$LD -v 2>&1 </dev/null` in
4143 *GNU* | *'with BFD'*)
4144 lt_cv_prog_gnu_ld=yes
4147 lt_cv_prog_gnu_ld=no
4151 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4152 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4153 with_gnu_ld=$lt_cv_prog_gnu_ld
4156 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4157 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4158 if test "${lt_cv_ld_reload_flag+set}" = set; then
4159 echo $ECHO_N "(cached) $ECHO_C" >&6
4161 lt_cv_ld_reload_flag='-r'
4163 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4164 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4165 reload_flag=$lt_cv_ld_reload_flag
4166 case $reload_flag in
4168 *) reload_flag=" $reload_flag" ;;
4170 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4173 if test "$GCC" = yes; then
4174 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4176 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4181 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4182 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4183 if test "${lt_cv_path_NM+set}" = set; then
4184 echo $ECHO_N "(cached) $ECHO_C" >&6
4186 if test -n "$NM"; then
4187 # Let the user override the test.
4190 lt_nm_to_check="${ac_tool_prefix}nm"
4191 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4192 lt_nm_to_check="$lt_nm_to_check nm"
4194 for lt_tmp_nm in $lt_nm_to_check; do
4195 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4196 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4198 test -z "$ac_dir" && ac_dir=.
4199 tmp_nm="$ac_dir/$lt_tmp_nm"
4200 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4201 # Check to see if the nm accepts a BSD-compat flag.
4202 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4203 # nm: unknown option "B" ignored
4204 # Tru64's nm complains that /dev/null is an invalid object file
4205 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4206 */dev/null* | *'Invalid file or object type'*)
4207 lt_cv_path_NM="$tmp_nm -B"
4211 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4213 lt_cv_path_NM="$tmp_nm -p"
4217 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4218 continue # so that we can try to find one that supports BSD flags
4227 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4230 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4231 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4234 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4235 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4237 if test "$LN_S" = "ln -s"; then
4238 { echo "$as_me:$LINENO: result: yes" >&5
4239 echo "${ECHO_T}yes" >&6; }
4241 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4242 echo "${ECHO_T}no, using $LN_S" >&6; }
4245 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4246 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4247 if test "${lt_cv_deplibs_check_method+set}" = set; then
4248 echo $ECHO_N "(cached) $ECHO_C" >&6
4250 lt_cv_file_magic_cmd='$MAGIC_CMD'
4251 lt_cv_file_magic_test_file=
4252 lt_cv_deplibs_check_method='unknown'
4253 # Need to set the preceding variable on all platforms that support
4254 # interlibrary dependencies.
4255 # 'none' -- dependencies not supported.
4256 # `unknown' -- same as none, but documents that we really don't know.
4257 # 'pass_all' -- all dependencies passed with no checks.
4258 # 'test_compile' -- check by making test program.
4259 # 'file_magic [[regex]]' -- check by looking for files in library path
4260 # which responds to the $file_magic_cmd with a given extended regex.
4261 # If you have `file' or equivalent on your system and you're not sure
4262 # whether `pass_all' will *always* work, you probably want this one.
4266 lt_cv_deplibs_check_method=pass_all
4270 lt_cv_deplibs_check_method=pass_all
4274 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4275 lt_cv_file_magic_cmd='/usr/bin/file -L'
4276 lt_cv_file_magic_test_file=/shlib/libc.so
4280 # func_win32_libid is a shell function defined in ltmain.sh
4281 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4282 lt_cv_file_magic_cmd='func_win32_libid'
4286 # Base MSYS/MinGW do not provide the 'file' command needed by
4287 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4288 # unless we find 'file', for example because we are cross-compiling.
4289 if ( file / ) >/dev/null 2>&1; then
4290 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4291 lt_cv_file_magic_cmd='func_win32_libid'
4293 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4294 lt_cv_file_magic_cmd='$OBJDUMP -f'
4298 darwin* | rhapsody*)
4299 lt_cv_deplibs_check_method=pass_all
4302 freebsd* | dragonfly*)
4303 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4306 # Not sure whether the presence of OpenBSD here was a mistake.
4307 # Let's accept both of them until this is cleared up.
4308 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4309 lt_cv_file_magic_cmd=/usr/bin/file
4310 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4314 lt_cv_deplibs_check_method=pass_all
4319 lt_cv_deplibs_check_method=pass_all
4322 hpux10.20* | hpux11*)
4323 lt_cv_file_magic_cmd=/usr/bin/file
4326 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4327 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4330 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]'
4331 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4334 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4335 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4341 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4342 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4345 irix5* | irix6* | nonstopux*)
4347 *-32|*"-32 ") libmagic=32-bit;;
4348 *-n32|*"-n32 ") libmagic=N32;;
4349 *-64|*"-64 ") libmagic=64-bit;;
4350 *) libmagic=never-match;;
4352 lt_cv_deplibs_check_method=pass_all
4355 # This must be Linux ELF.
4356 linux* | k*bsd*-gnu)
4357 lt_cv_deplibs_check_method=pass_all
4360 netbsd* | netbsdelf*-gnu)
4361 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4362 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4364 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4369 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4370 lt_cv_file_magic_cmd=/usr/bin/file
4371 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4375 lt_cv_deplibs_check_method=unknown
4379 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4380 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4382 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4386 osf3* | osf4* | osf5*)
4387 lt_cv_deplibs_check_method=pass_all
4391 lt_cv_deplibs_check_method=pass_all
4395 lt_cv_deplibs_check_method=pass_all
4399 case $host_vendor in
4401 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]'
4402 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4405 lt_cv_deplibs_check_method=pass_all
4408 lt_cv_file_magic_cmd='/bin/file'
4409 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4412 lt_cv_file_magic_cmd='/bin/file'
4413 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4414 lt_cv_file_magic_test_file=/lib/libc.so
4417 lt_cv_deplibs_check_method=pass_all
4420 lt_cv_deplibs_check_method=pass_all
4425 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4426 lt_cv_deplibs_check_method=pass_all
4431 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4432 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4433 file_magic_cmd=$lt_cv_file_magic_cmd
4434 deplibs_check_method=$lt_cv_deplibs_check_method
4435 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4440 # If no C compiler was specified, use CC.
4443 # If no C compiler flags were specified, use CFLAGS.
4444 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4446 # Allow CC to be a program name with arguments.
4450 # Check whether --enable-libtool-lock was given.
4451 if test "${enable_libtool_lock+set}" = set; then
4452 enableval=$enable_libtool_lock;
4455 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4457 # Some flags need to be propagated to the compiler or linker for good
4461 # Find out which ABI we are using.
4462 echo 'int i;' > conftest.$ac_ext
4463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4464 (eval $ac_compile) 2>&5
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); }; then
4468 case `/usr/bin/file conftest.$ac_objext` in
4480 # Find out which ABI we are using.
4481 echo '#line 4481 "configure"' > conftest.$ac_ext
4482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4483 (eval $ac_compile) 2>&5
4485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486 (exit $ac_status); }; then
4487 if test "$lt_cv_prog_gnu_ld" = yes; then
4488 case `/usr/bin/file conftest.$ac_objext` in
4490 LD="${LD-ld} -melf32bsmip"
4493 LD="${LD-ld} -melf32bmipn32"
4496 LD="${LD-ld} -melf64bmip"
4500 case `/usr/bin/file conftest.$ac_objext` in
4516 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4517 s390*-*linux*|sparc*-*linux*)
4518 # Find out which ABI we are using.
4519 echo 'int i;' > conftest.$ac_ext
4520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4521 (eval $ac_compile) 2>&5
4523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524 (exit $ac_status); }; then
4525 case `/usr/bin/file conftest.o` in
4528 x86_64-*kfreebsd*-gnu)
4529 LD="${LD-ld} -m elf_i386_fbsd"
4532 LD="${LD-ld} -m elf_i386"
4534 ppc64-*linux*|powerpc64-*linux*)
4535 LD="${LD-ld} -m elf32ppclinux"
4538 LD="${LD-ld} -m elf_s390"
4541 LD="${LD-ld} -m elf32_sparc"
4547 x86_64-*kfreebsd*-gnu)
4548 LD="${LD-ld} -m elf_x86_64_fbsd"
4551 LD="${LD-ld} -m elf_x86_64"
4553 ppc*-*linux*|powerpc*-*linux*)
4554 LD="${LD-ld} -m elf64ppc"
4557 LD="${LD-ld} -m elf64_s390"
4560 LD="${LD-ld} -m elf64_sparc"
4570 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4571 SAVE_CFLAGS="$CFLAGS"
4572 CFLAGS="$CFLAGS -belf"
4573 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4574 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4575 if test "${lt_cv_cc_needs_belf+set}" = set; then
4576 echo $ECHO_N "(cached) $ECHO_C" >&6
4579 ac_cpp='$CPP $CPPFLAGS'
4580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4584 cat >conftest.$ac_ext <<_ACEOF
4587 cat confdefs.h >>conftest.$ac_ext
4588 cat >>conftest.$ac_ext <<_ACEOF
4589 /* end confdefs.h. */
4599 rm -f conftest.$ac_objext conftest$ac_exeext
4600 if { (ac_try="$ac_link"
4602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4603 *) ac_try_echo=$ac_try;;
4605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4606 (eval "$ac_link") 2>conftest.er1
4608 grep -v '^ *+' conftest.er1 >conftest.err
4610 cat conftest.err >&5
4611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612 (exit $ac_status); } && {
4613 test -z "$ac_c_werror_flag" ||
4614 test ! -s conftest.err
4615 } && test -s conftest$ac_exeext &&
4616 $as_test_x conftest$ac_exeext; then
4617 lt_cv_cc_needs_belf=yes
4619 echo "$as_me: failed program was:" >&5
4620 sed 's/^/| /' conftest.$ac_ext >&5
4622 lt_cv_cc_needs_belf=no
4625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4626 conftest$ac_exeext conftest.$ac_ext
4628 ac_cpp='$CPP $CPPFLAGS'
4629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4634 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4635 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4636 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4637 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4638 CFLAGS="$SAVE_CFLAGS"
4642 # Find out which ABI we are using.
4643 echo 'int i;' > conftest.$ac_ext
4644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4645 (eval $ac_compile) 2>&5
4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); }; then
4649 case `/usr/bin/file conftest.o` in
4651 case $lt_cv_prog_gnu_ld in
4652 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4654 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4668 need_locks="$enable_libtool_lock"
4672 ac_cpp='$CPP $CPPFLAGS'
4673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4676 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4677 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4678 # On Suns, sometimes $CPP names a directory.
4679 if test -n "$CPP" && test -d "$CPP"; then
4682 if test -z "$CPP"; then
4683 if test "${ac_cv_prog_CPP+set}" = set; then
4684 echo $ECHO_N "(cached) $ECHO_C" >&6
4686 # Double quotes because CPP needs to be expanded
4687 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4690 for ac_c_preproc_warn_flag in '' yes
4692 # Use a header file that comes with gcc, so configuring glibc
4693 # with a fresh cross-compiler works.
4694 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4695 # <limits.h> exists even on freestanding compilers.
4696 # On the NeXT, cc -E runs the code through the compiler's parser,
4697 # not just through cpp. "Syntax error" is here to catch this case.
4698 cat >conftest.$ac_ext <<_ACEOF
4701 cat confdefs.h >>conftest.$ac_ext
4702 cat >>conftest.$ac_ext <<_ACEOF
4703 /* end confdefs.h. */
4705 # include <limits.h>
4707 # include <assert.h>
4711 if { (ac_try="$ac_cpp conftest.$ac_ext"
4713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4714 *) ac_try_echo=$ac_try;;
4716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4717 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4719 grep -v '^ *+' conftest.er1 >conftest.err
4721 cat conftest.err >&5
4722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); } >/dev/null && {
4724 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4725 test ! -s conftest.err
4729 echo "$as_me: failed program was:" >&5
4730 sed 's/^/| /' conftest.$ac_ext >&5
4732 # Broken: fails on valid input.
4736 rm -f conftest.err conftest.$ac_ext
4738 # OK, works on sane cases. Now check whether nonexistent headers
4739 # can be detected and how.
4740 cat >conftest.$ac_ext <<_ACEOF
4743 cat confdefs.h >>conftest.$ac_ext
4744 cat >>conftest.$ac_ext <<_ACEOF
4745 /* end confdefs.h. */
4746 #include <ac_nonexistent.h>
4748 if { (ac_try="$ac_cpp conftest.$ac_ext"
4750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4751 *) ac_try_echo=$ac_try;;
4753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4754 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4756 grep -v '^ *+' conftest.er1 >conftest.err
4758 cat conftest.err >&5
4759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760 (exit $ac_status); } >/dev/null && {
4761 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4762 test ! -s conftest.err
4764 # Broken: success on invalid input.
4767 echo "$as_me: failed program was:" >&5
4768 sed 's/^/| /' conftest.$ac_ext >&5
4770 # Passes both tests.
4775 rm -f conftest.err conftest.$ac_ext
4778 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4779 rm -f conftest.err conftest.$ac_ext
4780 if $ac_preproc_ok; then
4792 { echo "$as_me:$LINENO: result: $CPP" >&5
4793 echo "${ECHO_T}$CPP" >&6; }
4795 for ac_c_preproc_warn_flag in '' yes
4797 # Use a header file that comes with gcc, so configuring glibc
4798 # with a fresh cross-compiler works.
4799 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4800 # <limits.h> exists even on freestanding compilers.
4801 # On the NeXT, cc -E runs the code through the compiler's parser,
4802 # not just through cpp. "Syntax error" is here to catch this case.
4803 cat >conftest.$ac_ext <<_ACEOF
4806 cat confdefs.h >>conftest.$ac_ext
4807 cat >>conftest.$ac_ext <<_ACEOF
4808 /* end confdefs.h. */
4810 # include <limits.h>
4812 # include <assert.h>
4816 if { (ac_try="$ac_cpp conftest.$ac_ext"
4818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4819 *) ac_try_echo=$ac_try;;
4821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4822 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4824 grep -v '^ *+' conftest.er1 >conftest.err
4826 cat conftest.err >&5
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); } >/dev/null && {
4829 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4830 test ! -s conftest.err
4834 echo "$as_me: failed program was:" >&5
4835 sed 's/^/| /' conftest.$ac_ext >&5
4837 # Broken: fails on valid input.
4841 rm -f conftest.err conftest.$ac_ext
4843 # OK, works on sane cases. Now check whether nonexistent headers
4844 # can be detected and how.
4845 cat >conftest.$ac_ext <<_ACEOF
4848 cat confdefs.h >>conftest.$ac_ext
4849 cat >>conftest.$ac_ext <<_ACEOF
4850 /* end confdefs.h. */
4851 #include <ac_nonexistent.h>
4853 if { (ac_try="$ac_cpp conftest.$ac_ext"
4855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4856 *) ac_try_echo=$ac_try;;
4858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4859 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4861 grep -v '^ *+' conftest.er1 >conftest.err
4863 cat conftest.err >&5
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); } >/dev/null && {
4866 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4867 test ! -s conftest.err
4869 # Broken: success on invalid input.
4872 echo "$as_me: failed program was:" >&5
4873 sed 's/^/| /' conftest.$ac_ext >&5
4875 # Passes both tests.
4880 rm -f conftest.err conftest.$ac_ext
4883 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4884 rm -f conftest.err conftest.$ac_ext
4885 if $ac_preproc_ok; then
4888 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4889 See \`config.log' for more details." >&5
4890 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4891 See \`config.log' for more details." >&2;}
4892 { (exit 1); exit 1; }; }
4896 ac_cpp='$CPP $CPPFLAGS'
4897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4902 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4903 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4904 if test "${ac_cv_header_stdc+set}" = set; then
4905 echo $ECHO_N "(cached) $ECHO_C" >&6
4907 cat >conftest.$ac_ext <<_ACEOF
4910 cat confdefs.h >>conftest.$ac_ext
4911 cat >>conftest.$ac_ext <<_ACEOF
4912 /* end confdefs.h. */
4926 rm -f conftest.$ac_objext
4927 if { (ac_try="$ac_compile"
4929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4930 *) ac_try_echo=$ac_try;;
4932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4933 (eval "$ac_compile") 2>conftest.er1
4935 grep -v '^ *+' conftest.er1 >conftest.err
4937 cat conftest.err >&5
4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939 (exit $ac_status); } && {
4940 test -z "$ac_c_werror_flag" ||
4941 test ! -s conftest.err
4942 } && test -s conftest.$ac_objext; then
4943 ac_cv_header_stdc=yes
4945 echo "$as_me: failed program was:" >&5
4946 sed 's/^/| /' conftest.$ac_ext >&5
4948 ac_cv_header_stdc=no
4951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4953 if test $ac_cv_header_stdc = yes; then
4954 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4955 cat >conftest.$ac_ext <<_ACEOF
4958 cat confdefs.h >>conftest.$ac_ext
4959 cat >>conftest.$ac_ext <<_ACEOF
4960 /* end confdefs.h. */
4964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4965 $EGREP "memchr" >/dev/null 2>&1; then
4968 ac_cv_header_stdc=no
4974 if test $ac_cv_header_stdc = yes; then
4975 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4976 cat >conftest.$ac_ext <<_ACEOF
4979 cat confdefs.h >>conftest.$ac_ext
4980 cat >>conftest.$ac_ext <<_ACEOF
4981 /* end confdefs.h. */
4985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4986 $EGREP "free" >/dev/null 2>&1; then
4989 ac_cv_header_stdc=no
4995 if test $ac_cv_header_stdc = yes; then
4996 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4997 if test "$cross_compiling" = yes; then
5000 cat >conftest.$ac_ext <<_ACEOF
5003 cat confdefs.h >>conftest.$ac_ext
5004 cat >>conftest.$ac_ext <<_ACEOF
5005 /* end confdefs.h. */
5008 #if ((' ' & 0x0FF) == 0x020)
5009 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5010 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5012 # define ISLOWER(c) \
5013 (('a' <= (c) && (c) <= 'i') \
5014 || ('j' <= (c) && (c) <= 'r') \
5015 || ('s' <= (c) && (c) <= 'z'))
5016 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5019 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5024 for (i = 0; i < 256; i++)
5025 if (XOR (islower (i), ISLOWER (i))
5026 || toupper (i) != TOUPPER (i))
5031 rm -f conftest$ac_exeext
5032 if { (ac_try="$ac_link"
5034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5035 *) ac_try_echo=$ac_try;;
5037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5038 (eval "$ac_link") 2>&5
5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5042 { (case "(($ac_try" in
5043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5044 *) ac_try_echo=$ac_try;;
5046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5047 (eval "$ac_try") 2>&5
5049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050 (exit $ac_status); }; }; then
5053 echo "$as_me: program exited with status $ac_status" >&5
5054 echo "$as_me: failed program was:" >&5
5055 sed 's/^/| /' conftest.$ac_ext >&5
5058 ac_cv_header_stdc=no
5060 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5066 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5067 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5068 if test $ac_cv_header_stdc = yes; then
5070 cat >>confdefs.h <<\_ACEOF
5071 #define STDC_HEADERS 1
5076 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5086 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5087 inttypes.h stdint.h unistd.h
5089 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5090 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5092 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5093 echo $ECHO_N "(cached) $ECHO_C" >&6
5095 cat >conftest.$ac_ext <<_ACEOF
5098 cat confdefs.h >>conftest.$ac_ext
5099 cat >>conftest.$ac_ext <<_ACEOF
5100 /* end confdefs.h. */
5101 $ac_includes_default
5103 #include <$ac_header>
5105 rm -f conftest.$ac_objext
5106 if { (ac_try="$ac_compile"
5108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5109 *) ac_try_echo=$ac_try;;
5111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5112 (eval "$ac_compile") 2>conftest.er1
5114 grep -v '^ *+' conftest.er1 >conftest.err
5116 cat conftest.err >&5
5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); } && {
5119 test -z "$ac_c_werror_flag" ||
5120 test ! -s conftest.err
5121 } && test -s conftest.$ac_objext; then
5122 eval "$as_ac_Header=yes"
5124 echo "$as_me: failed program was:" >&5
5125 sed 's/^/| /' conftest.$ac_ext >&5
5127 eval "$as_ac_Header=no"
5130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5132 ac_res=`eval echo '${'$as_ac_Header'}'`
5133 { echo "$as_me:$LINENO: result: $ac_res" >&5
5134 echo "${ECHO_T}$ac_res" >&6; }
5135 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5136 cat >>confdefs.h <<_ACEOF
5137 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5146 for ac_header in dlfcn.h
5148 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5150 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5153 echo $ECHO_N "(cached) $ECHO_C" >&6
5155 ac_res=`eval echo '${'$as_ac_Header'}'`
5156 { echo "$as_me:$LINENO: result: $ac_res" >&5
5157 echo "${ECHO_T}$ac_res" >&6; }
5159 # Is the header compilable?
5160 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5161 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5162 cat >conftest.$ac_ext <<_ACEOF
5165 cat confdefs.h >>conftest.$ac_ext
5166 cat >>conftest.$ac_ext <<_ACEOF
5167 /* end confdefs.h. */
5168 $ac_includes_default
5169 #include <$ac_header>
5171 rm -f conftest.$ac_objext
5172 if { (ac_try="$ac_compile"
5174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5175 *) ac_try_echo=$ac_try;;
5177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5178 (eval "$ac_compile") 2>conftest.er1
5180 grep -v '^ *+' conftest.er1 >conftest.err
5182 cat conftest.err >&5
5183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5184 (exit $ac_status); } && {
5185 test -z "$ac_c_werror_flag" ||
5186 test ! -s conftest.err
5187 } && test -s conftest.$ac_objext; then
5188 ac_header_compiler=yes
5190 echo "$as_me: failed program was:" >&5
5191 sed 's/^/| /' conftest.$ac_ext >&5
5193 ac_header_compiler=no
5196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5197 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5198 echo "${ECHO_T}$ac_header_compiler" >&6; }
5200 # Is the header present?
5201 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5202 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5203 cat >conftest.$ac_ext <<_ACEOF
5206 cat confdefs.h >>conftest.$ac_ext
5207 cat >>conftest.$ac_ext <<_ACEOF
5208 /* end confdefs.h. */
5209 #include <$ac_header>
5211 if { (ac_try="$ac_cpp conftest.$ac_ext"
5213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5214 *) ac_try_echo=$ac_try;;
5216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5217 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5219 grep -v '^ *+' conftest.er1 >conftest.err
5221 cat conftest.err >&5
5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223 (exit $ac_status); } >/dev/null && {
5224 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5225 test ! -s conftest.err
5227 ac_header_preproc=yes
5229 echo "$as_me: failed program was:" >&5
5230 sed 's/^/| /' conftest.$ac_ext >&5
5232 ac_header_preproc=no
5235 rm -f conftest.err conftest.$ac_ext
5236 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5237 echo "${ECHO_T}$ac_header_preproc" >&6; }
5239 # So? What about this header?
5240 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5242 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5243 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5244 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5245 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5246 ac_header_preproc=yes
5249 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5250 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5251 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5252 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5253 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5254 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5255 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5256 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5257 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5258 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5259 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5260 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5264 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5267 echo $ECHO_N "(cached) $ECHO_C" >&6
5269 eval "$as_ac_Header=\$ac_header_preproc"
5271 ac_res=`eval echo '${'$as_ac_Header'}'`
5272 { echo "$as_me:$LINENO: result: $ac_res" >&5
5273 echo "${ECHO_T}$ac_res" >&6; }
5276 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5277 cat >>confdefs.h <<_ACEOF
5278 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5286 ac_cpp='$CXXCPP $CPPFLAGS'
5287 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5288 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5289 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5290 if test -z "$CXX"; then
5291 if test -n "$CCC"; then
5294 if test -n "$ac_tool_prefix"; then
5295 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5297 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5298 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5299 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5301 if test "${ac_cv_prog_CXX+set}" = set; then
5302 echo $ECHO_N "(cached) $ECHO_C" >&6
5304 if test -n "$CXX"; then
5305 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5311 test -z "$as_dir" && as_dir=.
5312 for ac_exec_ext in '' $ac_executable_extensions; do
5313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5314 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5325 if test -n "$CXX"; then
5326 { echo "$as_me:$LINENO: result: $CXX" >&5
5327 echo "${ECHO_T}$CXX" >&6; }
5329 { echo "$as_me:$LINENO: result: no" >&5
5330 echo "${ECHO_T}no" >&6; }
5334 test -n "$CXX" && break
5337 if test -z "$CXX"; then
5339 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5341 # Extract the first word of "$ac_prog", so it can be a program name with args.
5342 set dummy $ac_prog; ac_word=$2
5343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5345 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5346 echo $ECHO_N "(cached) $ECHO_C" >&6
5348 if test -n "$ac_ct_CXX"; then
5349 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5355 test -z "$as_dir" && as_dir=.
5356 for ac_exec_ext in '' $ac_executable_extensions; do
5357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5358 ac_cv_prog_ac_ct_CXX="$ac_prog"
5359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5368 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5369 if test -n "$ac_ct_CXX"; then
5370 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5371 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5373 { echo "$as_me:$LINENO: result: no" >&5
5374 echo "${ECHO_T}no" >&6; }
5378 test -n "$ac_ct_CXX" && break
5381 if test "x$ac_ct_CXX" = x; then
5384 case $cross_compiling:$ac_tool_warned in
5386 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5387 whose name does not start with the host triplet. If you think this
5388 configuration is useful to you, please write to autoconf@gnu.org." >&5
5389 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5390 whose name does not start with the host triplet. If you think this
5391 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5392 ac_tool_warned=yes ;;
5400 # Provide some information about the compiler.
5401 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5402 ac_compiler=`set X $ac_compile; echo $2`
5403 { (ac_try="$ac_compiler --version >&5"
5405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5406 *) ac_try_echo=$ac_try;;
5408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5409 (eval "$ac_compiler --version >&5") 2>&5
5411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412 (exit $ac_status); }
5413 { (ac_try="$ac_compiler -v >&5"
5415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5416 *) ac_try_echo=$ac_try;;
5418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5419 (eval "$ac_compiler -v >&5") 2>&5
5421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422 (exit $ac_status); }
5423 { (ac_try="$ac_compiler -V >&5"
5425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5426 *) ac_try_echo=$ac_try;;
5428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5429 (eval "$ac_compiler -V >&5") 2>&5
5431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432 (exit $ac_status); }
5434 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5435 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5436 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5437 echo $ECHO_N "(cached) $ECHO_C" >&6
5439 cat >conftest.$ac_ext <<_ACEOF
5442 cat confdefs.h >>conftest.$ac_ext
5443 cat >>conftest.$ac_ext <<_ACEOF
5444 /* end confdefs.h. */
5457 rm -f conftest.$ac_objext
5458 if { (ac_try="$ac_compile"
5460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5461 *) ac_try_echo=$ac_try;;
5463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5464 (eval "$ac_compile") 2>conftest.er1
5466 grep -v '^ *+' conftest.er1 >conftest.err
5468 cat conftest.err >&5
5469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470 (exit $ac_status); } && {
5471 test -z "$ac_cxx_werror_flag" ||
5472 test ! -s conftest.err
5473 } && test -s conftest.$ac_objext; then
5476 echo "$as_me: failed program was:" >&5
5477 sed 's/^/| /' conftest.$ac_ext >&5
5482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5483 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5486 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5487 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5488 GXX=`test $ac_compiler_gnu = yes && echo yes`
5489 ac_test_CXXFLAGS=${CXXFLAGS+set}
5490 ac_save_CXXFLAGS=$CXXFLAGS
5491 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5492 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5493 if test "${ac_cv_prog_cxx_g+set}" = set; then
5494 echo $ECHO_N "(cached) $ECHO_C" >&6
5496 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5497 ac_cxx_werror_flag=yes
5500 cat >conftest.$ac_ext <<_ACEOF
5503 cat confdefs.h >>conftest.$ac_ext
5504 cat >>conftest.$ac_ext <<_ACEOF
5505 /* end confdefs.h. */
5515 rm -f conftest.$ac_objext
5516 if { (ac_try="$ac_compile"
5518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5519 *) ac_try_echo=$ac_try;;
5521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5522 (eval "$ac_compile") 2>conftest.er1
5524 grep -v '^ *+' conftest.er1 >conftest.err
5526 cat conftest.err >&5
5527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528 (exit $ac_status); } && {
5529 test -z "$ac_cxx_werror_flag" ||
5530 test ! -s conftest.err
5531 } && test -s conftest.$ac_objext; then
5532 ac_cv_prog_cxx_g=yes
5534 echo "$as_me: failed program was:" >&5
5535 sed 's/^/| /' conftest.$ac_ext >&5
5538 cat >conftest.$ac_ext <<_ACEOF
5541 cat confdefs.h >>conftest.$ac_ext
5542 cat >>conftest.$ac_ext <<_ACEOF
5543 /* end confdefs.h. */
5553 rm -f conftest.$ac_objext
5554 if { (ac_try="$ac_compile"
5556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5557 *) ac_try_echo=$ac_try;;
5559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5560 (eval "$ac_compile") 2>conftest.er1
5562 grep -v '^ *+' conftest.er1 >conftest.err
5564 cat conftest.err >&5
5565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566 (exit $ac_status); } && {
5567 test -z "$ac_cxx_werror_flag" ||
5568 test ! -s conftest.err
5569 } && test -s conftest.$ac_objext; then
5572 echo "$as_me: failed program was:" >&5
5573 sed 's/^/| /' conftest.$ac_ext >&5
5575 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5577 cat >conftest.$ac_ext <<_ACEOF
5580 cat confdefs.h >>conftest.$ac_ext
5581 cat >>conftest.$ac_ext <<_ACEOF
5582 /* end confdefs.h. */
5592 rm -f conftest.$ac_objext
5593 if { (ac_try="$ac_compile"
5595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5596 *) ac_try_echo=$ac_try;;
5598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5599 (eval "$ac_compile") 2>conftest.er1
5601 grep -v '^ *+' conftest.er1 >conftest.err
5603 cat conftest.err >&5
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); } && {
5606 test -z "$ac_cxx_werror_flag" ||
5607 test ! -s conftest.err
5608 } && test -s conftest.$ac_objext; then
5609 ac_cv_prog_cxx_g=yes
5611 echo "$as_me: failed program was:" >&5
5612 sed 's/^/| /' conftest.$ac_ext >&5
5617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5624 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5626 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5627 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5628 if test "$ac_test_CXXFLAGS" = set; then
5629 CXXFLAGS=$ac_save_CXXFLAGS
5630 elif test $ac_cv_prog_cxx_g = yes; then
5631 if test "$GXX" = yes; then
5637 if test "$GXX" = yes; then
5644 ac_cpp='$CXXCPP $CPPFLAGS'
5645 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5646 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5647 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5649 depcc="$CXX" am_compiler_list=
5651 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5652 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5653 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5654 echo $ECHO_N "(cached) $ECHO_C" >&6
5656 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5657 # We make a subdir and do the tests there. Otherwise we can end up
5658 # making bogus files that we don't know about and never remove. For
5659 # instance it was reported that on HP-UX the gcc test will end up
5660 # making a dummy file named `D' -- because `-MD' means `put the output
5663 # Copy depcomp to subdir because otherwise we won't find it if we're
5664 # using a relative directory.
5665 cp "$am_depcomp" conftest.dir
5667 # We will build objects and dependencies in a subdirectory because
5668 # it helps to detect inapplicable dependency modes. For instance
5669 # both Tru64's cc and ICC support -MD to output dependencies as a
5670 # side effect of compilation, but ICC will put the dependencies in
5671 # the current directory while Tru64 will put them in the object
5675 am_cv_CXX_dependencies_compiler_type=none
5676 if test "$am_compiler_list" = ""; then
5677 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5679 for depmode in $am_compiler_list; do
5680 # Setup a source with many dependencies, because some compilers
5681 # like to wrap large dependency lists on column 80 (with \), and
5682 # we should not choose a depcomp mode which is confused by this.
5684 # We need to recreate these files for each test, as the compiler may
5685 # overwrite some of them when testing with obscure command lines.
5686 # This happens at least with the AIX C compiler.
5688 for i in 1 2 3 4 5 6; do
5689 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5690 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5691 # Solaris 8's {/usr,}/bin/sh.
5692 touch sub/conftst$i.h
5694 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5698 # after this tag, mechanisms are not by side-effect, so they'll
5699 # only be used when explicitly requested
5700 if test "x$enable_dependency_tracking" = xyes; then
5708 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5709 # mode. It turns out that the SunPro C++ compiler does not properly
5710 # handle `-M -o', and we need to detect this.
5711 if depmode=$depmode \
5712 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5713 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5714 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5715 >/dev/null 2>conftest.err &&
5716 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5717 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5718 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5719 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5720 # icc doesn't choke on unknown options, it will just issue warnings
5721 # or remarks (even with -Werror). So we grep stderr for any message
5722 # that says an option was ignored or not supported.
5723 # When given -MP, icc 7.0 and 7.1 complain thusly:
5724 # icc: Command line warning: ignoring option '-M'; no argument required
5725 # The diagnosis changed in icc 8.0:
5726 # icc: Command line remark: option '-MP' not supported
5727 if (grep 'ignoring option' conftest.err ||
5728 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5729 am_cv_CXX_dependencies_compiler_type=$depmode
5738 am_cv_CXX_dependencies_compiler_type=none
5742 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5743 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5744 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5747 test "x$enable_dependency_tracking" != xno \
5748 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5749 am__fastdepCXX_TRUE=
5750 am__fastdepCXX_FALSE='#'
5752 am__fastdepCXX_TRUE='#'
5753 am__fastdepCXX_FALSE=
5759 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5760 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5761 (test "X$CXX" != "Xg++"))) ; then
5763 ac_cpp='$CXXCPP $CPPFLAGS'
5764 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5765 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5766 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5767 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5768 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5769 if test -z "$CXXCPP"; then
5770 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5771 echo $ECHO_N "(cached) $ECHO_C" >&6
5773 # Double quotes because CXXCPP needs to be expanded
5774 for CXXCPP in "$CXX -E" "/lib/cpp"
5777 for ac_cxx_preproc_warn_flag in '' yes
5779 # Use a header file that comes with gcc, so configuring glibc
5780 # with a fresh cross-compiler works.
5781 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5782 # <limits.h> exists even on freestanding compilers.
5783 # On the NeXT, cc -E runs the code through the compiler's parser,
5784 # not just through cpp. "Syntax error" is here to catch this case.
5785 cat >conftest.$ac_ext <<_ACEOF
5788 cat confdefs.h >>conftest.$ac_ext
5789 cat >>conftest.$ac_ext <<_ACEOF
5790 /* end confdefs.h. */
5792 # include <limits.h>
5794 # include <assert.h>
5798 if { (ac_try="$ac_cpp conftest.$ac_ext"
5800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5801 *) ac_try_echo=$ac_try;;
5803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5804 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5806 grep -v '^ *+' conftest.er1 >conftest.err
5808 cat conftest.err >&5
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); } >/dev/null && {
5811 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5812 test ! -s conftest.err
5816 echo "$as_me: failed program was:" >&5
5817 sed 's/^/| /' conftest.$ac_ext >&5
5819 # Broken: fails on valid input.
5823 rm -f conftest.err conftest.$ac_ext
5825 # OK, works on sane cases. Now check whether nonexistent headers
5826 # can be detected and how.
5827 cat >conftest.$ac_ext <<_ACEOF
5830 cat confdefs.h >>conftest.$ac_ext
5831 cat >>conftest.$ac_ext <<_ACEOF
5832 /* end confdefs.h. */
5833 #include <ac_nonexistent.h>
5835 if { (ac_try="$ac_cpp conftest.$ac_ext"
5837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5838 *) ac_try_echo=$ac_try;;
5840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5841 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5843 grep -v '^ *+' conftest.er1 >conftest.err
5845 cat conftest.err >&5
5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); } >/dev/null && {
5848 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5849 test ! -s conftest.err
5851 # Broken: success on invalid input.
5854 echo "$as_me: failed program was:" >&5
5855 sed 's/^/| /' conftest.$ac_ext >&5
5857 # Passes both tests.
5862 rm -f conftest.err conftest.$ac_ext
5865 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5866 rm -f conftest.err conftest.$ac_ext
5867 if $ac_preproc_ok; then
5872 ac_cv_prog_CXXCPP=$CXXCPP
5875 CXXCPP=$ac_cv_prog_CXXCPP
5877 ac_cv_prog_CXXCPP=$CXXCPP
5879 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5880 echo "${ECHO_T}$CXXCPP" >&6; }
5882 for ac_cxx_preproc_warn_flag in '' yes
5884 # Use a header file that comes with gcc, so configuring glibc
5885 # with a fresh cross-compiler works.
5886 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5887 # <limits.h> exists even on freestanding compilers.
5888 # On the NeXT, cc -E runs the code through the compiler's parser,
5889 # not just through cpp. "Syntax error" is here to catch this case.
5890 cat >conftest.$ac_ext <<_ACEOF
5893 cat confdefs.h >>conftest.$ac_ext
5894 cat >>conftest.$ac_ext <<_ACEOF
5895 /* end confdefs.h. */
5897 # include <limits.h>
5899 # include <assert.h>
5903 if { (ac_try="$ac_cpp conftest.$ac_ext"
5905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5906 *) ac_try_echo=$ac_try;;
5908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5909 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5911 grep -v '^ *+' conftest.er1 >conftest.err
5913 cat conftest.err >&5
5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); } >/dev/null && {
5916 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5917 test ! -s conftest.err
5921 echo "$as_me: failed program was:" >&5
5922 sed 's/^/| /' conftest.$ac_ext >&5
5924 # Broken: fails on valid input.
5928 rm -f conftest.err conftest.$ac_ext
5930 # OK, works on sane cases. Now check whether nonexistent headers
5931 # can be detected and how.
5932 cat >conftest.$ac_ext <<_ACEOF
5935 cat confdefs.h >>conftest.$ac_ext
5936 cat >>conftest.$ac_ext <<_ACEOF
5937 /* end confdefs.h. */
5938 #include <ac_nonexistent.h>
5940 if { (ac_try="$ac_cpp conftest.$ac_ext"
5942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5943 *) ac_try_echo=$ac_try;;
5945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5946 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5948 grep -v '^ *+' conftest.er1 >conftest.err
5950 cat conftest.err >&5
5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); } >/dev/null && {
5953 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5954 test ! -s conftest.err
5956 # Broken: success on invalid input.
5959 echo "$as_me: failed program was:" >&5
5960 sed 's/^/| /' conftest.$ac_ext >&5
5962 # Passes both tests.
5967 rm -f conftest.err conftest.$ac_ext
5970 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5971 rm -f conftest.err conftest.$ac_ext
5972 if $ac_preproc_ok; then
5975 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5976 See \`config.log' for more details." >&5
5977 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5978 See \`config.log' for more details." >&2;}
5979 { (exit 1); exit 1; }; }
5983 ac_cpp='$CXXCPP $CPPFLAGS'
5984 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5985 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5986 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5992 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5993 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5994 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5995 if test -n "$ac_tool_prefix"; then
5996 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
5998 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5999 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6002 if test "${ac_cv_prog_F77+set}" = set; then
6003 echo $ECHO_N "(cached) $ECHO_C" >&6
6005 if test -n "$F77"; then
6006 ac_cv_prog_F77="$F77" # Let the user override the test.
6008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6012 test -z "$as_dir" && as_dir=.
6013 for ac_exec_ext in '' $ac_executable_extensions; do
6014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6015 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6026 if test -n "$F77"; then
6027 { echo "$as_me:$LINENO: result: $F77" >&5
6028 echo "${ECHO_T}$F77" >&6; }
6030 { echo "$as_me:$LINENO: result: no" >&5
6031 echo "${ECHO_T}no" >&6; }
6035 test -n "$F77" && break
6038 if test -z "$F77"; then
6040 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
6042 # Extract the first word of "$ac_prog", so it can be a program name with args.
6043 set dummy $ac_prog; ac_word=$2
6044 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6046 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6047 echo $ECHO_N "(cached) $ECHO_C" >&6
6049 if test -n "$ac_ct_F77"; then
6050 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6056 test -z "$as_dir" && as_dir=.
6057 for ac_exec_ext in '' $ac_executable_extensions; do
6058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6059 ac_cv_prog_ac_ct_F77="$ac_prog"
6060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6069 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6070 if test -n "$ac_ct_F77"; then
6071 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6072 echo "${ECHO_T}$ac_ct_F77" >&6; }
6074 { echo "$as_me:$LINENO: result: no" >&5
6075 echo "${ECHO_T}no" >&6; }
6079 test -n "$ac_ct_F77" && break
6082 if test "x$ac_ct_F77" = x; then
6085 case $cross_compiling:$ac_tool_warned in
6087 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6088 whose name does not start with the host triplet. If you think this
6089 configuration is useful to you, please write to autoconf@gnu.org." >&5
6090 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6091 whose name does not start with the host triplet. If you think this
6092 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6093 ac_tool_warned=yes ;;
6100 # Provide some information about the compiler.
6101 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6102 ac_compiler=`set X $ac_compile; echo $2`
6103 { (ac_try="$ac_compiler --version >&5"
6105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6106 *) ac_try_echo=$ac_try;;
6108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6109 (eval "$ac_compiler --version >&5") 2>&5
6111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112 (exit $ac_status); }
6113 { (ac_try="$ac_compiler -v >&5"
6115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6116 *) ac_try_echo=$ac_try;;
6118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6119 (eval "$ac_compiler -v >&5") 2>&5
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); }
6123 { (ac_try="$ac_compiler -V >&5"
6125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6126 *) ac_try_echo=$ac_try;;
6128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6129 (eval "$ac_compiler -V >&5") 2>&5
6131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); }
6135 # If we don't use `.F' as extension, the preprocessor is not run on the
6136 # input file. (Note that this only needs to work for GNU compilers.)
6139 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6140 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6141 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6142 echo $ECHO_N "(cached) $ECHO_C" >&6
6144 cat >conftest.$ac_ext <<_ACEOF
6152 rm -f conftest.$ac_objext
6153 if { (ac_try="$ac_compile"
6155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6156 *) ac_try_echo=$ac_try;;
6158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6159 (eval "$ac_compile") 2>conftest.er1
6161 grep -v '^ *+' conftest.er1 >conftest.err
6163 cat conftest.err >&5
6164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); } && {
6166 test -z "$ac_f77_werror_flag" ||
6167 test ! -s conftest.err
6168 } && test -s conftest.$ac_objext; then
6171 echo "$as_me: failed program was:" >&5
6172 sed 's/^/| /' conftest.$ac_ext >&5
6177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6178 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6181 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6182 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6184 ac_test_FFLAGS=${FFLAGS+set}
6185 ac_save_FFLAGS=$FFLAGS
6187 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6188 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6189 if test "${ac_cv_prog_f77_g+set}" = set; then
6190 echo $ECHO_N "(cached) $ECHO_C" >&6
6193 cat >conftest.$ac_ext <<_ACEOF
6198 rm -f conftest.$ac_objext
6199 if { (ac_try="$ac_compile"
6201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6202 *) ac_try_echo=$ac_try;;
6204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6205 (eval "$ac_compile") 2>conftest.er1
6207 grep -v '^ *+' conftest.er1 >conftest.err
6209 cat conftest.err >&5
6210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211 (exit $ac_status); } && {
6212 test -z "$ac_f77_werror_flag" ||
6213 test ! -s conftest.err
6214 } && test -s conftest.$ac_objext; then
6215 ac_cv_prog_f77_g=yes
6217 echo "$as_me: failed program was:" >&5
6218 sed 's/^/| /' conftest.$ac_ext >&5
6223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6226 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6227 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6228 if test "$ac_test_FFLAGS" = set; then
6229 FFLAGS=$ac_save_FFLAGS
6230 elif test $ac_cv_prog_f77_g = yes; then
6231 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6237 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6244 G77=`test $ac_compiler_gnu = yes && echo yes`
6246 ac_cpp='$CPP $CPPFLAGS'
6247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6253 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6254 # find the maximum length of command line arguments
6255 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6256 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6257 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6258 echo $ECHO_N "(cached) $ECHO_C" >&6
6265 # On DJGPP, this test can blow up pretty badly due to problems in libc
6266 # (any single argument exceeding 2000 bytes causes a buffer overrun
6267 # during glob expansion). Even if it were fixed, the result of this
6268 # check would be larger than it should be.
6269 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6273 # Under GNU Hurd, this test is not required because there is
6274 # no limit to the length of command line arguments.
6275 # Libtool will interpret -1 as no limit whatsoever
6276 lt_cv_sys_max_cmd_len=-1;
6280 # On Win9x/ME, this test blows up -- it succeeds, but takes
6281 # about 5 minutes as the teststring grows exponentially.
6282 # Worse, since 9x/ME are not pre-emptively multitasking,
6283 # you end up with a "frozen" computer, even though with patience
6284 # the test eventually succeeds (with a max line length of 256k).
6285 # Instead, let's just punt: use the minimum linelength reported by
6286 # all of the supported platforms: 8192 (on NT/2K/XP).
6287 lt_cv_sys_max_cmd_len=8192;
6291 # On AmigaOS with pdksh, this test takes hours, literally.
6292 # So we just punt and use a minimum line length of 8192.
6293 lt_cv_sys_max_cmd_len=8192;
6296 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6297 # This has been around since 386BSD, at least. Likely further.
6298 if test -x /sbin/sysctl; then
6299 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6300 elif test -x /usr/sbin/sysctl; then
6301 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6303 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6305 # And add a safety zone
6306 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6307 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6311 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6312 lt_cv_sys_max_cmd_len=196608
6316 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6317 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6318 # nice to cause kernel panics so lets avoid the loop below.
6319 # First set a reasonable default.
6320 lt_cv_sys_max_cmd_len=16384
6322 if test -x /sbin/sysconfig; then
6323 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6324 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6329 lt_cv_sys_max_cmd_len=102400
6331 sysv5* | sco5v6* | sysv4.2uw2*)
6332 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6333 if test -n "$kargmax"; then
6334 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6336 lt_cv_sys_max_cmd_len=32768
6340 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6341 if test -n "$lt_cv_sys_max_cmd_len"; then
6342 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6343 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6345 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6346 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6347 = "XX$teststring") >/dev/null 2>&1 &&
6348 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6349 lt_cv_sys_max_cmd_len=$new_result &&
6350 test $i != 17 # 1/2 MB should be enough
6353 teststring=$teststring$teststring
6356 # Add a significant safety factor because C++ compilers can tack on massive
6357 # amounts of additional arguments before passing them to the linker.
6358 # It appears as though 1/2 is a usable value.
6359 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6366 if test -n $lt_cv_sys_max_cmd_len ; then
6367 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6368 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6370 { echo "$as_me:$LINENO: result: none" >&5
6371 echo "${ECHO_T}none" >&6; }
6378 # Check for command to grab the raw symbol name followed by C symbol from nm.
6379 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6380 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6381 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6382 echo $ECHO_N "(cached) $ECHO_C" >&6
6385 # These are sane defaults that work on at least a few old systems.
6386 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6388 # Character class describing NM global symbol codes.
6389 symcode='[BCDEGRST]'
6391 # Regexp to match symbols that can be accessed directly from C.
6392 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6394 # Transform an extracted symbol line into a proper C declaration
6395 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6397 # Transform an extracted symbol line into symbol name and symbol address
6398 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'"
6400 # Define system-specific variables.
6405 cygwin* | mingw* | pw32*)
6406 symcode='[ABCDGISTW]'
6408 hpux*) # Its linker distinguishes data from code symbols
6409 if test "$host_cpu" = ia64; then
6410 symcode='[ABCDEGRST]'
6412 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6413 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'"
6415 linux* | k*bsd*-gnu)
6416 if test "$host_cpu" = ia64; then
6417 symcode='[ABCDGIRSTW]'
6418 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6419 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'"
6423 symcode='[BCDEGRST]'
6426 symcode='[BCDEGQRST]'
6437 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6445 # Handle CRLF in mingw tool chain
6449 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6453 # If we're using GNU nm, then use its standard symbol codes.
6454 case `$NM -V 2>&1` in
6455 *GNU* | *'with BFD'*)
6456 symcode='[ABCDGIRSTW]' ;;
6459 # Try without a prefix undercore, then with it.
6460 for ac_symprfx in "" "_"; do
6462 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6463 symxfrm="\\1 $ac_symprfx\\2 \\2"
6465 # Write the raw and C identifiers.
6466 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6468 # Check to see that the pipe works correctly.
6472 cat > conftest.$ac_ext <<EOF
6477 void nm_test_func(){}
6481 int main(){nm_test_var='a';nm_test_func();return(0);}
6484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6485 (eval $ac_compile) 2>&5
6487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488 (exit $ac_status); }; then
6489 # Now try to grab the symbols.
6491 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6492 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495 (exit $ac_status); } && test -s "$nlist"; then
6496 # Try sorting and uniquifying the output.
6497 if sort "$nlist" | uniq > "$nlist"T; then
6498 mv -f "$nlist"T "$nlist"
6503 # Make sure that we snagged all the symbols we need.
6504 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6505 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6506 cat <<EOF > conftest.$ac_ext
6512 # Now generate the symbol file.
6513 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6515 cat <<EOF >> conftest.$ac_ext
6516 #if defined (__STDC__) && __STDC__
6517 # define lt_ptr_t void *
6519 # define lt_ptr_t char *
6523 /* The mapping between symbol names and symbols. */
6528 lt_preloaded_symbols[] =
6531 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6532 cat <<\EOF >> conftest.$ac_ext
6540 # Now try linking the two files.
6541 mv conftest.$ac_objext conftstm.$ac_objext
6542 lt_save_LIBS="$LIBS"
6543 lt_save_CFLAGS="$CFLAGS"
6544 LIBS="conftstm.$ac_objext"
6545 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6547 (eval $ac_link) 2>&5
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6553 LIBS="$lt_save_LIBS"
6554 CFLAGS="$lt_save_CFLAGS"
6556 echo "cannot find nm_test_func in $nlist" >&5
6559 echo "cannot find nm_test_var in $nlist" >&5
6562 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6565 echo "$progname: failed program was:" >&5
6566 cat conftest.$ac_ext >&5
6568 rm -rf conftest* conftst*
6570 # Do not use the global_symbol_pipe unless it works.
6571 if test "$pipe_works" = yes; then
6574 lt_cv_sys_global_symbol_pipe=
6580 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6581 lt_cv_sys_global_symbol_to_cdecl=
6583 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6584 { echo "$as_me:$LINENO: result: failed" >&5
6585 echo "${ECHO_T}failed" >&6; }
6587 { echo "$as_me:$LINENO: result: ok" >&5
6588 echo "${ECHO_T}ok" >&6; }
6591 { echo "$as_me:$LINENO: checking for objdir" >&5
6592 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6593 if test "${lt_cv_objdir+set}" = set; then
6594 echo $ECHO_N "(cached) $ECHO_C" >&6
6596 rm -f .libs 2>/dev/null
6597 mkdir .libs 2>/dev/null
6598 if test -d .libs; then
6601 # MS-DOS does not allow filenames that begin with a dot.
6604 rmdir .libs 2>/dev/null
6606 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6607 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6608 objdir=$lt_cv_objdir
6616 # AIX sometimes has problems with the GCC collect2 program. For some
6617 # reason, if we set the COLLECT_NAMES environment variable, the problems
6618 # vanish in a puff of smoke.
6619 if test "X${COLLECT_NAMES+set}" != Xset; then
6621 export COLLECT_NAMES
6626 # Sed substitution that helps us do robust quoting. It backslashifies
6627 # metacharacters that are still active within double-quoted strings.
6628 Xsed='sed -e 1s/^X//'
6629 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6631 # Same as above, but do not quote variable references.
6632 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6634 # Sed substitution to delay expansion of an escaped shell variable in a
6635 # double_quote_subst'ed string.
6636 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6638 # Sed substitution to avoid accidental globbing in evaled expressions
6639 no_glob_subst='s/\*/\\\*/g'
6645 default_ofile=libtool
6646 can_build_shared=yes
6648 # All known linkers require a `.a' archive for static linking (except MSVC,
6649 # which needs '.lib').
6651 ltmain="$ac_aux_dir/ltmain.sh"
6652 ofile="$default_ofile"
6653 with_gnu_ld="$lt_cv_prog_gnu_ld"
6655 if test -n "$ac_tool_prefix"; then
6656 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6657 set dummy ${ac_tool_prefix}ar; ac_word=$2
6658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6660 if test "${ac_cv_prog_AR+set}" = set; then
6661 echo $ECHO_N "(cached) $ECHO_C" >&6
6663 if test -n "$AR"; then
6664 ac_cv_prog_AR="$AR" # Let the user override the test.
6666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6670 test -z "$as_dir" && as_dir=.
6671 for ac_exec_ext in '' $ac_executable_extensions; do
6672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6673 ac_cv_prog_AR="${ac_tool_prefix}ar"
6674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6684 if test -n "$AR"; then
6685 { echo "$as_me:$LINENO: result: $AR" >&5
6686 echo "${ECHO_T}$AR" >&6; }
6688 { echo "$as_me:$LINENO: result: no" >&5
6689 echo "${ECHO_T}no" >&6; }
6694 if test -z "$ac_cv_prog_AR"; then
6696 # Extract the first word of "ar", so it can be a program name with args.
6697 set dummy ar; ac_word=$2
6698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6700 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6701 echo $ECHO_N "(cached) $ECHO_C" >&6
6703 if test -n "$ac_ct_AR"; then
6704 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6710 test -z "$as_dir" && as_dir=.
6711 for ac_exec_ext in '' $ac_executable_extensions; do
6712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6713 ac_cv_prog_ac_ct_AR="ar"
6714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6723 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6724 if test -n "$ac_ct_AR"; then
6725 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6726 echo "${ECHO_T}$ac_ct_AR" >&6; }
6728 { echo "$as_me:$LINENO: result: no" >&5
6729 echo "${ECHO_T}no" >&6; }
6732 if test "x$ac_ct_AR" = x; then
6735 case $cross_compiling:$ac_tool_warned in
6737 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6738 whose name does not start with the host triplet. If you think this
6739 configuration is useful to you, please write to autoconf@gnu.org." >&5
6740 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6741 whose name does not start with the host triplet. If you think this
6742 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6743 ac_tool_warned=yes ;;
6751 if test -n "$ac_tool_prefix"; then
6752 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6753 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6754 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6756 if test "${ac_cv_prog_RANLIB+set}" = set; then
6757 echo $ECHO_N "(cached) $ECHO_C" >&6
6759 if test -n "$RANLIB"; then
6760 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6766 test -z "$as_dir" && as_dir=.
6767 for ac_exec_ext in '' $ac_executable_extensions; do
6768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6769 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6779 RANLIB=$ac_cv_prog_RANLIB
6780 if test -n "$RANLIB"; then
6781 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6782 echo "${ECHO_T}$RANLIB" >&6; }
6784 { echo "$as_me:$LINENO: result: no" >&5
6785 echo "${ECHO_T}no" >&6; }
6790 if test -z "$ac_cv_prog_RANLIB"; then
6791 ac_ct_RANLIB=$RANLIB
6792 # Extract the first word of "ranlib", so it can be a program name with args.
6793 set dummy ranlib; ac_word=$2
6794 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6796 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6797 echo $ECHO_N "(cached) $ECHO_C" >&6
6799 if test -n "$ac_ct_RANLIB"; then
6800 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6806 test -z "$as_dir" && as_dir=.
6807 for ac_exec_ext in '' $ac_executable_extensions; do
6808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6809 ac_cv_prog_ac_ct_RANLIB="ranlib"
6810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6819 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6820 if test -n "$ac_ct_RANLIB"; then
6821 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6822 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6824 { echo "$as_me:$LINENO: result: no" >&5
6825 echo "${ECHO_T}no" >&6; }
6828 if test "x$ac_ct_RANLIB" = x; then
6831 case $cross_compiling:$ac_tool_warned in
6833 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6834 whose name does not start with the host triplet. If you think this
6835 configuration is useful to you, please write to autoconf@gnu.org." >&5
6836 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6837 whose name does not start with the host triplet. If you think this
6838 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6839 ac_tool_warned=yes ;;
6841 RANLIB=$ac_ct_RANLIB
6844 RANLIB="$ac_cv_prog_RANLIB"
6847 if test -n "$ac_tool_prefix"; then
6848 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6849 set dummy ${ac_tool_prefix}strip; ac_word=$2
6850 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6852 if test "${ac_cv_prog_STRIP+set}" = set; then
6853 echo $ECHO_N "(cached) $ECHO_C" >&6
6855 if test -n "$STRIP"; then
6856 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6862 test -z "$as_dir" && as_dir=.
6863 for ac_exec_ext in '' $ac_executable_extensions; do
6864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6865 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6875 STRIP=$ac_cv_prog_STRIP
6876 if test -n "$STRIP"; then
6877 { echo "$as_me:$LINENO: result: $STRIP" >&5
6878 echo "${ECHO_T}$STRIP" >&6; }
6880 { echo "$as_me:$LINENO: result: no" >&5
6881 echo "${ECHO_T}no" >&6; }
6886 if test -z "$ac_cv_prog_STRIP"; then
6888 # Extract the first word of "strip", so it can be a program name with args.
6889 set dummy strip; ac_word=$2
6890 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6892 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6893 echo $ECHO_N "(cached) $ECHO_C" >&6
6895 if test -n "$ac_ct_STRIP"; then
6896 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6902 test -z "$as_dir" && as_dir=.
6903 for ac_exec_ext in '' $ac_executable_extensions; do
6904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6905 ac_cv_prog_ac_ct_STRIP="strip"
6906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6915 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6916 if test -n "$ac_ct_STRIP"; then
6917 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6918 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6920 { echo "$as_me:$LINENO: result: no" >&5
6921 echo "${ECHO_T}no" >&6; }
6924 if test "x$ac_ct_STRIP" = x; then
6927 case $cross_compiling:$ac_tool_warned in
6929 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6930 whose name does not start with the host triplet. If you think this
6931 configuration is useful to you, please write to autoconf@gnu.org." >&5
6932 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6933 whose name does not start with the host triplet. If you think this
6934 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6935 ac_tool_warned=yes ;;
6940 STRIP="$ac_cv_prog_STRIP"
6945 old_CFLAGS="$CFLAGS"
6947 # Set sane defaults for various variables
6948 test -z "$AR" && AR=ar
6949 test -z "$AR_FLAGS" && AR_FLAGS=cru
6950 test -z "$AS" && AS=as
6951 test -z "$CC" && CC=cc
6952 test -z "$LTCC" && LTCC=$CC
6953 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6954 test -z "$DLLTOOL" && DLLTOOL=dlltool
6955 test -z "$LD" && LD=ld
6956 test -z "$LN_S" && LN_S="ln -s"
6957 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6958 test -z "$NM" && NM=nm
6959 test -z "$SED" && SED=sed
6960 test -z "$OBJDUMP" && OBJDUMP=objdump
6961 test -z "$RANLIB" && RANLIB=:
6962 test -z "$STRIP" && STRIP=:
6963 test -z "$ac_objext" && ac_objext=o
6965 # Determine commands to create old-style static archives.
6966 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6967 old_postinstall_cmds='chmod 644 $oldlib'
6968 old_postuninstall_cmds=
6970 if test -n "$RANLIB"; then
6973 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6976 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6979 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6982 for cc_temp in $compiler""; do
6984 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6985 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6990 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6993 # Only perform the check for file, if the check method requires it
6994 case $deplibs_check_method in
6996 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6997 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6998 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6999 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7000 echo $ECHO_N "(cached) $ECHO_C" >&6
7004 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7007 lt_save_MAGIC_CMD="$MAGIC_CMD"
7008 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7009 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7010 for ac_dir in $ac_dummy; do
7012 test -z "$ac_dir" && ac_dir=.
7013 if test -f $ac_dir/${ac_tool_prefix}file; then
7014 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7015 if test -n "$file_magic_test_file"; then
7016 case $deplibs_check_method in
7018 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7019 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7020 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7021 $EGREP "$file_magic_regex" > /dev/null; then
7026 *** Warning: the command libtool uses to detect shared libraries,
7027 *** $file_magic_cmd, produces output that libtool cannot recognize.
7028 *** The result is that libtool may fail to recognize shared libraries
7029 *** as such. This will affect the creation of libtool libraries that
7030 *** depend on shared libraries, but programs linked with such libtool
7031 *** libraries will work regardless of this problem. Nevertheless, you
7032 *** may want to report the problem to your system manager and/or to
7033 *** bug-libtool@gnu.org
7043 MAGIC_CMD="$lt_save_MAGIC_CMD"
7048 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7049 if test -n "$MAGIC_CMD"; then
7050 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7051 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7053 { echo "$as_me:$LINENO: result: no" >&5
7054 echo "${ECHO_T}no" >&6; }
7057 if test -z "$lt_cv_path_MAGIC_CMD"; then
7058 if test -n "$ac_tool_prefix"; then
7059 { echo "$as_me:$LINENO: checking for file" >&5
7060 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7061 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7062 echo $ECHO_N "(cached) $ECHO_C" >&6
7066 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7069 lt_save_MAGIC_CMD="$MAGIC_CMD"
7070 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7071 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7072 for ac_dir in $ac_dummy; do
7074 test -z "$ac_dir" && ac_dir=.
7075 if test -f $ac_dir/file; then
7076 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7077 if test -n "$file_magic_test_file"; then
7078 case $deplibs_check_method in
7080 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7081 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7082 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7083 $EGREP "$file_magic_regex" > /dev/null; then
7088 *** Warning: the command libtool uses to detect shared libraries,
7089 *** $file_magic_cmd, produces output that libtool cannot recognize.
7090 *** The result is that libtool may fail to recognize shared libraries
7091 *** as such. This will affect the creation of libtool libraries that
7092 *** depend on shared libraries, but programs linked with such libtool
7093 *** libraries will work regardless of this problem. Nevertheless, you
7094 *** may want to report the problem to your system manager and/or to
7095 *** bug-libtool@gnu.org
7105 MAGIC_CMD="$lt_save_MAGIC_CMD"
7110 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7111 if test -n "$MAGIC_CMD"; then
7112 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7113 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7115 { echo "$as_me:$LINENO: result: no" >&5
7116 echo "${ECHO_T}no" >&6; }
7130 rhapsody* | darwin*)
7131 if test -n "$ac_tool_prefix"; then
7132 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7133 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7134 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7136 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7137 echo $ECHO_N "(cached) $ECHO_C" >&6
7139 if test -n "$DSYMUTIL"; then
7140 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7146 test -z "$as_dir" && as_dir=.
7147 for ac_exec_ext in '' $ac_executable_extensions; do
7148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7149 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7159 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7160 if test -n "$DSYMUTIL"; then
7161 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7162 echo "${ECHO_T}$DSYMUTIL" >&6; }
7164 { echo "$as_me:$LINENO: result: no" >&5
7165 echo "${ECHO_T}no" >&6; }
7170 if test -z "$ac_cv_prog_DSYMUTIL"; then
7171 ac_ct_DSYMUTIL=$DSYMUTIL
7172 # Extract the first word of "dsymutil", so it can be a program name with args.
7173 set dummy dsymutil; ac_word=$2
7174 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7176 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7177 echo $ECHO_N "(cached) $ECHO_C" >&6
7179 if test -n "$ac_ct_DSYMUTIL"; then
7180 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7186 test -z "$as_dir" && as_dir=.
7187 for ac_exec_ext in '' $ac_executable_extensions; do
7188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7189 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7199 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7200 if test -n "$ac_ct_DSYMUTIL"; then
7201 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7202 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7204 { echo "$as_me:$LINENO: result: no" >&5
7205 echo "${ECHO_T}no" >&6; }
7208 if test "x$ac_ct_DSYMUTIL" = x; then
7211 case $cross_compiling:$ac_tool_warned in
7213 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7214 whose name does not start with the host triplet. If you think this
7215 configuration is useful to you, please write to autoconf@gnu.org." >&5
7216 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7217 whose name does not start with the host triplet. If you think this
7218 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7219 ac_tool_warned=yes ;;
7221 DSYMUTIL=$ac_ct_DSYMUTIL
7224 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7227 if test -n "$ac_tool_prefix"; then
7228 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7229 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7232 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7233 echo $ECHO_N "(cached) $ECHO_C" >&6
7235 if test -n "$NMEDIT"; then
7236 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7242 test -z "$as_dir" && as_dir=.
7243 for ac_exec_ext in '' $ac_executable_extensions; do
7244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7245 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7255 NMEDIT=$ac_cv_prog_NMEDIT
7256 if test -n "$NMEDIT"; then
7257 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7258 echo "${ECHO_T}$NMEDIT" >&6; }
7260 { echo "$as_me:$LINENO: result: no" >&5
7261 echo "${ECHO_T}no" >&6; }
7266 if test -z "$ac_cv_prog_NMEDIT"; then
7267 ac_ct_NMEDIT=$NMEDIT
7268 # Extract the first word of "nmedit", so it can be a program name with args.
7269 set dummy nmedit; ac_word=$2
7270 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7272 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7273 echo $ECHO_N "(cached) $ECHO_C" >&6
7275 if test -n "$ac_ct_NMEDIT"; then
7276 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7282 test -z "$as_dir" && as_dir=.
7283 for ac_exec_ext in '' $ac_executable_extensions; do
7284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7285 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7295 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7296 if test -n "$ac_ct_NMEDIT"; then
7297 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7298 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7300 { echo "$as_me:$LINENO: result: no" >&5
7301 echo "${ECHO_T}no" >&6; }
7304 if test "x$ac_ct_NMEDIT" = x; then
7307 case $cross_compiling:$ac_tool_warned in
7309 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7310 whose name does not start with the host triplet. If you think this
7311 configuration is useful to you, please write to autoconf@gnu.org." >&5
7312 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7313 whose name does not start with the host triplet. If you think this
7314 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7315 ac_tool_warned=yes ;;
7317 NMEDIT=$ac_ct_NMEDIT
7320 NMEDIT="$ac_cv_prog_NMEDIT"
7324 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7325 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7326 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7327 echo $ECHO_N "(cached) $ECHO_C" >&6
7329 lt_cv_apple_cc_single_mod=no
7330 if test -z "${LT_MULTI_MODULE}"; then
7331 # By default we will add the -single_module flag. You can override
7332 # by either setting the environment variable LT_MULTI_MODULE
7333 # non-empty at configure time, or by adding -multi_module to the
7335 echo "int foo(void){return 1;}" > conftest.c
7336 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7337 -dynamiclib ${wl}-single_module conftest.c
7338 if test -f libconftest.dylib; then
7339 lt_cv_apple_cc_single_mod=yes
7340 rm -rf libconftest.dylib*
7345 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7346 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7347 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7348 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7349 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7350 echo $ECHO_N "(cached) $ECHO_C" >&6
7352 lt_cv_ld_exported_symbols_list=no
7353 save_LDFLAGS=$LDFLAGS
7354 echo "_main" > conftest.sym
7355 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7356 cat >conftest.$ac_ext <<_ACEOF
7359 cat confdefs.h >>conftest.$ac_ext
7360 cat >>conftest.$ac_ext <<_ACEOF
7361 /* end confdefs.h. */
7371 rm -f conftest.$ac_objext conftest$ac_exeext
7372 if { (ac_try="$ac_link"
7374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7375 *) ac_try_echo=$ac_try;;
7377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7378 (eval "$ac_link") 2>conftest.er1
7380 grep -v '^ *+' conftest.er1 >conftest.err
7382 cat conftest.err >&5
7383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384 (exit $ac_status); } && {
7385 test -z "$ac_c_werror_flag" ||
7386 test ! -s conftest.err
7387 } && test -s conftest$ac_exeext &&
7388 $as_test_x conftest$ac_exeext; then
7389 lt_cv_ld_exported_symbols_list=yes
7391 echo "$as_me: failed program was:" >&5
7392 sed 's/^/| /' conftest.$ac_ext >&5
7394 lt_cv_ld_exported_symbols_list=no
7397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7398 conftest$ac_exeext conftest.$ac_ext
7399 LDFLAGS="$save_LDFLAGS"
7402 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7403 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7405 rhapsody* | darwin1.[0123])
7406 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7408 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7410 # if running on 10.5 or later, the deployment target defaults
7411 # to the OS version, if on x86, and 10.4, the deployment
7412 # target defaults to 10.4. Don't you love it?
7413 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7414 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7415 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7417 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7419 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7423 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7424 _lt_dar_single_mod='$single_module'
7426 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7427 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7429 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7431 if test "$DSYMUTIL" != ":"; then
7432 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7443 # Check whether --enable-libtool-lock was given.
7444 if test "${enable_libtool_lock+set}" = set; then
7445 enableval=$enable_libtool_lock;
7448 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7451 # Check whether --with-pic was given.
7452 if test "${with_pic+set}" = set; then
7453 withval=$with_pic; pic_mode="$withval"
7458 test -z "$pic_mode" && pic_mode=default
7460 # Use C for the default configuration in the libtool script
7464 ac_cpp='$CPP $CPPFLAGS'
7465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7470 # Source file extension for C test sources.
7473 # Object file extension for compiled C test sources.
7477 # Code to be used in simple compile tests
7478 lt_simple_compile_test_code="int some_variable = 0;"
7480 # Code to be used in simple link tests
7481 lt_simple_link_test_code='int main(){return(0);}'
7484 # If no C compiler was specified, use CC.
7487 # If no C compiler flags were specified, use CFLAGS.
7488 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7490 # Allow CC to be a program name with arguments.
7494 # save warnings/boilerplate of simple test code
7495 ac_outfile=conftest.$ac_objext
7496 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7497 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7498 _lt_compiler_boilerplate=`cat conftest.err`
7501 ac_outfile=conftest.$ac_objext
7502 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7503 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7504 _lt_linker_boilerplate=`cat conftest.err`
7509 lt_prog_compiler_no_builtin_flag=
7511 if test "$GCC" = yes; then
7512 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7515 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7516 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7517 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7518 echo $ECHO_N "(cached) $ECHO_C" >&6
7520 lt_cv_prog_compiler_rtti_exceptions=no
7521 ac_outfile=conftest.$ac_objext
7522 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7523 lt_compiler_flag="-fno-rtti -fno-exceptions"
7524 # Insert the option either (1) after the last *FLAGS variable, or
7525 # (2) before a word containing "conftest.", or (3) at the end.
7526 # Note that $ac_compile itself does not contain backslashes and begins
7527 # with a dollar sign (not a hyphen), so the echo should work correctly.
7528 # The option is referenced via a variable to avoid confusing sed.
7529 lt_compile=`echo "$ac_compile" | $SED \
7530 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7531 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7532 -e 's:$: $lt_compiler_flag:'`
7533 (eval echo "\"\$as_me:7533: $lt_compile\"" >&5)
7534 (eval "$lt_compile" 2>conftest.err)
7536 cat conftest.err >&5
7537 echo "$as_me:7537: \$? = $ac_status" >&5
7538 if (exit $ac_status) && test -s "$ac_outfile"; then
7539 # The compiler can only warn and ignore the option if not recognized
7540 # So say no if there are warnings other than the usual output.
7541 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7542 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7543 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7544 lt_cv_prog_compiler_rtti_exceptions=yes
7550 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7551 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7553 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7554 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7561 lt_prog_compiler_wl=
7562 lt_prog_compiler_pic=
7563 lt_prog_compiler_static=
7565 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7566 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7568 if test "$GCC" = yes; then
7569 lt_prog_compiler_wl='-Wl,'
7570 lt_prog_compiler_static='-static'
7574 # All AIX code is PIC.
7575 if test "$host_cpu" = ia64; then
7576 # AIX 5 now supports IA64 processor
7577 lt_prog_compiler_static='-Bstatic'
7582 # FIXME: we need at least 68020 code to build shared libraries, but
7583 # adding the `-m68020' flag to GCC prevents building anything better,
7585 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7588 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7589 # PIC is the default for these OSes.
7592 mingw* | cygwin* | pw32* | os2*)
7593 # This hack is so that the source file can tell whether it is being
7594 # built for inclusion in a dll (and should export symbols for example).
7595 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7596 # (--disable-auto-import) libraries
7597 lt_prog_compiler_pic='-DDLL_EXPORT'
7600 darwin* | rhapsody*)
7601 # PIC is the default on this platform
7602 # Common symbols not allowed in MH_DYLIB files
7603 lt_prog_compiler_pic='-fno-common'
7607 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7608 # Instead, we relocate shared libraries at runtime.
7612 # Just because we use GCC doesn't mean we suddenly get shared libraries
7613 # on systems that don't support them.
7614 lt_prog_compiler_can_build_shared=no
7619 if test -d /usr/nec; then
7620 lt_prog_compiler_pic=-Kconform_pic
7625 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7632 lt_prog_compiler_pic='-fPIC'
7638 lt_prog_compiler_pic='-fPIC'
7642 # PORTME Check for flag to pass linker flags through the system compiler.
7645 lt_prog_compiler_wl='-Wl,'
7646 if test "$host_cpu" = ia64; then
7647 # AIX 5 now supports IA64 processor
7648 lt_prog_compiler_static='-Bstatic'
7650 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7654 # PIC is the default on this platform
7655 # Common symbols not allowed in MH_DYLIB files
7656 case $cc_basename in
7658 lt_prog_compiler_pic='-qnocommon'
7659 lt_prog_compiler_wl='-Wl,'
7664 mingw* | cygwin* | pw32* | os2*)
7665 # This hack is so that the source file can tell whether it is being
7666 # built for inclusion in a dll (and should export symbols for example).
7667 lt_prog_compiler_pic='-DDLL_EXPORT'
7670 hpux9* | hpux10* | hpux11*)
7671 lt_prog_compiler_wl='-Wl,'
7672 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7679 lt_prog_compiler_pic='+Z'
7682 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7683 lt_prog_compiler_static='${wl}-a ${wl}archive'
7686 irix5* | irix6* | nonstopux*)
7687 lt_prog_compiler_wl='-Wl,'
7688 # PIC (with -KPIC) is the default.
7689 lt_prog_compiler_static='-non_shared'
7693 lt_prog_compiler_pic='-KPIC'
7694 lt_prog_compiler_static='-Bstatic'
7697 linux* | k*bsd*-gnu)
7698 case $cc_basename in
7700 lt_prog_compiler_wl='-Wl,'
7701 lt_prog_compiler_pic='-KPIC'
7702 lt_prog_compiler_static='-static'
7704 pgcc* | pgf77* | pgf90* | pgf95*)
7705 # Portland Group compilers (*not* the Pentium gcc compiler,
7706 # which looks to be a dead project)
7707 lt_prog_compiler_wl='-Wl,'
7708 lt_prog_compiler_pic='-fpic'
7709 lt_prog_compiler_static='-Bstatic'
7712 lt_prog_compiler_wl='-Wl,'
7713 # All Alpha code is PIC.
7714 lt_prog_compiler_static='-non_shared'
7717 case `$CC -V 2>&1 | sed 5q` in
7720 lt_prog_compiler_pic='-KPIC'
7721 lt_prog_compiler_static='-Bstatic'
7722 lt_prog_compiler_wl='-Wl,'
7725 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7726 lt_prog_compiler_pic='-KPIC'
7727 lt_prog_compiler_static='-Bstatic'
7728 lt_prog_compiler_wl=''
7735 osf3* | osf4* | osf5*)
7736 lt_prog_compiler_wl='-Wl,'
7737 # All OSF/1 code is PIC.
7738 lt_prog_compiler_static='-non_shared'
7742 lt_prog_compiler_static='-non_shared'
7746 lt_prog_compiler_pic='-KPIC'
7747 lt_prog_compiler_static='-Bstatic'
7748 case $cc_basename in
7750 lt_prog_compiler_wl='-Qoption ld ';;
7752 lt_prog_compiler_wl='-Wl,';;
7757 lt_prog_compiler_wl='-Qoption ld '
7758 lt_prog_compiler_pic='-PIC'
7759 lt_prog_compiler_static='-Bstatic'
7762 sysv4 | sysv4.2uw2* | sysv4.3*)
7763 lt_prog_compiler_wl='-Wl,'
7764 lt_prog_compiler_pic='-KPIC'
7765 lt_prog_compiler_static='-Bstatic'
7769 if test -d /usr/nec ;then
7770 lt_prog_compiler_pic='-Kconform_pic'
7771 lt_prog_compiler_static='-Bstatic'
7775 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7776 lt_prog_compiler_wl='-Wl,'
7777 lt_prog_compiler_pic='-KPIC'
7778 lt_prog_compiler_static='-Bstatic'
7782 lt_prog_compiler_wl='-Wl,'
7783 lt_prog_compiler_can_build_shared=no
7787 lt_prog_compiler_pic='-pic'
7788 lt_prog_compiler_static='-Bstatic'
7792 lt_prog_compiler_can_build_shared=no
7797 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7798 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7801 # Check to make sure the PIC flag actually works.
7803 if test -n "$lt_prog_compiler_pic"; then
7805 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7806 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7807 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7808 echo $ECHO_N "(cached) $ECHO_C" >&6
7810 lt_cv_prog_compiler_pic_works=no
7811 ac_outfile=conftest.$ac_objext
7812 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7813 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7814 # Insert the option either (1) after the last *FLAGS variable, or
7815 # (2) before a word containing "conftest.", or (3) at the end.
7816 # Note that $ac_compile itself does not contain backslashes and begins
7817 # with a dollar sign (not a hyphen), so the echo should work correctly.
7818 # The option is referenced via a variable to avoid confusing sed.
7819 lt_compile=`echo "$ac_compile" | $SED \
7820 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7821 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7822 -e 's:$: $lt_compiler_flag:'`
7823 (eval echo "\"\$as_me:7823: $lt_compile\"" >&5)
7824 (eval "$lt_compile" 2>conftest.err)
7826 cat conftest.err >&5
7827 echo "$as_me:7827: \$? = $ac_status" >&5
7828 if (exit $ac_status) && test -s "$ac_outfile"; then
7829 # The compiler can only warn and ignore the option if not recognized
7830 # So say no if there are warnings other than the usual output.
7831 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7832 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7833 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7834 lt_cv_prog_compiler_pic_works=yes
7840 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7841 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7843 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7844 case $lt_prog_compiler_pic in
7846 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7849 lt_prog_compiler_pic=
7850 lt_prog_compiler_can_build_shared=no
7855 # For platforms which do not support PIC, -DPIC is meaningless:
7857 lt_prog_compiler_pic=
7860 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7865 # Check to make sure the static flag actually works.
7867 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7868 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7869 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7870 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7871 echo $ECHO_N "(cached) $ECHO_C" >&6
7873 lt_cv_prog_compiler_static_works=no
7874 save_LDFLAGS="$LDFLAGS"
7875 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7876 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7877 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7878 # The linker can only warn and ignore the option if not recognized
7879 # So say no if there are warnings
7880 if test -s conftest.err; then
7881 # Append any errors to the config.log.
7882 cat conftest.err 1>&5
7883 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7884 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7885 if diff conftest.exp conftest.er2 >/dev/null; then
7886 lt_cv_prog_compiler_static_works=yes
7889 lt_cv_prog_compiler_static_works=yes
7893 LDFLAGS="$save_LDFLAGS"
7896 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7897 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7899 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7902 lt_prog_compiler_static=
7906 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7907 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7908 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7909 echo $ECHO_N "(cached) $ECHO_C" >&6
7911 lt_cv_prog_compiler_c_o=no
7912 $rm -r conftest 2>/dev/null
7916 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7918 lt_compiler_flag="-o out/conftest2.$ac_objext"
7919 # Insert the option either (1) after the last *FLAGS variable, or
7920 # (2) before a word containing "conftest.", or (3) at the end.
7921 # Note that $ac_compile itself does not contain backslashes and begins
7922 # with a dollar sign (not a hyphen), so the echo should work correctly.
7923 lt_compile=`echo "$ac_compile" | $SED \
7924 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7925 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7926 -e 's:$: $lt_compiler_flag:'`
7927 (eval echo "\"\$as_me:7927: $lt_compile\"" >&5)
7928 (eval "$lt_compile" 2>out/conftest.err)
7930 cat out/conftest.err >&5
7931 echo "$as_me:7931: \$? = $ac_status" >&5
7932 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7934 # The compiler can only warn and ignore the option if not recognized
7935 # So say no if there are warnings
7936 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7937 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7938 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7939 lt_cv_prog_compiler_c_o=yes
7944 # SGI C++ compiler will create directory out/ii_files/ for
7945 # template instantiation
7946 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7947 $rm out/* && rmdir out
7953 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7954 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7957 hard_links="nottested"
7958 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7959 # do not overwrite the value of need_locks provided by the user
7960 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7961 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7964 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7966 ln conftest.a conftest.b 2>&5 || hard_links=no
7967 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7968 { echo "$as_me:$LINENO: result: $hard_links" >&5
7969 echo "${ECHO_T}$hard_links" >&6; }
7970 if test "$hard_links" = no; then
7971 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7972 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7979 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7980 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7983 allow_undefined_flag=
7984 enable_shared_with_static_runtimes=no
7986 archive_expsym_cmds=
7987 old_archive_From_new_cmds=
7988 old_archive_from_expsyms_cmds=
7989 export_dynamic_flag_spec=
7990 whole_archive_flag_spec=
7991 thread_safe_flag_spec=
7992 hardcode_libdir_flag_spec=
7993 hardcode_libdir_flag_spec_ld=
7994 hardcode_libdir_separator=
7997 hardcode_shlibpath_var=unsupported
7998 link_all_deplibs=unknown
7999 hardcode_automatic=no
8002 always_export_symbols=no
8003 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8004 # include_expsyms should be a list of space-separated symbols to be *always*
8005 # included in the symbol list
8007 # exclude_expsyms can be an extended regexp of symbols to exclude
8008 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8009 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8010 # as well as any symbol that contains `d'.
8011 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8012 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8013 # platforms (ab)use it in PIC code, but their linkers get confused if
8014 # the symbol is explicitly referenced. Since portable code cannot
8015 # rely on this symbol name, it's probably fine to never include it in
8016 # preloaded symbol tables.
8017 # Exclude shared library initialization/finalization symbols.
8018 extract_expsyms_cmds=
8019 # Just being paranoid about ensuring that cc_basename is set.
8020 for cc_temp in $compiler""; do
8022 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8023 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8028 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8031 cygwin* | mingw* | pw32*)
8032 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8033 # When not using gcc, we currently assume that we are using
8034 # Microsoft Visual C++.
8035 if test "$GCC" != yes; then
8040 # we just hope/assume this is gcc and not c89 (= MSVC++)
8049 if test "$with_gnu_ld" = yes; then
8050 # If archive_cmds runs LD, not CC, wlarc should be empty
8053 # Set some defaults for GNU ld with shared library support. These
8054 # are reset later if shared libraries are not supported. Putting them
8055 # here allows them to be overridden if necessary.
8056 runpath_var=LD_RUN_PATH
8057 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8058 export_dynamic_flag_spec='${wl}--export-dynamic'
8059 # ancient GNU ld didn't support --whole-archive et. al.
8060 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8061 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8063 whole_archive_flag_spec=
8065 supports_anon_versioning=no
8066 case `$LD -v 2>/dev/null` in
8067 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8068 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8069 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8070 *\ 2.11.*) ;; # other 2.11 versions
8071 *) supports_anon_versioning=yes ;;
8074 # See if GNU ld supports shared libraries.
8077 # On AIX/PPC, the GNU linker is very broken
8078 if test "$host_cpu" != ia64; then
8082 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8083 *** to be unable to reliably create shared libraries on AIX.
8084 *** Therefore, libtool is disabling shared libraries support. If you
8085 *** really care for shared libraries, you may want to modify your PATH
8086 *** so that a non-GNU linker is found, and then restart.
8093 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)'
8094 hardcode_libdir_flag_spec='-L$libdir'
8095 hardcode_minus_L=yes
8097 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8098 # that the semantics of dynamic libraries on AmigaOS, at least up
8099 # to version 4, is to share data among multiple programs linked
8100 # with the same dynamic library. Since this doesn't match the
8101 # behavior of shared libraries on other platforms, we can't use
8107 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8108 allow_undefined_flag=unsupported
8109 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8110 # support --undefined. This deserves some investigation. FIXME
8111 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8117 cygwin* | mingw* | pw32*)
8118 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8119 # as there is no search path for DLLs.
8120 hardcode_libdir_flag_spec='-L$libdir'
8121 allow_undefined_flag=unsupported
8122 always_export_symbols=no
8123 enable_shared_with_static_runtimes=yes
8124 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8126 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8127 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8128 # If the export-symbols file already is a .def file (1st line
8129 # is EXPORTS), use it as is; otherwise, prepend...
8130 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8131 cp $export_symbols $output_objdir/$soname.def;
8133 echo EXPORTS > $output_objdir/$soname.def;
8134 cat $export_symbols >> $output_objdir/$soname.def;
8136 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8144 hardcode_shlibpath_var=no
8145 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8146 export_dynamic_flag_spec='${wl}-E'
8147 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8148 # Instead, shared libraries are loaded at an image base (0x10000000 by
8149 # default) and relocated if they conflict, which is a slow very memory
8150 # consuming and fragmenting process. To avoid this, we pick a random,
8151 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8152 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8153 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8154 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'
8157 gnu* | linux* | k*bsd*-gnu)
8158 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8160 case $cc_basename,$host_cpu in
8161 pgcc*) # Portland Group C compiler
8162 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'
8163 tmp_addflag=' $pic_flag'
8165 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8166 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'
8167 tmp_addflag=' $pic_flag -Mnomain' ;;
8168 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8169 tmp_addflag=' -i_dynamic' ;;
8170 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8171 tmp_addflag=' -i_dynamic -nofor_main' ;;
8172 ifc* | ifort*) # Intel Fortran compiler
8173 tmp_addflag=' -nofor_main' ;;
8175 case `$CC -V 2>&1 | sed 5q` in
8176 *Sun\ C*) # Sun C 5.9
8177 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'
8178 tmp_sharedflag='-G' ;;
8179 *Sun\ F*) # Sun Fortran 8.3
8180 tmp_sharedflag='-G' ;;
8182 tmp_sharedflag='-shared' ;;
8184 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8186 if test $supports_anon_versioning = yes; then
8187 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8188 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8189 $echo "local: *; };" >> $output_objdir/$libname.ver~
8190 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8198 netbsd* | netbsdelf*-gnu)
8199 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8200 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8203 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8204 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8209 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8213 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8214 *** create shared libraries on Solaris systems. Therefore, libtool
8215 *** is disabling shared libraries support. We urge you to upgrade GNU
8216 *** binutils to release 2.9.1 or newer. Another option is to modify
8217 *** your PATH or compiler configuration so that the native linker is
8218 *** used, and then restart.
8221 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8222 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8223 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8229 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8230 case `$LD -v 2>&1` in
8231 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8235 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8236 *** reliably create shared libraries on SCO systems. Therefore, libtool
8237 *** is disabling shared libraries support. We urge you to upgrade GNU
8238 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8239 *** your PATH or compiler configuration so that the native linker is
8240 *** used, and then restart.
8245 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8246 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8247 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8248 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8257 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8260 hardcode_shlibpath_var=no
8264 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8265 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8266 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8273 if test "$ld_shlibs" = no; then
8275 hardcode_libdir_flag_spec=
8276 export_dynamic_flag_spec=
8277 whole_archive_flag_spec=
8280 # PORTME fill in a description of your system's linker (not GNU ld)
8283 allow_undefined_flag=unsupported
8284 always_export_symbols=yes
8285 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'
8286 # Note: this linker hardcodes the directories in LIBPATH if there
8287 # are no directories specified by -L.
8288 hardcode_minus_L=yes
8289 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8290 # Neither direct hardcoding nor static linking is supported with a
8292 hardcode_direct=unsupported
8297 if test "$host_cpu" = ia64; then
8298 # On IA64, the linker does run time linking by default, so we don't
8299 # have to do anything special.
8300 aix_use_runtimelinking=no
8301 exp_sym_flag='-Bexport'
8304 # If we're using GNU nm, then we don't want the "-C" option.
8305 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8306 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8307 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'
8309 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'
8311 aix_use_runtimelinking=no
8313 # Test if we are trying to use run time linking or normal
8314 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8315 # need to do runtime linking.
8316 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8317 for ld_flag in $LDFLAGS; do
8318 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8319 aix_use_runtimelinking=yes
8326 exp_sym_flag='-bexport'
8327 no_entry_flag='-bnoentry'
8330 # When large executables or shared objects are built, AIX ld can
8331 # have problems creating the table of contents. If linking a library
8332 # or program results in "error TOC overflow" add -mminimal-toc to
8333 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8334 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8338 hardcode_libdir_separator=':'
8339 link_all_deplibs=yes
8341 if test "$GCC" = yes; then
8342 case $host_os in aix4.[012]|aix4.[012].*)
8343 # We only want to do this on AIX 4.2 and lower, the check
8344 # below for broken collect2 doesn't work under 4.3+
8345 collect2name=`${CC} -print-prog-name=collect2`
8346 if test -f "$collect2name" && \
8347 strings "$collect2name" | grep resolve_lib_name >/dev/null
8349 # We have reworked collect2
8352 # We have old collect2
8353 hardcode_direct=unsupported
8354 # It fails to find uninstalled libraries when the uninstalled
8355 # path is not listed in the libpath. Setting hardcode_minus_L
8356 # to unsupported forces relinking
8357 hardcode_minus_L=yes
8358 hardcode_libdir_flag_spec='-L$libdir'
8359 hardcode_libdir_separator=
8363 shared_flag='-shared'
8364 if test "$aix_use_runtimelinking" = yes; then
8365 shared_flag="$shared_flag "'${wl}-G'
8369 if test "$host_cpu" = ia64; then
8370 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8371 # chokes on -Wl,-G. The following line is correct:
8374 if test "$aix_use_runtimelinking" = yes; then
8375 shared_flag='${wl}-G'
8377 shared_flag='${wl}-bM:SRE'
8382 # It seems that -bexpall does not export symbols beginning with
8383 # underscore (_), so it is better to generate a list of symbols to export.
8384 always_export_symbols=yes
8385 if test "$aix_use_runtimelinking" = yes; then
8386 # Warning - without using the other runtime loading flags (-brtl),
8387 # -berok will link without error, but may produce a broken library.
8388 allow_undefined_flag='-berok'
8389 # Determine the default libpath from the value encoded in an empty executable.
8390 cat >conftest.$ac_ext <<_ACEOF
8393 cat confdefs.h >>conftest.$ac_ext
8394 cat >>conftest.$ac_ext <<_ACEOF
8395 /* end confdefs.h. */
8405 rm -f conftest.$ac_objext conftest$ac_exeext
8406 if { (ac_try="$ac_link"
8408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8409 *) ac_try_echo=$ac_try;;
8411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8412 (eval "$ac_link") 2>conftest.er1
8414 grep -v '^ *+' conftest.er1 >conftest.err
8416 cat conftest.err >&5
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); } && {
8419 test -z "$ac_c_werror_flag" ||
8420 test ! -s conftest.err
8421 } && test -s conftest$ac_exeext &&
8422 $as_test_x conftest$ac_exeext; then
8424 lt_aix_libpath_sed='
8425 /Import File Strings/,/^$/ {
8431 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8432 # Check for a 64-bit object if we didn't find anything.
8433 if test -z "$aix_libpath"; then
8434 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8437 echo "$as_me: failed program was:" >&5
8438 sed 's/^/| /' conftest.$ac_ext >&5
8443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8444 conftest$ac_exeext conftest.$ac_ext
8445 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8447 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8448 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"
8450 if test "$host_cpu" = ia64; then
8451 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8452 allow_undefined_flag="-z nodefs"
8453 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"
8455 # Determine the default libpath from the value encoded in an empty executable.
8456 cat >conftest.$ac_ext <<_ACEOF
8459 cat confdefs.h >>conftest.$ac_ext
8460 cat >>conftest.$ac_ext <<_ACEOF
8461 /* end confdefs.h. */
8471 rm -f conftest.$ac_objext conftest$ac_exeext
8472 if { (ac_try="$ac_link"
8474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8475 *) ac_try_echo=$ac_try;;
8477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8478 (eval "$ac_link") 2>conftest.er1
8480 grep -v '^ *+' conftest.er1 >conftest.err
8482 cat conftest.err >&5
8483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484 (exit $ac_status); } && {
8485 test -z "$ac_c_werror_flag" ||
8486 test ! -s conftest.err
8487 } && test -s conftest$ac_exeext &&
8488 $as_test_x conftest$ac_exeext; then
8490 lt_aix_libpath_sed='
8491 /Import File Strings/,/^$/ {
8497 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8498 # Check for a 64-bit object if we didn't find anything.
8499 if test -z "$aix_libpath"; then
8500 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8503 echo "$as_me: failed program was:" >&5
8504 sed 's/^/| /' conftest.$ac_ext >&5
8509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8510 conftest$ac_exeext conftest.$ac_ext
8511 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8513 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8514 # Warning - without using the other run time loading flags,
8515 # -berok will link without error, but may produce a broken library.
8516 no_undefined_flag=' ${wl}-bernotok'
8517 allow_undefined_flag=' ${wl}-berok'
8518 # Exported symbols can be pulled into shared objects from archives
8519 whole_archive_flag_spec='$convenience'
8520 archive_cmds_need_lc=yes
8521 # This is similar to how AIX traditionally builds its shared libraries.
8522 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'
8528 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)'
8529 hardcode_libdir_flag_spec='-L$libdir'
8530 hardcode_minus_L=yes
8531 # see comment about different semantics on the GNU ld section
8536 export_dynamic_flag_spec=-rdynamic
8539 cygwin* | mingw* | pw32*)
8540 # When not using gcc, we currently assume that we are using
8541 # Microsoft Visual C++.
8542 # hardcode_libdir_flag_spec is actually meaningless, as there is
8543 # no search path for DLLs.
8544 hardcode_libdir_flag_spec=' '
8545 allow_undefined_flag=unsupported
8546 # Tell ltmain to make .lib files, not .a files.
8548 # Tell ltmain to make .dll files, not .so files.
8550 # FIXME: Setting linknames here is a bad hack.
8551 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8552 # The linker will automatically build a .lib file if we build a DLL.
8553 old_archive_From_new_cmds='true'
8554 # FIXME: Should let the user specify the lib program.
8555 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8556 fix_srcfile_path='`cygpath -w "$srcfile"`'
8557 enable_shared_with_static_runtimes=yes
8560 darwin* | rhapsody*)
8562 rhapsody* | darwin1.[012])
8563 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8566 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8567 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8569 case ${MACOSX_DEPLOYMENT_TARGET} in
8571 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8574 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8580 archive_cmds_need_lc=no
8582 hardcode_automatic=yes
8583 hardcode_shlibpath_var=unsupported
8584 whole_archive_flag_spec=''
8585 link_all_deplibs=yes
8586 if test "$GCC" = yes ; then
8587 output_verbose_link_cmd='echo'
8588 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8589 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8590 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8591 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8593 case $cc_basename in
8595 output_verbose_link_cmd='echo'
8596 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8597 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8598 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8599 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}'
8600 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}'
8610 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8611 hardcode_libdir_flag_spec='-L$libdir'
8612 hardcode_shlibpath_var=no
8619 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8620 # support. Future versions do this automatically, but an explicit c++rt0.o
8621 # does not break anything, and helps significantly (at the cost of a little
8624 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8625 hardcode_libdir_flag_spec='-R$libdir'
8627 hardcode_shlibpath_var=no
8630 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8632 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8634 hardcode_minus_L=yes
8635 hardcode_shlibpath_var=no
8638 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8639 freebsd* | dragonfly*)
8640 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8641 hardcode_libdir_flag_spec='-R$libdir'
8643 hardcode_shlibpath_var=no
8647 if test "$GCC" = yes; then
8648 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'
8650 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'
8652 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8653 hardcode_libdir_separator=:
8656 # hardcode_minus_L: Not really in the search PATH,
8657 # but as the default location of the library.
8658 hardcode_minus_L=yes
8659 export_dynamic_flag_spec='${wl}-E'
8663 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8664 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8666 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8668 if test "$with_gnu_ld" = no; then
8669 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8670 hardcode_libdir_separator=:
8673 export_dynamic_flag_spec='${wl}-E'
8675 # hardcode_minus_L: Not really in the search PATH,
8676 # but as the default location of the library.
8677 hardcode_minus_L=yes
8682 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8685 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8688 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8691 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8697 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8700 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8703 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8707 if test "$with_gnu_ld" = no; then
8708 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8709 hardcode_libdir_separator=:
8713 hardcode_libdir_flag_spec_ld='+b $libdir'
8715 hardcode_shlibpath_var=no
8719 export_dynamic_flag_spec='${wl}-E'
8721 # hardcode_minus_L: Not really in the search PATH,
8722 # but as the default location of the library.
8723 hardcode_minus_L=yes
8729 irix5* | irix6* | nonstopux*)
8730 if test "$GCC" = yes; then
8731 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'
8733 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'
8734 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8736 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8737 hardcode_libdir_separator=:
8738 link_all_deplibs=yes
8741 netbsd* | netbsdelf*-gnu)
8742 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8743 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8745 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8747 hardcode_libdir_flag_spec='-R$libdir'
8749 hardcode_shlibpath_var=no
8753 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8755 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8756 hardcode_libdir_separator=:
8757 hardcode_shlibpath_var=no
8761 if test -f /usr/libexec/ld.so; then
8763 hardcode_shlibpath_var=no
8764 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8765 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8766 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8767 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8768 export_dynamic_flag_spec='${wl}-E'
8771 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8772 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8773 hardcode_libdir_flag_spec='-R$libdir'
8776 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8777 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8787 hardcode_libdir_flag_spec='-L$libdir'
8788 hardcode_minus_L=yes
8789 allow_undefined_flag=unsupported
8790 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'
8791 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8795 if test "$GCC" = yes; then
8796 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8797 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'
8799 allow_undefined_flag=' -expect_unresolved \*'
8800 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'
8802 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8803 hardcode_libdir_separator=:
8806 osf4* | osf5*) # as osf3* with the addition of -msym flag
8807 if test "$GCC" = yes; then
8808 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8809 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'
8810 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8812 allow_undefined_flag=' -expect_unresolved \*'
8813 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'
8814 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8815 $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'
8817 # Both c and cxx compiler support -rpath directly
8818 hardcode_libdir_flag_spec='-rpath $libdir'
8820 hardcode_libdir_separator=:
8824 no_undefined_flag=' -z text'
8825 if test "$GCC" = yes; then
8827 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8828 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8829 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8832 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8833 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8834 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8836 hardcode_libdir_flag_spec='-R$libdir'
8837 hardcode_shlibpath_var=no
8839 solaris2.[0-5] | solaris2.[0-5].*) ;;
8841 # The compiler driver will combine and reorder linker options,
8842 # but understands `-z linker_flag'. GCC discards it without `$wl',
8843 # but is careful enough not to reorder.
8844 # Supported since Solaris 2.6 (maybe 2.5.1?)
8845 if test "$GCC" = yes; then
8846 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8848 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8852 link_all_deplibs=yes
8856 if test "x$host_vendor" = xsequent; then
8857 # Use $CC to link under sequent, because it throws in some extra .o
8858 # files that make .init and .fini sections work.
8859 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8861 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8863 hardcode_libdir_flag_spec='-L$libdir'
8865 hardcode_minus_L=yes
8866 hardcode_shlibpath_var=no
8870 case $host_vendor in
8872 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8873 hardcode_direct=yes # is this really true???
8876 ## LD is ld it makes a PLAMLIB
8877 ## CC just makes a GrossModule.
8878 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8879 reload_cmds='$CC -r -o $output$reload_objs'
8883 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8884 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8887 runpath_var='LD_RUN_PATH'
8888 hardcode_shlibpath_var=no
8892 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8893 hardcode_shlibpath_var=no
8894 export_dynamic_flag_spec='-Bexport'
8898 if test -d /usr/nec; then
8899 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8900 hardcode_shlibpath_var=no
8901 runpath_var=LD_RUN_PATH
8902 hardcode_runpath_var=yes
8907 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8908 no_undefined_flag='${wl}-z,text'
8909 archive_cmds_need_lc=no
8910 hardcode_shlibpath_var=no
8911 runpath_var='LD_RUN_PATH'
8913 if test "$GCC" = yes; then
8914 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8915 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8917 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8918 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8922 sysv5* | sco3.2v5* | sco5v6*)
8923 # Note: We can NOT use -z defs as we might desire, because we do not
8924 # link with -lc, and that would cause any symbols used from libc to
8925 # always be unresolved, which means just about no library would
8926 # ever link correctly. If we're not using GNU ld we use -z text
8927 # though, which does catch some bad symbols but isn't as heavy-handed
8929 no_undefined_flag='${wl}-z,text'
8930 allow_undefined_flag='${wl}-z,nodefs'
8931 archive_cmds_need_lc=no
8932 hardcode_shlibpath_var=no
8933 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8934 hardcode_libdir_separator=':'
8935 link_all_deplibs=yes
8936 export_dynamic_flag_spec='${wl}-Bexport'
8937 runpath_var='LD_RUN_PATH'
8939 if test "$GCC" = yes; then
8940 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8941 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8943 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8944 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8949 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8950 hardcode_libdir_flag_spec='-L$libdir'
8951 hardcode_shlibpath_var=no
8960 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8961 echo "${ECHO_T}$ld_shlibs" >&6; }
8962 test "$ld_shlibs" = no && can_build_shared=no
8965 # Do we need to explicitly link libc?
8967 case "x$archive_cmds_need_lc" in
8969 # Assume -lc should be added
8970 archive_cmds_need_lc=yes
8972 if test "$enable_shared" = yes && test "$GCC" = yes; then
8973 case $archive_cmds in
8975 # FIXME: we may have to deal with multi-command sequences.
8978 # Test whether the compiler implicitly links with -lc since on some
8979 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8980 # to ld, don't add -lc before -lgcc.
8981 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8982 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8984 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8987 (eval $ac_compile) 2>&5
8989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990 (exit $ac_status); } 2>conftest.err; then
8993 libobjs=conftest.$ac_objext
8995 wl=$lt_prog_compiler_wl
8996 pic_flag=$lt_prog_compiler_pic
9002 lt_save_allow_undefined_flag=$allow_undefined_flag
9003 allow_undefined_flag=
9004 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9005 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008 (exit $ac_status); }
9010 archive_cmds_need_lc=no
9012 archive_cmds_need_lc=yes
9014 allow_undefined_flag=$lt_save_allow_undefined_flag
9016 cat conftest.err 1>&5
9019 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9020 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9027 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9028 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9030 libname_spec='lib$name'
9038 shlibpath_overrides_runpath=unknown
9040 dynamic_linker="$host_os ld.so"
9041 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9043 if test "$GCC" = yes; then
9045 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9046 *) lt_awk_arg="/^libraries:/" ;;
9048 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9049 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9050 # if the path contains ";" then we assume it to be the separator
9051 # otherwise default to the standard path separator (i.e. ":") - it is
9052 # assumed that no part of a normal pathname contains ";" but that should
9053 # okay in the real world where ";" in dirpaths is itself problematic.
9054 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9056 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9058 # Ok, now we have the path, separated by spaces, we can step through it
9059 # and add multilib dir if necessary.
9060 lt_tmp_lt_search_path_spec=
9061 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9062 for lt_sys_path in $lt_search_path_spec; do
9063 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9064 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9066 test -d "$lt_sys_path" && \
9067 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9070 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9071 BEGIN {RS=" "; FS="/|\n";} {
9074 for (lt_i = NF; lt_i > 0; lt_i--) {
9075 if ($lt_i != "" && $lt_i != ".") {
9076 if ($lt_i == "..") {
9079 if (lt_count == 0) {
9080 lt_foo="/" $lt_i lt_foo;
9087 if (lt_foo != "") { lt_freq[lt_foo]++; }
9088 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9090 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9092 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9094 need_lib_prefix=unknown
9095 hardcode_into_libs=no
9097 # when you set need_version to no, make sure it does not cause -set_version
9098 # flags to be left without arguments
9099 need_version=unknown
9104 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9105 shlibpath_var=LIBPATH
9107 # AIX 3 has no versioning support, so we append a major version to the name.
9108 soname_spec='${libname}${release}${shared_ext}$major'
9115 hardcode_into_libs=yes
9116 if test "$host_cpu" = ia64; then
9117 # AIX 5 supports IA64
9118 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9119 shlibpath_var=LD_LIBRARY_PATH
9121 # With GCC up to 2.95.x, collect2 would create an import file
9122 # for dependence libraries. The import file would start with
9123 # the line `#! .'. This would cause the generated library to
9124 # depend on `.', always an invalid library. This was fixed in
9125 # development snapshots of GCC prior to 3.0.
9127 aix4 | aix4.[01] | aix4.[01].*)
9128 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9130 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9137 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9138 # soname into executable. Probably we can add versioning support to
9139 # collect2, so additional links can be useful in future.
9140 if test "$aix_use_runtimelinking" = yes; then
9141 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9142 # instead of lib<name>.a to let people know that these are not
9143 # typical AIX shared libraries.
9144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9146 # We preserve .a as extension for shared libraries through AIX4.2
9147 # and later when we are not doing run time linking.
9148 library_names_spec='${libname}${release}.a $libname.a'
9149 soname_spec='${libname}${release}${shared_ext}$major'
9151 shlibpath_var=LIBPATH
9156 library_names_spec='$libname.ixlibrary $libname.a'
9157 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9158 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'
9162 library_names_spec='${libname}${shared_ext}'
9163 dynamic_linker="$host_os ld.so"
9164 shlibpath_var=LIBRARY_PATH
9170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9171 soname_spec='${libname}${release}${shared_ext}$major'
9172 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9173 shlibpath_var=LD_LIBRARY_PATH
9174 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9175 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9176 # the default ld.so.conf also contains /usr/contrib/lib and
9177 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9178 # libtool to hard-code these into programs
9181 cygwin* | mingw* | pw32*)
9182 version_type=windows
9187 case $GCC,$host_os in
9188 yes,cygwin* | yes,mingw* | yes,pw32*)
9189 library_names_spec='$libname.dll.a'
9190 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9191 postinstall_cmds='base_file=`basename \${file}`~
9192 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9193 dldir=$destdir/`dirname \$dlpath`~
9194 test -d \$dldir || mkdir -p \$dldir~
9195 $install_prog $dir/$dlname \$dldir/$dlname~
9196 chmod a+x \$dldir/$dlname'
9197 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9198 dlpath=$dir/\$dldll~
9200 shlibpath_overrides_runpath=yes
9204 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9205 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9206 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9209 # MinGW DLLs use traditional 'lib' prefix
9210 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9211 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9212 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9213 # It is most probably a Windows format PATH printed by
9214 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9215 # path with ; separators, and with drive letters. We can handle the
9216 # drive letters (cygwin fileutils understands them), so leave them,
9217 # especially as we might pass files found there to a mingw objdump,
9218 # which wouldn't understand a cygwinified path. Ahh.
9219 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9221 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9225 # pw32 DLLs use 'pw' prefix rather than 'lib'
9226 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9232 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9235 dynamic_linker='Win32 ld.exe'
9236 # FIXME: first we should search . and the directory the executable is in
9240 darwin* | rhapsody*)
9241 dynamic_linker="$host_os dyld"
9245 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9246 soname_spec='${libname}${release}${major}$shared_ext'
9247 shlibpath_overrides_runpath=yes
9248 shlibpath_var=DYLD_LIBRARY_PATH
9249 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9251 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9252 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9260 soname_spec='${libname}${release}${shared_ext}$major'
9261 shlibpath_var=LD_LIBRARY_PATH
9268 freebsd* | dragonfly*)
9269 # DragonFly does not have aout. When/if they implement a new
9270 # versioning mechanism, adjust this.
9271 if test -x /usr/bin/objformat; then
9272 objformat=`/usr/bin/objformat`
9275 freebsd[123]*) objformat=aout ;;
9279 version_type=freebsd-$objformat
9280 case $version_type in
9282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9287 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9291 shlibpath_var=LD_LIBRARY_PATH
9294 shlibpath_overrides_runpath=yes
9296 freebsd3.[01]* | freebsdelf3.[01]*)
9297 shlibpath_overrides_runpath=yes
9298 hardcode_into_libs=yes
9300 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9301 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9302 shlibpath_overrides_runpath=no
9303 hardcode_into_libs=yes
9305 *) # from 4.6 on, and DragonFly
9306 shlibpath_overrides_runpath=yes
9307 hardcode_into_libs=yes
9316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9317 soname_spec='${libname}${release}${shared_ext}$major'
9318 shlibpath_var=LD_LIBRARY_PATH
9319 hardcode_into_libs=yes
9322 hpux9* | hpux10* | hpux11*)
9323 # Give a soname corresponding to the major version so that dld.sl refuses to
9324 # link against other versions.
9331 hardcode_into_libs=yes
9332 dynamic_linker="$host_os dld.so"
9333 shlibpath_var=LD_LIBRARY_PATH
9334 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9336 soname_spec='${libname}${release}${shared_ext}$major'
9337 if test "X$HPUX_IA64_MODE" = X32; then
9338 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9340 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9342 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9346 hardcode_into_libs=yes
9347 dynamic_linker="$host_os dld.sl"
9348 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9349 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9351 soname_spec='${libname}${release}${shared_ext}$major'
9352 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9353 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9357 dynamic_linker="$host_os dld.sl"
9358 shlibpath_var=SHLIB_PATH
9359 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9361 soname_spec='${libname}${release}${shared_ext}$major'
9364 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9365 postinstall_cmds='chmod 555 $lib'
9372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9373 soname_spec='${libname}${release}${shared_ext}$major'
9374 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9375 shlibpath_var=LD_LIBRARY_PATH
9376 shlibpath_overrides_runpath=no
9377 hardcode_into_libs=yes
9380 irix5* | irix6* | nonstopux*)
9382 nonstopux*) version_type=nonstopux ;;
9384 if test "$lt_cv_prog_gnu_ld" = yes; then
9392 soname_spec='${libname}${release}${shared_ext}$major'
9393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9395 irix5* | nonstopux*)
9399 case $LD in # libtool.m4 will add one of these switches to LD
9400 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9401 libsuff= shlibsuff= libmagic=32-bit;;
9402 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9403 libsuff=32 shlibsuff=N32 libmagic=N32;;
9404 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9405 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9406 *) libsuff= shlibsuff= libmagic=never-match;;
9410 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9411 shlibpath_overrides_runpath=no
9412 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9413 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9414 hardcode_into_libs=yes
9417 # No shared lib support for Linux oldld, aout, or coff.
9418 linux*oldld* | linux*aout* | linux*coff*)
9422 # This must be Linux ELF.
9423 linux* | k*bsd*-gnu)
9427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9428 soname_spec='${libname}${release}${shared_ext}$major'
9429 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9430 shlibpath_var=LD_LIBRARY_PATH
9431 shlibpath_overrides_runpath=no
9432 # This implies no fast_install, which is unacceptable.
9433 # Some rework will be needed to allow for fast_install
9434 # before this can be enabled.
9435 hardcode_into_libs=yes
9437 # Append ld.so.conf contents to the search path
9438 if test -f /etc/ld.so.conf; then
9439 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' ' '`
9440 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9443 # We used to test for /lib/ld.so.1 and disable shared libraries on
9444 # powerpc, because MkLinux only supported shared libraries with the
9445 # GNU dynamic linker. Since this was broken with cross compilers,
9446 # most powerpc-linux boxes support dynamic linking these days and
9447 # people can always --disable-shared, the test was removed, and we
9448 # assume the GNU/Linux dynamic linker is in use.
9449 dynamic_linker='GNU/Linux ld.so'
9456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9457 soname_spec='${libname}${release}${shared_ext}$major'
9458 shlibpath_var=LD_LIBRARY_PATH
9459 shlibpath_overrides_runpath=no
9460 hardcode_into_libs=yes
9461 dynamic_linker='NetBSD ld.elf_so'
9468 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9470 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9471 dynamic_linker='NetBSD (a.out) ld.so'
9473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9474 soname_spec='${libname}${release}${shared_ext}$major'
9475 dynamic_linker='NetBSD ld.elf_so'
9477 shlibpath_var=LD_LIBRARY_PATH
9478 shlibpath_overrides_runpath=yes
9479 hardcode_into_libs=yes
9484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9485 shlibpath_var=LD_LIBRARY_PATH
9486 shlibpath_overrides_runpath=yes
9493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9494 soname_spec='${libname}${release}${shared_ext}$major'
9495 shlibpath_var=LD_LIBRARY_PATH
9496 shlibpath_overrides_runpath=yes
9501 sys_lib_dlsearch_path_spec="/usr/lib"
9503 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9505 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9506 *) need_version=no ;;
9508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9509 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9510 shlibpath_var=LD_LIBRARY_PATH
9511 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9513 openbsd2.[89] | openbsd2.[89].*)
9514 shlibpath_overrides_runpath=no
9517 shlibpath_overrides_runpath=yes
9521 shlibpath_overrides_runpath=yes
9526 libname_spec='$name'
9529 library_names_spec='$libname${shared_ext} $libname.a'
9530 dynamic_linker='OS/2 ld.exe'
9531 shlibpath_var=LIBPATH
9534 osf3* | osf4* | osf5*)
9538 soname_spec='${libname}${release}${shared_ext}$major'
9539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9540 shlibpath_var=LD_LIBRARY_PATH
9541 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9542 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9554 soname_spec='${libname}${release}${shared_ext}$major'
9555 shlibpath_var=LD_LIBRARY_PATH
9556 shlibpath_overrides_runpath=yes
9557 hardcode_into_libs=yes
9558 # ldd complains unless libraries are executable
9559 postinstall_cmds='chmod +x $lib'
9564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9565 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9566 shlibpath_var=LD_LIBRARY_PATH
9567 shlibpath_overrides_runpath=yes
9568 if test "$with_gnu_ld" = yes; then
9576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9577 soname_spec='${libname}${release}${shared_ext}$major'
9578 shlibpath_var=LD_LIBRARY_PATH
9579 case $host_vendor in
9581 shlibpath_overrides_runpath=no
9583 export_dynamic_flag_spec='${wl}-Blargedynsym'
9584 runpath_var=LD_RUN_PATH
9592 shlibpath_overrides_runpath=no
9593 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9599 if test -d /usr/nec ;then
9601 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9602 soname_spec='$libname${shared_ext}.$major'
9603 shlibpath_var=LD_LIBRARY_PATH
9607 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9608 version_type=freebsd-elf
9611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9612 soname_spec='${libname}${release}${shared_ext}$major'
9613 shlibpath_var=LD_LIBRARY_PATH
9614 hardcode_into_libs=yes
9615 if test "$with_gnu_ld" = yes; then
9616 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9617 shlibpath_overrides_runpath=no
9619 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9620 shlibpath_overrides_runpath=yes
9623 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9627 sys_lib_dlsearch_path_spec='/usr/lib'
9632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9633 soname_spec='${libname}${release}${shared_ext}$major'
9634 shlibpath_var=LD_LIBRARY_PATH
9641 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9642 echo "${ECHO_T}$dynamic_linker" >&6; }
9643 test "$dynamic_linker" = no && can_build_shared=no
9645 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9646 echo $ECHO_N "(cached) $ECHO_C" >&6
9648 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9651 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9652 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9653 echo $ECHO_N "(cached) $ECHO_C" >&6
9655 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9658 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9660 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9661 if test "$GCC" = yes; then
9662 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9665 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9666 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9668 if test -n "$hardcode_libdir_flag_spec" || \
9669 test -n "$runpath_var" || \
9670 test "X$hardcode_automatic" = "Xyes" ; then
9672 # We can hardcode non-existant directories.
9673 if test "$hardcode_direct" != no &&
9674 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9675 # have to relink, otherwise we might link with an installed library
9676 # when we should be linking with a yet-to-be-installed one
9677 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9678 test "$hardcode_minus_L" != no; then
9679 # Linking always hardcodes the temporary library directory.
9680 hardcode_action=relink
9682 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9683 hardcode_action=immediate
9686 # We cannot hardcode anything, or else we can only hardcode existing
9688 hardcode_action=unsupported
9690 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9691 echo "${ECHO_T}$hardcode_action" >&6; }
9693 if test "$hardcode_action" = relink; then
9694 # Fast installation is not supported
9695 enable_fast_install=no
9696 elif test "$shlibpath_overrides_runpath" = yes ||
9697 test "$enable_shared" = no; then
9698 # Fast installation is not necessary
9699 enable_fast_install=needless
9704 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9705 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9706 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9707 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9708 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9709 { echo "$as_me:$LINENO: result: yes" >&5
9710 echo "${ECHO_T}yes" >&6; }
9712 # FIXME - insert some real tests, host_os isn't really good enough
9715 if test -n "$STRIP" ; then
9716 striplib="$STRIP -x"
9717 old_striplib="$STRIP -S"
9718 { echo "$as_me:$LINENO: result: yes" >&5
9719 echo "${ECHO_T}yes" >&6; }
9721 { echo "$as_me:$LINENO: result: no" >&5
9722 echo "${ECHO_T}no" >&6; }
9726 { echo "$as_me:$LINENO: result: no" >&5
9727 echo "${ECHO_T}no" >&6; }
9732 if test "x$enable_dlopen" != xyes; then
9733 enable_dlopen=unknown
9734 enable_dlopen_self=unknown
9735 enable_dlopen_self_static=unknown
9742 lt_cv_dlopen="load_add_on"
9744 lt_cv_dlopen_self=yes
9748 lt_cv_dlopen="LoadLibrary"
9753 lt_cv_dlopen="dlopen"
9758 # if libdl is installed we need to link against it
9759 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9760 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9761 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9762 echo $ECHO_N "(cached) $ECHO_C" >&6
9764 ac_check_lib_save_LIBS=$LIBS
9766 cat >conftest.$ac_ext <<_ACEOF
9769 cat confdefs.h >>conftest.$ac_ext
9770 cat >>conftest.$ac_ext <<_ACEOF
9771 /* end confdefs.h. */
9773 /* Override any GCC internal prototype to avoid an error.
9774 Use char because int might match the return type of a GCC
9775 builtin and then its argument prototype would still apply. */
9788 rm -f conftest.$ac_objext conftest$ac_exeext
9789 if { (ac_try="$ac_link"
9791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9792 *) ac_try_echo=$ac_try;;
9794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9795 (eval "$ac_link") 2>conftest.er1
9797 grep -v '^ *+' conftest.er1 >conftest.err
9799 cat conftest.err >&5
9800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801 (exit $ac_status); } && {
9802 test -z "$ac_c_werror_flag" ||
9803 test ! -s conftest.err
9804 } && test -s conftest$ac_exeext &&
9805 $as_test_x conftest$ac_exeext; then
9806 ac_cv_lib_dl_dlopen=yes
9808 echo "$as_me: failed program was:" >&5
9809 sed 's/^/| /' conftest.$ac_ext >&5
9811 ac_cv_lib_dl_dlopen=no
9814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9815 conftest$ac_exeext conftest.$ac_ext
9816 LIBS=$ac_check_lib_save_LIBS
9818 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9819 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9820 if test $ac_cv_lib_dl_dlopen = yes; then
9821 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9826 lt_cv_dlopen_self=yes
9833 { echo "$as_me:$LINENO: checking for shl_load" >&5
9834 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9835 if test "${ac_cv_func_shl_load+set}" = set; then
9836 echo $ECHO_N "(cached) $ECHO_C" >&6
9838 cat >conftest.$ac_ext <<_ACEOF
9841 cat confdefs.h >>conftest.$ac_ext
9842 cat >>conftest.$ac_ext <<_ACEOF
9843 /* end confdefs.h. */
9844 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9846 #define shl_load innocuous_shl_load
9848 /* System header to define __stub macros and hopefully few prototypes,
9849 which can conflict with char shl_load (); below.
9850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9851 <limits.h> exists even on freestanding compilers. */
9854 # include <limits.h>
9856 # include <assert.h>
9861 /* Override any GCC internal prototype to avoid an error.
9862 Use char because int might match the return type of a GCC
9863 builtin and then its argument prototype would still apply. */
9868 /* The GNU C library defines this for functions which it implements
9869 to always fail with ENOSYS. Some functions are actually named
9870 something starting with __ and the normal name is an alias. */
9871 #if defined __stub_shl_load || defined __stub___shl_load
9883 rm -f conftest.$ac_objext conftest$ac_exeext
9884 if { (ac_try="$ac_link"
9886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9887 *) ac_try_echo=$ac_try;;
9889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9890 (eval "$ac_link") 2>conftest.er1
9892 grep -v '^ *+' conftest.er1 >conftest.err
9894 cat conftest.err >&5
9895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896 (exit $ac_status); } && {
9897 test -z "$ac_c_werror_flag" ||
9898 test ! -s conftest.err
9899 } && test -s conftest$ac_exeext &&
9900 $as_test_x conftest$ac_exeext; then
9901 ac_cv_func_shl_load=yes
9903 echo "$as_me: failed program was:" >&5
9904 sed 's/^/| /' conftest.$ac_ext >&5
9906 ac_cv_func_shl_load=no
9909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9910 conftest$ac_exeext conftest.$ac_ext
9912 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9913 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9914 if test $ac_cv_func_shl_load = yes; then
9915 lt_cv_dlopen="shl_load"
9917 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9918 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9919 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9920 echo $ECHO_N "(cached) $ECHO_C" >&6
9922 ac_check_lib_save_LIBS=$LIBS
9924 cat >conftest.$ac_ext <<_ACEOF
9927 cat confdefs.h >>conftest.$ac_ext
9928 cat >>conftest.$ac_ext <<_ACEOF
9929 /* end confdefs.h. */
9931 /* Override any GCC internal prototype to avoid an error.
9932 Use char because int might match the return type of a GCC
9933 builtin and then its argument prototype would still apply. */
9946 rm -f conftest.$ac_objext conftest$ac_exeext
9947 if { (ac_try="$ac_link"
9949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9950 *) ac_try_echo=$ac_try;;
9952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9953 (eval "$ac_link") 2>conftest.er1
9955 grep -v '^ *+' conftest.er1 >conftest.err
9957 cat conftest.err >&5
9958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959 (exit $ac_status); } && {
9960 test -z "$ac_c_werror_flag" ||
9961 test ! -s conftest.err
9962 } && test -s conftest$ac_exeext &&
9963 $as_test_x conftest$ac_exeext; then
9964 ac_cv_lib_dld_shl_load=yes
9966 echo "$as_me: failed program was:" >&5
9967 sed 's/^/| /' conftest.$ac_ext >&5
9969 ac_cv_lib_dld_shl_load=no
9972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9973 conftest$ac_exeext conftest.$ac_ext
9974 LIBS=$ac_check_lib_save_LIBS
9976 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9977 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9978 if test $ac_cv_lib_dld_shl_load = yes; then
9979 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9981 { echo "$as_me:$LINENO: checking for dlopen" >&5
9982 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9983 if test "${ac_cv_func_dlopen+set}" = set; then
9984 echo $ECHO_N "(cached) $ECHO_C" >&6
9986 cat >conftest.$ac_ext <<_ACEOF
9989 cat confdefs.h >>conftest.$ac_ext
9990 cat >>conftest.$ac_ext <<_ACEOF
9991 /* end confdefs.h. */
9992 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9993 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9994 #define dlopen innocuous_dlopen
9996 /* System header to define __stub macros and hopefully few prototypes,
9997 which can conflict with char dlopen (); below.
9998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9999 <limits.h> exists even on freestanding compilers. */
10002 # include <limits.h>
10004 # include <assert.h>
10009 /* Override any GCC internal prototype to avoid an error.
10010 Use char because int might match the return type of a GCC
10011 builtin and then its argument prototype would still apply. */
10016 /* The GNU C library defines this for functions which it implements
10017 to always fail with ENOSYS. Some functions are actually named
10018 something starting with __ and the normal name is an alias. */
10019 #if defined __stub_dlopen || defined __stub___dlopen
10031 rm -f conftest.$ac_objext conftest$ac_exeext
10032 if { (ac_try="$ac_link"
10033 case "(($ac_try" in
10034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10035 *) ac_try_echo=$ac_try;;
10037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10038 (eval "$ac_link") 2>conftest.er1
10040 grep -v '^ *+' conftest.er1 >conftest.err
10042 cat conftest.err >&5
10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 (exit $ac_status); } && {
10045 test -z "$ac_c_werror_flag" ||
10046 test ! -s conftest.err
10047 } && test -s conftest$ac_exeext &&
10048 $as_test_x conftest$ac_exeext; then
10049 ac_cv_func_dlopen=yes
10051 echo "$as_me: failed program was:" >&5
10052 sed 's/^/| /' conftest.$ac_ext >&5
10054 ac_cv_func_dlopen=no
10057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10058 conftest$ac_exeext conftest.$ac_ext
10060 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10061 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10062 if test $ac_cv_func_dlopen = yes; then
10063 lt_cv_dlopen="dlopen"
10065 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10066 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10067 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10068 echo $ECHO_N "(cached) $ECHO_C" >&6
10070 ac_check_lib_save_LIBS=$LIBS
10072 cat >conftest.$ac_ext <<_ACEOF
10075 cat confdefs.h >>conftest.$ac_ext
10076 cat >>conftest.$ac_ext <<_ACEOF
10077 /* end confdefs.h. */
10079 /* Override any GCC internal prototype to avoid an error.
10080 Use char because int might match the return type of a GCC
10081 builtin and then its argument prototype would still apply. */
10094 rm -f conftest.$ac_objext conftest$ac_exeext
10095 if { (ac_try="$ac_link"
10096 case "(($ac_try" in
10097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10098 *) ac_try_echo=$ac_try;;
10100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10101 (eval "$ac_link") 2>conftest.er1
10103 grep -v '^ *+' conftest.er1 >conftest.err
10105 cat conftest.err >&5
10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); } && {
10108 test -z "$ac_c_werror_flag" ||
10109 test ! -s conftest.err
10110 } && test -s conftest$ac_exeext &&
10111 $as_test_x conftest$ac_exeext; then
10112 ac_cv_lib_dl_dlopen=yes
10114 echo "$as_me: failed program was:" >&5
10115 sed 's/^/| /' conftest.$ac_ext >&5
10117 ac_cv_lib_dl_dlopen=no
10120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10121 conftest$ac_exeext conftest.$ac_ext
10122 LIBS=$ac_check_lib_save_LIBS
10124 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10125 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10126 if test $ac_cv_lib_dl_dlopen = yes; then
10127 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10129 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10130 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10131 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10132 echo $ECHO_N "(cached) $ECHO_C" >&6
10134 ac_check_lib_save_LIBS=$LIBS
10135 LIBS="-lsvld $LIBS"
10136 cat >conftest.$ac_ext <<_ACEOF
10139 cat confdefs.h >>conftest.$ac_ext
10140 cat >>conftest.$ac_ext <<_ACEOF
10141 /* end confdefs.h. */
10143 /* Override any GCC internal prototype to avoid an error.
10144 Use char because int might match the return type of a GCC
10145 builtin and then its argument prototype would still apply. */
10158 rm -f conftest.$ac_objext conftest$ac_exeext
10159 if { (ac_try="$ac_link"
10160 case "(($ac_try" in
10161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10162 *) ac_try_echo=$ac_try;;
10164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10165 (eval "$ac_link") 2>conftest.er1
10167 grep -v '^ *+' conftest.er1 >conftest.err
10169 cat conftest.err >&5
10170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 (exit $ac_status); } && {
10172 test -z "$ac_c_werror_flag" ||
10173 test ! -s conftest.err
10174 } && test -s conftest$ac_exeext &&
10175 $as_test_x conftest$ac_exeext; then
10176 ac_cv_lib_svld_dlopen=yes
10178 echo "$as_me: failed program was:" >&5
10179 sed 's/^/| /' conftest.$ac_ext >&5
10181 ac_cv_lib_svld_dlopen=no
10184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10185 conftest$ac_exeext conftest.$ac_ext
10186 LIBS=$ac_check_lib_save_LIBS
10188 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10189 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10190 if test $ac_cv_lib_svld_dlopen = yes; then
10191 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10193 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10194 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10195 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10196 echo $ECHO_N "(cached) $ECHO_C" >&6
10198 ac_check_lib_save_LIBS=$LIBS
10200 cat >conftest.$ac_ext <<_ACEOF
10203 cat confdefs.h >>conftest.$ac_ext
10204 cat >>conftest.$ac_ext <<_ACEOF
10205 /* end confdefs.h. */
10207 /* Override any GCC internal prototype to avoid an error.
10208 Use char because int might match the return type of a GCC
10209 builtin and then its argument prototype would still apply. */
10217 return dld_link ();
10222 rm -f conftest.$ac_objext conftest$ac_exeext
10223 if { (ac_try="$ac_link"
10224 case "(($ac_try" in
10225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10226 *) ac_try_echo=$ac_try;;
10228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10229 (eval "$ac_link") 2>conftest.er1
10231 grep -v '^ *+' conftest.er1 >conftest.err
10233 cat conftest.err >&5
10234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235 (exit $ac_status); } && {
10236 test -z "$ac_c_werror_flag" ||
10237 test ! -s conftest.err
10238 } && test -s conftest$ac_exeext &&
10239 $as_test_x conftest$ac_exeext; then
10240 ac_cv_lib_dld_dld_link=yes
10242 echo "$as_me: failed program was:" >&5
10243 sed 's/^/| /' conftest.$ac_ext >&5
10245 ac_cv_lib_dld_dld_link=no
10248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10249 conftest$ac_exeext conftest.$ac_ext
10250 LIBS=$ac_check_lib_save_LIBS
10252 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10253 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10254 if test $ac_cv_lib_dld_dld_link = yes; then
10255 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10276 if test "x$lt_cv_dlopen" != xno; then
10282 case $lt_cv_dlopen in
10284 save_CPPFLAGS="$CPPFLAGS"
10285 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10287 save_LDFLAGS="$LDFLAGS"
10288 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10291 LIBS="$lt_cv_dlopen_libs $LIBS"
10293 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10294 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10295 if test "${lt_cv_dlopen_self+set}" = set; then
10296 echo $ECHO_N "(cached) $ECHO_C" >&6
10298 if test "$cross_compiling" = yes; then :
10299 lt_cv_dlopen_self=cross
10301 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10302 lt_status=$lt_dlunknown
10303 cat > conftest.$ac_ext <<EOF
10304 #line 10304 "configure"
10305 #include "confdefs.h"
10314 # define LT_DLGLOBAL RTLD_GLOBAL
10317 # define LT_DLGLOBAL DL_GLOBAL
10319 # define LT_DLGLOBAL 0
10323 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10324 find out it does not work in some platform. */
10325 #ifndef LT_DLLAZY_OR_NOW
10327 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10330 # define LT_DLLAZY_OR_NOW DL_LAZY
10333 # define LT_DLLAZY_OR_NOW RTLD_NOW
10336 # define LT_DLLAZY_OR_NOW DL_NOW
10338 # define LT_DLLAZY_OR_NOW 0
10346 extern "C" void exit (int);
10349 void fnord() { int i=42;}
10352 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10353 int status = $lt_dlunknown;
10357 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10358 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10359 /* dlclose (self); */
10367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10368 (eval $ac_link) 2>&5
10370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10372 (./conftest; exit; ) >&5 2>/dev/null
10374 case x$lt_status in
10375 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10376 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10377 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10380 # compilation failed
10381 lt_cv_dlopen_self=no
10388 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10389 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10391 if test "x$lt_cv_dlopen_self" = xyes; then
10392 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10393 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10394 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10395 if test "${lt_cv_dlopen_self_static+set}" = set; then
10396 echo $ECHO_N "(cached) $ECHO_C" >&6
10398 if test "$cross_compiling" = yes; then :
10399 lt_cv_dlopen_self_static=cross
10401 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10402 lt_status=$lt_dlunknown
10403 cat > conftest.$ac_ext <<EOF
10404 #line 10404 "configure"
10405 #include "confdefs.h"
10414 # define LT_DLGLOBAL RTLD_GLOBAL
10417 # define LT_DLGLOBAL DL_GLOBAL
10419 # define LT_DLGLOBAL 0
10423 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10424 find out it does not work in some platform. */
10425 #ifndef LT_DLLAZY_OR_NOW
10427 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10430 # define LT_DLLAZY_OR_NOW DL_LAZY
10433 # define LT_DLLAZY_OR_NOW RTLD_NOW
10436 # define LT_DLLAZY_OR_NOW DL_NOW
10438 # define LT_DLLAZY_OR_NOW 0
10446 extern "C" void exit (int);
10449 void fnord() { int i=42;}
10452 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10453 int status = $lt_dlunknown;
10457 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10458 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10459 /* dlclose (self); */
10467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10468 (eval $ac_link) 2>&5
10470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10472 (./conftest; exit; ) >&5 2>/dev/null
10474 case x$lt_status in
10475 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10476 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10477 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10480 # compilation failed
10481 lt_cv_dlopen_self_static=no
10488 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10489 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10492 CPPFLAGS="$save_CPPFLAGS"
10493 LDFLAGS="$save_LDFLAGS"
10498 case $lt_cv_dlopen_self in
10499 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10500 *) enable_dlopen_self=unknown ;;
10503 case $lt_cv_dlopen_self_static in
10504 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10505 *) enable_dlopen_self_static=unknown ;;
10510 # Report which library types will actually be built
10511 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10512 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10513 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10514 echo "${ECHO_T}$can_build_shared" >&6; }
10516 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10517 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10518 test "$can_build_shared" = "no" && enable_shared=no
10520 # On AIX, shared libraries and static libraries use the same namespace, and
10521 # are all built from PIC.
10524 test "$enable_shared" = yes && enable_static=no
10525 if test -n "$RANLIB"; then
10526 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10527 postinstall_cmds='$RANLIB $lib'
10532 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10533 test "$enable_shared" = yes && enable_static=no
10537 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10538 echo "${ECHO_T}$enable_shared" >&6; }
10540 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10541 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10542 # Make sure either enable_shared or enable_static is yes.
10543 test "$enable_shared" = yes || enable_static=yes
10544 { echo "$as_me:$LINENO: result: $enable_static" >&5
10545 echo "${ECHO_T}$enable_static" >&6; }
10547 # The else clause should only fire when bootstrapping the
10548 # libtool distribution, otherwise you forgot to ship ltmain.sh
10549 # with your package, and you will get complaints that there are
10550 # no rules to generate ltmain.sh.
10551 if test -f "$ltmain"; then
10552 # See if we are running on zsh, and set the options which allow our commands through
10553 # without removal of \ escapes.
10554 if test -n "${ZSH_VERSION+set}" ; then
10555 setopt NO_GLOB_SUBST
10557 # Now quote all the things that may contain metacharacters while being
10558 # careful not to overquote the AC_SUBSTed values. We take copies of the
10559 # variables and quote the copies for generation of the libtool script.
10560 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10562 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10563 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10564 deplibs_check_method reload_flag reload_cmds need_locks \
10565 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10566 lt_cv_sys_global_symbol_to_c_name_address \
10567 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10568 old_postinstall_cmds old_postuninstall_cmds \
10572 lt_prog_compiler_wl \
10573 lt_prog_compiler_pic \
10574 lt_prog_compiler_static \
10575 lt_prog_compiler_no_builtin_flag \
10576 export_dynamic_flag_spec \
10577 thread_safe_flag_spec \
10578 whole_archive_flag_spec \
10579 enable_shared_with_static_runtimes \
10581 old_archive_from_new_cmds \
10586 compiler_lib_search_path \
10587 compiler_lib_search_dirs \
10589 archive_expsym_cmds \
10591 postuninstall_cmds \
10592 old_archive_from_expsyms_cmds \
10593 allow_undefined_flag \
10594 no_undefined_flag \
10595 export_symbols_cmds \
10596 hardcode_libdir_flag_spec \
10597 hardcode_libdir_flag_spec_ld \
10598 hardcode_libdir_separator \
10599 hardcode_automatic \
10601 module_expsym_cmds \
10602 lt_cv_prog_compiler_c_o \
10605 include_expsyms; do
10608 old_archive_cmds | \
10609 old_archive_from_new_cmds | \
10611 archive_expsym_cmds | \
10613 module_expsym_cmds | \
10614 old_archive_from_expsyms_cmds | \
10615 export_symbols_cmds | \
10616 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10617 postinstall_cmds | postuninstall_cmds | \
10618 old_postinstall_cmds | old_postuninstall_cmds | \
10619 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10620 # Double-quote double-evaled strings.
10621 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10624 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10630 *'\$0 --fallback-echo"')
10631 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10635 cfgfile="${ofile}T"
10636 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10638 { echo "$as_me:$LINENO: creating $ofile" >&5
10639 echo "$as_me: creating $ofile" >&6;}
10641 cat <<__EOF__ >> "$cfgfile"
10644 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10645 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10646 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10648 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10649 # Free Software Foundation, Inc.
10651 # This file is part of GNU Libtool:
10652 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10654 # This program is free software; you can redistribute it and/or modify
10655 # it under the terms of the GNU General Public License as published by
10656 # the Free Software Foundation; either version 2 of the License, or
10657 # (at your option) any later version.
10659 # This program is distributed in the hope that it will be useful, but
10660 # WITHOUT ANY WARRANTY; without even the implied warranty of
10661 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10662 # General Public License for more details.
10664 # You should have received a copy of the GNU General Public License
10665 # along with this program; if not, write to the Free Software
10666 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10668 # As a special exception to the GNU General Public License, if you
10669 # distribute this file as part of a program that contains a
10670 # configuration script generated by Autoconf, you may include it under
10671 # the same distribution terms that you use for the rest of that program.
10673 # A sed program that does not truncate output.
10676 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10677 Xsed="$SED -e 1s/^X//"
10679 # The HP-UX ksh and POSIX shell print the target directory to stdout
10680 # if CDPATH is set.
10681 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10683 # The names of the tagged configurations supported by this script.
10686 # ### BEGIN LIBTOOL CONFIG
10688 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10690 # Shell to use when invoking shell scripts.
10693 # Whether or not to build shared libraries.
10694 build_libtool_libs=$enable_shared
10696 # Whether or not to build static libraries.
10697 build_old_libs=$enable_static
10699 # Whether or not to add -lc for building shared libraries.
10700 build_libtool_need_lc=$archive_cmds_need_lc
10702 # Whether or not to disallow shared libs when runtime libs are static
10703 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10705 # Whether or not to optimize for fast installation.
10706 fast_install=$enable_fast_install
10709 host_alias=$host_alias
10713 # The build system.
10714 build_alias=$build_alias
10718 # An echo program that does not interpret backslashes.
10723 AR_FLAGS=$lt_AR_FLAGS
10728 # LTCC compiler flags.
10729 LTCFLAGS=$lt_LTCFLAGS
10731 # A language-specific compiler.
10734 # Is the compiler the GNU C compiler?
10740 # The linker used to build libraries.
10743 # Whether we need hard or soft links.
10746 # A BSD-compatible nm program.
10749 # A symbol stripping program
10752 # Used to examine libraries when file_magic_cmd begins "file"
10753 MAGIC_CMD=$MAGIC_CMD
10755 # Used on cygwin: DLL creation program.
10758 # Used on cygwin: object dumper.
10761 # Used on cygwin: assembler.
10764 # The name of the directory that contains temporary libtool files.
10767 # How to create reloadable object files.
10768 reload_flag=$lt_reload_flag
10769 reload_cmds=$lt_reload_cmds
10771 # How to pass a linker flag through the compiler.
10772 wl=$lt_lt_prog_compiler_wl
10774 # Object file suffix (normally "o").
10775 objext="$ac_objext"
10777 # Old archive suffix (normally "a").
10780 # Shared library suffix (normally ".so").
10781 shrext_cmds='$shrext_cmds'
10783 # Executable file suffix (normally "").
10786 # Additional compiler flags for building library objects.
10787 pic_flag=$lt_lt_prog_compiler_pic
10790 # What is the maximum length of a command?
10791 max_cmd_len=$lt_cv_sys_max_cmd_len
10793 # Does compiler simultaneously support -c and -o options?
10794 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10796 # Must we lock files when doing compilation?
10797 need_locks=$lt_need_locks
10799 # Do we need the lib prefix for modules?
10800 need_lib_prefix=$need_lib_prefix
10802 # Do we need a version for libraries?
10803 need_version=$need_version
10805 # Whether dlopen is supported.
10806 dlopen_support=$enable_dlopen
10808 # Whether dlopen of programs is supported.
10809 dlopen_self=$enable_dlopen_self
10811 # Whether dlopen of statically linked programs is supported.
10812 dlopen_self_static=$enable_dlopen_self_static
10814 # Compiler flag to prevent dynamic linking.
10815 link_static_flag=$lt_lt_prog_compiler_static
10817 # Compiler flag to turn off builtin functions.
10818 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10820 # Compiler flag to allow reflexive dlopens.
10821 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10823 # Compiler flag to generate shared objects directly from archives.
10824 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10826 # Compiler flag to generate thread-safe objects.
10827 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10829 # Library versioning type.
10830 version_type=$version_type
10832 # Format of library name prefix.
10833 libname_spec=$lt_libname_spec
10835 # List of archive names. First name is the real one, the rest are links.
10836 # The last name is the one that the linker finds with -lNAME.
10837 library_names_spec=$lt_library_names_spec
10839 # The coded name of the library, if different from the real name.
10840 soname_spec=$lt_soname_spec
10842 # Commands used to build and install an old-style archive.
10844 old_archive_cmds=$lt_old_archive_cmds
10845 old_postinstall_cmds=$lt_old_postinstall_cmds
10846 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10848 # Create an old-style archive from a shared archive.
10849 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10851 # Create a temporary old-style archive to link instead of a shared archive.
10852 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10854 # Commands used to build and install a shared archive.
10855 archive_cmds=$lt_archive_cmds
10856 archive_expsym_cmds=$lt_archive_expsym_cmds
10857 postinstall_cmds=$lt_postinstall_cmds
10858 postuninstall_cmds=$lt_postuninstall_cmds
10860 # Commands used to build a loadable module (assumed same as above if empty)
10861 module_cmds=$lt_module_cmds
10862 module_expsym_cmds=$lt_module_expsym_cmds
10864 # Commands to strip libraries.
10865 old_striplib=$lt_old_striplib
10866 striplib=$lt_striplib
10868 # Dependencies to place before the objects being linked to create a
10870 predep_objects=$lt_predep_objects
10872 # Dependencies to place after the objects being linked to create a
10874 postdep_objects=$lt_postdep_objects
10876 # Dependencies to place before the objects being linked to create a
10878 predeps=$lt_predeps
10880 # Dependencies to place after the objects being linked to create a
10882 postdeps=$lt_postdeps
10884 # The directories searched by this compiler when creating a shared
10886 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10888 # The library search path used internally by the compiler when linking
10889 # a shared library.
10890 compiler_lib_search_path=$lt_compiler_lib_search_path
10892 # Method to check whether dependent libraries are shared objects.
10893 deplibs_check_method=$lt_deplibs_check_method
10895 # Command to use when deplibs_check_method == file_magic.
10896 file_magic_cmd=$lt_file_magic_cmd
10898 # Flag that allows shared libraries with undefined symbols to be built.
10899 allow_undefined_flag=$lt_allow_undefined_flag
10901 # Flag that forces no undefined symbols.
10902 no_undefined_flag=$lt_no_undefined_flag
10904 # Commands used to finish a libtool library installation in a directory.
10905 finish_cmds=$lt_finish_cmds
10907 # Same as above, but a single script fragment to be evaled but not shown.
10908 finish_eval=$lt_finish_eval
10910 # Take the output of nm and produce a listing of raw symbols and C names.
10911 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10913 # Transform the output of nm in a proper C declaration
10914 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10916 # Transform the output of nm in a C name address pair
10917 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10919 # This is the shared library runtime path variable.
10920 runpath_var=$runpath_var
10922 # This is the shared library path variable.
10923 shlibpath_var=$shlibpath_var
10925 # Is shlibpath searched before the hard-coded library search path?
10926 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10928 # How to hardcode a shared library path into an executable.
10929 hardcode_action=$hardcode_action
10931 # Whether we should hardcode library paths into libraries.
10932 hardcode_into_libs=$hardcode_into_libs
10934 # Flag to hardcode \$libdir into a binary during linking.
10935 # This must work even if \$libdir does not exist.
10936 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10938 # If ld is used when linking, flag to hardcode \$libdir into
10939 # a binary during linking. This must work even if \$libdir does
10941 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10943 # Whether we need a single -rpath flag with a separated argument.
10944 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10946 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10947 # resulting binary.
10948 hardcode_direct=$hardcode_direct
10950 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10951 # resulting binary.
10952 hardcode_minus_L=$hardcode_minus_L
10954 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10955 # the resulting binary.
10956 hardcode_shlibpath_var=$hardcode_shlibpath_var
10958 # Set to yes if building a shared library automatically hardcodes DIR into the library
10959 # and all subsequent libraries and executables linked against it.
10960 hardcode_automatic=$hardcode_automatic
10962 # Variables whose values should be saved in libtool wrapper scripts and
10963 # restored at relink time.
10964 variables_saved_for_relink="$variables_saved_for_relink"
10966 # Whether libtool must link a program against all its dependency libraries.
10967 link_all_deplibs=$link_all_deplibs
10969 # Compile-time system search path for libraries
10970 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10972 # Run-time system search path for libraries
10973 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10975 # Fix the shell variable \$srcfile for the compiler.
10976 fix_srcfile_path=$lt_fix_srcfile_path
10978 # Set to yes if exported symbols are required.
10979 always_export_symbols=$always_export_symbols
10981 # The commands to list exported symbols.
10982 export_symbols_cmds=$lt_export_symbols_cmds
10984 # The commands to extract the exported symbol list from a shared archive.
10985 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10987 # Symbols that should not be listed in the preloaded symbols.
10988 exclude_expsyms=$lt_exclude_expsyms
10990 # Symbols that must always be exported.
10991 include_expsyms=$lt_include_expsyms
10993 # ### END LIBTOOL CONFIG
11000 cat <<\EOF >> "$cfgfile"
11002 # AIX sometimes has problems with the GCC collect2 program. For some
11003 # reason, if we set the COLLECT_NAMES environment variable, the problems
11004 # vanish in a puff of smoke.
11005 if test "X${COLLECT_NAMES+set}" != Xset; then
11007 export COLLECT_NAMES
11013 # We use sed instead of cat because bash on DJGPP gets confused if
11014 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11015 # text mode, it properly converts lines to CR/LF. This bash problem
11016 # is reportedly fixed, but why not run on old versions too?
11017 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11019 mv -f "$cfgfile" "$ofile" || \
11020 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11024 # If there is no Makefile yet, we rely on a make rule to execute
11025 # `config.status --recheck' to rerun these tests and create the
11026 # libtool script then.
11027 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11028 if test -f "$ltmain_in"; then
11029 test -f Makefile && make "$ltmain"
11035 ac_cpp='$CPP $CPPFLAGS'
11036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11043 # Check whether --with-tags was given.
11044 if test "${with_tags+set}" = set; then
11045 withval=$with_tags; tagnames="$withval"
11049 if test -f "$ltmain" && test -n "$tagnames"; then
11050 if test ! -f "${ofile}"; then
11051 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11052 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11055 if test -z "$LTCC"; then
11056 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11057 if test -z "$LTCC"; then
11058 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11059 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11061 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11062 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11065 if test -z "$LTCFLAGS"; then
11066 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11069 # Extract list of available tagged configurations in $ofile.
11070 # Note that this assumes the entire list is on one line.
11071 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11073 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11074 for tagname in $tagnames; do
11076 # Check whether tagname contains only valid characters
11077 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11079 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11080 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11081 { (exit 1); exit 1; }; }
11085 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11087 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11088 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11089 { (exit 1); exit 1; }; }
11092 # Update the list of available tags.
11093 if test -n "$tagname"; then
11094 echo appending configuration tag \"$tagname\" to $ofile
11098 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11099 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11100 (test "X$CXX" != "Xg++"))) ; then
11102 ac_cpp='$CXXCPP $CPPFLAGS'
11103 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11104 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11105 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11110 archive_cmds_need_lc_CXX=no
11111 allow_undefined_flag_CXX=
11112 always_export_symbols_CXX=no
11113 archive_expsym_cmds_CXX=
11114 export_dynamic_flag_spec_CXX=
11115 hardcode_direct_CXX=no
11116 hardcode_libdir_flag_spec_CXX=
11117 hardcode_libdir_flag_spec_ld_CXX=
11118 hardcode_libdir_separator_CXX=
11119 hardcode_minus_L_CXX=no
11120 hardcode_shlibpath_var_CXX=unsupported
11121 hardcode_automatic_CXX=no
11123 module_expsym_cmds_CXX=
11124 link_all_deplibs_CXX=unknown
11125 old_archive_cmds_CXX=$old_archive_cmds
11126 no_undefined_flag_CXX=
11127 whole_archive_flag_spec_CXX=
11128 enable_shared_with_static_runtimes_CXX=no
11130 # Dependencies to place before and after the object being linked:
11131 predep_objects_CXX=
11132 postdep_objects_CXX=
11135 compiler_lib_search_path_CXX=
11136 compiler_lib_search_dirs_CXX=
11138 # Source file extension for C++ test sources.
11141 # Object file extension for compiled C++ test sources.
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.
11156 # If no C compiler flags were specified, use CFLAGS.
11157 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11159 # Allow CC to be a program name with arguments.
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`
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`
11177 # Allow CC to be a program name with arguments.
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
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
11192 $as_unset lt_cv_path_LD
11194 test -z "${LDCXX+set}" || LD=$LDCXX
11198 for cc_temp in $compiler""; do
11200 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11201 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
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'
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
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; }
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` ;;
11241 # Accept absolute paths.
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%/%"`
11249 test -z "$LD" && LD="$ac_prog"
11252 # If it fails, then pretend we aren't using GCC.
11256 # If it is relative, then search for the first ld in PATH.
11257 with_gnu_ld=unknown
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; }
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
11270 if test -z "$LD"; then
11271 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11272 for ac_dir in $PATH; do
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
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; }
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
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
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)
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'
11347 whole_archive_flag_spec_CXX=
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"'
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; }
11378 # FIXME: insert proper C++ library support
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'
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].*|aix[5-9]*)
11395 for ld_flag in $LDFLAGS; do
11398 aix_use_runtimelinking=yes
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
11429 # We have reworked collect2
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=
11443 shared_flag='-shared'
11444 if test "$aix_use_runtimelinking" = yes; then
11445 shared_flag="$shared_flag "'${wl}-G'
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:
11454 if test "$aix_use_runtimelinking" = yes; then
11455 shared_flag='${wl}-G'
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
11473 cat confdefs.h >>conftest.$ac_ext
11474 cat >>conftest.$ac_ext <<_ACEOF
11475 /* end confdefs.h. */
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;;
11491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11492 (eval "$ac_link") 2>conftest.er1
11494 grep -v '^ *+' conftest.er1 >conftest.err
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/,/^$/ {
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"`
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"
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"
11536 # Determine the default libpath from the value encoded in an empty executable.
11537 cat >conftest.$ac_ext <<_ACEOF
11540 cat confdefs.h >>conftest.$ac_ext
11541 cat >>conftest.$ac_ext <<_ACEOF
11542 /* end confdefs.h. */
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;;
11558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11559 (eval "$ac_link") 2>conftest.er1
11561 grep -v '^ *+' conftest.er1 >conftest.err
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/,/^$/ {
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"`
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'
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'
11620 case $cc_basename in
11622 # FIXME: insert proper C++ library support
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;
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'
11651 darwin* | rhapsody*)
11652 archive_cmds_need_lc_CXX=no
11653 hardcode_direct_CXX=no
11654 hardcode_automatic_CXX=yes
11655 hardcode_shlibpath_var_CXX=unsupported
11656 whole_archive_flag_spec_CXX=''
11657 link_all_deplibs_CXX=yes
11658 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11659 if test "$GXX" = yes ; then
11660 output_verbose_link_cmd='echo'
11661 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11662 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11663 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11664 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11665 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11666 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
11667 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
11670 case $cc_basename in
11672 output_verbose_link_cmd='echo'
11673 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'
11674 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11675 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11676 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}'
11677 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}'
11687 case $cc_basename in
11689 # FIXME: insert proper C++ library support
11693 # Green Hills C++ Compiler
11694 # FIXME: insert proper C++ library support
11698 # FIXME: insert proper C++ library support
11704 # C++ shared libraries reported to be fairly broken before switch to ELF
11708 archive_cmds_need_lc_CXX=no
11710 freebsd* | dragonfly*)
11711 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11718 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11719 hardcode_libdir_separator_CXX=:
11720 export_dynamic_flag_spec_CXX='${wl}-E'
11721 hardcode_direct_CXX=yes
11722 hardcode_minus_L_CXX=yes # Not in the search PATH,
11723 # but as the default
11724 # location of the library.
11726 case $cc_basename in
11728 # FIXME: insert proper C++ library support
11732 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'
11733 # Commands to make compiler produce verbose output that lists
11734 # what "hidden" libraries, object files and flags are used when
11735 # linking a shared library.
11737 # There doesn't appear to be a way to prevent this compiler from
11738 # explicitly linking system object files so we need to strip them
11739 # from the output so that they don't get included in the library
11741 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'
11744 if test "$GXX" = yes; then
11745 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'
11747 # FIXME: insert proper C++ library support
11754 if test $with_gnu_ld = no; then
11755 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11756 hardcode_libdir_separator_CXX=:
11761 export_dynamic_flag_spec_CXX='${wl}-E'
11767 hardcode_direct_CXX=no
11768 hardcode_shlibpath_var_CXX=no
11771 hardcode_direct_CXX=yes
11772 hardcode_minus_L_CXX=yes # Not in the search PATH,
11773 # but as the default
11774 # location of the library.
11778 case $cc_basename in
11780 # FIXME: insert proper C++ library support
11786 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11789 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11792 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11795 # Commands to make compiler produce verbose output that lists
11796 # what "hidden" libraries, object files and flags are used when
11797 # linking a shared library.
11799 # There doesn't appear to be a way to prevent this compiler from
11800 # explicitly linking system object files so we need to strip them
11801 # from the output so that they don't get included in the library
11803 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'
11806 if test "$GXX" = yes; then
11807 if test $with_gnu_ld = no; then
11810 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11813 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11816 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'
11821 # FIXME: insert proper C++ library support
11828 hardcode_direct_CXX=no
11829 hardcode_shlibpath_var_CXX=no
11830 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11831 export_dynamic_flag_spec_CXX='${wl}-E'
11832 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11833 # Instead, shared libraries are loaded at an image base (0x10000000 by
11834 # default) and relocated if they conflict, which is a slow very memory
11835 # consuming and fragmenting process. To avoid this, we pick a random,
11836 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11837 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11838 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'
11839 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'
11842 case $cc_basename in
11845 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'
11847 # Archives containing C++ object files must be created using
11848 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11849 # necessary to make sure instantiated templates are included
11851 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11854 if test "$GXX" = yes; then
11855 if test "$with_gnu_ld" = no; then
11856 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'
11858 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'
11861 link_all_deplibs_CXX=yes
11864 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11865 hardcode_libdir_separator_CXX=:
11867 linux* | k*bsd*-gnu)
11868 case $cc_basename in
11870 # Kuck and Associates, Inc. (KAI) C++ Compiler
11872 # KCC will only create a shared library if the output file
11873 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11874 # to its proper name (with version) after linking.
11875 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'
11876 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'
11877 # Commands to make compiler produce verbose output that lists
11878 # what "hidden" libraries, object files and flags are used when
11879 # linking a shared library.
11881 # There doesn't appear to be a way to prevent this compiler from
11882 # explicitly linking system object files so we need to strip them
11883 # from the output so that they don't get included in the library
11885 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'
11887 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11888 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11890 # Archives containing C++ object files must be created using
11891 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11892 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11897 # version 8.0 and above of icpc choke on multiply defined symbols
11898 # if we add $predep_objects and $postdep_objects, however 7.1 and
11899 # earlier do not add the objects themselves.
11900 case `$CC -V 2>&1` in
11902 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11903 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'
11905 *) # Version 8.0 or newer
11908 ia64*) tmp_idyn=' -i_dynamic';;
11910 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11911 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'
11914 archive_cmds_need_lc_CXX=no
11915 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11916 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11917 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11920 # Portland Group C++ compiler
11921 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11922 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'
11924 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11925 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11926 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'
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 -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
11933 runpath_var=LD_RUN_PATH
11934 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11935 hardcode_libdir_separator_CXX=:
11937 # Commands to make compiler produce verbose output that lists
11938 # what "hidden" libraries, object files and flags are used when
11939 # linking a shared library.
11941 # There doesn't appear to be a way to prevent this compiler from
11942 # explicitly linking system object files so we need to strip them
11943 # from the output so that they don't get included in the library
11945 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'
11948 case `$CC -V 2>&1 | sed 5q` in
11951 no_undefined_flag_CXX=' -zdefs'
11952 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11953 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'
11954 hardcode_libdir_flag_spec_CXX='-R$libdir'
11955 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'
11957 # Not sure whether something based on
11958 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11960 output_verbose_link_cmd='echo'
11962 # Archives containing C++ object files must be created using
11963 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11964 # necessary to make sure instantiated templates are included
11966 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11973 # FIXME: insert proper C++ library support
11977 # FIXME: insert proper C++ library support
11981 case $cc_basename in
11983 # FIXME: insert proper C++ library support
11987 # FIXME: insert proper C++ library support
11992 netbsd* | netbsdelf*-gnu)
11993 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11994 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11996 hardcode_libdir_flag_spec_CXX='-R$libdir'
11997 hardcode_direct_CXX=yes
11998 hardcode_shlibpath_var_CXX=no
12000 # Workaround some broken pre-1.5 toolchains
12001 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12004 # C++ shared libraries are fairly broken
12008 if test -f /usr/libexec/ld.so; then
12009 hardcode_direct_CXX=yes
12010 hardcode_shlibpath_var_CXX=no
12011 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12012 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12013 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12014 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12015 export_dynamic_flag_spec_CXX='${wl}-E'
12016 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12018 output_verbose_link_cmd='echo'
12024 case $cc_basename in
12026 # Kuck and Associates, Inc. (KAI) C++ Compiler
12028 # KCC will only create a shared library if the output file
12029 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12030 # to its proper name (with version) after linking.
12031 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'
12033 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12034 hardcode_libdir_separator_CXX=:
12036 # Archives containing C++ object files must be created using
12037 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12038 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12042 # Rational C++ 2.4.1
12043 # FIXME: insert proper C++ library support
12047 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12048 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'
12050 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12051 hardcode_libdir_separator_CXX=:
12053 # Commands to make compiler produce verbose output that lists
12054 # what "hidden" libraries, object files and flags are used when
12055 # linking a shared library.
12057 # There doesn't appear to be a way to prevent this compiler from
12058 # explicitly linking system object files so we need to strip them
12059 # from the output so that they don't get included in the library
12061 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'
12064 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12065 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12066 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'
12068 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12069 hardcode_libdir_separator_CXX=:
12071 # Commands to make compiler produce verbose output that lists
12072 # what "hidden" libraries, object files and flags are used when
12073 # linking a shared library.
12074 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12077 # FIXME: insert proper C++ library support
12084 case $cc_basename in
12086 # Kuck and Associates, Inc. (KAI) C++ Compiler
12088 # KCC will only create a shared library if the output file
12089 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12090 # to its proper name (with version) after linking.
12091 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'
12093 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12094 hardcode_libdir_separator_CXX=:
12096 # Archives containing C++ object files must be created using
12097 # the KAI C++ compiler.
12098 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12101 # Rational C++ 2.4.1
12102 # FIXME: insert proper C++ library support
12106 allow_undefined_flag_CXX=' -expect_unresolved \*'
12107 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'
12108 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12109 echo "-hidden">> $lib.exp~
12110 $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~
12113 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12114 hardcode_libdir_separator_CXX=:
12116 # Commands to make compiler produce verbose output that lists
12117 # what "hidden" libraries, object files and flags are used when
12118 # linking a shared library.
12120 # There doesn't appear to be a way to prevent this compiler from
12121 # explicitly linking system object files so we need to strip them
12122 # from the output so that they don't get included in the library
12124 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'
12127 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12128 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12129 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'
12131 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12132 hardcode_libdir_separator_CXX=:
12134 # Commands to make compiler produce verbose output that lists
12135 # what "hidden" libraries, object files and flags are used when
12136 # linking a shared library.
12137 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12140 # FIXME: insert proper C++ library support
12147 # FIXME: insert proper C++ library support
12151 case $cc_basename in
12154 # FIXME: insert proper C++ library support
12159 # FIXME: insert proper C++ library support
12163 # FIXME: insert proper C++ library support
12169 case $cc_basename in
12171 # Sun C++ 4.2, 5.x and Centerline C++
12172 archive_cmds_need_lc_CXX=yes
12173 no_undefined_flag_CXX=' -zdefs'
12174 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12175 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12176 $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'
12178 hardcode_libdir_flag_spec_CXX='-R$libdir'
12179 hardcode_shlibpath_var_CXX=no
12181 solaris2.[0-5] | solaris2.[0-5].*) ;;
12183 # The compiler driver will combine and reorder linker options,
12184 # but understands `-z linker_flag'.
12185 # Supported since Solaris 2.6 (maybe 2.5.1?)
12186 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12189 link_all_deplibs_CXX=yes
12191 output_verbose_link_cmd='echo'
12193 # Archives containing C++ object files must be created using
12194 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12195 # necessary to make sure instantiated templates are included
12197 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12200 # Green Hills C++ Compiler
12201 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12203 # The C++ compiler must be used to create the archive.
12204 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12207 # GNU C++ compiler with Solaris linker
12208 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12209 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12210 if $CC --version | grep -v '^2\.7' > /dev/null; then
12211 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12212 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12213 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12215 # Commands to make compiler produce verbose output that lists
12216 # what "hidden" libraries, object files and flags are used when
12217 # linking a shared library.
12218 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12220 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12222 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12223 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12224 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12226 # Commands to make compiler produce verbose output that lists
12227 # what "hidden" libraries, object files and flags are used when
12228 # linking a shared library.
12229 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12232 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12234 solaris2.[0-5] | solaris2.[0-5].*) ;;
12236 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12243 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12244 no_undefined_flag_CXX='${wl}-z,text'
12245 archive_cmds_need_lc_CXX=no
12246 hardcode_shlibpath_var_CXX=no
12247 runpath_var='LD_RUN_PATH'
12249 case $cc_basename in
12251 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12252 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12255 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12256 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12260 sysv5* | sco3.2v5* | sco5v6*)
12261 # Note: We can NOT use -z defs as we might desire, because we do not
12262 # link with -lc, and that would cause any symbols used from libc to
12263 # always be unresolved, which means just about no library would
12264 # ever link correctly. If we're not using GNU ld we use -z text
12265 # though, which does catch some bad symbols but isn't as heavy-handed
12267 # For security reasons, it is highly recommended that you always
12268 # use absolute paths for naming shared libraries, and exclude the
12269 # DT_RUNPATH tag from executables and libraries. But doing so
12270 # requires that you compile everything twice, which is a pain.
12271 # So that behaviour is only enabled if SCOABSPATH is set to a
12272 # non-empty value in the environment. Most likely only useful for
12273 # creating official distributions of packages.
12274 # This is a hack until libtool officially supports absolute path
12275 # names for shared libraries.
12276 no_undefined_flag_CXX='${wl}-z,text'
12277 allow_undefined_flag_CXX='${wl}-z,nodefs'
12278 archive_cmds_need_lc_CXX=no
12279 hardcode_shlibpath_var_CXX=no
12280 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12281 hardcode_libdir_separator_CXX=':'
12282 link_all_deplibs_CXX=yes
12283 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12284 runpath_var='LD_RUN_PATH'
12286 case $cc_basename in
12288 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12289 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12292 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12293 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12298 case $cc_basename in
12300 # NonStop-UX NCC 3.20
12301 # FIXME: insert proper C++ library support
12305 # FIXME: insert proper C++ library support
12311 # FIXME: insert proper C++ library support
12315 # FIXME: insert proper C++ library support
12319 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12320 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12321 test "$ld_shlibs_CXX" = no && can_build_shared=no
12326 cat > conftest.$ac_ext <<EOF
12330 Foo (void) { a = 0; }
12336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12337 (eval $ac_compile) 2>&5
12339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12340 (exit $ac_status); }; then
12341 # Parse the compiler output and extract the necessary
12342 # objects, libraries and library flags.
12344 # Sentinel used to keep track of whether or not we are before
12345 # the conftest object file.
12346 pre_test_object_deps_done=no
12348 # The `*' in the case matches for architectures that use `case' in
12349 # $output_verbose_cmd can trigger glob expansion during the loop
12350 # eval without this substitution.
12351 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12353 for p in `eval $output_verbose_link_cmd`; do
12357 # Some compilers place space between "-{L,R}" and the path.
12358 # Remove the space.
12359 if test $p = "-L" \
12360 || test $p = "-R"; then
12367 if test "$pre_test_object_deps_done" = no; then
12370 # Internal compiler library paths should come after those
12371 # provided the user. The postdeps already come after the
12372 # user supplied libs so there is no need to process them.
12373 if test -z "$compiler_lib_search_path_CXX"; then
12374 compiler_lib_search_path_CXX="${prev}${p}"
12376 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12379 # The "-l" case would never come before the object being
12380 # linked, so don't bother handling this case.
12383 if test -z "$postdeps_CXX"; then
12384 postdeps_CXX="${prev}${p}"
12386 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12392 # This assumes that the test object file only shows up
12393 # once in the compiler output.
12394 if test "$p" = "conftest.$objext"; then
12395 pre_test_object_deps_done=yes
12399 if test "$pre_test_object_deps_done" = no; then
12400 if test -z "$predep_objects_CXX"; then
12401 predep_objects_CXX="$p"
12403 predep_objects_CXX="$predep_objects_CXX $p"
12406 if test -z "$postdep_objects_CXX"; then
12407 postdep_objects_CXX="$p"
12409 postdep_objects_CXX="$postdep_objects_CXX $p"
12414 *) ;; # Ignore the rest.
12422 echo "libtool.m4: error: problem compiling CXX test program"
12425 $rm -f confest.$objext
12427 compiler_lib_search_dirs_CXX=
12428 if test -n "$compiler_lib_search_path_CXX"; then
12429 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12432 # PORTME: override above test on systems where it is broken
12435 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12436 # hack all around it, let's just trust "g++" to DTRT.
12437 predep_objects_CXX=
12438 postdep_objects_CXX=
12443 case `$CC -V 2>&1 | sed 5q` in
12447 # The more standards-conforming stlport4 library is
12448 # incompatible with the Cstd library. Avoid specifying
12449 # it if it's in CXXFLAGS. Ignore libCrun as
12450 # -library=stlport4 depends on it.
12451 case " $CXX $CXXFLAGS " in
12452 *" -library=stlport4 "*)
12453 solaris_use_stlport4=yes
12456 if test "$solaris_use_stlport4" != yes; then
12457 postdeps_CXX='-library=Cstd -library=Crun'
12464 case $cc_basename in
12466 # The more standards-conforming stlport4 library is
12467 # incompatible with the Cstd library. Avoid specifying
12468 # it if it's in CXXFLAGS. Ignore libCrun as
12469 # -library=stlport4 depends on it.
12470 case " $CXX $CXXFLAGS " in
12471 *" -library=stlport4 "*)
12472 solaris_use_stlport4=yes
12476 # Adding this requires a known-good setup of shared libraries for
12477 # Sun compiler versions before 5.6, else PIC objects from an old
12478 # archive will be linked into the output, leading to subtle bugs.
12479 if test "$solaris_use_stlport4" != yes; then
12480 postdeps_CXX='-library=Cstd -library=Crun'
12487 case " $postdeps_CXX " in
12488 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12491 lt_prog_compiler_wl_CXX=
12492 lt_prog_compiler_pic_CXX=
12493 lt_prog_compiler_static_CXX=
12495 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12496 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12498 # C++ specific cases for pic, static, wl, etc.
12499 if test "$GXX" = yes; then
12500 lt_prog_compiler_wl_CXX='-Wl,'
12501 lt_prog_compiler_static_CXX='-static'
12505 # All AIX code is PIC.
12506 if test "$host_cpu" = ia64; then
12507 # AIX 5 now supports IA64 processor
12508 lt_prog_compiler_static_CXX='-Bstatic'
12512 # FIXME: we need at least 68020 code to build shared libraries, but
12513 # adding the `-m68020' flag to GCC prevents building anything better,
12515 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12517 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12518 # PIC is the default for these OSes.
12520 mingw* | cygwin* | os2* | pw32*)
12521 # This hack is so that the source file can tell whether it is being
12522 # built for inclusion in a dll (and should export symbols for example).
12523 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12524 # (--disable-auto-import) libraries
12525 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12527 darwin* | rhapsody*)
12528 # PIC is the default on this platform
12529 # Common symbols not allowed in MH_DYLIB files
12530 lt_prog_compiler_pic_CXX='-fno-common'
12533 # DJGPP does not support shared libraries at all
12534 lt_prog_compiler_pic_CXX=
12537 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12538 # Instead, we relocate shared libraries at runtime.
12541 if test -d /usr/nec; then
12542 lt_prog_compiler_pic_CXX=-Kconform_pic
12546 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12547 # not for PA HP-UX.
12552 lt_prog_compiler_pic_CXX='-fPIC'
12557 lt_prog_compiler_pic_CXX='-fPIC'
12563 # All AIX code is PIC.
12564 if test "$host_cpu" = ia64; then
12565 # AIX 5 now supports IA64 processor
12566 lt_prog_compiler_static_CXX='-Bstatic'
12568 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12572 case $cc_basename in
12574 # Green Hills C++ Compiler
12575 # _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"
12580 # PIC is the default on this platform
12581 # Common symbols not allowed in MH_DYLIB files
12582 case $cc_basename in
12584 lt_prog_compiler_pic_CXX='-qnocommon'
12585 lt_prog_compiler_wl_CXX='-Wl,'
12590 case $cc_basename in
12592 lt_prog_compiler_pic_CXX='-KPIC'
12595 # Green Hills C++ Compiler
12596 lt_prog_compiler_pic_CXX='-pic'
12602 freebsd* | dragonfly*)
12603 # FreeBSD uses GNU C++
12605 hpux9* | hpux10* | hpux11*)
12606 case $cc_basename in
12608 lt_prog_compiler_wl_CXX='-Wl,'
12609 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12610 if test "$host_cpu" != ia64; then
12611 lt_prog_compiler_pic_CXX='+Z'
12615 lt_prog_compiler_wl_CXX='-Wl,'
12616 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12622 lt_prog_compiler_pic_CXX='+Z'
12631 # This is c89, which is MS Visual C++ (no shared libs)
12632 # Anyone wants to do a port?
12634 irix5* | irix6* | nonstopux*)
12635 case $cc_basename in
12637 lt_prog_compiler_wl_CXX='-Wl,'
12638 lt_prog_compiler_static_CXX='-non_shared'
12639 # CC pic flag -KPIC is the default.
12645 linux* | k*bsd*-gnu)
12646 case $cc_basename in
12649 lt_prog_compiler_wl_CXX='--backend -Wl,'
12650 lt_prog_compiler_pic_CXX='-fPIC'
12654 lt_prog_compiler_wl_CXX='-Wl,'
12655 lt_prog_compiler_pic_CXX='-KPIC'
12656 lt_prog_compiler_static_CXX='-static'
12659 # Portland Group C++ compiler.
12660 lt_prog_compiler_wl_CXX='-Wl,'
12661 lt_prog_compiler_pic_CXX='-fpic'
12662 lt_prog_compiler_static_CXX='-Bstatic'
12666 # Make sure the PIC flag is empty. It appears that all Alpha
12667 # Linux and Compaq Tru64 Unix objects are PIC.
12668 lt_prog_compiler_pic_CXX=
12669 lt_prog_compiler_static_CXX='-non_shared'
12672 case `$CC -V 2>&1 | sed 5q` in
12675 lt_prog_compiler_pic_CXX='-KPIC'
12676 lt_prog_compiler_static_CXX='-Bstatic'
12677 lt_prog_compiler_wl_CXX='-Qoption ld '
12688 case $cc_basename in
12690 lt_prog_compiler_pic_CXX='-W c,exportall'
12696 netbsd* | netbsdelf*-gnu)
12698 osf3* | osf4* | osf5*)
12699 case $cc_basename in
12701 lt_prog_compiler_wl_CXX='--backend -Wl,'
12704 # Rational C++ 2.4.1
12705 lt_prog_compiler_pic_CXX='-pic'
12708 # Digital/Compaq C++
12709 lt_prog_compiler_wl_CXX='-Wl,'
12710 # Make sure the PIC flag is empty. It appears that all Alpha
12711 # Linux and Compaq Tru64 Unix objects are PIC.
12712 lt_prog_compiler_pic_CXX=
12713 lt_prog_compiler_static_CXX='-non_shared'
12722 case $cc_basename in
12724 # Sun C++ 4.2, 5.x and Centerline C++
12725 lt_prog_compiler_pic_CXX='-KPIC'
12726 lt_prog_compiler_static_CXX='-Bstatic'
12727 lt_prog_compiler_wl_CXX='-Qoption ld '
12730 # Green Hills C++ Compiler
12731 lt_prog_compiler_pic_CXX='-PIC'
12738 case $cc_basename in
12741 lt_prog_compiler_pic_CXX='-pic'
12742 lt_prog_compiler_static_CXX='-Bstatic'
12746 lt_prog_compiler_pic_CXX='-pic'
12753 case $cc_basename in
12755 # NonStop-UX NCC 3.20
12756 lt_prog_compiler_pic_CXX='-KPIC'
12762 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12763 case $cc_basename in
12765 lt_prog_compiler_wl_CXX='-Wl,'
12766 lt_prog_compiler_pic_CXX='-KPIC'
12767 lt_prog_compiler_static_CXX='-Bstatic'
12774 lt_prog_compiler_can_build_shared_CXX=no
12779 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12780 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12783 # Check to make sure the PIC flag actually works.
12785 if test -n "$lt_prog_compiler_pic_CXX"; then
12787 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12788 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12789 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12790 echo $ECHO_N "(cached) $ECHO_C" >&6
12792 lt_cv_prog_compiler_pic_works_CXX=no
12793 ac_outfile=conftest.$ac_objext
12794 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12795 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12796 # Insert the option either (1) after the last *FLAGS variable, or
12797 # (2) before a word containing "conftest.", or (3) at the end.
12798 # Note that $ac_compile itself does not contain backslashes and begins
12799 # with a dollar sign (not a hyphen), so the echo should work correctly.
12800 # The option is referenced via a variable to avoid confusing sed.
12801 lt_compile=`echo "$ac_compile" | $SED \
12802 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12803 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12804 -e 's:$: $lt_compiler_flag:'`
12805 (eval echo "\"\$as_me:12805: $lt_compile\"" >&5)
12806 (eval "$lt_compile" 2>conftest.err)
12808 cat conftest.err >&5
12809 echo "$as_me:12809: \$? = $ac_status" >&5
12810 if (exit $ac_status) && test -s "$ac_outfile"; then
12811 # The compiler can only warn and ignore the option if not recognized
12812 # So say no if there are warnings other than the usual output.
12813 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12814 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12815 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12816 lt_cv_prog_compiler_pic_works_CXX=yes
12822 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12823 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12825 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12826 case $lt_prog_compiler_pic_CXX in
12828 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12831 lt_prog_compiler_pic_CXX=
12832 lt_prog_compiler_can_build_shared_CXX=no
12837 # For platforms which do not support PIC, -DPIC is meaningless:
12839 lt_prog_compiler_pic_CXX=
12842 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12847 # Check to make sure the static flag actually works.
12849 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12850 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12851 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12852 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12853 echo $ECHO_N "(cached) $ECHO_C" >&6
12855 lt_cv_prog_compiler_static_works_CXX=no
12856 save_LDFLAGS="$LDFLAGS"
12857 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12858 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12859 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12860 # The linker can only warn and ignore the option if not recognized
12861 # So say no if there are warnings
12862 if test -s conftest.err; then
12863 # Append any errors to the config.log.
12864 cat conftest.err 1>&5
12865 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12866 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12867 if diff conftest.exp conftest.er2 >/dev/null; then
12868 lt_cv_prog_compiler_static_works_CXX=yes
12871 lt_cv_prog_compiler_static_works_CXX=yes
12875 LDFLAGS="$save_LDFLAGS"
12878 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12879 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12881 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12884 lt_prog_compiler_static_CXX=
12888 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12889 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12890 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12891 echo $ECHO_N "(cached) $ECHO_C" >&6
12893 lt_cv_prog_compiler_c_o_CXX=no
12894 $rm -r conftest 2>/dev/null
12898 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12900 lt_compiler_flag="-o out/conftest2.$ac_objext"
12901 # Insert the option either (1) after the last *FLAGS variable, or
12902 # (2) before a word containing "conftest.", or (3) at the end.
12903 # Note that $ac_compile itself does not contain backslashes and begins
12904 # with a dollar sign (not a hyphen), so the echo should work correctly.
12905 lt_compile=`echo "$ac_compile" | $SED \
12906 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12907 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12908 -e 's:$: $lt_compiler_flag:'`
12909 (eval echo "\"\$as_me:12909: $lt_compile\"" >&5)
12910 (eval "$lt_compile" 2>out/conftest.err)
12912 cat out/conftest.err >&5
12913 echo "$as_me:12913: \$? = $ac_status" >&5
12914 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12916 # The compiler can only warn and ignore the option if not recognized
12917 # So say no if there are warnings
12918 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12919 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12920 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12921 lt_cv_prog_compiler_c_o_CXX=yes
12926 # SGI C++ compiler will create directory out/ii_files/ for
12927 # template instantiation
12928 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12929 $rm out/* && rmdir out
12935 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12936 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12939 hard_links="nottested"
12940 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12941 # do not overwrite the value of need_locks provided by the user
12942 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12943 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12946 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12948 ln conftest.a conftest.b 2>&5 || hard_links=no
12949 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12950 { echo "$as_me:$LINENO: result: $hard_links" >&5
12951 echo "${ECHO_T}$hard_links" >&6; }
12952 if test "$hard_links" = no; then
12953 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12954 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12961 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12962 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12964 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12967 # If we're using GNU nm, then we don't want the "-C" option.
12968 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12969 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12970 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'
12972 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'
12976 export_symbols_cmds_CXX="$ltdll_cmds"
12979 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'
12981 linux* | k*bsd*-gnu)
12982 link_all_deplibs_CXX=no
12985 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12988 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12990 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12991 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12992 test "$ld_shlibs_CXX" = no && can_build_shared=no
12995 # Do we need to explicitly link libc?
12997 case "x$archive_cmds_need_lc_CXX" in
12999 # Assume -lc should be added
13000 archive_cmds_need_lc_CXX=yes
13002 if test "$enable_shared" = yes && test "$GCC" = yes; then
13003 case $archive_cmds_CXX in
13005 # FIXME: we may have to deal with multi-command sequences.
13008 # Test whether the compiler implicitly links with -lc since on some
13009 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13010 # to ld, don't add -lc before -lgcc.
13011 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13012 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13014 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13017 (eval $ac_compile) 2>&5
13019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020 (exit $ac_status); } 2>conftest.err; then
13023 libobjs=conftest.$ac_objext
13025 wl=$lt_prog_compiler_wl_CXX
13026 pic_flag=$lt_prog_compiler_pic_CXX
13032 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13033 allow_undefined_flag_CXX=
13034 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13035 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13038 (exit $ac_status); }
13040 archive_cmds_need_lc_CXX=no
13042 archive_cmds_need_lc_CXX=yes
13044 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13046 cat conftest.err 1>&5
13049 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13050 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13057 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13058 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13059 library_names_spec=
13060 libname_spec='lib$name'
13064 postuninstall_cmds=
13068 shlibpath_overrides_runpath=unknown
13070 dynamic_linker="$host_os ld.so"
13071 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13073 need_lib_prefix=unknown
13074 hardcode_into_libs=no
13076 # when you set need_version to no, make sure it does not cause -set_version
13077 # flags to be left without arguments
13078 need_version=unknown
13083 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13084 shlibpath_var=LIBPATH
13086 # AIX 3 has no versioning support, so we append a major version to the name.
13087 soname_spec='${libname}${release}${shared_ext}$major'
13094 hardcode_into_libs=yes
13095 if test "$host_cpu" = ia64; then
13096 # AIX 5 supports IA64
13097 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13098 shlibpath_var=LD_LIBRARY_PATH
13100 # With GCC up to 2.95.x, collect2 would create an import file
13101 # for dependence libraries. The import file would start with
13102 # the line `#! .'. This would cause the generated library to
13103 # depend on `.', always an invalid library. This was fixed in
13104 # development snapshots of GCC prior to 3.0.
13106 aix4 | aix4.[01] | aix4.[01].*)
13107 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13109 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13112 can_build_shared=no
13116 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13117 # soname into executable. Probably we can add versioning support to
13118 # collect2, so additional links can be useful in future.
13119 if test "$aix_use_runtimelinking" = yes; then
13120 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13121 # instead of lib<name>.a to let people know that these are not
13122 # typical AIX shared libraries.
13123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13125 # We preserve .a as extension for shared libraries through AIX4.2
13126 # and later when we are not doing run time linking.
13127 library_names_spec='${libname}${release}.a $libname.a'
13128 soname_spec='${libname}${release}${shared_ext}$major'
13130 shlibpath_var=LIBPATH
13135 library_names_spec='$libname.ixlibrary $libname.a'
13136 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13137 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'
13141 library_names_spec='${libname}${shared_ext}'
13142 dynamic_linker="$host_os ld.so"
13143 shlibpath_var=LIBRARY_PATH
13149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13150 soname_spec='${libname}${release}${shared_ext}$major'
13151 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13152 shlibpath_var=LD_LIBRARY_PATH
13153 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13154 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13155 # the default ld.so.conf also contains /usr/contrib/lib and
13156 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13157 # libtool to hard-code these into programs
13160 cygwin* | mingw* | pw32*)
13161 version_type=windows
13166 case $GCC,$host_os in
13167 yes,cygwin* | yes,mingw* | yes,pw32*)
13168 library_names_spec='$libname.dll.a'
13169 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13170 postinstall_cmds='base_file=`basename \${file}`~
13171 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13172 dldir=$destdir/`dirname \$dlpath`~
13173 test -d \$dldir || mkdir -p \$dldir~
13174 $install_prog $dir/$dlname \$dldir/$dlname~
13175 chmod a+x \$dldir/$dlname'
13176 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13177 dlpath=$dir/\$dldll~
13179 shlibpath_overrides_runpath=yes
13183 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13184 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13185 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13188 # MinGW DLLs use traditional 'lib' prefix
13189 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13190 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13191 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13192 # It is most probably a Windows format PATH printed by
13193 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13194 # path with ; separators, and with drive letters. We can handle the
13195 # drive letters (cygwin fileutils understands them), so leave them,
13196 # especially as we might pass files found there to a mingw objdump,
13197 # which wouldn't understand a cygwinified path. Ahh.
13198 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13200 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13204 # pw32 DLLs use 'pw' prefix rather than 'lib'
13205 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13211 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13214 dynamic_linker='Win32 ld.exe'
13215 # FIXME: first we should search . and the directory the executable is in
13219 darwin* | rhapsody*)
13220 dynamic_linker="$host_os dyld"
13221 version_type=darwin
13224 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13225 soname_spec='${libname}${release}${major}$shared_ext'
13226 shlibpath_overrides_runpath=yes
13227 shlibpath_var=DYLD_LIBRARY_PATH
13228 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13230 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13238 soname_spec='${libname}${release}${shared_ext}$major'
13239 shlibpath_var=LD_LIBRARY_PATH
13246 freebsd* | dragonfly*)
13247 # DragonFly does not have aout. When/if they implement a new
13248 # versioning mechanism, adjust this.
13249 if test -x /usr/bin/objformat; then
13250 objformat=`/usr/bin/objformat`
13253 freebsd[123]*) objformat=aout ;;
13254 *) objformat=elf ;;
13257 version_type=freebsd-$objformat
13258 case $version_type in
13260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13265 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13269 shlibpath_var=LD_LIBRARY_PATH
13272 shlibpath_overrides_runpath=yes
13274 freebsd3.[01]* | freebsdelf3.[01]*)
13275 shlibpath_overrides_runpath=yes
13276 hardcode_into_libs=yes
13278 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13279 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13280 shlibpath_overrides_runpath=no
13281 hardcode_into_libs=yes
13283 *) # from 4.6 on, and DragonFly
13284 shlibpath_overrides_runpath=yes
13285 hardcode_into_libs=yes
13294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13295 soname_spec='${libname}${release}${shared_ext}$major'
13296 shlibpath_var=LD_LIBRARY_PATH
13297 hardcode_into_libs=yes
13300 hpux9* | hpux10* | hpux11*)
13301 # Give a soname corresponding to the major version so that dld.sl refuses to
13302 # link against other versions.
13309 hardcode_into_libs=yes
13310 dynamic_linker="$host_os dld.so"
13311 shlibpath_var=LD_LIBRARY_PATH
13312 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13314 soname_spec='${libname}${release}${shared_ext}$major'
13315 if test "X$HPUX_IA64_MODE" = X32; then
13316 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13318 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13320 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13324 hardcode_into_libs=yes
13325 dynamic_linker="$host_os dld.sl"
13326 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13327 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13329 soname_spec='${libname}${release}${shared_ext}$major'
13330 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13331 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13335 dynamic_linker="$host_os dld.sl"
13336 shlibpath_var=SHLIB_PATH
13337 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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'
13342 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13343 postinstall_cmds='chmod 555 $lib'
13350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13351 soname_spec='${libname}${release}${shared_ext}$major'
13352 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13353 shlibpath_var=LD_LIBRARY_PATH
13354 shlibpath_overrides_runpath=no
13355 hardcode_into_libs=yes
13358 irix5* | irix6* | nonstopux*)
13360 nonstopux*) version_type=nonstopux ;;
13362 if test "$lt_cv_prog_gnu_ld" = yes; then
13370 soname_spec='${libname}${release}${shared_ext}$major'
13371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13373 irix5* | nonstopux*)
13374 libsuff= shlibsuff=
13377 case $LD in # libtool.m4 will add one of these switches to LD
13378 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13379 libsuff= shlibsuff= libmagic=32-bit;;
13380 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13381 libsuff=32 shlibsuff=N32 libmagic=N32;;
13382 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13383 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13384 *) libsuff= shlibsuff= libmagic=never-match;;
13388 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13389 shlibpath_overrides_runpath=no
13390 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13391 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13392 hardcode_into_libs=yes
13395 # No shared lib support for Linux oldld, aout, or coff.
13396 linux*oldld* | linux*aout* | linux*coff*)
13400 # This must be Linux ELF.
13401 linux* | k*bsd*-gnu)
13405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13406 soname_spec='${libname}${release}${shared_ext}$major'
13407 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13408 shlibpath_var=LD_LIBRARY_PATH
13409 shlibpath_overrides_runpath=no
13410 # This implies no fast_install, which is unacceptable.
13411 # Some rework will be needed to allow for fast_install
13412 # before this can be enabled.
13413 hardcode_into_libs=yes
13415 # Append ld.so.conf contents to the search path
13416 if test -f /etc/ld.so.conf; then
13417 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' ' '`
13418 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13421 # We used to test for /lib/ld.so.1 and disable shared libraries on
13422 # powerpc, because MkLinux only supported shared libraries with the
13423 # GNU dynamic linker. Since this was broken with cross compilers,
13424 # most powerpc-linux boxes support dynamic linking these days and
13425 # people can always --disable-shared, the test was removed, and we
13426 # assume the GNU/Linux dynamic linker is in use.
13427 dynamic_linker='GNU/Linux ld.so'
13434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13435 soname_spec='${libname}${release}${shared_ext}$major'
13436 shlibpath_var=LD_LIBRARY_PATH
13437 shlibpath_overrides_runpath=no
13438 hardcode_into_libs=yes
13439 dynamic_linker='NetBSD ld.elf_so'
13446 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13448 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13449 dynamic_linker='NetBSD (a.out) ld.so'
13451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13452 soname_spec='${libname}${release}${shared_ext}$major'
13453 dynamic_linker='NetBSD ld.elf_so'
13455 shlibpath_var=LD_LIBRARY_PATH
13456 shlibpath_overrides_runpath=yes
13457 hardcode_into_libs=yes
13462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13463 shlibpath_var=LD_LIBRARY_PATH
13464 shlibpath_overrides_runpath=yes
13471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13472 soname_spec='${libname}${release}${shared_ext}$major'
13473 shlibpath_var=LD_LIBRARY_PATH
13474 shlibpath_overrides_runpath=yes
13479 sys_lib_dlsearch_path_spec="/usr/lib"
13481 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13483 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13484 *) need_version=no ;;
13486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13487 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13488 shlibpath_var=LD_LIBRARY_PATH
13489 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13491 openbsd2.[89] | openbsd2.[89].*)
13492 shlibpath_overrides_runpath=no
13495 shlibpath_overrides_runpath=yes
13499 shlibpath_overrides_runpath=yes
13504 libname_spec='$name'
13507 library_names_spec='$libname${shared_ext} $libname.a'
13508 dynamic_linker='OS/2 ld.exe'
13509 shlibpath_var=LIBPATH
13512 osf3* | osf4* | osf5*)
13516 soname_spec='${libname}${release}${shared_ext}$major'
13517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13518 shlibpath_var=LD_LIBRARY_PATH
13519 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13520 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13532 soname_spec='${libname}${release}${shared_ext}$major'
13533 shlibpath_var=LD_LIBRARY_PATH
13534 shlibpath_overrides_runpath=yes
13535 hardcode_into_libs=yes
13536 # ldd complains unless libraries are executable
13537 postinstall_cmds='chmod +x $lib'
13542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13543 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13544 shlibpath_var=LD_LIBRARY_PATH
13545 shlibpath_overrides_runpath=yes
13546 if test "$with_gnu_ld" = yes; then
13554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13555 soname_spec='${libname}${release}${shared_ext}$major'
13556 shlibpath_var=LD_LIBRARY_PATH
13557 case $host_vendor in
13559 shlibpath_overrides_runpath=no
13561 export_dynamic_flag_spec='${wl}-Blargedynsym'
13562 runpath_var=LD_RUN_PATH
13570 shlibpath_overrides_runpath=no
13571 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13577 if test -d /usr/nec ;then
13579 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13580 soname_spec='$libname${shared_ext}.$major'
13581 shlibpath_var=LD_LIBRARY_PATH
13585 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13586 version_type=freebsd-elf
13589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13590 soname_spec='${libname}${release}${shared_ext}$major'
13591 shlibpath_var=LD_LIBRARY_PATH
13592 hardcode_into_libs=yes
13593 if test "$with_gnu_ld" = yes; then
13594 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13595 shlibpath_overrides_runpath=no
13597 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13598 shlibpath_overrides_runpath=yes
13601 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13605 sys_lib_dlsearch_path_spec='/usr/lib'
13610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13611 soname_spec='${libname}${release}${shared_ext}$major'
13612 shlibpath_var=LD_LIBRARY_PATH
13619 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13620 echo "${ECHO_T}$dynamic_linker" >&6; }
13621 test "$dynamic_linker" = no && can_build_shared=no
13623 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13624 echo $ECHO_N "(cached) $ECHO_C" >&6
13626 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13629 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13630 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13631 echo $ECHO_N "(cached) $ECHO_C" >&6
13633 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13636 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13638 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13639 if test "$GCC" = yes; then
13640 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13643 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13644 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13645 hardcode_action_CXX=
13646 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13647 test -n "$runpath_var_CXX" || \
13648 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13650 # We can hardcode non-existant directories.
13651 if test "$hardcode_direct_CXX" != no &&
13652 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13653 # have to relink, otherwise we might link with an installed library
13654 # when we should be linking with a yet-to-be-installed one
13655 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13656 test "$hardcode_minus_L_CXX" != no; then
13657 # Linking always hardcodes the temporary library directory.
13658 hardcode_action_CXX=relink
13660 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13661 hardcode_action_CXX=immediate
13664 # We cannot hardcode anything, or else we can only hardcode existing
13666 hardcode_action_CXX=unsupported
13668 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13669 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13671 if test "$hardcode_action_CXX" = relink; then
13672 # Fast installation is not supported
13673 enable_fast_install=no
13674 elif test "$shlibpath_overrides_runpath" = yes ||
13675 test "$enable_shared" = no; then
13676 # Fast installation is not necessary
13677 enable_fast_install=needless
13681 # The else clause should only fire when bootstrapping the
13682 # libtool distribution, otherwise you forgot to ship ltmain.sh
13683 # with your package, and you will get complaints that there are
13684 # no rules to generate ltmain.sh.
13685 if test -f "$ltmain"; then
13686 # See if we are running on zsh, and set the options which allow our commands through
13687 # without removal of \ escapes.
13688 if test -n "${ZSH_VERSION+set}" ; then
13689 setopt NO_GLOB_SUBST
13691 # Now quote all the things that may contain metacharacters while being
13692 # careful not to overquote the AC_SUBSTed values. We take copies of the
13693 # variables and quote the copies for generation of the libtool script.
13694 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13696 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13697 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13698 deplibs_check_method reload_flag reload_cmds need_locks \
13699 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13700 lt_cv_sys_global_symbol_to_c_name_address \
13701 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13702 old_postinstall_cmds old_postuninstall_cmds \
13706 lt_prog_compiler_wl_CXX \
13707 lt_prog_compiler_pic_CXX \
13708 lt_prog_compiler_static_CXX \
13709 lt_prog_compiler_no_builtin_flag_CXX \
13710 export_dynamic_flag_spec_CXX \
13711 thread_safe_flag_spec_CXX \
13712 whole_archive_flag_spec_CXX \
13713 enable_shared_with_static_runtimes_CXX \
13714 old_archive_cmds_CXX \
13715 old_archive_from_new_cmds_CXX \
13716 predep_objects_CXX \
13717 postdep_objects_CXX \
13720 compiler_lib_search_path_CXX \
13721 compiler_lib_search_dirs_CXX \
13723 archive_expsym_cmds_CXX \
13724 postinstall_cmds_CXX \
13725 postuninstall_cmds_CXX \
13726 old_archive_from_expsyms_cmds_CXX \
13727 allow_undefined_flag_CXX \
13728 no_undefined_flag_CXX \
13729 export_symbols_cmds_CXX \
13730 hardcode_libdir_flag_spec_CXX \
13731 hardcode_libdir_flag_spec_ld_CXX \
13732 hardcode_libdir_separator_CXX \
13733 hardcode_automatic_CXX \
13735 module_expsym_cmds_CXX \
13736 lt_cv_prog_compiler_c_o_CXX \
13737 fix_srcfile_path_CXX \
13738 exclude_expsyms_CXX \
13739 include_expsyms_CXX; do
13742 old_archive_cmds_CXX | \
13743 old_archive_from_new_cmds_CXX | \
13744 archive_cmds_CXX | \
13745 archive_expsym_cmds_CXX | \
13746 module_cmds_CXX | \
13747 module_expsym_cmds_CXX | \
13748 old_archive_from_expsyms_cmds_CXX | \
13749 export_symbols_cmds_CXX | \
13750 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13751 postinstall_cmds | postuninstall_cmds | \
13752 old_postinstall_cmds | old_postuninstall_cmds | \
13753 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13754 # Double-quote double-evaled strings.
13755 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13758 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13764 *'\$0 --fallback-echo"')
13765 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13771 cat <<__EOF__ >> "$cfgfile"
13772 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13774 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13776 # Shell to use when invoking shell scripts.
13779 # Whether or not to build shared libraries.
13780 build_libtool_libs=$enable_shared
13782 # Whether or not to build static libraries.
13783 build_old_libs=$enable_static
13785 # Whether or not to add -lc for building shared libraries.
13786 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13788 # Whether or not to disallow shared libs when runtime libs are static
13789 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13791 # Whether or not to optimize for fast installation.
13792 fast_install=$enable_fast_install
13795 host_alias=$host_alias
13799 # The build system.
13800 build_alias=$build_alias
13804 # An echo program that does not interpret backslashes.
13809 AR_FLAGS=$lt_AR_FLAGS
13814 # LTCC compiler flags.
13815 LTCFLAGS=$lt_LTCFLAGS
13817 # A language-specific compiler.
13818 CC=$lt_compiler_CXX
13820 # Is the compiler the GNU C compiler?
13826 # The linker used to build libraries.
13829 # Whether we need hard or soft links.
13832 # A BSD-compatible nm program.
13835 # A symbol stripping program
13838 # Used to examine libraries when file_magic_cmd begins "file"
13839 MAGIC_CMD=$MAGIC_CMD
13841 # Used on cygwin: DLL creation program.
13844 # Used on cygwin: object dumper.
13847 # Used on cygwin: assembler.
13850 # The name of the directory that contains temporary libtool files.
13853 # How to create reloadable object files.
13854 reload_flag=$lt_reload_flag
13855 reload_cmds=$lt_reload_cmds
13857 # How to pass a linker flag through the compiler.
13858 wl=$lt_lt_prog_compiler_wl_CXX
13860 # Object file suffix (normally "o").
13861 objext="$ac_objext"
13863 # Old archive suffix (normally "a").
13866 # Shared library suffix (normally ".so").
13867 shrext_cmds='$shrext_cmds'
13869 # Executable file suffix (normally "").
13872 # Additional compiler flags for building library objects.
13873 pic_flag=$lt_lt_prog_compiler_pic_CXX
13876 # What is the maximum length of a command?
13877 max_cmd_len=$lt_cv_sys_max_cmd_len
13879 # Does compiler simultaneously support -c and -o options?
13880 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13882 # Must we lock files when doing compilation?
13883 need_locks=$lt_need_locks
13885 # Do we need the lib prefix for modules?
13886 need_lib_prefix=$need_lib_prefix
13888 # Do we need a version for libraries?
13889 need_version=$need_version
13891 # Whether dlopen is supported.
13892 dlopen_support=$enable_dlopen
13894 # Whether dlopen of programs is supported.
13895 dlopen_self=$enable_dlopen_self
13897 # Whether dlopen of statically linked programs is supported.
13898 dlopen_self_static=$enable_dlopen_self_static
13900 # Compiler flag to prevent dynamic linking.
13901 link_static_flag=$lt_lt_prog_compiler_static_CXX
13903 # Compiler flag to turn off builtin functions.
13904 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13906 # Compiler flag to allow reflexive dlopens.
13907 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13909 # Compiler flag to generate shared objects directly from archives.
13910 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13912 # Compiler flag to generate thread-safe objects.
13913 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13915 # Library versioning type.
13916 version_type=$version_type
13918 # Format of library name prefix.
13919 libname_spec=$lt_libname_spec
13921 # List of archive names. First name is the real one, the rest are links.
13922 # The last name is the one that the linker finds with -lNAME.
13923 library_names_spec=$lt_library_names_spec
13925 # The coded name of the library, if different from the real name.
13926 soname_spec=$lt_soname_spec
13928 # Commands used to build and install an old-style archive.
13930 old_archive_cmds=$lt_old_archive_cmds_CXX
13931 old_postinstall_cmds=$lt_old_postinstall_cmds
13932 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13934 # Create an old-style archive from a shared archive.
13935 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13937 # Create a temporary old-style archive to link instead of a shared archive.
13938 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13940 # Commands used to build and install a shared archive.
13941 archive_cmds=$lt_archive_cmds_CXX
13942 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13943 postinstall_cmds=$lt_postinstall_cmds
13944 postuninstall_cmds=$lt_postuninstall_cmds
13946 # Commands used to build a loadable module (assumed same as above if empty)
13947 module_cmds=$lt_module_cmds_CXX
13948 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13950 # Commands to strip libraries.
13951 old_striplib=$lt_old_striplib
13952 striplib=$lt_striplib
13954 # Dependencies to place before the objects being linked to create a
13956 predep_objects=$lt_predep_objects_CXX
13958 # Dependencies to place after the objects being linked to create a
13960 postdep_objects=$lt_postdep_objects_CXX
13962 # Dependencies to place before the objects being linked to create a
13964 predeps=$lt_predeps_CXX
13966 # Dependencies to place after the objects being linked to create a
13968 postdeps=$lt_postdeps_CXX
13970 # The directories searched by this compiler when creating a shared
13972 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13974 # The library search path used internally by the compiler when linking
13975 # a shared library.
13976 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13978 # Method to check whether dependent libraries are shared objects.
13979 deplibs_check_method=$lt_deplibs_check_method
13981 # Command to use when deplibs_check_method == file_magic.
13982 file_magic_cmd=$lt_file_magic_cmd
13984 # Flag that allows shared libraries with undefined symbols to be built.
13985 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13987 # Flag that forces no undefined symbols.
13988 no_undefined_flag=$lt_no_undefined_flag_CXX
13990 # Commands used to finish a libtool library installation in a directory.
13991 finish_cmds=$lt_finish_cmds
13993 # Same as above, but a single script fragment to be evaled but not shown.
13994 finish_eval=$lt_finish_eval
13996 # Take the output of nm and produce a listing of raw symbols and C names.
13997 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13999 # Transform the output of nm in a proper C declaration
14000 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14002 # Transform the output of nm in a C name address pair
14003 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14005 # This is the shared library runtime path variable.
14006 runpath_var=$runpath_var
14008 # This is the shared library path variable.
14009 shlibpath_var=$shlibpath_var
14011 # Is shlibpath searched before the hard-coded library search path?
14012 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14014 # How to hardcode a shared library path into an executable.
14015 hardcode_action=$hardcode_action_CXX
14017 # Whether we should hardcode library paths into libraries.
14018 hardcode_into_libs=$hardcode_into_libs
14020 # Flag to hardcode \$libdir into a binary during linking.
14021 # This must work even if \$libdir does not exist.
14022 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14024 # If ld is used when linking, flag to hardcode \$libdir into
14025 # a binary during linking. This must work even if \$libdir does
14027 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14029 # Whether we need a single -rpath flag with a separated argument.
14030 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14032 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14033 # resulting binary.
14034 hardcode_direct=$hardcode_direct_CXX
14036 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14037 # resulting binary.
14038 hardcode_minus_L=$hardcode_minus_L_CXX
14040 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14041 # the resulting binary.
14042 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14044 # Set to yes if building a shared library automatically hardcodes DIR into the library
14045 # and all subsequent libraries and executables linked against it.
14046 hardcode_automatic=$hardcode_automatic_CXX
14048 # Variables whose values should be saved in libtool wrapper scripts and
14049 # restored at relink time.
14050 variables_saved_for_relink="$variables_saved_for_relink"
14052 # Whether libtool must link a program against all its dependency libraries.
14053 link_all_deplibs=$link_all_deplibs_CXX
14055 # Compile-time system search path for libraries
14056 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14058 # Run-time system search path for libraries
14059 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14061 # Fix the shell variable \$srcfile for the compiler.
14062 fix_srcfile_path=$lt_fix_srcfile_path
14064 # Set to yes if exported symbols are required.
14065 always_export_symbols=$always_export_symbols_CXX
14067 # The commands to list exported symbols.
14068 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14070 # The commands to extract the exported symbol list from a shared archive.
14071 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14073 # Symbols that should not be listed in the preloaded symbols.
14074 exclude_expsyms=$lt_exclude_expsyms_CXX
14076 # Symbols that must always be exported.
14077 include_expsyms=$lt_include_expsyms_CXX
14079 # ### END LIBTOOL TAG CONFIG: $tagname
14085 # If there is no Makefile yet, we rely on a make rule to execute
14086 # `config.status --recheck' to rerun these tests and create the
14087 # libtool script then.
14088 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14089 if test -f "$ltmain_in"; then
14090 test -f Makefile && make "$ltmain"
14096 ac_cpp='$CPP $CPPFLAGS'
14097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14105 with_gnu_ldcxx=$with_gnu_ld
14106 with_gnu_ld=$lt_save_with_gnu_ld
14107 lt_cv_path_LDCXX=$lt_cv_path_LD
14108 lt_cv_path_LD=$lt_save_path_LD
14109 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14110 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14118 if test -n "$F77" && test "X$F77" != "Xno"; then
14121 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14122 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14123 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14126 archive_cmds_need_lc_F77=no
14127 allow_undefined_flag_F77=
14128 always_export_symbols_F77=no
14129 archive_expsym_cmds_F77=
14130 export_dynamic_flag_spec_F77=
14131 hardcode_direct_F77=no
14132 hardcode_libdir_flag_spec_F77=
14133 hardcode_libdir_flag_spec_ld_F77=
14134 hardcode_libdir_separator_F77=
14135 hardcode_minus_L_F77=no
14136 hardcode_automatic_F77=no
14138 module_expsym_cmds_F77=
14139 link_all_deplibs_F77=unknown
14140 old_archive_cmds_F77=$old_archive_cmds
14141 no_undefined_flag_F77=
14142 whole_archive_flag_spec_F77=
14143 enable_shared_with_static_runtimes_F77=no
14145 # Source file extension for f77 test sources.
14148 # Object file extension for compiled f77 test sources.
14152 # Code to be used in simple compile tests
14153 lt_simple_compile_test_code="\
14159 # Code to be used in simple link tests
14160 lt_simple_link_test_code="\
14165 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14167 # If no C compiler was specified, use CC.
14170 # If no C compiler flags were specified, use CFLAGS.
14171 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14173 # Allow CC to be a program name with arguments.
14177 # save warnings/boilerplate of simple test code
14178 ac_outfile=conftest.$ac_objext
14179 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14180 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14181 _lt_compiler_boilerplate=`cat conftest.err`
14184 ac_outfile=conftest.$ac_objext
14185 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14186 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14187 _lt_linker_boilerplate=`cat conftest.err`
14191 # Allow CC to be a program name with arguments.
14196 for cc_temp in $compiler""; do
14198 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14199 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14204 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14207 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14208 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14209 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14210 echo "${ECHO_T}$can_build_shared" >&6; }
14212 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14213 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14214 test "$can_build_shared" = "no" && enable_shared=no
14216 # On AIX, shared libraries and static libraries use the same namespace, and
14217 # are all built from PIC.
14220 test "$enable_shared" = yes && enable_static=no
14221 if test -n "$RANLIB"; then
14222 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14223 postinstall_cmds='$RANLIB $lib'
14227 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14228 test "$enable_shared" = yes && enable_static=no
14232 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14233 echo "${ECHO_T}$enable_shared" >&6; }
14235 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14236 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14237 # Make sure either enable_shared or enable_static is yes.
14238 test "$enable_shared" = yes || enable_static=yes
14239 { echo "$as_me:$LINENO: result: $enable_static" >&5
14240 echo "${ECHO_T}$enable_static" >&6; }
14245 lt_prog_compiler_wl_F77=
14246 lt_prog_compiler_pic_F77=
14247 lt_prog_compiler_static_F77=
14249 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14250 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14252 if test "$GCC" = yes; then
14253 lt_prog_compiler_wl_F77='-Wl,'
14254 lt_prog_compiler_static_F77='-static'
14258 # All AIX code is PIC.
14259 if test "$host_cpu" = ia64; then
14260 # AIX 5 now supports IA64 processor
14261 lt_prog_compiler_static_F77='-Bstatic'
14266 # FIXME: we need at least 68020 code to build shared libraries, but
14267 # adding the `-m68020' flag to GCC prevents building anything better,
14269 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14272 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14273 # PIC is the default for these OSes.
14276 mingw* | cygwin* | pw32* | os2*)
14277 # This hack is so that the source file can tell whether it is being
14278 # built for inclusion in a dll (and should export symbols for example).
14279 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14280 # (--disable-auto-import) libraries
14281 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14284 darwin* | rhapsody*)
14285 # PIC is the default on this platform
14286 # Common symbols not allowed in MH_DYLIB files
14287 lt_prog_compiler_pic_F77='-fno-common'
14291 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14292 # Instead, we relocate shared libraries at runtime.
14296 # Just because we use GCC doesn't mean we suddenly get shared libraries
14297 # on systems that don't support them.
14298 lt_prog_compiler_can_build_shared_F77=no
14303 if test -d /usr/nec; then
14304 lt_prog_compiler_pic_F77=-Kconform_pic
14309 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14310 # not for PA HP-UX.
14316 lt_prog_compiler_pic_F77='-fPIC'
14322 lt_prog_compiler_pic_F77='-fPIC'
14326 # PORTME Check for flag to pass linker flags through the system compiler.
14329 lt_prog_compiler_wl_F77='-Wl,'
14330 if test "$host_cpu" = ia64; then
14331 # AIX 5 now supports IA64 processor
14332 lt_prog_compiler_static_F77='-Bstatic'
14334 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14338 # PIC is the default on this platform
14339 # Common symbols not allowed in MH_DYLIB files
14340 case $cc_basename in
14342 lt_prog_compiler_pic_F77='-qnocommon'
14343 lt_prog_compiler_wl_F77='-Wl,'
14348 mingw* | cygwin* | pw32* | os2*)
14349 # This hack is so that the source file can tell whether it is being
14350 # built for inclusion in a dll (and should export symbols for example).
14351 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14354 hpux9* | hpux10* | hpux11*)
14355 lt_prog_compiler_wl_F77='-Wl,'
14356 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14357 # not for PA HP-UX.
14363 lt_prog_compiler_pic_F77='+Z'
14366 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14367 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14370 irix5* | irix6* | nonstopux*)
14371 lt_prog_compiler_wl_F77='-Wl,'
14372 # PIC (with -KPIC) is the default.
14373 lt_prog_compiler_static_F77='-non_shared'
14377 lt_prog_compiler_pic_F77='-KPIC'
14378 lt_prog_compiler_static_F77='-Bstatic'
14381 linux* | k*bsd*-gnu)
14382 case $cc_basename in
14384 lt_prog_compiler_wl_F77='-Wl,'
14385 lt_prog_compiler_pic_F77='-KPIC'
14386 lt_prog_compiler_static_F77='-static'
14388 pgcc* | pgf77* | pgf90* | pgf95*)
14389 # Portland Group compilers (*not* the Pentium gcc compiler,
14390 # which looks to be a dead project)
14391 lt_prog_compiler_wl_F77='-Wl,'
14392 lt_prog_compiler_pic_F77='-fpic'
14393 lt_prog_compiler_static_F77='-Bstatic'
14396 lt_prog_compiler_wl_F77='-Wl,'
14397 # All Alpha code is PIC.
14398 lt_prog_compiler_static_F77='-non_shared'
14401 case `$CC -V 2>&1 | sed 5q` in
14404 lt_prog_compiler_pic_F77='-KPIC'
14405 lt_prog_compiler_static_F77='-Bstatic'
14406 lt_prog_compiler_wl_F77='-Wl,'
14409 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14410 lt_prog_compiler_pic_F77='-KPIC'
14411 lt_prog_compiler_static_F77='-Bstatic'
14412 lt_prog_compiler_wl_F77=''
14419 osf3* | osf4* | osf5*)
14420 lt_prog_compiler_wl_F77='-Wl,'
14421 # All OSF/1 code is PIC.
14422 lt_prog_compiler_static_F77='-non_shared'
14426 lt_prog_compiler_static_F77='-non_shared'
14430 lt_prog_compiler_pic_F77='-KPIC'
14431 lt_prog_compiler_static_F77='-Bstatic'
14432 case $cc_basename in
14433 f77* | f90* | f95*)
14434 lt_prog_compiler_wl_F77='-Qoption ld ';;
14436 lt_prog_compiler_wl_F77='-Wl,';;
14441 lt_prog_compiler_wl_F77='-Qoption ld '
14442 lt_prog_compiler_pic_F77='-PIC'
14443 lt_prog_compiler_static_F77='-Bstatic'
14446 sysv4 | sysv4.2uw2* | sysv4.3*)
14447 lt_prog_compiler_wl_F77='-Wl,'
14448 lt_prog_compiler_pic_F77='-KPIC'
14449 lt_prog_compiler_static_F77='-Bstatic'
14453 if test -d /usr/nec ;then
14454 lt_prog_compiler_pic_F77='-Kconform_pic'
14455 lt_prog_compiler_static_F77='-Bstatic'
14459 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14460 lt_prog_compiler_wl_F77='-Wl,'
14461 lt_prog_compiler_pic_F77='-KPIC'
14462 lt_prog_compiler_static_F77='-Bstatic'
14466 lt_prog_compiler_wl_F77='-Wl,'
14467 lt_prog_compiler_can_build_shared_F77=no
14471 lt_prog_compiler_pic_F77='-pic'
14472 lt_prog_compiler_static_F77='-Bstatic'
14476 lt_prog_compiler_can_build_shared_F77=no
14481 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14482 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14485 # Check to make sure the PIC flag actually works.
14487 if test -n "$lt_prog_compiler_pic_F77"; then
14489 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14490 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14491 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14492 echo $ECHO_N "(cached) $ECHO_C" >&6
14494 lt_cv_prog_compiler_pic_works_F77=no
14495 ac_outfile=conftest.$ac_objext
14496 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14497 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14498 # Insert the option either (1) after the last *FLAGS variable, or
14499 # (2) before a word containing "conftest.", or (3) at the end.
14500 # Note that $ac_compile itself does not contain backslashes and begins
14501 # with a dollar sign (not a hyphen), so the echo should work correctly.
14502 # The option is referenced via a variable to avoid confusing sed.
14503 lt_compile=`echo "$ac_compile" | $SED \
14504 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14505 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14506 -e 's:$: $lt_compiler_flag:'`
14507 (eval echo "\"\$as_me:14507: $lt_compile\"" >&5)
14508 (eval "$lt_compile" 2>conftest.err)
14510 cat conftest.err >&5
14511 echo "$as_me:14511: \$? = $ac_status" >&5
14512 if (exit $ac_status) && test -s "$ac_outfile"; then
14513 # The compiler can only warn and ignore the option if not recognized
14514 # So say no if there are warnings other than the usual output.
14515 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14516 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14517 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14518 lt_cv_prog_compiler_pic_works_F77=yes
14524 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14525 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14527 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14528 case $lt_prog_compiler_pic_F77 in
14530 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14533 lt_prog_compiler_pic_F77=
14534 lt_prog_compiler_can_build_shared_F77=no
14539 # For platforms which do not support PIC, -DPIC is meaningless:
14541 lt_prog_compiler_pic_F77=
14544 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14549 # Check to make sure the static flag actually works.
14551 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14552 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14553 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14554 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14555 echo $ECHO_N "(cached) $ECHO_C" >&6
14557 lt_cv_prog_compiler_static_works_F77=no
14558 save_LDFLAGS="$LDFLAGS"
14559 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14560 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14561 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14562 # The linker can only warn and ignore the option if not recognized
14563 # So say no if there are warnings
14564 if test -s conftest.err; then
14565 # Append any errors to the config.log.
14566 cat conftest.err 1>&5
14567 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14568 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14569 if diff conftest.exp conftest.er2 >/dev/null; then
14570 lt_cv_prog_compiler_static_works_F77=yes
14573 lt_cv_prog_compiler_static_works_F77=yes
14577 LDFLAGS="$save_LDFLAGS"
14580 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14581 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14583 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14586 lt_prog_compiler_static_F77=
14590 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14591 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14592 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14593 echo $ECHO_N "(cached) $ECHO_C" >&6
14595 lt_cv_prog_compiler_c_o_F77=no
14596 $rm -r conftest 2>/dev/null
14600 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14602 lt_compiler_flag="-o out/conftest2.$ac_objext"
14603 # Insert the option either (1) after the last *FLAGS variable, or
14604 # (2) before a word containing "conftest.", or (3) at the end.
14605 # Note that $ac_compile itself does not contain backslashes and begins
14606 # with a dollar sign (not a hyphen), so the echo should work correctly.
14607 lt_compile=`echo "$ac_compile" | $SED \
14608 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14609 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14610 -e 's:$: $lt_compiler_flag:'`
14611 (eval echo "\"\$as_me:14611: $lt_compile\"" >&5)
14612 (eval "$lt_compile" 2>out/conftest.err)
14614 cat out/conftest.err >&5
14615 echo "$as_me:14615: \$? = $ac_status" >&5
14616 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14618 # The compiler can only warn and ignore the option if not recognized
14619 # So say no if there are warnings
14620 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14621 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14622 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14623 lt_cv_prog_compiler_c_o_F77=yes
14628 # SGI C++ compiler will create directory out/ii_files/ for
14629 # template instantiation
14630 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14631 $rm out/* && rmdir out
14637 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14638 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14641 hard_links="nottested"
14642 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14643 # do not overwrite the value of need_locks provided by the user
14644 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14645 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14648 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14650 ln conftest.a conftest.b 2>&5 || hard_links=no
14651 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14652 { echo "$as_me:$LINENO: result: $hard_links" >&5
14653 echo "${ECHO_T}$hard_links" >&6; }
14654 if test "$hard_links" = no; then
14655 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14656 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14663 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14664 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14667 allow_undefined_flag_F77=
14668 enable_shared_with_static_runtimes_F77=no
14670 archive_expsym_cmds_F77=
14671 old_archive_From_new_cmds_F77=
14672 old_archive_from_expsyms_cmds_F77=
14673 export_dynamic_flag_spec_F77=
14674 whole_archive_flag_spec_F77=
14675 thread_safe_flag_spec_F77=
14676 hardcode_libdir_flag_spec_F77=
14677 hardcode_libdir_flag_spec_ld_F77=
14678 hardcode_libdir_separator_F77=
14679 hardcode_direct_F77=no
14680 hardcode_minus_L_F77=no
14681 hardcode_shlibpath_var_F77=unsupported
14682 link_all_deplibs_F77=unknown
14683 hardcode_automatic_F77=no
14685 module_expsym_cmds_F77=
14686 always_export_symbols_F77=no
14687 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14688 # include_expsyms should be a list of space-separated symbols to be *always*
14689 # included in the symbol list
14690 include_expsyms_F77=
14691 # exclude_expsyms can be an extended regexp of symbols to exclude
14692 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14693 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14694 # as well as any symbol that contains `d'.
14695 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14696 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14697 # platforms (ab)use it in PIC code, but their linkers get confused if
14698 # the symbol is explicitly referenced. Since portable code cannot
14699 # rely on this symbol name, it's probably fine to never include it in
14700 # preloaded symbol tables.
14701 # Exclude shared library initialization/finalization symbols.
14702 extract_expsyms_cmds=
14703 # Just being paranoid about ensuring that cc_basename is set.
14704 for cc_temp in $compiler""; do
14706 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14707 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14712 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14715 cygwin* | mingw* | pw32*)
14716 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14717 # When not using gcc, we currently assume that we are using
14718 # Microsoft Visual C++.
14719 if test "$GCC" != yes; then
14724 # we just hope/assume this is gcc and not c89 (= MSVC++)
14733 if test "$with_gnu_ld" = yes; then
14734 # If archive_cmds runs LD, not CC, wlarc should be empty
14737 # Set some defaults for GNU ld with shared library support. These
14738 # are reset later if shared libraries are not supported. Putting them
14739 # here allows them to be overridden if necessary.
14740 runpath_var=LD_RUN_PATH
14741 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14742 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14743 # ancient GNU ld didn't support --whole-archive et. al.
14744 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14745 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14747 whole_archive_flag_spec_F77=
14749 supports_anon_versioning=no
14750 case `$LD -v 2>/dev/null` in
14751 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14752 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14753 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14754 *\ 2.11.*) ;; # other 2.11 versions
14755 *) supports_anon_versioning=yes ;;
14758 # See if GNU ld supports shared libraries.
14761 # On AIX/PPC, the GNU linker is very broken
14762 if test "$host_cpu" != ia64; then
14766 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14767 *** to be unable to reliably create shared libraries on AIX.
14768 *** Therefore, libtool is disabling shared libraries support. If you
14769 *** really care for shared libraries, you may want to modify your PATH
14770 *** so that a non-GNU linker is found, and then restart.
14777 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)'
14778 hardcode_libdir_flag_spec_F77='-L$libdir'
14779 hardcode_minus_L_F77=yes
14781 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14782 # that the semantics of dynamic libraries on AmigaOS, at least up
14783 # to version 4, is to share data among multiple programs linked
14784 # with the same dynamic library. Since this doesn't match the
14785 # behavior of shared libraries on other platforms, we can't use
14791 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14792 allow_undefined_flag_F77=unsupported
14793 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14794 # support --undefined. This deserves some investigation. FIXME
14795 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14801 cygwin* | mingw* | pw32*)
14802 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14803 # as there is no search path for DLLs.
14804 hardcode_libdir_flag_spec_F77='-L$libdir'
14805 allow_undefined_flag_F77=unsupported
14806 always_export_symbols_F77=no
14807 enable_shared_with_static_runtimes_F77=yes
14808 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14810 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14811 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14812 # If the export-symbols file already is a .def file (1st line
14813 # is EXPORTS), use it as is; otherwise, prepend...
14814 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14815 cp $export_symbols $output_objdir/$soname.def;
14817 echo EXPORTS > $output_objdir/$soname.def;
14818 cat $export_symbols >> $output_objdir/$soname.def;
14820 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14827 hardcode_direct_F77=no
14828 hardcode_shlibpath_var_F77=no
14829 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14830 export_dynamic_flag_spec_F77='${wl}-E'
14831 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14832 # Instead, shared libraries are loaded at an image base (0x10000000 by
14833 # default) and relocated if they conflict, which is a slow very memory
14834 # consuming and fragmenting process. To avoid this, we pick a random,
14835 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14836 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14837 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'
14838 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'
14841 gnu* | linux* | k*bsd*-gnu)
14842 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14844 case $cc_basename,$host_cpu in
14845 pgcc*) # Portland Group C compiler
14846 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'
14847 tmp_addflag=' $pic_flag'
14849 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14850 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'
14851 tmp_addflag=' $pic_flag -Mnomain' ;;
14852 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14853 tmp_addflag=' -i_dynamic' ;;
14854 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14855 tmp_addflag=' -i_dynamic -nofor_main' ;;
14856 ifc* | ifort*) # Intel Fortran compiler
14857 tmp_addflag=' -nofor_main' ;;
14859 case `$CC -V 2>&1 | sed 5q` in
14860 *Sun\ C*) # Sun C 5.9
14861 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'
14862 tmp_sharedflag='-G' ;;
14863 *Sun\ F*) # Sun Fortran 8.3
14864 tmp_sharedflag='-G' ;;
14866 tmp_sharedflag='-shared' ;;
14868 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14870 if test $supports_anon_versioning = yes; then
14871 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14872 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14873 $echo "local: *; };" >> $output_objdir/$libname.ver~
14874 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14876 link_all_deplibs_F77=no
14882 netbsd* | netbsdelf*-gnu)
14883 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14884 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14887 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14888 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14893 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14897 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14898 *** create shared libraries on Solaris systems. Therefore, libtool
14899 *** is disabling shared libraries support. We urge you to upgrade GNU
14900 *** binutils to release 2.9.1 or newer. Another option is to modify
14901 *** your PATH or compiler configuration so that the native linker is
14902 *** used, and then restart.
14905 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14906 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14907 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14913 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14914 case `$LD -v 2>&1` in
14915 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14919 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14920 *** reliably create shared libraries on SCO systems. Therefore, libtool
14921 *** is disabling shared libraries support. We urge you to upgrade GNU
14922 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14923 *** your PATH or compiler configuration so that the native linker is
14924 *** used, and then restart.
14929 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14930 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14931 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14932 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14941 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14943 hardcode_direct_F77=yes
14944 hardcode_shlibpath_var_F77=no
14948 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14949 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14950 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14957 if test "$ld_shlibs_F77" = no; then
14959 hardcode_libdir_flag_spec_F77=
14960 export_dynamic_flag_spec_F77=
14961 whole_archive_flag_spec_F77=
14964 # PORTME fill in a description of your system's linker (not GNU ld)
14967 allow_undefined_flag_F77=unsupported
14968 always_export_symbols_F77=yes
14969 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'
14970 # Note: this linker hardcodes the directories in LIBPATH if there
14971 # are no directories specified by -L.
14972 hardcode_minus_L_F77=yes
14973 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14974 # Neither direct hardcoding nor static linking is supported with a
14976 hardcode_direct_F77=unsupported
14981 if test "$host_cpu" = ia64; then
14982 # On IA64, the linker does run time linking by default, so we don't
14983 # have to do anything special.
14984 aix_use_runtimelinking=no
14985 exp_sym_flag='-Bexport'
14988 # If we're using GNU nm, then we don't want the "-C" option.
14989 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14990 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14991 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'
14993 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'
14995 aix_use_runtimelinking=no
14997 # Test if we are trying to use run time linking or normal
14998 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14999 # need to do runtime linking.
15000 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15001 for ld_flag in $LDFLAGS; do
15002 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15003 aix_use_runtimelinking=yes
15010 exp_sym_flag='-bexport'
15011 no_entry_flag='-bnoentry'
15014 # When large executables or shared objects are built, AIX ld can
15015 # have problems creating the table of contents. If linking a library
15016 # or program results in "error TOC overflow" add -mminimal-toc to
15017 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15018 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15020 archive_cmds_F77=''
15021 hardcode_direct_F77=yes
15022 hardcode_libdir_separator_F77=':'
15023 link_all_deplibs_F77=yes
15025 if test "$GCC" = yes; then
15026 case $host_os in aix4.[012]|aix4.[012].*)
15027 # We only want to do this on AIX 4.2 and lower, the check
15028 # below for broken collect2 doesn't work under 4.3+
15029 collect2name=`${CC} -print-prog-name=collect2`
15030 if test -f "$collect2name" && \
15031 strings "$collect2name" | grep resolve_lib_name >/dev/null
15033 # We have reworked collect2
15036 # We have old collect2
15037 hardcode_direct_F77=unsupported
15038 # It fails to find uninstalled libraries when the uninstalled
15039 # path is not listed in the libpath. Setting hardcode_minus_L
15040 # to unsupported forces relinking
15041 hardcode_minus_L_F77=yes
15042 hardcode_libdir_flag_spec_F77='-L$libdir'
15043 hardcode_libdir_separator_F77=
15047 shared_flag='-shared'
15048 if test "$aix_use_runtimelinking" = yes; then
15049 shared_flag="$shared_flag "'${wl}-G'
15053 if test "$host_cpu" = ia64; then
15054 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15055 # chokes on -Wl,-G. The following line is correct:
15058 if test "$aix_use_runtimelinking" = yes; then
15059 shared_flag='${wl}-G'
15061 shared_flag='${wl}-bM:SRE'
15066 # It seems that -bexpall does not export symbols beginning with
15067 # underscore (_), so it is better to generate a list of symbols to export.
15068 always_export_symbols_F77=yes
15069 if test "$aix_use_runtimelinking" = yes; then
15070 # Warning - without using the other runtime loading flags (-brtl),
15071 # -berok will link without error, but may produce a broken library.
15072 allow_undefined_flag_F77='-berok'
15073 # Determine the default libpath from the value encoded in an empty executable.
15074 cat >conftest.$ac_ext <<_ACEOF
15079 rm -f conftest.$ac_objext conftest$ac_exeext
15080 if { (ac_try="$ac_link"
15081 case "(($ac_try" in
15082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15083 *) ac_try_echo=$ac_try;;
15085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15086 (eval "$ac_link") 2>conftest.er1
15088 grep -v '^ *+' conftest.er1 >conftest.err
15090 cat conftest.err >&5
15091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15092 (exit $ac_status); } && {
15093 test -z "$ac_f77_werror_flag" ||
15094 test ! -s conftest.err
15095 } && test -s conftest$ac_exeext &&
15096 $as_test_x conftest$ac_exeext; then
15098 lt_aix_libpath_sed='
15099 /Import File Strings/,/^$/ {
15105 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15106 # Check for a 64-bit object if we didn't find anything.
15107 if test -z "$aix_libpath"; then
15108 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15111 echo "$as_me: failed program was:" >&5
15112 sed 's/^/| /' conftest.$ac_ext >&5
15117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15118 conftest$ac_exeext conftest.$ac_ext
15119 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15121 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15122 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"
15124 if test "$host_cpu" = ia64; then
15125 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15126 allow_undefined_flag_F77="-z nodefs"
15127 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"
15129 # Determine the default libpath from the value encoded in an empty executable.
15130 cat >conftest.$ac_ext <<_ACEOF
15135 rm -f conftest.$ac_objext conftest$ac_exeext
15136 if { (ac_try="$ac_link"
15137 case "(($ac_try" in
15138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15139 *) ac_try_echo=$ac_try;;
15141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15142 (eval "$ac_link") 2>conftest.er1
15144 grep -v '^ *+' conftest.er1 >conftest.err
15146 cat conftest.err >&5
15147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15148 (exit $ac_status); } && {
15149 test -z "$ac_f77_werror_flag" ||
15150 test ! -s conftest.err
15151 } && test -s conftest$ac_exeext &&
15152 $as_test_x conftest$ac_exeext; then
15154 lt_aix_libpath_sed='
15155 /Import File Strings/,/^$/ {
15161 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15162 # Check for a 64-bit object if we didn't find anything.
15163 if test -z "$aix_libpath"; then
15164 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15167 echo "$as_me: failed program was:" >&5
15168 sed 's/^/| /' conftest.$ac_ext >&5
15173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15174 conftest$ac_exeext conftest.$ac_ext
15175 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15177 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15178 # Warning - without using the other run time loading flags,
15179 # -berok will link without error, but may produce a broken library.
15180 no_undefined_flag_F77=' ${wl}-bernotok'
15181 allow_undefined_flag_F77=' ${wl}-berok'
15182 # Exported symbols can be pulled into shared objects from archives
15183 whole_archive_flag_spec_F77='$convenience'
15184 archive_cmds_need_lc_F77=yes
15185 # This is similar to how AIX traditionally builds its shared libraries.
15186 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'
15192 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)'
15193 hardcode_libdir_flag_spec_F77='-L$libdir'
15194 hardcode_minus_L_F77=yes
15195 # see comment about different semantics on the GNU ld section
15200 export_dynamic_flag_spec_F77=-rdynamic
15203 cygwin* | mingw* | pw32*)
15204 # When not using gcc, we currently assume that we are using
15205 # Microsoft Visual C++.
15206 # hardcode_libdir_flag_spec is actually meaningless, as there is
15207 # no search path for DLLs.
15208 hardcode_libdir_flag_spec_F77=' '
15209 allow_undefined_flag_F77=unsupported
15210 # Tell ltmain to make .lib files, not .a files.
15212 # Tell ltmain to make .dll files, not .so files.
15214 # FIXME: Setting linknames here is a bad hack.
15215 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15216 # The linker will automatically build a .lib file if we build a DLL.
15217 old_archive_From_new_cmds_F77='true'
15218 # FIXME: Should let the user specify the lib program.
15219 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15220 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15221 enable_shared_with_static_runtimes_F77=yes
15224 darwin* | rhapsody*)
15226 rhapsody* | darwin1.[012])
15227 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15230 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15231 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15233 case ${MACOSX_DEPLOYMENT_TARGET} in
15235 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15238 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15244 archive_cmds_need_lc_F77=no
15245 hardcode_direct_F77=no
15246 hardcode_automatic_F77=yes
15247 hardcode_shlibpath_var_F77=unsupported
15248 whole_archive_flag_spec_F77=''
15249 link_all_deplibs_F77=yes
15250 if test "$GCC" = yes ; then
15251 output_verbose_link_cmd='echo'
15252 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15253 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15254 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15255 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15257 case $cc_basename in
15259 output_verbose_link_cmd='echo'
15260 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15261 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15262 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15263 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}'
15264 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}'
15274 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15275 hardcode_libdir_flag_spec_F77='-L$libdir'
15276 hardcode_shlibpath_var_F77=no
15283 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15284 # support. Future versions do this automatically, but an explicit c++rt0.o
15285 # does not break anything, and helps significantly (at the cost of a little
15288 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15289 hardcode_libdir_flag_spec_F77='-R$libdir'
15290 hardcode_direct_F77=yes
15291 hardcode_shlibpath_var_F77=no
15294 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15296 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15297 hardcode_direct_F77=yes
15298 hardcode_minus_L_F77=yes
15299 hardcode_shlibpath_var_F77=no
15302 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15303 freebsd* | dragonfly*)
15304 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15305 hardcode_libdir_flag_spec_F77='-R$libdir'
15306 hardcode_direct_F77=yes
15307 hardcode_shlibpath_var_F77=no
15311 if test "$GCC" = yes; then
15312 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'
15314 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'
15316 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15317 hardcode_libdir_separator_F77=:
15318 hardcode_direct_F77=yes
15320 # hardcode_minus_L: Not really in the search PATH,
15321 # but as the default location of the library.
15322 hardcode_minus_L_F77=yes
15323 export_dynamic_flag_spec_F77='${wl}-E'
15327 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15328 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15330 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15332 if test "$with_gnu_ld" = no; then
15333 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15334 hardcode_libdir_separator_F77=:
15336 hardcode_direct_F77=yes
15337 export_dynamic_flag_spec_F77='${wl}-E'
15339 # hardcode_minus_L: Not really in the search PATH,
15340 # but as the default location of the library.
15341 hardcode_minus_L_F77=yes
15346 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15349 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15352 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15355 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15361 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15364 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15367 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15371 if test "$with_gnu_ld" = no; then
15372 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15373 hardcode_libdir_separator_F77=:
15377 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15378 hardcode_direct_F77=no
15379 hardcode_shlibpath_var_F77=no
15382 hardcode_direct_F77=yes
15383 export_dynamic_flag_spec_F77='${wl}-E'
15385 # hardcode_minus_L: Not really in the search PATH,
15386 # but as the default location of the library.
15387 hardcode_minus_L_F77=yes
15393 irix5* | irix6* | nonstopux*)
15394 if test "$GCC" = yes; then
15395 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'
15397 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'
15398 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15400 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15401 hardcode_libdir_separator_F77=:
15402 link_all_deplibs_F77=yes
15405 netbsd* | netbsdelf*-gnu)
15406 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15407 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15409 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15411 hardcode_libdir_flag_spec_F77='-R$libdir'
15412 hardcode_direct_F77=yes
15413 hardcode_shlibpath_var_F77=no
15417 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15418 hardcode_direct_F77=yes
15419 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15420 hardcode_libdir_separator_F77=:
15421 hardcode_shlibpath_var_F77=no
15425 if test -f /usr/libexec/ld.so; then
15426 hardcode_direct_F77=yes
15427 hardcode_shlibpath_var_F77=no
15428 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15429 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15430 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15431 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15432 export_dynamic_flag_spec_F77='${wl}-E'
15435 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15436 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15437 hardcode_libdir_flag_spec_F77='-R$libdir'
15440 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15441 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15451 hardcode_libdir_flag_spec_F77='-L$libdir'
15452 hardcode_minus_L_F77=yes
15453 allow_undefined_flag_F77=unsupported
15454 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'
15455 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15459 if test "$GCC" = yes; then
15460 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15461 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'
15463 allow_undefined_flag_F77=' -expect_unresolved \*'
15464 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'
15466 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15467 hardcode_libdir_separator_F77=:
15470 osf4* | osf5*) # as osf3* with the addition of -msym flag
15471 if test "$GCC" = yes; then
15472 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15473 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'
15474 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15476 allow_undefined_flag_F77=' -expect_unresolved \*'
15477 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'
15478 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~
15479 $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'
15481 # Both c and cxx compiler support -rpath directly
15482 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15484 hardcode_libdir_separator_F77=:
15488 no_undefined_flag_F77=' -z text'
15489 if test "$GCC" = yes; then
15491 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15492 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15493 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15496 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15497 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15498 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15500 hardcode_libdir_flag_spec_F77='-R$libdir'
15501 hardcode_shlibpath_var_F77=no
15503 solaris2.[0-5] | solaris2.[0-5].*) ;;
15505 # The compiler driver will combine and reorder linker options,
15506 # but understands `-z linker_flag'. GCC discards it without `$wl',
15507 # but is careful enough not to reorder.
15508 # Supported since Solaris 2.6 (maybe 2.5.1?)
15509 if test "$GCC" = yes; then
15510 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15512 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15516 link_all_deplibs_F77=yes
15520 if test "x$host_vendor" = xsequent; then
15521 # Use $CC to link under sequent, because it throws in some extra .o
15522 # files that make .init and .fini sections work.
15523 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15525 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15527 hardcode_libdir_flag_spec_F77='-L$libdir'
15528 hardcode_direct_F77=yes
15529 hardcode_minus_L_F77=yes
15530 hardcode_shlibpath_var_F77=no
15534 case $host_vendor in
15536 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15537 hardcode_direct_F77=yes # is this really true???
15540 ## LD is ld it makes a PLAMLIB
15541 ## CC just makes a GrossModule.
15542 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15543 reload_cmds_F77='$CC -r -o $output$reload_objs'
15544 hardcode_direct_F77=no
15547 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15548 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15551 runpath_var='LD_RUN_PATH'
15552 hardcode_shlibpath_var_F77=no
15556 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15557 hardcode_shlibpath_var_F77=no
15558 export_dynamic_flag_spec_F77='-Bexport'
15562 if test -d /usr/nec; then
15563 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15564 hardcode_shlibpath_var_F77=no
15565 runpath_var=LD_RUN_PATH
15566 hardcode_runpath_var=yes
15571 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15572 no_undefined_flag_F77='${wl}-z,text'
15573 archive_cmds_need_lc_F77=no
15574 hardcode_shlibpath_var_F77=no
15575 runpath_var='LD_RUN_PATH'
15577 if test "$GCC" = yes; then
15578 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15579 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15581 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15582 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15586 sysv5* | sco3.2v5* | sco5v6*)
15587 # Note: We can NOT use -z defs as we might desire, because we do not
15588 # link with -lc, and that would cause any symbols used from libc to
15589 # always be unresolved, which means just about no library would
15590 # ever link correctly. If we're not using GNU ld we use -z text
15591 # though, which does catch some bad symbols but isn't as heavy-handed
15593 no_undefined_flag_F77='${wl}-z,text'
15594 allow_undefined_flag_F77='${wl}-z,nodefs'
15595 archive_cmds_need_lc_F77=no
15596 hardcode_shlibpath_var_F77=no
15597 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15598 hardcode_libdir_separator_F77=':'
15599 link_all_deplibs_F77=yes
15600 export_dynamic_flag_spec_F77='${wl}-Bexport'
15601 runpath_var='LD_RUN_PATH'
15603 if test "$GCC" = yes; then
15604 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15605 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15607 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15608 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15613 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15614 hardcode_libdir_flag_spec_F77='-L$libdir'
15615 hardcode_shlibpath_var_F77=no
15624 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15625 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15626 test "$ld_shlibs_F77" = no && can_build_shared=no
15629 # Do we need to explicitly link libc?
15631 case "x$archive_cmds_need_lc_F77" in
15633 # Assume -lc should be added
15634 archive_cmds_need_lc_F77=yes
15636 if test "$enable_shared" = yes && test "$GCC" = yes; then
15637 case $archive_cmds_F77 in
15639 # FIXME: we may have to deal with multi-command sequences.
15642 # Test whether the compiler implicitly links with -lc since on some
15643 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15644 # to ld, don't add -lc before -lgcc.
15645 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15646 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15648 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15651 (eval $ac_compile) 2>&5
15653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654 (exit $ac_status); } 2>conftest.err; then
15657 libobjs=conftest.$ac_objext
15659 wl=$lt_prog_compiler_wl_F77
15660 pic_flag=$lt_prog_compiler_pic_F77
15666 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15667 allow_undefined_flag_F77=
15668 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15669 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672 (exit $ac_status); }
15674 archive_cmds_need_lc_F77=no
15676 archive_cmds_need_lc_F77=yes
15678 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15680 cat conftest.err 1>&5
15683 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15684 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15691 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15692 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15693 library_names_spec=
15694 libname_spec='lib$name'
15698 postuninstall_cmds=
15702 shlibpath_overrides_runpath=unknown
15704 dynamic_linker="$host_os ld.so"
15705 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15707 need_lib_prefix=unknown
15708 hardcode_into_libs=no
15710 # when you set need_version to no, make sure it does not cause -set_version
15711 # flags to be left without arguments
15712 need_version=unknown
15717 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15718 shlibpath_var=LIBPATH
15720 # AIX 3 has no versioning support, so we append a major version to the name.
15721 soname_spec='${libname}${release}${shared_ext}$major'
15728 hardcode_into_libs=yes
15729 if test "$host_cpu" = ia64; then
15730 # AIX 5 supports IA64
15731 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15732 shlibpath_var=LD_LIBRARY_PATH
15734 # With GCC up to 2.95.x, collect2 would create an import file
15735 # for dependence libraries. The import file would start with
15736 # the line `#! .'. This would cause the generated library to
15737 # depend on `.', always an invalid library. This was fixed in
15738 # development snapshots of GCC prior to 3.0.
15740 aix4 | aix4.[01] | aix4.[01].*)
15741 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15743 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15746 can_build_shared=no
15750 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15751 # soname into executable. Probably we can add versioning support to
15752 # collect2, so additional links can be useful in future.
15753 if test "$aix_use_runtimelinking" = yes; then
15754 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15755 # instead of lib<name>.a to let people know that these are not
15756 # typical AIX shared libraries.
15757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15759 # We preserve .a as extension for shared libraries through AIX4.2
15760 # and later when we are not doing run time linking.
15761 library_names_spec='${libname}${release}.a $libname.a'
15762 soname_spec='${libname}${release}${shared_ext}$major'
15764 shlibpath_var=LIBPATH
15769 library_names_spec='$libname.ixlibrary $libname.a'
15770 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15771 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'
15775 library_names_spec='${libname}${shared_ext}'
15776 dynamic_linker="$host_os ld.so"
15777 shlibpath_var=LIBRARY_PATH
15783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15784 soname_spec='${libname}${release}${shared_ext}$major'
15785 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15786 shlibpath_var=LD_LIBRARY_PATH
15787 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15788 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15789 # the default ld.so.conf also contains /usr/contrib/lib and
15790 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15791 # libtool to hard-code these into programs
15794 cygwin* | mingw* | pw32*)
15795 version_type=windows
15800 case $GCC,$host_os in
15801 yes,cygwin* | yes,mingw* | yes,pw32*)
15802 library_names_spec='$libname.dll.a'
15803 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15804 postinstall_cmds='base_file=`basename \${file}`~
15805 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15806 dldir=$destdir/`dirname \$dlpath`~
15807 test -d \$dldir || mkdir -p \$dldir~
15808 $install_prog $dir/$dlname \$dldir/$dlname~
15809 chmod a+x \$dldir/$dlname'
15810 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15811 dlpath=$dir/\$dldll~
15813 shlibpath_overrides_runpath=yes
15817 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15818 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15819 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15822 # MinGW DLLs use traditional 'lib' prefix
15823 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15824 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15825 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15826 # It is most probably a Windows format PATH printed by
15827 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15828 # path with ; separators, and with drive letters. We can handle the
15829 # drive letters (cygwin fileutils understands them), so leave them,
15830 # especially as we might pass files found there to a mingw objdump,
15831 # which wouldn't understand a cygwinified path. Ahh.
15832 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15834 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15838 # pw32 DLLs use 'pw' prefix rather than 'lib'
15839 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15845 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15848 dynamic_linker='Win32 ld.exe'
15849 # FIXME: first we should search . and the directory the executable is in
15853 darwin* | rhapsody*)
15854 dynamic_linker="$host_os dyld"
15855 version_type=darwin
15858 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15859 soname_spec='${libname}${release}${major}$shared_ext'
15860 shlibpath_overrides_runpath=yes
15861 shlibpath_var=DYLD_LIBRARY_PATH
15862 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15864 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15872 soname_spec='${libname}${release}${shared_ext}$major'
15873 shlibpath_var=LD_LIBRARY_PATH
15880 freebsd* | dragonfly*)
15881 # DragonFly does not have aout. When/if they implement a new
15882 # versioning mechanism, adjust this.
15883 if test -x /usr/bin/objformat; then
15884 objformat=`/usr/bin/objformat`
15887 freebsd[123]*) objformat=aout ;;
15888 *) objformat=elf ;;
15891 version_type=freebsd-$objformat
15892 case $version_type in
15894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15899 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15903 shlibpath_var=LD_LIBRARY_PATH
15906 shlibpath_overrides_runpath=yes
15908 freebsd3.[01]* | freebsdelf3.[01]*)
15909 shlibpath_overrides_runpath=yes
15910 hardcode_into_libs=yes
15912 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15913 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15914 shlibpath_overrides_runpath=no
15915 hardcode_into_libs=yes
15917 *) # from 4.6 on, and DragonFly
15918 shlibpath_overrides_runpath=yes
15919 hardcode_into_libs=yes
15928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15929 soname_spec='${libname}${release}${shared_ext}$major'
15930 shlibpath_var=LD_LIBRARY_PATH
15931 hardcode_into_libs=yes
15934 hpux9* | hpux10* | hpux11*)
15935 # Give a soname corresponding to the major version so that dld.sl refuses to
15936 # link against other versions.
15943 hardcode_into_libs=yes
15944 dynamic_linker="$host_os dld.so"
15945 shlibpath_var=LD_LIBRARY_PATH
15946 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15948 soname_spec='${libname}${release}${shared_ext}$major'
15949 if test "X$HPUX_IA64_MODE" = X32; then
15950 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15952 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15954 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15958 hardcode_into_libs=yes
15959 dynamic_linker="$host_os dld.sl"
15960 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15961 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15963 soname_spec='${libname}${release}${shared_ext}$major'
15964 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15965 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15969 dynamic_linker="$host_os dld.sl"
15970 shlibpath_var=SHLIB_PATH
15971 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15973 soname_spec='${libname}${release}${shared_ext}$major'
15976 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15977 postinstall_cmds='chmod 555 $lib'
15984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15985 soname_spec='${libname}${release}${shared_ext}$major'
15986 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15987 shlibpath_var=LD_LIBRARY_PATH
15988 shlibpath_overrides_runpath=no
15989 hardcode_into_libs=yes
15992 irix5* | irix6* | nonstopux*)
15994 nonstopux*) version_type=nonstopux ;;
15996 if test "$lt_cv_prog_gnu_ld" = yes; then
16004 soname_spec='${libname}${release}${shared_ext}$major'
16005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16007 irix5* | nonstopux*)
16008 libsuff= shlibsuff=
16011 case $LD in # libtool.m4 will add one of these switches to LD
16012 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16013 libsuff= shlibsuff= libmagic=32-bit;;
16014 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16015 libsuff=32 shlibsuff=N32 libmagic=N32;;
16016 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16017 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16018 *) libsuff= shlibsuff= libmagic=never-match;;
16022 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16023 shlibpath_overrides_runpath=no
16024 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16025 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16026 hardcode_into_libs=yes
16029 # No shared lib support for Linux oldld, aout, or coff.
16030 linux*oldld* | linux*aout* | linux*coff*)
16034 # This must be Linux ELF.
16035 linux* | k*bsd*-gnu)
16039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16040 soname_spec='${libname}${release}${shared_ext}$major'
16041 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16042 shlibpath_var=LD_LIBRARY_PATH
16043 shlibpath_overrides_runpath=no
16044 # This implies no fast_install, which is unacceptable.
16045 # Some rework will be needed to allow for fast_install
16046 # before this can be enabled.
16047 hardcode_into_libs=yes
16049 # Append ld.so.conf contents to the search path
16050 if test -f /etc/ld.so.conf; then
16051 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' ' '`
16052 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16055 # We used to test for /lib/ld.so.1 and disable shared libraries on
16056 # powerpc, because MkLinux only supported shared libraries with the
16057 # GNU dynamic linker. Since this was broken with cross compilers,
16058 # most powerpc-linux boxes support dynamic linking these days and
16059 # people can always --disable-shared, the test was removed, and we
16060 # assume the GNU/Linux dynamic linker is in use.
16061 dynamic_linker='GNU/Linux ld.so'
16068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16069 soname_spec='${libname}${release}${shared_ext}$major'
16070 shlibpath_var=LD_LIBRARY_PATH
16071 shlibpath_overrides_runpath=no
16072 hardcode_into_libs=yes
16073 dynamic_linker='NetBSD ld.elf_so'
16080 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16082 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16083 dynamic_linker='NetBSD (a.out) ld.so'
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 dynamic_linker='NetBSD ld.elf_so'
16089 shlibpath_var=LD_LIBRARY_PATH
16090 shlibpath_overrides_runpath=yes
16091 hardcode_into_libs=yes
16096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16097 shlibpath_var=LD_LIBRARY_PATH
16098 shlibpath_overrides_runpath=yes
16105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16106 soname_spec='${libname}${release}${shared_ext}$major'
16107 shlibpath_var=LD_LIBRARY_PATH
16108 shlibpath_overrides_runpath=yes
16113 sys_lib_dlsearch_path_spec="/usr/lib"
16115 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16117 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16118 *) need_version=no ;;
16120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16121 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16122 shlibpath_var=LD_LIBRARY_PATH
16123 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16125 openbsd2.[89] | openbsd2.[89].*)
16126 shlibpath_overrides_runpath=no
16129 shlibpath_overrides_runpath=yes
16133 shlibpath_overrides_runpath=yes
16138 libname_spec='$name'
16141 library_names_spec='$libname${shared_ext} $libname.a'
16142 dynamic_linker='OS/2 ld.exe'
16143 shlibpath_var=LIBPATH
16146 osf3* | osf4* | osf5*)
16150 soname_spec='${libname}${release}${shared_ext}$major'
16151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16152 shlibpath_var=LD_LIBRARY_PATH
16153 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16154 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16166 soname_spec='${libname}${release}${shared_ext}$major'
16167 shlibpath_var=LD_LIBRARY_PATH
16168 shlibpath_overrides_runpath=yes
16169 hardcode_into_libs=yes
16170 # ldd complains unless libraries are executable
16171 postinstall_cmds='chmod +x $lib'
16176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16177 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16178 shlibpath_var=LD_LIBRARY_PATH
16179 shlibpath_overrides_runpath=yes
16180 if test "$with_gnu_ld" = yes; then
16188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16189 soname_spec='${libname}${release}${shared_ext}$major'
16190 shlibpath_var=LD_LIBRARY_PATH
16191 case $host_vendor in
16193 shlibpath_overrides_runpath=no
16195 export_dynamic_flag_spec='${wl}-Blargedynsym'
16196 runpath_var=LD_RUN_PATH
16204 shlibpath_overrides_runpath=no
16205 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16211 if test -d /usr/nec ;then
16213 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16214 soname_spec='$libname${shared_ext}.$major'
16215 shlibpath_var=LD_LIBRARY_PATH
16219 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16220 version_type=freebsd-elf
16223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16224 soname_spec='${libname}${release}${shared_ext}$major'
16225 shlibpath_var=LD_LIBRARY_PATH
16226 hardcode_into_libs=yes
16227 if test "$with_gnu_ld" = yes; then
16228 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16229 shlibpath_overrides_runpath=no
16231 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16232 shlibpath_overrides_runpath=yes
16235 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16239 sys_lib_dlsearch_path_spec='/usr/lib'
16244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16245 soname_spec='${libname}${release}${shared_ext}$major'
16246 shlibpath_var=LD_LIBRARY_PATH
16253 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16254 echo "${ECHO_T}$dynamic_linker" >&6; }
16255 test "$dynamic_linker" = no && can_build_shared=no
16257 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16258 echo $ECHO_N "(cached) $ECHO_C" >&6
16260 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16263 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16264 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16265 echo $ECHO_N "(cached) $ECHO_C" >&6
16267 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16270 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16272 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16273 if test "$GCC" = yes; then
16274 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16277 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16278 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16279 hardcode_action_F77=
16280 if test -n "$hardcode_libdir_flag_spec_F77" || \
16281 test -n "$runpath_var_F77" || \
16282 test "X$hardcode_automatic_F77" = "Xyes" ; then
16284 # We can hardcode non-existant directories.
16285 if test "$hardcode_direct_F77" != no &&
16286 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16287 # have to relink, otherwise we might link with an installed library
16288 # when we should be linking with a yet-to-be-installed one
16289 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16290 test "$hardcode_minus_L_F77" != no; then
16291 # Linking always hardcodes the temporary library directory.
16292 hardcode_action_F77=relink
16294 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16295 hardcode_action_F77=immediate
16298 # We cannot hardcode anything, or else we can only hardcode existing
16300 hardcode_action_F77=unsupported
16302 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16303 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16305 if test "$hardcode_action_F77" = relink; then
16306 # Fast installation is not supported
16307 enable_fast_install=no
16308 elif test "$shlibpath_overrides_runpath" = yes ||
16309 test "$enable_shared" = no; then
16310 # Fast installation is not necessary
16311 enable_fast_install=needless
16315 # The else clause should only fire when bootstrapping the
16316 # libtool distribution, otherwise you forgot to ship ltmain.sh
16317 # with your package, and you will get complaints that there are
16318 # no rules to generate ltmain.sh.
16319 if test -f "$ltmain"; then
16320 # See if we are running on zsh, and set the options which allow our commands through
16321 # without removal of \ escapes.
16322 if test -n "${ZSH_VERSION+set}" ; then
16323 setopt NO_GLOB_SUBST
16325 # Now quote all the things that may contain metacharacters while being
16326 # careful not to overquote the AC_SUBSTed values. We take copies of the
16327 # variables and quote the copies for generation of the libtool script.
16328 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16330 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16331 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16332 deplibs_check_method reload_flag reload_cmds need_locks \
16333 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16334 lt_cv_sys_global_symbol_to_c_name_address \
16335 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16336 old_postinstall_cmds old_postuninstall_cmds \
16340 lt_prog_compiler_wl_F77 \
16341 lt_prog_compiler_pic_F77 \
16342 lt_prog_compiler_static_F77 \
16343 lt_prog_compiler_no_builtin_flag_F77 \
16344 export_dynamic_flag_spec_F77 \
16345 thread_safe_flag_spec_F77 \
16346 whole_archive_flag_spec_F77 \
16347 enable_shared_with_static_runtimes_F77 \
16348 old_archive_cmds_F77 \
16349 old_archive_from_new_cmds_F77 \
16350 predep_objects_F77 \
16351 postdep_objects_F77 \
16354 compiler_lib_search_path_F77 \
16355 compiler_lib_search_dirs_F77 \
16357 archive_expsym_cmds_F77 \
16358 postinstall_cmds_F77 \
16359 postuninstall_cmds_F77 \
16360 old_archive_from_expsyms_cmds_F77 \
16361 allow_undefined_flag_F77 \
16362 no_undefined_flag_F77 \
16363 export_symbols_cmds_F77 \
16364 hardcode_libdir_flag_spec_F77 \
16365 hardcode_libdir_flag_spec_ld_F77 \
16366 hardcode_libdir_separator_F77 \
16367 hardcode_automatic_F77 \
16369 module_expsym_cmds_F77 \
16370 lt_cv_prog_compiler_c_o_F77 \
16371 fix_srcfile_path_F77 \
16372 exclude_expsyms_F77 \
16373 include_expsyms_F77; do
16376 old_archive_cmds_F77 | \
16377 old_archive_from_new_cmds_F77 | \
16378 archive_cmds_F77 | \
16379 archive_expsym_cmds_F77 | \
16380 module_cmds_F77 | \
16381 module_expsym_cmds_F77 | \
16382 old_archive_from_expsyms_cmds_F77 | \
16383 export_symbols_cmds_F77 | \
16384 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16385 postinstall_cmds | postuninstall_cmds | \
16386 old_postinstall_cmds | old_postuninstall_cmds | \
16387 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16388 # Double-quote double-evaled strings.
16389 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16392 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16398 *'\$0 --fallback-echo"')
16399 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16405 cat <<__EOF__ >> "$cfgfile"
16406 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16408 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16410 # Shell to use when invoking shell scripts.
16413 # Whether or not to build shared libraries.
16414 build_libtool_libs=$enable_shared
16416 # Whether or not to build static libraries.
16417 build_old_libs=$enable_static
16419 # Whether or not to add -lc for building shared libraries.
16420 build_libtool_need_lc=$archive_cmds_need_lc_F77
16422 # Whether or not to disallow shared libs when runtime libs are static
16423 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16425 # Whether or not to optimize for fast installation.
16426 fast_install=$enable_fast_install
16429 host_alias=$host_alias
16433 # The build system.
16434 build_alias=$build_alias
16438 # An echo program that does not interpret backslashes.
16443 AR_FLAGS=$lt_AR_FLAGS
16448 # LTCC compiler flags.
16449 LTCFLAGS=$lt_LTCFLAGS
16451 # A language-specific compiler.
16452 CC=$lt_compiler_F77
16454 # Is the compiler the GNU C compiler?
16460 # The linker used to build libraries.
16463 # Whether we need hard or soft links.
16466 # A BSD-compatible nm program.
16469 # A symbol stripping program
16472 # Used to examine libraries when file_magic_cmd begins "file"
16473 MAGIC_CMD=$MAGIC_CMD
16475 # Used on cygwin: DLL creation program.
16478 # Used on cygwin: object dumper.
16481 # Used on cygwin: assembler.
16484 # The name of the directory that contains temporary libtool files.
16487 # How to create reloadable object files.
16488 reload_flag=$lt_reload_flag
16489 reload_cmds=$lt_reload_cmds
16491 # How to pass a linker flag through the compiler.
16492 wl=$lt_lt_prog_compiler_wl_F77
16494 # Object file suffix (normally "o").
16495 objext="$ac_objext"
16497 # Old archive suffix (normally "a").
16500 # Shared library suffix (normally ".so").
16501 shrext_cmds='$shrext_cmds'
16503 # Executable file suffix (normally "").
16506 # Additional compiler flags for building library objects.
16507 pic_flag=$lt_lt_prog_compiler_pic_F77
16510 # What is the maximum length of a command?
16511 max_cmd_len=$lt_cv_sys_max_cmd_len
16513 # Does compiler simultaneously support -c and -o options?
16514 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16516 # Must we lock files when doing compilation?
16517 need_locks=$lt_need_locks
16519 # Do we need the lib prefix for modules?
16520 need_lib_prefix=$need_lib_prefix
16522 # Do we need a version for libraries?
16523 need_version=$need_version
16525 # Whether dlopen is supported.
16526 dlopen_support=$enable_dlopen
16528 # Whether dlopen of programs is supported.
16529 dlopen_self=$enable_dlopen_self
16531 # Whether dlopen of statically linked programs is supported.
16532 dlopen_self_static=$enable_dlopen_self_static
16534 # Compiler flag to prevent dynamic linking.
16535 link_static_flag=$lt_lt_prog_compiler_static_F77
16537 # Compiler flag to turn off builtin functions.
16538 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16540 # Compiler flag to allow reflexive dlopens.
16541 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16543 # Compiler flag to generate shared objects directly from archives.
16544 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16546 # Compiler flag to generate thread-safe objects.
16547 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16549 # Library versioning type.
16550 version_type=$version_type
16552 # Format of library name prefix.
16553 libname_spec=$lt_libname_spec
16555 # List of archive names. First name is the real one, the rest are links.
16556 # The last name is the one that the linker finds with -lNAME.
16557 library_names_spec=$lt_library_names_spec
16559 # The coded name of the library, if different from the real name.
16560 soname_spec=$lt_soname_spec
16562 # Commands used to build and install an old-style archive.
16564 old_archive_cmds=$lt_old_archive_cmds_F77
16565 old_postinstall_cmds=$lt_old_postinstall_cmds
16566 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16568 # Create an old-style archive from a shared archive.
16569 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16571 # Create a temporary old-style archive to link instead of a shared archive.
16572 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16574 # Commands used to build and install a shared archive.
16575 archive_cmds=$lt_archive_cmds_F77
16576 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16577 postinstall_cmds=$lt_postinstall_cmds
16578 postuninstall_cmds=$lt_postuninstall_cmds
16580 # Commands used to build a loadable module (assumed same as above if empty)
16581 module_cmds=$lt_module_cmds_F77
16582 module_expsym_cmds=$lt_module_expsym_cmds_F77
16584 # Commands to strip libraries.
16585 old_striplib=$lt_old_striplib
16586 striplib=$lt_striplib
16588 # Dependencies to place before the objects being linked to create a
16590 predep_objects=$lt_predep_objects_F77
16592 # Dependencies to place after the objects being linked to create a
16594 postdep_objects=$lt_postdep_objects_F77
16596 # Dependencies to place before the objects being linked to create a
16598 predeps=$lt_predeps_F77
16600 # Dependencies to place after the objects being linked to create a
16602 postdeps=$lt_postdeps_F77
16604 # The directories searched by this compiler when creating a shared
16606 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16608 # The library search path used internally by the compiler when linking
16609 # a shared library.
16610 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16612 # Method to check whether dependent libraries are shared objects.
16613 deplibs_check_method=$lt_deplibs_check_method
16615 # Command to use when deplibs_check_method == file_magic.
16616 file_magic_cmd=$lt_file_magic_cmd
16618 # Flag that allows shared libraries with undefined symbols to be built.
16619 allow_undefined_flag=$lt_allow_undefined_flag_F77
16621 # Flag that forces no undefined symbols.
16622 no_undefined_flag=$lt_no_undefined_flag_F77
16624 # Commands used to finish a libtool library installation in a directory.
16625 finish_cmds=$lt_finish_cmds
16627 # Same as above, but a single script fragment to be evaled but not shown.
16628 finish_eval=$lt_finish_eval
16630 # Take the output of nm and produce a listing of raw symbols and C names.
16631 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16633 # Transform the output of nm in a proper C declaration
16634 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16636 # Transform the output of nm in a C name address pair
16637 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16639 # This is the shared library runtime path variable.
16640 runpath_var=$runpath_var
16642 # This is the shared library path variable.
16643 shlibpath_var=$shlibpath_var
16645 # Is shlibpath searched before the hard-coded library search path?
16646 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16648 # How to hardcode a shared library path into an executable.
16649 hardcode_action=$hardcode_action_F77
16651 # Whether we should hardcode library paths into libraries.
16652 hardcode_into_libs=$hardcode_into_libs
16654 # Flag to hardcode \$libdir into a binary during linking.
16655 # This must work even if \$libdir does not exist.
16656 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16658 # If ld is used when linking, flag to hardcode \$libdir into
16659 # a binary during linking. This must work even if \$libdir does
16661 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16663 # Whether we need a single -rpath flag with a separated argument.
16664 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16666 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16667 # resulting binary.
16668 hardcode_direct=$hardcode_direct_F77
16670 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16671 # resulting binary.
16672 hardcode_minus_L=$hardcode_minus_L_F77
16674 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16675 # the resulting binary.
16676 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16678 # Set to yes if building a shared library automatically hardcodes DIR into the library
16679 # and all subsequent libraries and executables linked against it.
16680 hardcode_automatic=$hardcode_automatic_F77
16682 # Variables whose values should be saved in libtool wrapper scripts and
16683 # restored at relink time.
16684 variables_saved_for_relink="$variables_saved_for_relink"
16686 # Whether libtool must link a program against all its dependency libraries.
16687 link_all_deplibs=$link_all_deplibs_F77
16689 # Compile-time system search path for libraries
16690 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16692 # Run-time system search path for libraries
16693 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16695 # Fix the shell variable \$srcfile for the compiler.
16696 fix_srcfile_path=$lt_fix_srcfile_path
16698 # Set to yes if exported symbols are required.
16699 always_export_symbols=$always_export_symbols_F77
16701 # The commands to list exported symbols.
16702 export_symbols_cmds=$lt_export_symbols_cmds_F77
16704 # The commands to extract the exported symbol list from a shared archive.
16705 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16707 # Symbols that should not be listed in the preloaded symbols.
16708 exclude_expsyms=$lt_exclude_expsyms_F77
16710 # Symbols that must always be exported.
16711 include_expsyms=$lt_include_expsyms_F77
16713 # ### END LIBTOOL TAG CONFIG: $tagname
16719 # If there is no Makefile yet, we rely on a make rule to execute
16720 # `config.status --recheck' to rerun these tests and create the
16721 # libtool script then.
16722 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16723 if test -f "$ltmain_in"; then
16724 test -f Makefile && make "$ltmain"
16730 ac_cpp='$CPP $CPPFLAGS'
16731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16743 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16746 # Source file extension for Java test sources.
16749 # Object file extension for compiled Java test sources.
16753 # Code to be used in simple compile tests
16754 lt_simple_compile_test_code="class foo {}"
16756 # Code to be used in simple link tests
16757 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16759 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16761 # If no C compiler was specified, use CC.
16764 # If no C compiler flags were specified, use CFLAGS.
16765 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16767 # Allow CC to be a program name with arguments.
16771 # save warnings/boilerplate of simple test code
16772 ac_outfile=conftest.$ac_objext
16773 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16774 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16775 _lt_compiler_boilerplate=`cat conftest.err`
16778 ac_outfile=conftest.$ac_objext
16779 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16780 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16781 _lt_linker_boilerplate=`cat conftest.err`
16785 # Allow CC to be a program name with arguments.
16790 for cc_temp in $compiler""; do
16792 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16793 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16798 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16801 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16802 archive_cmds_need_lc_GCJ=no
16804 old_archive_cmds_GCJ=$old_archive_cmds
16807 lt_prog_compiler_no_builtin_flag_GCJ=
16809 if test "$GCC" = yes; then
16810 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16813 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16814 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16815 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16816 echo $ECHO_N "(cached) $ECHO_C" >&6
16818 lt_cv_prog_compiler_rtti_exceptions=no
16819 ac_outfile=conftest.$ac_objext
16820 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16821 lt_compiler_flag="-fno-rtti -fno-exceptions"
16822 # Insert the option either (1) after the last *FLAGS variable, or
16823 # (2) before a word containing "conftest.", or (3) at the end.
16824 # Note that $ac_compile itself does not contain backslashes and begins
16825 # with a dollar sign (not a hyphen), so the echo should work correctly.
16826 # The option is referenced via a variable to avoid confusing sed.
16827 lt_compile=`echo "$ac_compile" | $SED \
16828 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16829 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16830 -e 's:$: $lt_compiler_flag:'`
16831 (eval echo "\"\$as_me:16831: $lt_compile\"" >&5)
16832 (eval "$lt_compile" 2>conftest.err)
16834 cat conftest.err >&5
16835 echo "$as_me:16835: \$? = $ac_status" >&5
16836 if (exit $ac_status) && test -s "$ac_outfile"; then
16837 # The compiler can only warn and ignore the option if not recognized
16838 # So say no if there are warnings other than the usual output.
16839 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16840 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16841 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16842 lt_cv_prog_compiler_rtti_exceptions=yes
16848 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16849 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16851 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16852 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16859 lt_prog_compiler_wl_GCJ=
16860 lt_prog_compiler_pic_GCJ=
16861 lt_prog_compiler_static_GCJ=
16863 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16864 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16866 if test "$GCC" = yes; then
16867 lt_prog_compiler_wl_GCJ='-Wl,'
16868 lt_prog_compiler_static_GCJ='-static'
16872 # All AIX code is PIC.
16873 if test "$host_cpu" = ia64; then
16874 # AIX 5 now supports IA64 processor
16875 lt_prog_compiler_static_GCJ='-Bstatic'
16880 # FIXME: we need at least 68020 code to build shared libraries, but
16881 # adding the `-m68020' flag to GCC prevents building anything better,
16883 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16886 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16887 # PIC is the default for these OSes.
16890 mingw* | cygwin* | pw32* | os2*)
16891 # This hack is so that the source file can tell whether it is being
16892 # built for inclusion in a dll (and should export symbols for example).
16893 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16894 # (--disable-auto-import) libraries
16898 darwin* | rhapsody*)
16899 # PIC is the default on this platform
16900 # Common symbols not allowed in MH_DYLIB files
16901 lt_prog_compiler_pic_GCJ='-fno-common'
16905 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16906 # Instead, we relocate shared libraries at runtime.
16910 # Just because we use GCC doesn't mean we suddenly get shared libraries
16911 # on systems that don't support them.
16912 lt_prog_compiler_can_build_shared_GCJ=no
16917 if test -d /usr/nec; then
16918 lt_prog_compiler_pic_GCJ=-Kconform_pic
16923 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16924 # not for PA HP-UX.
16930 lt_prog_compiler_pic_GCJ='-fPIC'
16936 lt_prog_compiler_pic_GCJ='-fPIC'
16940 # PORTME Check for flag to pass linker flags through the system compiler.
16943 lt_prog_compiler_wl_GCJ='-Wl,'
16944 if test "$host_cpu" = ia64; then
16945 # AIX 5 now supports IA64 processor
16946 lt_prog_compiler_static_GCJ='-Bstatic'
16948 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16952 # PIC is the default on this platform
16953 # Common symbols not allowed in MH_DYLIB files
16954 case $cc_basename in
16956 lt_prog_compiler_pic_GCJ='-qnocommon'
16957 lt_prog_compiler_wl_GCJ='-Wl,'
16962 mingw* | cygwin* | pw32* | os2*)
16963 # This hack is so that the source file can tell whether it is being
16964 # built for inclusion in a dll (and should export symbols for example).
16968 hpux9* | hpux10* | hpux11*)
16969 lt_prog_compiler_wl_GCJ='-Wl,'
16970 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16971 # not for PA HP-UX.
16977 lt_prog_compiler_pic_GCJ='+Z'
16980 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16981 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16984 irix5* | irix6* | nonstopux*)
16985 lt_prog_compiler_wl_GCJ='-Wl,'
16986 # PIC (with -KPIC) is the default.
16987 lt_prog_compiler_static_GCJ='-non_shared'
16991 lt_prog_compiler_pic_GCJ='-KPIC'
16992 lt_prog_compiler_static_GCJ='-Bstatic'
16995 linux* | k*bsd*-gnu)
16996 case $cc_basename in
16998 lt_prog_compiler_wl_GCJ='-Wl,'
16999 lt_prog_compiler_pic_GCJ='-KPIC'
17000 lt_prog_compiler_static_GCJ='-static'
17002 pgcc* | pgf77* | pgf90* | pgf95*)
17003 # Portland Group compilers (*not* the Pentium gcc compiler,
17004 # which looks to be a dead project)
17005 lt_prog_compiler_wl_GCJ='-Wl,'
17006 lt_prog_compiler_pic_GCJ='-fpic'
17007 lt_prog_compiler_static_GCJ='-Bstatic'
17010 lt_prog_compiler_wl_GCJ='-Wl,'
17011 # All Alpha code is PIC.
17012 lt_prog_compiler_static_GCJ='-non_shared'
17015 case `$CC -V 2>&1 | sed 5q` in
17018 lt_prog_compiler_pic_GCJ='-KPIC'
17019 lt_prog_compiler_static_GCJ='-Bstatic'
17020 lt_prog_compiler_wl_GCJ='-Wl,'
17023 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17024 lt_prog_compiler_pic_GCJ='-KPIC'
17025 lt_prog_compiler_static_GCJ='-Bstatic'
17026 lt_prog_compiler_wl_GCJ=''
17033 osf3* | osf4* | osf5*)
17034 lt_prog_compiler_wl_GCJ='-Wl,'
17035 # All OSF/1 code is PIC.
17036 lt_prog_compiler_static_GCJ='-non_shared'
17040 lt_prog_compiler_static_GCJ='-non_shared'
17044 lt_prog_compiler_pic_GCJ='-KPIC'
17045 lt_prog_compiler_static_GCJ='-Bstatic'
17046 case $cc_basename in
17047 f77* | f90* | f95*)
17048 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17050 lt_prog_compiler_wl_GCJ='-Wl,';;
17055 lt_prog_compiler_wl_GCJ='-Qoption ld '
17056 lt_prog_compiler_pic_GCJ='-PIC'
17057 lt_prog_compiler_static_GCJ='-Bstatic'
17060 sysv4 | sysv4.2uw2* | sysv4.3*)
17061 lt_prog_compiler_wl_GCJ='-Wl,'
17062 lt_prog_compiler_pic_GCJ='-KPIC'
17063 lt_prog_compiler_static_GCJ='-Bstatic'
17067 if test -d /usr/nec ;then
17068 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17069 lt_prog_compiler_static_GCJ='-Bstatic'
17073 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17074 lt_prog_compiler_wl_GCJ='-Wl,'
17075 lt_prog_compiler_pic_GCJ='-KPIC'
17076 lt_prog_compiler_static_GCJ='-Bstatic'
17080 lt_prog_compiler_wl_GCJ='-Wl,'
17081 lt_prog_compiler_can_build_shared_GCJ=no
17085 lt_prog_compiler_pic_GCJ='-pic'
17086 lt_prog_compiler_static_GCJ='-Bstatic'
17090 lt_prog_compiler_can_build_shared_GCJ=no
17095 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17096 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17099 # Check to make sure the PIC flag actually works.
17101 if test -n "$lt_prog_compiler_pic_GCJ"; then
17103 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17104 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17105 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17106 echo $ECHO_N "(cached) $ECHO_C" >&6
17108 lt_cv_prog_compiler_pic_works_GCJ=no
17109 ac_outfile=conftest.$ac_objext
17110 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17111 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17112 # Insert the option either (1) after the last *FLAGS variable, or
17113 # (2) before a word containing "conftest.", or (3) at the end.
17114 # Note that $ac_compile itself does not contain backslashes and begins
17115 # with a dollar sign (not a hyphen), so the echo should work correctly.
17116 # The option is referenced via a variable to avoid confusing sed.
17117 lt_compile=`echo "$ac_compile" | $SED \
17118 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17119 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17120 -e 's:$: $lt_compiler_flag:'`
17121 (eval echo "\"\$as_me:17121: $lt_compile\"" >&5)
17122 (eval "$lt_compile" 2>conftest.err)
17124 cat conftest.err >&5
17125 echo "$as_me:17125: \$? = $ac_status" >&5
17126 if (exit $ac_status) && test -s "$ac_outfile"; then
17127 # The compiler can only warn and ignore the option if not recognized
17128 # So say no if there are warnings other than the usual output.
17129 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17130 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17131 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17132 lt_cv_prog_compiler_pic_works_GCJ=yes
17138 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17139 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17141 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17142 case $lt_prog_compiler_pic_GCJ in
17144 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17147 lt_prog_compiler_pic_GCJ=
17148 lt_prog_compiler_can_build_shared_GCJ=no
17153 # For platforms which do not support PIC, -DPIC is meaningless:
17155 lt_prog_compiler_pic_GCJ=
17158 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17163 # Check to make sure the static flag actually works.
17165 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17166 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17167 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17168 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17169 echo $ECHO_N "(cached) $ECHO_C" >&6
17171 lt_cv_prog_compiler_static_works_GCJ=no
17172 save_LDFLAGS="$LDFLAGS"
17173 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17174 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17175 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17176 # The linker can only warn and ignore the option if not recognized
17177 # So say no if there are warnings
17178 if test -s conftest.err; then
17179 # Append any errors to the config.log.
17180 cat conftest.err 1>&5
17181 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17182 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17183 if diff conftest.exp conftest.er2 >/dev/null; then
17184 lt_cv_prog_compiler_static_works_GCJ=yes
17187 lt_cv_prog_compiler_static_works_GCJ=yes
17191 LDFLAGS="$save_LDFLAGS"
17194 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17195 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17197 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17200 lt_prog_compiler_static_GCJ=
17204 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17205 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17206 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17207 echo $ECHO_N "(cached) $ECHO_C" >&6
17209 lt_cv_prog_compiler_c_o_GCJ=no
17210 $rm -r conftest 2>/dev/null
17214 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17216 lt_compiler_flag="-o out/conftest2.$ac_objext"
17217 # Insert the option either (1) after the last *FLAGS variable, or
17218 # (2) before a word containing "conftest.", or (3) at the end.
17219 # Note that $ac_compile itself does not contain backslashes and begins
17220 # with a dollar sign (not a hyphen), so the echo should work correctly.
17221 lt_compile=`echo "$ac_compile" | $SED \
17222 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17223 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17224 -e 's:$: $lt_compiler_flag:'`
17225 (eval echo "\"\$as_me:17225: $lt_compile\"" >&5)
17226 (eval "$lt_compile" 2>out/conftest.err)
17228 cat out/conftest.err >&5
17229 echo "$as_me:17229: \$? = $ac_status" >&5
17230 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17232 # The compiler can only warn and ignore the option if not recognized
17233 # So say no if there are warnings
17234 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17235 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17236 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17237 lt_cv_prog_compiler_c_o_GCJ=yes
17242 # SGI C++ compiler will create directory out/ii_files/ for
17243 # template instantiation
17244 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17245 $rm out/* && rmdir out
17251 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17252 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17255 hard_links="nottested"
17256 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17257 # do not overwrite the value of need_locks provided by the user
17258 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17259 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17262 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17264 ln conftest.a conftest.b 2>&5 || hard_links=no
17265 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17266 { echo "$as_me:$LINENO: result: $hard_links" >&5
17267 echo "${ECHO_T}$hard_links" >&6; }
17268 if test "$hard_links" = no; then
17269 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17270 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17277 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17278 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17281 allow_undefined_flag_GCJ=
17282 enable_shared_with_static_runtimes_GCJ=no
17284 archive_expsym_cmds_GCJ=
17285 old_archive_From_new_cmds_GCJ=
17286 old_archive_from_expsyms_cmds_GCJ=
17287 export_dynamic_flag_spec_GCJ=
17288 whole_archive_flag_spec_GCJ=
17289 thread_safe_flag_spec_GCJ=
17290 hardcode_libdir_flag_spec_GCJ=
17291 hardcode_libdir_flag_spec_ld_GCJ=
17292 hardcode_libdir_separator_GCJ=
17293 hardcode_direct_GCJ=no
17294 hardcode_minus_L_GCJ=no
17295 hardcode_shlibpath_var_GCJ=unsupported
17296 link_all_deplibs_GCJ=unknown
17297 hardcode_automatic_GCJ=no
17299 module_expsym_cmds_GCJ=
17300 always_export_symbols_GCJ=no
17301 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17302 # include_expsyms should be a list of space-separated symbols to be *always*
17303 # included in the symbol list
17304 include_expsyms_GCJ=
17305 # exclude_expsyms can be an extended regexp of symbols to exclude
17306 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17307 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17308 # as well as any symbol that contains `d'.
17309 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17310 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17311 # platforms (ab)use it in PIC code, but their linkers get confused if
17312 # the symbol is explicitly referenced. Since portable code cannot
17313 # rely on this symbol name, it's probably fine to never include it in
17314 # preloaded symbol tables.
17315 # Exclude shared library initialization/finalization symbols.
17316 extract_expsyms_cmds=
17317 # Just being paranoid about ensuring that cc_basename is set.
17318 for cc_temp in $compiler""; do
17320 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17321 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17326 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17329 cygwin* | mingw* | pw32*)
17330 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17331 # When not using gcc, we currently assume that we are using
17332 # Microsoft Visual C++.
17333 if test "$GCC" != yes; then
17338 # we just hope/assume this is gcc and not c89 (= MSVC++)
17347 if test "$with_gnu_ld" = yes; then
17348 # If archive_cmds runs LD, not CC, wlarc should be empty
17351 # Set some defaults for GNU ld with shared library support. These
17352 # are reset later if shared libraries are not supported. Putting them
17353 # here allows them to be overridden if necessary.
17354 runpath_var=LD_RUN_PATH
17355 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17356 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17357 # ancient GNU ld didn't support --whole-archive et. al.
17358 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17359 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17361 whole_archive_flag_spec_GCJ=
17363 supports_anon_versioning=no
17364 case `$LD -v 2>/dev/null` in
17365 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17366 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17367 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17368 *\ 2.11.*) ;; # other 2.11 versions
17369 *) supports_anon_versioning=yes ;;
17372 # See if GNU ld supports shared libraries.
17375 # On AIX/PPC, the GNU linker is very broken
17376 if test "$host_cpu" != ia64; then
17380 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17381 *** to be unable to reliably create shared libraries on AIX.
17382 *** Therefore, libtool is disabling shared libraries support. If you
17383 *** really care for shared libraries, you may want to modify your PATH
17384 *** so that a non-GNU linker is found, and then restart.
17391 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)'
17392 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17393 hardcode_minus_L_GCJ=yes
17395 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17396 # that the semantics of dynamic libraries on AmigaOS, at least up
17397 # to version 4, is to share data among multiple programs linked
17398 # with the same dynamic library. Since this doesn't match the
17399 # behavior of shared libraries on other platforms, we can't use
17405 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17406 allow_undefined_flag_GCJ=unsupported
17407 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17408 # support --undefined. This deserves some investigation. FIXME
17409 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17415 cygwin* | mingw* | pw32*)
17416 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17417 # as there is no search path for DLLs.
17418 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17419 allow_undefined_flag_GCJ=unsupported
17420 always_export_symbols_GCJ=no
17421 enable_shared_with_static_runtimes_GCJ=yes
17422 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17424 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17425 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17426 # If the export-symbols file already is a .def file (1st line
17427 # is EXPORTS), use it as is; otherwise, prepend...
17428 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17429 cp $export_symbols $output_objdir/$soname.def;
17431 echo EXPORTS > $output_objdir/$soname.def;
17432 cat $export_symbols >> $output_objdir/$soname.def;
17434 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17441 hardcode_direct_GCJ=no
17442 hardcode_shlibpath_var_GCJ=no
17443 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17444 export_dynamic_flag_spec_GCJ='${wl}-E'
17445 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17446 # Instead, shared libraries are loaded at an image base (0x10000000 by
17447 # default) and relocated if they conflict, which is a slow very memory
17448 # consuming and fragmenting process. To avoid this, we pick a random,
17449 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17450 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17451 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'
17452 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'
17455 gnu* | linux* | k*bsd*-gnu)
17456 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17458 case $cc_basename,$host_cpu in
17459 pgcc*) # Portland Group C compiler
17460 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'
17461 tmp_addflag=' $pic_flag'
17463 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17464 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'
17465 tmp_addflag=' $pic_flag -Mnomain' ;;
17466 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17467 tmp_addflag=' -i_dynamic' ;;
17468 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17469 tmp_addflag=' -i_dynamic -nofor_main' ;;
17470 ifc* | ifort*) # Intel Fortran compiler
17471 tmp_addflag=' -nofor_main' ;;
17473 case `$CC -V 2>&1 | sed 5q` in
17474 *Sun\ C*) # Sun C 5.9
17475 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'
17476 tmp_sharedflag='-G' ;;
17477 *Sun\ F*) # Sun Fortran 8.3
17478 tmp_sharedflag='-G' ;;
17480 tmp_sharedflag='-shared' ;;
17482 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17484 if test $supports_anon_versioning = yes; then
17485 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17486 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17487 $echo "local: *; };" >> $output_objdir/$libname.ver~
17488 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17490 link_all_deplibs_GCJ=no
17496 netbsd* | netbsdelf*-gnu)
17497 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17498 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17501 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17502 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17507 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17511 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17512 *** create shared libraries on Solaris systems. Therefore, libtool
17513 *** is disabling shared libraries support. We urge you to upgrade GNU
17514 *** binutils to release 2.9.1 or newer. Another option is to modify
17515 *** your PATH or compiler configuration so that the native linker is
17516 *** used, and then restart.
17519 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17520 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17521 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17527 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17528 case `$LD -v 2>&1` in
17529 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17533 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17534 *** reliably create shared libraries on SCO systems. Therefore, libtool
17535 *** is disabling shared libraries support. We urge you to upgrade GNU
17536 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17537 *** your PATH or compiler configuration so that the native linker is
17538 *** used, and then restart.
17543 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17544 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17545 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17546 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17555 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17557 hardcode_direct_GCJ=yes
17558 hardcode_shlibpath_var_GCJ=no
17562 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17563 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17564 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17571 if test "$ld_shlibs_GCJ" = no; then
17573 hardcode_libdir_flag_spec_GCJ=
17574 export_dynamic_flag_spec_GCJ=
17575 whole_archive_flag_spec_GCJ=
17578 # PORTME fill in a description of your system's linker (not GNU ld)
17581 allow_undefined_flag_GCJ=unsupported
17582 always_export_symbols_GCJ=yes
17583 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'
17584 # Note: this linker hardcodes the directories in LIBPATH if there
17585 # are no directories specified by -L.
17586 hardcode_minus_L_GCJ=yes
17587 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17588 # Neither direct hardcoding nor static linking is supported with a
17590 hardcode_direct_GCJ=unsupported
17595 if test "$host_cpu" = ia64; then
17596 # On IA64, the linker does run time linking by default, so we don't
17597 # have to do anything special.
17598 aix_use_runtimelinking=no
17599 exp_sym_flag='-Bexport'
17602 # If we're using GNU nm, then we don't want the "-C" option.
17603 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17604 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17605 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'
17607 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'
17609 aix_use_runtimelinking=no
17611 # Test if we are trying to use run time linking or normal
17612 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17613 # need to do runtime linking.
17614 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17615 for ld_flag in $LDFLAGS; do
17616 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17617 aix_use_runtimelinking=yes
17624 exp_sym_flag='-bexport'
17625 no_entry_flag='-bnoentry'
17628 # When large executables or shared objects are built, AIX ld can
17629 # have problems creating the table of contents. If linking a library
17630 # or program results in "error TOC overflow" add -mminimal-toc to
17631 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17632 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17634 archive_cmds_GCJ=''
17635 hardcode_direct_GCJ=yes
17636 hardcode_libdir_separator_GCJ=':'
17637 link_all_deplibs_GCJ=yes
17639 if test "$GCC" = yes; then
17640 case $host_os in aix4.[012]|aix4.[012].*)
17641 # We only want to do this on AIX 4.2 and lower, the check
17642 # below for broken collect2 doesn't work under 4.3+
17643 collect2name=`${CC} -print-prog-name=collect2`
17644 if test -f "$collect2name" && \
17645 strings "$collect2name" | grep resolve_lib_name >/dev/null
17647 # We have reworked collect2
17650 # We have old collect2
17651 hardcode_direct_GCJ=unsupported
17652 # It fails to find uninstalled libraries when the uninstalled
17653 # path is not listed in the libpath. Setting hardcode_minus_L
17654 # to unsupported forces relinking
17655 hardcode_minus_L_GCJ=yes
17656 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17657 hardcode_libdir_separator_GCJ=
17661 shared_flag='-shared'
17662 if test "$aix_use_runtimelinking" = yes; then
17663 shared_flag="$shared_flag "'${wl}-G'
17667 if test "$host_cpu" = ia64; then
17668 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17669 # chokes on -Wl,-G. The following line is correct:
17672 if test "$aix_use_runtimelinking" = yes; then
17673 shared_flag='${wl}-G'
17675 shared_flag='${wl}-bM:SRE'
17680 # It seems that -bexpall does not export symbols beginning with
17681 # underscore (_), so it is better to generate a list of symbols to export.
17682 always_export_symbols_GCJ=yes
17683 if test "$aix_use_runtimelinking" = yes; then
17684 # Warning - without using the other runtime loading flags (-brtl),
17685 # -berok will link without error, but may produce a broken library.
17686 allow_undefined_flag_GCJ='-berok'
17687 # Determine the default libpath from the value encoded in an empty executable.
17688 cat >conftest.$ac_ext <<_ACEOF
17691 cat confdefs.h >>conftest.$ac_ext
17692 cat >>conftest.$ac_ext <<_ACEOF
17693 /* end confdefs.h. */
17703 rm -f conftest.$ac_objext conftest$ac_exeext
17704 if { (ac_try="$ac_link"
17705 case "(($ac_try" in
17706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17707 *) ac_try_echo=$ac_try;;
17709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17710 (eval "$ac_link") 2>conftest.er1
17712 grep -v '^ *+' conftest.er1 >conftest.err
17714 cat conftest.err >&5
17715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17716 (exit $ac_status); } && {
17717 test -z "$ac_c_werror_flag" ||
17718 test ! -s conftest.err
17719 } && test -s conftest$ac_exeext &&
17720 $as_test_x conftest$ac_exeext; then
17722 lt_aix_libpath_sed='
17723 /Import File Strings/,/^$/ {
17729 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17730 # Check for a 64-bit object if we didn't find anything.
17731 if test -z "$aix_libpath"; then
17732 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17735 echo "$as_me: failed program was:" >&5
17736 sed 's/^/| /' conftest.$ac_ext >&5
17741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17742 conftest$ac_exeext conftest.$ac_ext
17743 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17745 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17746 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"
17748 if test "$host_cpu" = ia64; then
17749 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17750 allow_undefined_flag_GCJ="-z nodefs"
17751 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"
17753 # Determine the default libpath from the value encoded in an empty executable.
17754 cat >conftest.$ac_ext <<_ACEOF
17757 cat confdefs.h >>conftest.$ac_ext
17758 cat >>conftest.$ac_ext <<_ACEOF
17759 /* end confdefs.h. */
17769 rm -f conftest.$ac_objext conftest$ac_exeext
17770 if { (ac_try="$ac_link"
17771 case "(($ac_try" in
17772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17773 *) ac_try_echo=$ac_try;;
17775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17776 (eval "$ac_link") 2>conftest.er1
17778 grep -v '^ *+' conftest.er1 >conftest.err
17780 cat conftest.err >&5
17781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782 (exit $ac_status); } && {
17783 test -z "$ac_c_werror_flag" ||
17784 test ! -s conftest.err
17785 } && test -s conftest$ac_exeext &&
17786 $as_test_x conftest$ac_exeext; then
17788 lt_aix_libpath_sed='
17789 /Import File Strings/,/^$/ {
17795 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17796 # Check for a 64-bit object if we didn't find anything.
17797 if test -z "$aix_libpath"; then
17798 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17801 echo "$as_me: failed program was:" >&5
17802 sed 's/^/| /' conftest.$ac_ext >&5
17807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17808 conftest$ac_exeext conftest.$ac_ext
17809 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17811 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17812 # Warning - without using the other run time loading flags,
17813 # -berok will link without error, but may produce a broken library.
17814 no_undefined_flag_GCJ=' ${wl}-bernotok'
17815 allow_undefined_flag_GCJ=' ${wl}-berok'
17816 # Exported symbols can be pulled into shared objects from archives
17817 whole_archive_flag_spec_GCJ='$convenience'
17818 archive_cmds_need_lc_GCJ=yes
17819 # This is similar to how AIX traditionally builds its shared libraries.
17820 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'
17826 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)'
17827 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17828 hardcode_minus_L_GCJ=yes
17829 # see comment about different semantics on the GNU ld section
17834 export_dynamic_flag_spec_GCJ=-rdynamic
17837 cygwin* | mingw* | pw32*)
17838 # When not using gcc, we currently assume that we are using
17839 # Microsoft Visual C++.
17840 # hardcode_libdir_flag_spec is actually meaningless, as there is
17841 # no search path for DLLs.
17842 hardcode_libdir_flag_spec_GCJ=' '
17843 allow_undefined_flag_GCJ=unsupported
17844 # Tell ltmain to make .lib files, not .a files.
17846 # Tell ltmain to make .dll files, not .so files.
17848 # FIXME: Setting linknames here is a bad hack.
17849 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17850 # The linker will automatically build a .lib file if we build a DLL.
17851 old_archive_From_new_cmds_GCJ='true'
17852 # FIXME: Should let the user specify the lib program.
17853 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17854 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17855 enable_shared_with_static_runtimes_GCJ=yes
17858 darwin* | rhapsody*)
17860 rhapsody* | darwin1.[012])
17861 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17864 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17865 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17867 case ${MACOSX_DEPLOYMENT_TARGET} in
17869 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17872 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17878 archive_cmds_need_lc_GCJ=no
17879 hardcode_direct_GCJ=no
17880 hardcode_automatic_GCJ=yes
17881 hardcode_shlibpath_var_GCJ=unsupported
17882 whole_archive_flag_spec_GCJ=''
17883 link_all_deplibs_GCJ=yes
17884 if test "$GCC" = yes ; then
17885 output_verbose_link_cmd='echo'
17886 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17887 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17888 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17889 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
17891 case $cc_basename in
17893 output_verbose_link_cmd='echo'
17894 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17895 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17896 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17897 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}'
17898 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}'
17908 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17909 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17910 hardcode_shlibpath_var_GCJ=no
17917 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17918 # support. Future versions do this automatically, but an explicit c++rt0.o
17919 # does not break anything, and helps significantly (at the cost of a little
17922 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17923 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17924 hardcode_direct_GCJ=yes
17925 hardcode_shlibpath_var_GCJ=no
17928 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17930 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17931 hardcode_direct_GCJ=yes
17932 hardcode_minus_L_GCJ=yes
17933 hardcode_shlibpath_var_GCJ=no
17936 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17937 freebsd* | dragonfly*)
17938 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17939 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17940 hardcode_direct_GCJ=yes
17941 hardcode_shlibpath_var_GCJ=no
17945 if test "$GCC" = yes; then
17946 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'
17948 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'
17950 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17951 hardcode_libdir_separator_GCJ=:
17952 hardcode_direct_GCJ=yes
17954 # hardcode_minus_L: Not really in the search PATH,
17955 # but as the default location of the library.
17956 hardcode_minus_L_GCJ=yes
17957 export_dynamic_flag_spec_GCJ='${wl}-E'
17961 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17962 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17964 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17966 if test "$with_gnu_ld" = no; then
17967 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17968 hardcode_libdir_separator_GCJ=:
17970 hardcode_direct_GCJ=yes
17971 export_dynamic_flag_spec_GCJ='${wl}-E'
17973 # hardcode_minus_L: Not really in the search PATH,
17974 # but as the default location of the library.
17975 hardcode_minus_L_GCJ=yes
17980 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17983 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17986 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17989 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17995 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17998 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18001 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18005 if test "$with_gnu_ld" = no; then
18006 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18007 hardcode_libdir_separator_GCJ=:
18011 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18012 hardcode_direct_GCJ=no
18013 hardcode_shlibpath_var_GCJ=no
18016 hardcode_direct_GCJ=yes
18017 export_dynamic_flag_spec_GCJ='${wl}-E'
18019 # hardcode_minus_L: Not really in the search PATH,
18020 # but as the default location of the library.
18021 hardcode_minus_L_GCJ=yes
18027 irix5* | irix6* | nonstopux*)
18028 if test "$GCC" = yes; then
18029 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'
18031 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'
18032 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18034 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18035 hardcode_libdir_separator_GCJ=:
18036 link_all_deplibs_GCJ=yes
18039 netbsd* | netbsdelf*-gnu)
18040 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18041 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18043 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18045 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18046 hardcode_direct_GCJ=yes
18047 hardcode_shlibpath_var_GCJ=no
18051 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18052 hardcode_direct_GCJ=yes
18053 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18054 hardcode_libdir_separator_GCJ=:
18055 hardcode_shlibpath_var_GCJ=no
18059 if test -f /usr/libexec/ld.so; then
18060 hardcode_direct_GCJ=yes
18061 hardcode_shlibpath_var_GCJ=no
18062 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18063 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18064 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18065 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18066 export_dynamic_flag_spec_GCJ='${wl}-E'
18069 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18070 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18071 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18074 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18075 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18085 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18086 hardcode_minus_L_GCJ=yes
18087 allow_undefined_flag_GCJ=unsupported
18088 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'
18089 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18093 if test "$GCC" = yes; then
18094 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18095 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'
18097 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18098 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'
18100 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18101 hardcode_libdir_separator_GCJ=:
18104 osf4* | osf5*) # as osf3* with the addition of -msym flag
18105 if test "$GCC" = yes; then
18106 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18107 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'
18108 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18110 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18111 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'
18112 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~
18113 $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'
18115 # Both c and cxx compiler support -rpath directly
18116 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18118 hardcode_libdir_separator_GCJ=:
18122 no_undefined_flag_GCJ=' -z text'
18123 if test "$GCC" = yes; then
18125 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18126 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18127 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18130 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18131 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18132 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18134 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18135 hardcode_shlibpath_var_GCJ=no
18137 solaris2.[0-5] | solaris2.[0-5].*) ;;
18139 # The compiler driver will combine and reorder linker options,
18140 # but understands `-z linker_flag'. GCC discards it without `$wl',
18141 # but is careful enough not to reorder.
18142 # Supported since Solaris 2.6 (maybe 2.5.1?)
18143 if test "$GCC" = yes; then
18144 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18146 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18150 link_all_deplibs_GCJ=yes
18154 if test "x$host_vendor" = xsequent; then
18155 # Use $CC to link under sequent, because it throws in some extra .o
18156 # files that make .init and .fini sections work.
18157 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18159 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18161 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18162 hardcode_direct_GCJ=yes
18163 hardcode_minus_L_GCJ=yes
18164 hardcode_shlibpath_var_GCJ=no
18168 case $host_vendor in
18170 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18171 hardcode_direct_GCJ=yes # is this really true???
18174 ## LD is ld it makes a PLAMLIB
18175 ## CC just makes a GrossModule.
18176 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18177 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18178 hardcode_direct_GCJ=no
18181 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18182 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18185 runpath_var='LD_RUN_PATH'
18186 hardcode_shlibpath_var_GCJ=no
18190 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18191 hardcode_shlibpath_var_GCJ=no
18192 export_dynamic_flag_spec_GCJ='-Bexport'
18196 if test -d /usr/nec; then
18197 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18198 hardcode_shlibpath_var_GCJ=no
18199 runpath_var=LD_RUN_PATH
18200 hardcode_runpath_var=yes
18205 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18206 no_undefined_flag_GCJ='${wl}-z,text'
18207 archive_cmds_need_lc_GCJ=no
18208 hardcode_shlibpath_var_GCJ=no
18209 runpath_var='LD_RUN_PATH'
18211 if test "$GCC" = yes; then
18212 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18213 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18215 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18216 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18220 sysv5* | sco3.2v5* | sco5v6*)
18221 # Note: We can NOT use -z defs as we might desire, because we do not
18222 # link with -lc, and that would cause any symbols used from libc to
18223 # always be unresolved, which means just about no library would
18224 # ever link correctly. If we're not using GNU ld we use -z text
18225 # though, which does catch some bad symbols but isn't as heavy-handed
18227 no_undefined_flag_GCJ='${wl}-z,text'
18228 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18229 archive_cmds_need_lc_GCJ=no
18230 hardcode_shlibpath_var_GCJ=no
18231 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18232 hardcode_libdir_separator_GCJ=':'
18233 link_all_deplibs_GCJ=yes
18234 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18235 runpath_var='LD_RUN_PATH'
18237 if test "$GCC" = yes; then
18238 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18239 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18241 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18242 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18247 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18248 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18249 hardcode_shlibpath_var_GCJ=no
18258 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18259 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18260 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18263 # Do we need to explicitly link libc?
18265 case "x$archive_cmds_need_lc_GCJ" in
18267 # Assume -lc should be added
18268 archive_cmds_need_lc_GCJ=yes
18270 if test "$enable_shared" = yes && test "$GCC" = yes; then
18271 case $archive_cmds_GCJ in
18273 # FIXME: we may have to deal with multi-command sequences.
18276 # Test whether the compiler implicitly links with -lc since on some
18277 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18278 # to ld, don't add -lc before -lgcc.
18279 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18280 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18282 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18285 (eval $ac_compile) 2>&5
18287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288 (exit $ac_status); } 2>conftest.err; then
18291 libobjs=conftest.$ac_objext
18293 wl=$lt_prog_compiler_wl_GCJ
18294 pic_flag=$lt_prog_compiler_pic_GCJ
18300 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18301 allow_undefined_flag_GCJ=
18302 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18303 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18306 (exit $ac_status); }
18308 archive_cmds_need_lc_GCJ=no
18310 archive_cmds_need_lc_GCJ=yes
18312 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18314 cat conftest.err 1>&5
18317 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18318 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18325 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18326 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18327 library_names_spec=
18328 libname_spec='lib$name'
18332 postuninstall_cmds=
18336 shlibpath_overrides_runpath=unknown
18338 dynamic_linker="$host_os ld.so"
18339 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18341 need_lib_prefix=unknown
18342 hardcode_into_libs=no
18344 # when you set need_version to no, make sure it does not cause -set_version
18345 # flags to be left without arguments
18346 need_version=unknown
18351 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18352 shlibpath_var=LIBPATH
18354 # AIX 3 has no versioning support, so we append a major version to the name.
18355 soname_spec='${libname}${release}${shared_ext}$major'
18362 hardcode_into_libs=yes
18363 if test "$host_cpu" = ia64; then
18364 # AIX 5 supports IA64
18365 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18366 shlibpath_var=LD_LIBRARY_PATH
18368 # With GCC up to 2.95.x, collect2 would create an import file
18369 # for dependence libraries. The import file would start with
18370 # the line `#! .'. This would cause the generated library to
18371 # depend on `.', always an invalid library. This was fixed in
18372 # development snapshots of GCC prior to 3.0.
18374 aix4 | aix4.[01] | aix4.[01].*)
18375 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18377 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18380 can_build_shared=no
18384 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18385 # soname into executable. Probably we can add versioning support to
18386 # collect2, so additional links can be useful in future.
18387 if test "$aix_use_runtimelinking" = yes; then
18388 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18389 # instead of lib<name>.a to let people know that these are not
18390 # typical AIX shared libraries.
18391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18393 # We preserve .a as extension for shared libraries through AIX4.2
18394 # and later when we are not doing run time linking.
18395 library_names_spec='${libname}${release}.a $libname.a'
18396 soname_spec='${libname}${release}${shared_ext}$major'
18398 shlibpath_var=LIBPATH
18403 library_names_spec='$libname.ixlibrary $libname.a'
18404 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18405 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'
18409 library_names_spec='${libname}${shared_ext}'
18410 dynamic_linker="$host_os ld.so"
18411 shlibpath_var=LIBRARY_PATH
18417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18418 soname_spec='${libname}${release}${shared_ext}$major'
18419 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18420 shlibpath_var=LD_LIBRARY_PATH
18421 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18422 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18423 # the default ld.so.conf also contains /usr/contrib/lib and
18424 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18425 # libtool to hard-code these into programs
18428 cygwin* | mingw* | pw32*)
18429 version_type=windows
18434 case $GCC,$host_os in
18435 yes,cygwin* | yes,mingw* | yes,pw32*)
18436 library_names_spec='$libname.dll.a'
18437 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18438 postinstall_cmds='base_file=`basename \${file}`~
18439 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18440 dldir=$destdir/`dirname \$dlpath`~
18441 test -d \$dldir || mkdir -p \$dldir~
18442 $install_prog $dir/$dlname \$dldir/$dlname~
18443 chmod a+x \$dldir/$dlname'
18444 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18445 dlpath=$dir/\$dldll~
18447 shlibpath_overrides_runpath=yes
18451 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18452 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18453 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18456 # MinGW DLLs use traditional 'lib' prefix
18457 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18458 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18459 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18460 # It is most probably a Windows format PATH printed by
18461 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18462 # path with ; separators, and with drive letters. We can handle the
18463 # drive letters (cygwin fileutils understands them), so leave them,
18464 # especially as we might pass files found there to a mingw objdump,
18465 # which wouldn't understand a cygwinified path. Ahh.
18466 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18468 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18472 # pw32 DLLs use 'pw' prefix rather than 'lib'
18473 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18479 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18482 dynamic_linker='Win32 ld.exe'
18483 # FIXME: first we should search . and the directory the executable is in
18487 darwin* | rhapsody*)
18488 dynamic_linker="$host_os dyld"
18489 version_type=darwin
18492 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18493 soname_spec='${libname}${release}${major}$shared_ext'
18494 shlibpath_overrides_runpath=yes
18495 shlibpath_var=DYLD_LIBRARY_PATH
18496 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18498 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18506 soname_spec='${libname}${release}${shared_ext}$major'
18507 shlibpath_var=LD_LIBRARY_PATH
18514 freebsd* | dragonfly*)
18515 # DragonFly does not have aout. When/if they implement a new
18516 # versioning mechanism, adjust this.
18517 if test -x /usr/bin/objformat; then
18518 objformat=`/usr/bin/objformat`
18521 freebsd[123]*) objformat=aout ;;
18522 *) objformat=elf ;;
18525 version_type=freebsd-$objformat
18526 case $version_type in
18528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18533 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18537 shlibpath_var=LD_LIBRARY_PATH
18540 shlibpath_overrides_runpath=yes
18542 freebsd3.[01]* | freebsdelf3.[01]*)
18543 shlibpath_overrides_runpath=yes
18544 hardcode_into_libs=yes
18546 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18547 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18548 shlibpath_overrides_runpath=no
18549 hardcode_into_libs=yes
18551 *) # from 4.6 on, and DragonFly
18552 shlibpath_overrides_runpath=yes
18553 hardcode_into_libs=yes
18562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18563 soname_spec='${libname}${release}${shared_ext}$major'
18564 shlibpath_var=LD_LIBRARY_PATH
18565 hardcode_into_libs=yes
18568 hpux9* | hpux10* | hpux11*)
18569 # Give a soname corresponding to the major version so that dld.sl refuses to
18570 # link against other versions.
18577 hardcode_into_libs=yes
18578 dynamic_linker="$host_os dld.so"
18579 shlibpath_var=LD_LIBRARY_PATH
18580 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 if test "X$HPUX_IA64_MODE" = X32; then
18584 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18586 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18588 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18592 hardcode_into_libs=yes
18593 dynamic_linker="$host_os dld.sl"
18594 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18595 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18597 soname_spec='${libname}${release}${shared_ext}$major'
18598 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18599 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18603 dynamic_linker="$host_os dld.sl"
18604 shlibpath_var=SHLIB_PATH
18605 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18607 soname_spec='${libname}${release}${shared_ext}$major'
18610 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18611 postinstall_cmds='chmod 555 $lib'
18618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18619 soname_spec='${libname}${release}${shared_ext}$major'
18620 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18621 shlibpath_var=LD_LIBRARY_PATH
18622 shlibpath_overrides_runpath=no
18623 hardcode_into_libs=yes
18626 irix5* | irix6* | nonstopux*)
18628 nonstopux*) version_type=nonstopux ;;
18630 if test "$lt_cv_prog_gnu_ld" = yes; then
18638 soname_spec='${libname}${release}${shared_ext}$major'
18639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18641 irix5* | nonstopux*)
18642 libsuff= shlibsuff=
18645 case $LD in # libtool.m4 will add one of these switches to LD
18646 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18647 libsuff= shlibsuff= libmagic=32-bit;;
18648 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18649 libsuff=32 shlibsuff=N32 libmagic=N32;;
18650 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18651 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18652 *) libsuff= shlibsuff= libmagic=never-match;;
18656 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18657 shlibpath_overrides_runpath=no
18658 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18659 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18660 hardcode_into_libs=yes
18663 # No shared lib support for Linux oldld, aout, or coff.
18664 linux*oldld* | linux*aout* | linux*coff*)
18668 # This must be Linux ELF.
18669 linux* | k*bsd*-gnu)
18673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18674 soname_spec='${libname}${release}${shared_ext}$major'
18675 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18676 shlibpath_var=LD_LIBRARY_PATH
18677 shlibpath_overrides_runpath=no
18678 # This implies no fast_install, which is unacceptable.
18679 # Some rework will be needed to allow for fast_install
18680 # before this can be enabled.
18681 hardcode_into_libs=yes
18683 # Append ld.so.conf contents to the search path
18684 if test -f /etc/ld.so.conf; then
18685 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' ' '`
18686 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18689 # We used to test for /lib/ld.so.1 and disable shared libraries on
18690 # powerpc, because MkLinux only supported shared libraries with the
18691 # GNU dynamic linker. Since this was broken with cross compilers,
18692 # most powerpc-linux boxes support dynamic linking these days and
18693 # people can always --disable-shared, the test was removed, and we
18694 # assume the GNU/Linux dynamic linker is in use.
18695 dynamic_linker='GNU/Linux ld.so'
18702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18703 soname_spec='${libname}${release}${shared_ext}$major'
18704 shlibpath_var=LD_LIBRARY_PATH
18705 shlibpath_overrides_runpath=no
18706 hardcode_into_libs=yes
18707 dynamic_linker='NetBSD ld.elf_so'
18714 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18716 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18717 dynamic_linker='NetBSD (a.out) ld.so'
18719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18720 soname_spec='${libname}${release}${shared_ext}$major'
18721 dynamic_linker='NetBSD ld.elf_so'
18723 shlibpath_var=LD_LIBRARY_PATH
18724 shlibpath_overrides_runpath=yes
18725 hardcode_into_libs=yes
18730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18731 shlibpath_var=LD_LIBRARY_PATH
18732 shlibpath_overrides_runpath=yes
18739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18740 soname_spec='${libname}${release}${shared_ext}$major'
18741 shlibpath_var=LD_LIBRARY_PATH
18742 shlibpath_overrides_runpath=yes
18747 sys_lib_dlsearch_path_spec="/usr/lib"
18749 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18751 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18752 *) need_version=no ;;
18754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18755 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18756 shlibpath_var=LD_LIBRARY_PATH
18757 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18759 openbsd2.[89] | openbsd2.[89].*)
18760 shlibpath_overrides_runpath=no
18763 shlibpath_overrides_runpath=yes
18767 shlibpath_overrides_runpath=yes
18772 libname_spec='$name'
18775 library_names_spec='$libname${shared_ext} $libname.a'
18776 dynamic_linker='OS/2 ld.exe'
18777 shlibpath_var=LIBPATH
18780 osf3* | osf4* | osf5*)
18784 soname_spec='${libname}${release}${shared_ext}$major'
18785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18786 shlibpath_var=LD_LIBRARY_PATH
18787 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18788 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18800 soname_spec='${libname}${release}${shared_ext}$major'
18801 shlibpath_var=LD_LIBRARY_PATH
18802 shlibpath_overrides_runpath=yes
18803 hardcode_into_libs=yes
18804 # ldd complains unless libraries are executable
18805 postinstall_cmds='chmod +x $lib'
18810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18811 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18812 shlibpath_var=LD_LIBRARY_PATH
18813 shlibpath_overrides_runpath=yes
18814 if test "$with_gnu_ld" = yes; then
18822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18823 soname_spec='${libname}${release}${shared_ext}$major'
18824 shlibpath_var=LD_LIBRARY_PATH
18825 case $host_vendor in
18827 shlibpath_overrides_runpath=no
18829 export_dynamic_flag_spec='${wl}-Blargedynsym'
18830 runpath_var=LD_RUN_PATH
18838 shlibpath_overrides_runpath=no
18839 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18845 if test -d /usr/nec ;then
18847 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18848 soname_spec='$libname${shared_ext}.$major'
18849 shlibpath_var=LD_LIBRARY_PATH
18853 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18854 version_type=freebsd-elf
18857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18858 soname_spec='${libname}${release}${shared_ext}$major'
18859 shlibpath_var=LD_LIBRARY_PATH
18860 hardcode_into_libs=yes
18861 if test "$with_gnu_ld" = yes; then
18862 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18863 shlibpath_overrides_runpath=no
18865 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18866 shlibpath_overrides_runpath=yes
18869 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18873 sys_lib_dlsearch_path_spec='/usr/lib'
18878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18879 soname_spec='${libname}${release}${shared_ext}$major'
18880 shlibpath_var=LD_LIBRARY_PATH
18887 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18888 echo "${ECHO_T}$dynamic_linker" >&6; }
18889 test "$dynamic_linker" = no && can_build_shared=no
18891 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18892 echo $ECHO_N "(cached) $ECHO_C" >&6
18894 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18897 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18898 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18899 echo $ECHO_N "(cached) $ECHO_C" >&6
18901 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18904 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18906 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18907 if test "$GCC" = yes; then
18908 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18911 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18912 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18913 hardcode_action_GCJ=
18914 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18915 test -n "$runpath_var_GCJ" || \
18916 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18918 # We can hardcode non-existant directories.
18919 if test "$hardcode_direct_GCJ" != no &&
18920 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18921 # have to relink, otherwise we might link with an installed library
18922 # when we should be linking with a yet-to-be-installed one
18923 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18924 test "$hardcode_minus_L_GCJ" != no; then
18925 # Linking always hardcodes the temporary library directory.
18926 hardcode_action_GCJ=relink
18928 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18929 hardcode_action_GCJ=immediate
18932 # We cannot hardcode anything, or else we can only hardcode existing
18934 hardcode_action_GCJ=unsupported
18936 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18937 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18939 if test "$hardcode_action_GCJ" = relink; then
18940 # Fast installation is not supported
18941 enable_fast_install=no
18942 elif test "$shlibpath_overrides_runpath" = yes ||
18943 test "$enable_shared" = no; then
18944 # Fast installation is not necessary
18945 enable_fast_install=needless
18949 # The else clause should only fire when bootstrapping the
18950 # libtool distribution, otherwise you forgot to ship ltmain.sh
18951 # with your package, and you will get complaints that there are
18952 # no rules to generate ltmain.sh.
18953 if test -f "$ltmain"; then
18954 # See if we are running on zsh, and set the options which allow our commands through
18955 # without removal of \ escapes.
18956 if test -n "${ZSH_VERSION+set}" ; then
18957 setopt NO_GLOB_SUBST
18959 # Now quote all the things that may contain metacharacters while being
18960 # careful not to overquote the AC_SUBSTed values. We take copies of the
18961 # variables and quote the copies for generation of the libtool script.
18962 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18964 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18965 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18966 deplibs_check_method reload_flag reload_cmds need_locks \
18967 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18968 lt_cv_sys_global_symbol_to_c_name_address \
18969 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18970 old_postinstall_cmds old_postuninstall_cmds \
18974 lt_prog_compiler_wl_GCJ \
18975 lt_prog_compiler_pic_GCJ \
18976 lt_prog_compiler_static_GCJ \
18977 lt_prog_compiler_no_builtin_flag_GCJ \
18978 export_dynamic_flag_spec_GCJ \
18979 thread_safe_flag_spec_GCJ \
18980 whole_archive_flag_spec_GCJ \
18981 enable_shared_with_static_runtimes_GCJ \
18982 old_archive_cmds_GCJ \
18983 old_archive_from_new_cmds_GCJ \
18984 predep_objects_GCJ \
18985 postdep_objects_GCJ \
18988 compiler_lib_search_path_GCJ \
18989 compiler_lib_search_dirs_GCJ \
18991 archive_expsym_cmds_GCJ \
18992 postinstall_cmds_GCJ \
18993 postuninstall_cmds_GCJ \
18994 old_archive_from_expsyms_cmds_GCJ \
18995 allow_undefined_flag_GCJ \
18996 no_undefined_flag_GCJ \
18997 export_symbols_cmds_GCJ \
18998 hardcode_libdir_flag_spec_GCJ \
18999 hardcode_libdir_flag_spec_ld_GCJ \
19000 hardcode_libdir_separator_GCJ \
19001 hardcode_automatic_GCJ \
19003 module_expsym_cmds_GCJ \
19004 lt_cv_prog_compiler_c_o_GCJ \
19005 fix_srcfile_path_GCJ \
19006 exclude_expsyms_GCJ \
19007 include_expsyms_GCJ; do
19010 old_archive_cmds_GCJ | \
19011 old_archive_from_new_cmds_GCJ | \
19012 archive_cmds_GCJ | \
19013 archive_expsym_cmds_GCJ | \
19014 module_cmds_GCJ | \
19015 module_expsym_cmds_GCJ | \
19016 old_archive_from_expsyms_cmds_GCJ | \
19017 export_symbols_cmds_GCJ | \
19018 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19019 postinstall_cmds | postuninstall_cmds | \
19020 old_postinstall_cmds | old_postuninstall_cmds | \
19021 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19022 # Double-quote double-evaled strings.
19023 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19026 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19032 *'\$0 --fallback-echo"')
19033 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19039 cat <<__EOF__ >> "$cfgfile"
19040 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19042 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19044 # Shell to use when invoking shell scripts.
19047 # Whether or not to build shared libraries.
19048 build_libtool_libs=$enable_shared
19050 # Whether or not to build static libraries.
19051 build_old_libs=$enable_static
19053 # Whether or not to add -lc for building shared libraries.
19054 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19056 # Whether or not to disallow shared libs when runtime libs are static
19057 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19059 # Whether or not to optimize for fast installation.
19060 fast_install=$enable_fast_install
19063 host_alias=$host_alias
19067 # The build system.
19068 build_alias=$build_alias
19072 # An echo program that does not interpret backslashes.
19077 AR_FLAGS=$lt_AR_FLAGS
19082 # LTCC compiler flags.
19083 LTCFLAGS=$lt_LTCFLAGS
19085 # A language-specific compiler.
19086 CC=$lt_compiler_GCJ
19088 # Is the compiler the GNU C compiler?
19094 # The linker used to build libraries.
19097 # Whether we need hard or soft links.
19100 # A BSD-compatible nm program.
19103 # A symbol stripping program
19106 # Used to examine libraries when file_magic_cmd begins "file"
19107 MAGIC_CMD=$MAGIC_CMD
19109 # Used on cygwin: DLL creation program.
19112 # Used on cygwin: object dumper.
19115 # Used on cygwin: assembler.
19118 # The name of the directory that contains temporary libtool files.
19121 # How to create reloadable object files.
19122 reload_flag=$lt_reload_flag
19123 reload_cmds=$lt_reload_cmds
19125 # How to pass a linker flag through the compiler.
19126 wl=$lt_lt_prog_compiler_wl_GCJ
19128 # Object file suffix (normally "o").
19129 objext="$ac_objext"
19131 # Old archive suffix (normally "a").
19134 # Shared library suffix (normally ".so").
19135 shrext_cmds='$shrext_cmds'
19137 # Executable file suffix (normally "").
19140 # Additional compiler flags for building library objects.
19141 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19144 # What is the maximum length of a command?
19145 max_cmd_len=$lt_cv_sys_max_cmd_len
19147 # Does compiler simultaneously support -c and -o options?
19148 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19150 # Must we lock files when doing compilation?
19151 need_locks=$lt_need_locks
19153 # Do we need the lib prefix for modules?
19154 need_lib_prefix=$need_lib_prefix
19156 # Do we need a version for libraries?
19157 need_version=$need_version
19159 # Whether dlopen is supported.
19160 dlopen_support=$enable_dlopen
19162 # Whether dlopen of programs is supported.
19163 dlopen_self=$enable_dlopen_self
19165 # Whether dlopen of statically linked programs is supported.
19166 dlopen_self_static=$enable_dlopen_self_static
19168 # Compiler flag to prevent dynamic linking.
19169 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19171 # Compiler flag to turn off builtin functions.
19172 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19174 # Compiler flag to allow reflexive dlopens.
19175 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19177 # Compiler flag to generate shared objects directly from archives.
19178 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19180 # Compiler flag to generate thread-safe objects.
19181 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19183 # Library versioning type.
19184 version_type=$version_type
19186 # Format of library name prefix.
19187 libname_spec=$lt_libname_spec
19189 # List of archive names. First name is the real one, the rest are links.
19190 # The last name is the one that the linker finds with -lNAME.
19191 library_names_spec=$lt_library_names_spec
19193 # The coded name of the library, if different from the real name.
19194 soname_spec=$lt_soname_spec
19196 # Commands used to build and install an old-style archive.
19198 old_archive_cmds=$lt_old_archive_cmds_GCJ
19199 old_postinstall_cmds=$lt_old_postinstall_cmds
19200 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19202 # Create an old-style archive from a shared archive.
19203 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19205 # Create a temporary old-style archive to link instead of a shared archive.
19206 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19208 # Commands used to build and install a shared archive.
19209 archive_cmds=$lt_archive_cmds_GCJ
19210 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19211 postinstall_cmds=$lt_postinstall_cmds
19212 postuninstall_cmds=$lt_postuninstall_cmds
19214 # Commands used to build a loadable module (assumed same as above if empty)
19215 module_cmds=$lt_module_cmds_GCJ
19216 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19218 # Commands to strip libraries.
19219 old_striplib=$lt_old_striplib
19220 striplib=$lt_striplib
19222 # Dependencies to place before the objects being linked to create a
19224 predep_objects=$lt_predep_objects_GCJ
19226 # Dependencies to place after the objects being linked to create a
19228 postdep_objects=$lt_postdep_objects_GCJ
19230 # Dependencies to place before the objects being linked to create a
19232 predeps=$lt_predeps_GCJ
19234 # Dependencies to place after the objects being linked to create a
19236 postdeps=$lt_postdeps_GCJ
19238 # The directories searched by this compiler when creating a shared
19240 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19242 # The library search path used internally by the compiler when linking
19243 # a shared library.
19244 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19246 # Method to check whether dependent libraries are shared objects.
19247 deplibs_check_method=$lt_deplibs_check_method
19249 # Command to use when deplibs_check_method == file_magic.
19250 file_magic_cmd=$lt_file_magic_cmd
19252 # Flag that allows shared libraries with undefined symbols to be built.
19253 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19255 # Flag that forces no undefined symbols.
19256 no_undefined_flag=$lt_no_undefined_flag_GCJ
19258 # Commands used to finish a libtool library installation in a directory.
19259 finish_cmds=$lt_finish_cmds
19261 # Same as above, but a single script fragment to be evaled but not shown.
19262 finish_eval=$lt_finish_eval
19264 # Take the output of nm and produce a listing of raw symbols and C names.
19265 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19267 # Transform the output of nm in a proper C declaration
19268 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19270 # Transform the output of nm in a C name address pair
19271 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19273 # This is the shared library runtime path variable.
19274 runpath_var=$runpath_var
19276 # This is the shared library path variable.
19277 shlibpath_var=$shlibpath_var
19279 # Is shlibpath searched before the hard-coded library search path?
19280 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19282 # How to hardcode a shared library path into an executable.
19283 hardcode_action=$hardcode_action_GCJ
19285 # Whether we should hardcode library paths into libraries.
19286 hardcode_into_libs=$hardcode_into_libs
19288 # Flag to hardcode \$libdir into a binary during linking.
19289 # This must work even if \$libdir does not exist.
19290 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19292 # If ld is used when linking, flag to hardcode \$libdir into
19293 # a binary during linking. This must work even if \$libdir does
19295 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19297 # Whether we need a single -rpath flag with a separated argument.
19298 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19300 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19301 # resulting binary.
19302 hardcode_direct=$hardcode_direct_GCJ
19304 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19305 # resulting binary.
19306 hardcode_minus_L=$hardcode_minus_L_GCJ
19308 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19309 # the resulting binary.
19310 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19312 # Set to yes if building a shared library automatically hardcodes DIR into the library
19313 # and all subsequent libraries and executables linked against it.
19314 hardcode_automatic=$hardcode_automatic_GCJ
19316 # Variables whose values should be saved in libtool wrapper scripts and
19317 # restored at relink time.
19318 variables_saved_for_relink="$variables_saved_for_relink"
19320 # Whether libtool must link a program against all its dependency libraries.
19321 link_all_deplibs=$link_all_deplibs_GCJ
19323 # Compile-time system search path for libraries
19324 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19326 # Run-time system search path for libraries
19327 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19329 # Fix the shell variable \$srcfile for the compiler.
19330 fix_srcfile_path=$lt_fix_srcfile_path
19332 # Set to yes if exported symbols are required.
19333 always_export_symbols=$always_export_symbols_GCJ
19335 # The commands to list exported symbols.
19336 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19338 # The commands to extract the exported symbol list from a shared archive.
19339 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19341 # Symbols that should not be listed in the preloaded symbols.
19342 exclude_expsyms=$lt_exclude_expsyms_GCJ
19344 # Symbols that must always be exported.
19345 include_expsyms=$lt_include_expsyms_GCJ
19347 # ### END LIBTOOL TAG CONFIG: $tagname
19353 # If there is no Makefile yet, we rely on a make rule to execute
19354 # `config.status --recheck' to rerun these tests and create the
19355 # libtool script then.
19356 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19357 if test -f "$ltmain_in"; then
19358 test -f Makefile && make "$ltmain"
19364 ac_cpp='$CPP $CPPFLAGS'
19365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19379 # Source file extension for RC test sources.
19382 # Object file extension for compiled RC test sources.
19386 # Code to be used in simple compile tests
19387 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19389 # Code to be used in simple link tests
19390 lt_simple_link_test_code="$lt_simple_compile_test_code"
19392 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19394 # If no C compiler was specified, use CC.
19397 # If no C compiler flags were specified, use CFLAGS.
19398 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19400 # Allow CC to be a program name with arguments.
19404 # save warnings/boilerplate of simple test code
19405 ac_outfile=conftest.$ac_objext
19406 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19407 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19408 _lt_compiler_boilerplate=`cat conftest.err`
19411 ac_outfile=conftest.$ac_objext
19412 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19413 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19414 _lt_linker_boilerplate=`cat conftest.err`
19418 # Allow CC to be a program name with arguments.
19423 for cc_temp in $compiler""; do
19425 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19426 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19431 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19433 lt_cv_prog_compiler_c_o_RC=yes
19435 # The else clause should only fire when bootstrapping the
19436 # libtool distribution, otherwise you forgot to ship ltmain.sh
19437 # with your package, and you will get complaints that there are
19438 # no rules to generate ltmain.sh.
19439 if test -f "$ltmain"; then
19440 # See if we are running on zsh, and set the options which allow our commands through
19441 # without removal of \ escapes.
19442 if test -n "${ZSH_VERSION+set}" ; then
19443 setopt NO_GLOB_SUBST
19445 # Now quote all the things that may contain metacharacters while being
19446 # careful not to overquote the AC_SUBSTed values. We take copies of the
19447 # variables and quote the copies for generation of the libtool script.
19448 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19450 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19451 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19452 deplibs_check_method reload_flag reload_cmds need_locks \
19453 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19454 lt_cv_sys_global_symbol_to_c_name_address \
19455 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19456 old_postinstall_cmds old_postuninstall_cmds \
19460 lt_prog_compiler_wl_RC \
19461 lt_prog_compiler_pic_RC \
19462 lt_prog_compiler_static_RC \
19463 lt_prog_compiler_no_builtin_flag_RC \
19464 export_dynamic_flag_spec_RC \
19465 thread_safe_flag_spec_RC \
19466 whole_archive_flag_spec_RC \
19467 enable_shared_with_static_runtimes_RC \
19468 old_archive_cmds_RC \
19469 old_archive_from_new_cmds_RC \
19470 predep_objects_RC \
19471 postdep_objects_RC \
19474 compiler_lib_search_path_RC \
19475 compiler_lib_search_dirs_RC \
19477 archive_expsym_cmds_RC \
19478 postinstall_cmds_RC \
19479 postuninstall_cmds_RC \
19480 old_archive_from_expsyms_cmds_RC \
19481 allow_undefined_flag_RC \
19482 no_undefined_flag_RC \
19483 export_symbols_cmds_RC \
19484 hardcode_libdir_flag_spec_RC \
19485 hardcode_libdir_flag_spec_ld_RC \
19486 hardcode_libdir_separator_RC \
19487 hardcode_automatic_RC \
19489 module_expsym_cmds_RC \
19490 lt_cv_prog_compiler_c_o_RC \
19491 fix_srcfile_path_RC \
19492 exclude_expsyms_RC \
19493 include_expsyms_RC; do
19496 old_archive_cmds_RC | \
19497 old_archive_from_new_cmds_RC | \
19498 archive_cmds_RC | \
19499 archive_expsym_cmds_RC | \
19501 module_expsym_cmds_RC | \
19502 old_archive_from_expsyms_cmds_RC | \
19503 export_symbols_cmds_RC | \
19504 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19505 postinstall_cmds | postuninstall_cmds | \
19506 old_postinstall_cmds | old_postuninstall_cmds | \
19507 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19508 # Double-quote double-evaled strings.
19509 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19512 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19518 *'\$0 --fallback-echo"')
19519 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19525 cat <<__EOF__ >> "$cfgfile"
19526 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19528 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19530 # Shell to use when invoking shell scripts.
19533 # Whether or not to build shared libraries.
19534 build_libtool_libs=$enable_shared
19536 # Whether or not to build static libraries.
19537 build_old_libs=$enable_static
19539 # Whether or not to add -lc for building shared libraries.
19540 build_libtool_need_lc=$archive_cmds_need_lc_RC
19542 # Whether or not to disallow shared libs when runtime libs are static
19543 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19545 # Whether or not to optimize for fast installation.
19546 fast_install=$enable_fast_install
19549 host_alias=$host_alias
19553 # The build system.
19554 build_alias=$build_alias
19558 # An echo program that does not interpret backslashes.
19563 AR_FLAGS=$lt_AR_FLAGS
19568 # LTCC compiler flags.
19569 LTCFLAGS=$lt_LTCFLAGS
19571 # A language-specific compiler.
19574 # Is the compiler the GNU C compiler?
19580 # The linker used to build libraries.
19583 # Whether we need hard or soft links.
19586 # A BSD-compatible nm program.
19589 # A symbol stripping program
19592 # Used to examine libraries when file_magic_cmd begins "file"
19593 MAGIC_CMD=$MAGIC_CMD
19595 # Used on cygwin: DLL creation program.
19598 # Used on cygwin: object dumper.
19601 # Used on cygwin: assembler.
19604 # The name of the directory that contains temporary libtool files.
19607 # How to create reloadable object files.
19608 reload_flag=$lt_reload_flag
19609 reload_cmds=$lt_reload_cmds
19611 # How to pass a linker flag through the compiler.
19612 wl=$lt_lt_prog_compiler_wl_RC
19614 # Object file suffix (normally "o").
19615 objext="$ac_objext"
19617 # Old archive suffix (normally "a").
19620 # Shared library suffix (normally ".so").
19621 shrext_cmds='$shrext_cmds'
19623 # Executable file suffix (normally "").
19626 # Additional compiler flags for building library objects.
19627 pic_flag=$lt_lt_prog_compiler_pic_RC
19630 # What is the maximum length of a command?
19631 max_cmd_len=$lt_cv_sys_max_cmd_len
19633 # Does compiler simultaneously support -c and -o options?
19634 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19636 # Must we lock files when doing compilation?
19637 need_locks=$lt_need_locks
19639 # Do we need the lib prefix for modules?
19640 need_lib_prefix=$need_lib_prefix
19642 # Do we need a version for libraries?
19643 need_version=$need_version
19645 # Whether dlopen is supported.
19646 dlopen_support=$enable_dlopen
19648 # Whether dlopen of programs is supported.
19649 dlopen_self=$enable_dlopen_self
19651 # Whether dlopen of statically linked programs is supported.
19652 dlopen_self_static=$enable_dlopen_self_static
19654 # Compiler flag to prevent dynamic linking.
19655 link_static_flag=$lt_lt_prog_compiler_static_RC
19657 # Compiler flag to turn off builtin functions.
19658 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19660 # Compiler flag to allow reflexive dlopens.
19661 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19663 # Compiler flag to generate shared objects directly from archives.
19664 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19666 # Compiler flag to generate thread-safe objects.
19667 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19669 # Library versioning type.
19670 version_type=$version_type
19672 # Format of library name prefix.
19673 libname_spec=$lt_libname_spec
19675 # List of archive names. First name is the real one, the rest are links.
19676 # The last name is the one that the linker finds with -lNAME.
19677 library_names_spec=$lt_library_names_spec
19679 # The coded name of the library, if different from the real name.
19680 soname_spec=$lt_soname_spec
19682 # Commands used to build and install an old-style archive.
19684 old_archive_cmds=$lt_old_archive_cmds_RC
19685 old_postinstall_cmds=$lt_old_postinstall_cmds
19686 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19688 # Create an old-style archive from a shared archive.
19689 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19691 # Create a temporary old-style archive to link instead of a shared archive.
19692 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19694 # Commands used to build and install a shared archive.
19695 archive_cmds=$lt_archive_cmds_RC
19696 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19697 postinstall_cmds=$lt_postinstall_cmds
19698 postuninstall_cmds=$lt_postuninstall_cmds
19700 # Commands used to build a loadable module (assumed same as above if empty)
19701 module_cmds=$lt_module_cmds_RC
19702 module_expsym_cmds=$lt_module_expsym_cmds_RC
19704 # Commands to strip libraries.
19705 old_striplib=$lt_old_striplib
19706 striplib=$lt_striplib
19708 # Dependencies to place before the objects being linked to create a
19710 predep_objects=$lt_predep_objects_RC
19712 # Dependencies to place after the objects being linked to create a
19714 postdep_objects=$lt_postdep_objects_RC
19716 # Dependencies to place before the objects being linked to create a
19718 predeps=$lt_predeps_RC
19720 # Dependencies to place after the objects being linked to create a
19722 postdeps=$lt_postdeps_RC
19724 # The directories searched by this compiler when creating a shared
19726 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19728 # The library search path used internally by the compiler when linking
19729 # a shared library.
19730 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19732 # Method to check whether dependent libraries are shared objects.
19733 deplibs_check_method=$lt_deplibs_check_method
19735 # Command to use when deplibs_check_method == file_magic.
19736 file_magic_cmd=$lt_file_magic_cmd
19738 # Flag that allows shared libraries with undefined symbols to be built.
19739 allow_undefined_flag=$lt_allow_undefined_flag_RC
19741 # Flag that forces no undefined symbols.
19742 no_undefined_flag=$lt_no_undefined_flag_RC
19744 # Commands used to finish a libtool library installation in a directory.
19745 finish_cmds=$lt_finish_cmds
19747 # Same as above, but a single script fragment to be evaled but not shown.
19748 finish_eval=$lt_finish_eval
19750 # Take the output of nm and produce a listing of raw symbols and C names.
19751 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19753 # Transform the output of nm in a proper C declaration
19754 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19756 # Transform the output of nm in a C name address pair
19757 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19759 # This is the shared library runtime path variable.
19760 runpath_var=$runpath_var
19762 # This is the shared library path variable.
19763 shlibpath_var=$shlibpath_var
19765 # Is shlibpath searched before the hard-coded library search path?
19766 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19768 # How to hardcode a shared library path into an executable.
19769 hardcode_action=$hardcode_action_RC
19771 # Whether we should hardcode library paths into libraries.
19772 hardcode_into_libs=$hardcode_into_libs
19774 # Flag to hardcode \$libdir into a binary during linking.
19775 # This must work even if \$libdir does not exist.
19776 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19778 # If ld is used when linking, flag to hardcode \$libdir into
19779 # a binary during linking. This must work even if \$libdir does
19781 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19783 # Whether we need a single -rpath flag with a separated argument.
19784 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19786 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19787 # resulting binary.
19788 hardcode_direct=$hardcode_direct_RC
19790 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19791 # resulting binary.
19792 hardcode_minus_L=$hardcode_minus_L_RC
19794 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19795 # the resulting binary.
19796 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19798 # Set to yes if building a shared library automatically hardcodes DIR into the library
19799 # and all subsequent libraries and executables linked against it.
19800 hardcode_automatic=$hardcode_automatic_RC
19802 # Variables whose values should be saved in libtool wrapper scripts and
19803 # restored at relink time.
19804 variables_saved_for_relink="$variables_saved_for_relink"
19806 # Whether libtool must link a program against all its dependency libraries.
19807 link_all_deplibs=$link_all_deplibs_RC
19809 # Compile-time system search path for libraries
19810 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19812 # Run-time system search path for libraries
19813 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19815 # Fix the shell variable \$srcfile for the compiler.
19816 fix_srcfile_path=$lt_fix_srcfile_path
19818 # Set to yes if exported symbols are required.
19819 always_export_symbols=$always_export_symbols_RC
19821 # The commands to list exported symbols.
19822 export_symbols_cmds=$lt_export_symbols_cmds_RC
19824 # The commands to extract the exported symbol list from a shared archive.
19825 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19827 # Symbols that should not be listed in the preloaded symbols.
19828 exclude_expsyms=$lt_exclude_expsyms_RC
19830 # Symbols that must always be exported.
19831 include_expsyms=$lt_include_expsyms_RC
19833 # ### END LIBTOOL TAG CONFIG: $tagname
19839 # If there is no Makefile yet, we rely on a make rule to execute
19840 # `config.status --recheck' to rerun these tests and create the
19841 # libtool script then.
19842 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19843 if test -f "$ltmain_in"; then
19844 test -f Makefile && make "$ltmain"
19850 ac_cpp='$CPP $CPPFLAGS'
19851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19860 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19861 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19862 { (exit 1); exit 1; }; }
19866 # Append the new tag name to the list of available tags.
19867 if test -n "$tagname" ; then
19868 available_tags="$available_tags $tagname"
19874 # Now substitute the updated list of available tags.
19875 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19876 mv "${ofile}T" "$ofile"
19880 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19881 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19882 { (exit 1); exit 1; }; }
19888 # This can be used to rebuild libtool when needed
19889 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19891 # Always use our own libtool.
19892 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19894 # Prevent multiple expansion
19917 # Check whether --with-kernel was given.
19918 if test "${with_kernel+set}" = set; then
19919 withval=$with_kernel; kbuilddir="$withval"; ksourcedir="$withval";
19923 # Check whether --with-kbuild was given.
19924 if test "${with_kbuild+set}" = set; then
19925 withval=$with_kbuild; kbuilddir="$withval"
19929 # Check whether --with-ksource was given.
19930 if test "${with_ksource+set}" = set; then
19931 withval=$with_ksource; ksourcedir="$withval"
19935 # Check whether --with-xtlibdir was given.
19936 if test "${with_xtlibdir+set}" = set; then
19937 withval=$with_xtlibdir; xtlibdir="$withval"
19939 xtlibdir="${libexecdir}/xtables"
19942 # Check whether --enable-ipv4 was given.
19943 if test "${enable_ipv4+set}" = set; then
19944 enableval=$enable_ipv4; enable_ipv4="$enableval"
19949 # Check whether --enable-ipv6 was given.
19950 if test "${enable_ipv6+set}" = set; then
19951 enableval=$enable_ipv6; enable_ipv6="$enableval"
19956 # Check whether --enable-devel was given.
19957 if test "${enable_devel+set}" = set; then
19958 enableval=$enable_devel; enable_devel="$enableval"
19963 # Check whether --enable-libipq was given.
19964 if test "${enable_libipq+set}" = set; then
19965 enableval=$enable_libipq;
19969 # Check whether --with-pkgconfigdir was given.
19970 if test "${with_pkgconfigdir+set}" = set; then
19971 withval=$with_pkgconfigdir; pkgconfigdir="$withval"
19973 pkgconfigdir='${libdir}/pkgconfig'
19977 if test "${ac_cv_header_linux_dccp_h+set}" = set; then
19978 { echo "$as_me:$LINENO: checking for linux/dccp.h" >&5
19979 echo $ECHO_N "checking for linux/dccp.h... $ECHO_C" >&6; }
19980 if test "${ac_cv_header_linux_dccp_h+set}" = set; then
19981 echo $ECHO_N "(cached) $ECHO_C" >&6
19983 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_dccp_h" >&5
19984 echo "${ECHO_T}$ac_cv_header_linux_dccp_h" >&6; }
19986 # Is the header compilable?
19987 { echo "$as_me:$LINENO: checking linux/dccp.h usability" >&5
19988 echo $ECHO_N "checking linux/dccp.h usability... $ECHO_C" >&6; }
19989 cat >conftest.$ac_ext <<_ACEOF
19992 cat confdefs.h >>conftest.$ac_ext
19993 cat >>conftest.$ac_ext <<_ACEOF
19994 /* end confdefs.h. */
19995 $ac_includes_default
19996 #include <linux/dccp.h>
19998 rm -f conftest.$ac_objext
19999 if { (ac_try="$ac_compile"
20000 case "(($ac_try" in
20001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20002 *) ac_try_echo=$ac_try;;
20004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20005 (eval "$ac_compile") 2>conftest.er1
20007 grep -v '^ *+' conftest.er1 >conftest.err
20009 cat conftest.err >&5
20010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20011 (exit $ac_status); } && {
20012 test -z "$ac_c_werror_flag" ||
20013 test ! -s conftest.err
20014 } && test -s conftest.$ac_objext; then
20015 ac_header_compiler=yes
20017 echo "$as_me: failed program was:" >&5
20018 sed 's/^/| /' conftest.$ac_ext >&5
20020 ac_header_compiler=no
20023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20024 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20025 echo "${ECHO_T}$ac_header_compiler" >&6; }
20027 # Is the header present?
20028 { echo "$as_me:$LINENO: checking linux/dccp.h presence" >&5
20029 echo $ECHO_N "checking linux/dccp.h presence... $ECHO_C" >&6; }
20030 cat >conftest.$ac_ext <<_ACEOF
20033 cat confdefs.h >>conftest.$ac_ext
20034 cat >>conftest.$ac_ext <<_ACEOF
20035 /* end confdefs.h. */
20036 #include <linux/dccp.h>
20038 if { (ac_try="$ac_cpp conftest.$ac_ext"
20039 case "(($ac_try" in
20040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20041 *) ac_try_echo=$ac_try;;
20043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20044 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20046 grep -v '^ *+' conftest.er1 >conftest.err
20048 cat conftest.err >&5
20049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20050 (exit $ac_status); } >/dev/null && {
20051 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20052 test ! -s conftest.err
20054 ac_header_preproc=yes
20056 echo "$as_me: failed program was:" >&5
20057 sed 's/^/| /' conftest.$ac_ext >&5
20059 ac_header_preproc=no
20062 rm -f conftest.err conftest.$ac_ext
20063 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20064 echo "${ECHO_T}$ac_header_preproc" >&6; }
20066 # So? What about this header?
20067 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20069 { echo "$as_me:$LINENO: WARNING: linux/dccp.h: accepted by the compiler, rejected by the preprocessor!" >&5
20070 echo "$as_me: WARNING: linux/dccp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20071 { echo "$as_me:$LINENO: WARNING: linux/dccp.h: proceeding with the compiler's result" >&5
20072 echo "$as_me: WARNING: linux/dccp.h: proceeding with the compiler's result" >&2;}
20073 ac_header_preproc=yes
20076 { echo "$as_me:$LINENO: WARNING: linux/dccp.h: present but cannot be compiled" >&5
20077 echo "$as_me: WARNING: linux/dccp.h: present but cannot be compiled" >&2;}
20078 { echo "$as_me:$LINENO: WARNING: linux/dccp.h: check for missing prerequisite headers?" >&5
20079 echo "$as_me: WARNING: linux/dccp.h: check for missing prerequisite headers?" >&2;}
20080 { echo "$as_me:$LINENO: WARNING: linux/dccp.h: see the Autoconf documentation" >&5
20081 echo "$as_me: WARNING: linux/dccp.h: see the Autoconf documentation" >&2;}
20082 { echo "$as_me:$LINENO: WARNING: linux/dccp.h: section \"Present But Cannot Be Compiled\"" >&5
20083 echo "$as_me: WARNING: linux/dccp.h: section \"Present But Cannot Be Compiled\"" >&2;}
20084 { echo "$as_me:$LINENO: WARNING: linux/dccp.h: proceeding with the preprocessor's result" >&5
20085 echo "$as_me: WARNING: linux/dccp.h: proceeding with the preprocessor's result" >&2;}
20086 { echo "$as_me:$LINENO: WARNING: linux/dccp.h: in the future, the compiler will take precedence" >&5
20087 echo "$as_me: WARNING: linux/dccp.h: in the future, the compiler will take precedence" >&2;}
20091 { echo "$as_me:$LINENO: checking for linux/dccp.h" >&5
20092 echo $ECHO_N "checking for linux/dccp.h... $ECHO_C" >&6; }
20093 if test "${ac_cv_header_linux_dccp_h+set}" = set; then
20094 echo $ECHO_N "(cached) $ECHO_C" >&6
20096 ac_cv_header_linux_dccp_h=$ac_header_preproc
20098 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_dccp_h" >&5
20099 echo "${ECHO_T}$ac_cv_header_linux_dccp_h" >&6; }
20105 blacklist_modules="";
20106 if test "$ac_cv_header_linux_dccp_h" != "yes"; then
20107 blacklist_modules="$blacklist_modules dccp";
20111 if test "$enable_static" = "yes"; then
20112 ENABLE_STATIC_TRUE=
20113 ENABLE_STATIC_FALSE='#'
20115 ENABLE_STATIC_TRUE='#'
20116 ENABLE_STATIC_FALSE=
20119 if test "$enable_shared" = "yes"; then
20120 ENABLE_SHARED_TRUE=
20121 ENABLE_SHARED_FALSE='#'
20123 ENABLE_SHARED_TRUE='#'
20124 ENABLE_SHARED_FALSE=
20127 if test "$enable_ipv4" = "yes"; then
20129 ENABLE_IPV4_FALSE='#'
20131 ENABLE_IPV4_TRUE='#'
20135 if test "$enable_ipv6" = "yes"; then
20137 ENABLE_IPV6_FALSE='#'
20139 ENABLE_IPV6_TRUE='#'
20143 if test "$enable_devel" = "yes"; then
20145 ENABLE_DEVEL_FALSE='#'
20147 ENABLE_DEVEL_TRUE='#'
20148 ENABLE_DEVEL_FALSE=
20151 if test "$enable_libipq" = "yes"; then
20152 ENABLE_LIBIPQ_TRUE=
20153 ENABLE_LIBIPQ_FALSE='#'
20155 ENABLE_LIBIPQ_TRUE='#'
20156 ENABLE_LIBIPQ_FALSE=
20160 regular_CFLAGS="-D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 \
20161 -D_REENTRANT -Wall -Waggregate-return -Wmissing-declarations \
20162 -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes \
20164 -DXTABLES_LIBDIR=\\\"\${xtlibdir}\\\" -DXTABLES_INTERNAL";
20165 kinclude_CFLAGS="";
20166 if [ "$enable_static" = yes ]; then
20167 regular_CFLAGS="$regular_CFLAGS -DNO_SHARED_LIBS=1";
20169 if [ -n "$kbuilddir" ]; then
20170 kinclude_CFLAGS="$kinclude_CFLAGS -I $kbuilddir/include";
20172 if [ -n "$ksourcedir" ]; then
20173 kinclude_CFLAGS="$kinclude_CFLAGS -I $ksourcedir/include";
20184 libxtables_vmajor=$(($libxtables_vcurrent - $libxtables_vage));
20187 ac_config_files="$ac_config_files Makefile extensions/GNUmakefile include/Makefile libipq/Makefile include/xtables.h include/iptables/internal.h libiptc.pc xtables.pc"
20189 cat >confcache <<\_ACEOF
20190 # This file is a shell script that caches the results of configure
20191 # tests run on this system so they can be shared between configure
20192 # scripts and configure runs, see configure's option --config-cache.
20193 # It is not useful on other systems. If it contains results you don't
20194 # want to keep, you may remove or edit it.
20196 # config.status only pays attention to the cache file if you give it
20197 # the --recheck option to rerun configure.
20199 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20200 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20201 # following values.
20205 # The following way of writing the cache mishandles newlines in values,
20206 # but we know of no workaround that is simple, portable, and efficient.
20207 # So, we kill variables containing newlines.
20208 # Ultrix sh set writes to stderr and can't be redirected directly,
20209 # and sets the high bit in the cache file unless we assign to the vars.
20211 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20212 eval ac_val=\$$ac_var
20216 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20217 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20220 _ | IFS | as_nl) ;; #(
20221 *) $as_unset $ac_var ;;
20227 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20228 *${as_nl}ac_space=\ *)
20229 # `set' does not quote correctly, so add quotes (double-quote
20230 # substitution turns \\\\ into \\, and sed turns \\ into \).
20233 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20236 # `set' quotes correctly as required by POSIX, so do not add quotes.
20237 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20246 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20248 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20250 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20251 if test -w "$cache_file"; then
20252 test "x$cache_file" != "x/dev/null" &&
20253 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20254 echo "$as_me: updating cache $cache_file" >&6;}
20255 cat confcache >$cache_file
20257 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20258 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20263 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20264 # Let make expand exec_prefix.
20265 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20267 DEFS=-DHAVE_CONFIG_H
20271 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20272 # 1. Remove the extension, and $U if already installed.
20273 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20274 ac_i=`echo "$ac_i" | sed "$ac_script"`
20275 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20276 # will be set to the directory where LIBOBJS objects are built.
20277 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20278 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20280 LIBOBJS=$ac_libobjs
20282 LTLIBOBJS=$ac_ltlibobjs
20285 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20286 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20287 Usually this means the macro was only invoked conditionally." >&5
20288 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20289 Usually this means the macro was only invoked conditionally." >&2;}
20290 { (exit 1); exit 1; }; }
20292 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20293 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20294 Usually this means the macro was only invoked conditionally." >&5
20295 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20296 Usually this means the macro was only invoked conditionally." >&2;}
20297 { (exit 1); exit 1; }; }
20299 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20300 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20301 Usually this means the macro was only invoked conditionally." >&5
20302 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20303 Usually this means the macro was only invoked conditionally." >&2;}
20304 { (exit 1); exit 1; }; }
20306 if test -z "${ENABLE_STATIC_TRUE}" && test -z "${ENABLE_STATIC_FALSE}"; then
20307 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_STATIC\" was never defined.
20308 Usually this means the macro was only invoked conditionally." >&5
20309 echo "$as_me: error: conditional \"ENABLE_STATIC\" was never defined.
20310 Usually this means the macro was only invoked conditionally." >&2;}
20311 { (exit 1); exit 1; }; }
20313 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
20314 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SHARED\" was never defined.
20315 Usually this means the macro was only invoked conditionally." >&5
20316 echo "$as_me: error: conditional \"ENABLE_SHARED\" was never defined.
20317 Usually this means the macro was only invoked conditionally." >&2;}
20318 { (exit 1); exit 1; }; }
20320 if test -z "${ENABLE_IPV4_TRUE}" && test -z "${ENABLE_IPV4_FALSE}"; then
20321 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_IPV4\" was never defined.
20322 Usually this means the macro was only invoked conditionally." >&5
20323 echo "$as_me: error: conditional \"ENABLE_IPV4\" was never defined.
20324 Usually this means the macro was only invoked conditionally." >&2;}
20325 { (exit 1); exit 1; }; }
20327 if test -z "${ENABLE_IPV6_TRUE}" && test -z "${ENABLE_IPV6_FALSE}"; then
20328 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_IPV6\" was never defined.
20329 Usually this means the macro was only invoked conditionally." >&5
20330 echo "$as_me: error: conditional \"ENABLE_IPV6\" was never defined.
20331 Usually this means the macro was only invoked conditionally." >&2;}
20332 { (exit 1); exit 1; }; }
20334 if test -z "${ENABLE_DEVEL_TRUE}" && test -z "${ENABLE_DEVEL_FALSE}"; then
20335 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DEVEL\" was never defined.
20336 Usually this means the macro was only invoked conditionally." >&5
20337 echo "$as_me: error: conditional \"ENABLE_DEVEL\" was never defined.
20338 Usually this means the macro was only invoked conditionally." >&2;}
20339 { (exit 1); exit 1; }; }
20341 if test -z "${ENABLE_LIBIPQ_TRUE}" && test -z "${ENABLE_LIBIPQ_FALSE}"; then
20342 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_LIBIPQ\" was never defined.
20343 Usually this means the macro was only invoked conditionally." >&5
20344 echo "$as_me: error: conditional \"ENABLE_LIBIPQ\" was never defined.
20345 Usually this means the macro was only invoked conditionally." >&2;}
20346 { (exit 1); exit 1; }; }
20349 : ${CONFIG_STATUS=./config.status}
20350 ac_clean_files_save=$ac_clean_files
20351 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20352 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20353 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20354 cat >$CONFIG_STATUS <<_ACEOF
20356 # Generated by $as_me.
20357 # Run this file to recreate the current configuration.
20358 # Compiler output produced by configure, useful for debugging
20359 # configure, is in config.log if it exists.
20362 ac_cs_recheck=false
20364 SHELL=\${CONFIG_SHELL-$SHELL}
20367 cat >>$CONFIG_STATUS <<\_ACEOF
20368 ## --------------------- ##
20369 ## M4sh Initialization. ##
20370 ## --------------------- ##
20372 # Be more Bourne compatible
20373 DUALCASE=1; export DUALCASE # for MKS sh
20374 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20377 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20378 # is contrary to our usage. Disable this feature.
20379 alias -g '${1+"$@"}'='"$@"'
20380 setopt NO_GLOB_SUBST
20382 case `(set -o) 2>/dev/null` in
20383 *posix*) set -o posix ;;
20392 # Avoid depending upon Character Ranges.
20393 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20394 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20395 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20396 as_cr_digits='0123456789'
20397 as_cr_alnum=$as_cr_Letters$as_cr_digits
20399 # The user is always right.
20400 if test "${PATH_SEPARATOR+set}" != set; then
20401 echo "#! /bin/sh" >conf$$.sh
20402 echo "exit 0" >>conf$$.sh
20404 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20412 # Support unset when possible.
20413 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20421 # We need space, tab and new line, in precisely that order. Quoting is
20422 # there to prevent editors from complaining about space-tab.
20423 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20424 # splitting by setting IFS to empty value.)
20429 # Find who we are. Look in the path if we contain no directory separator.
20431 *[\\/]* ) as_myself=$0 ;;
20432 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20433 for as_dir in $PATH
20436 test -z "$as_dir" && as_dir=.
20437 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20443 # We did not find ourselves, most probably we were run as `sh COMMAND'
20444 # in which case we are not to be found in the path.
20445 if test "x$as_myself" = x; then
20448 if test ! -f "$as_myself"; then
20449 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20450 { (exit 1); exit 1; }
20453 # Work around bugs in pre-3.0 UWIN ksh.
20454 for as_var in ENV MAIL MAILPATH
20455 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20463 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20464 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20465 LC_TELEPHONE LC_TIME
20467 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20468 eval $as_var=C; export $as_var
20470 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20474 # Required to use basename.
20475 if expr a : '\(a\)' >/dev/null 2>&1 &&
20476 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20482 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20483 as_basename=basename
20489 # Name of the executable.
20490 as_me=`$as_basename -- "$0" ||
20491 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20492 X"$0" : 'X\(//\)$' \| \
20493 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20495 sed '/^.*\/\([^/][^/]*\)\/*$/{
20514 as_lineno_1=$LINENO
20515 as_lineno_2=$LINENO
20516 test "x$as_lineno_1" != "x$as_lineno_2" &&
20517 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20519 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20520 # uniformly replaced by the line number. The first 'sed' inserts a
20521 # line-number line after each line using $LINENO; the second 'sed'
20522 # does the real work. The second script uses 'N' to pair each
20523 # line-number line with the line containing $LINENO, and appends
20524 # trailing '-' during substitution so that $LINENO is not a special
20525 # case at line end.
20526 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20527 # scripts with optimization help from Paolo Bonzini. Blame Lee
20528 # E. McMahon (1931-1989) for sed's syntax. :-)
20540 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20543 ' >$as_me.lineno &&
20544 chmod +x "$as_me.lineno" ||
20545 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20546 { (exit 1); exit 1; }; }
20548 # Don't try to exec as it changes $[0], causing all sort of problems
20549 # (the dirname of $[0] is not the place where we might find the
20550 # original and so on. Autoconf is especially sensitive to this).
20551 . "./$as_me.lineno"
20552 # Exit status is that of the last command.
20557 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20563 ECHO_C= ECHO_N= ECHO_T=
20564 case `echo -n x` in
20566 case `echo 'x\c'` in
20567 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20574 if expr a : '\(a\)' >/dev/null 2>&1 &&
20575 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20581 rm -f conf$$ conf$$.exe conf$$.file
20582 if test -d conf$$.dir; then
20583 rm -f conf$$.dir/conf$$.file
20589 if ln -s conf$$.file conf$$ 2>/dev/null; then
20591 # ... but there are two gotchas:
20592 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20593 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20594 # In both cases, we have to default to `cp -p'.
20595 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20597 elif ln conf$$.file conf$$ 2>/dev/null; then
20602 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20603 rmdir conf$$.dir 2>/dev/null
20605 if mkdir -p . 2>/dev/null; then
20608 test -d ./-p && rmdir ./-p
20612 if test -x / >/dev/null 2>&1; then
20613 as_test_x='test -x'
20615 if ls -dL / >/dev/null 2>&1; then
20622 if test -d "$1"; then
20628 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20629 ???[sx]*):;;*)false;;esac;fi
20633 as_executable_p=$as_test_x
20635 # Sed expression to map a string onto a valid CPP name.
20636 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20638 # Sed expression to map a string onto a valid variable name.
20639 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20644 # Save the log message, to keep $[0] and so on meaningful, and to
20645 # report actual input values of CONFIG_FILES etc. instead of their
20646 # values after options handling.
20648 This file was extended by iptables $as_me 1.4.3.2, which was
20649 generated by GNU Autoconf 2.61. Invocation command line was
20651 CONFIG_FILES = $CONFIG_FILES
20652 CONFIG_HEADERS = $CONFIG_HEADERS
20653 CONFIG_LINKS = $CONFIG_LINKS
20654 CONFIG_COMMANDS = $CONFIG_COMMANDS
20657 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20662 cat >>$CONFIG_STATUS <<_ACEOF
20663 # Files that config.status was made for.
20664 config_files="$ac_config_files"
20665 config_headers="$ac_config_headers"
20666 config_commands="$ac_config_commands"
20670 cat >>$CONFIG_STATUS <<\_ACEOF
20672 \`$as_me' instantiates files from templates according to the
20673 current configuration.
20675 Usage: $0 [OPTIONS] [FILE]...
20677 -h, --help print this help, then exit
20678 -V, --version print version number and configuration settings, then exit
20679 -q, --quiet do not print progress messages
20680 -d, --debug don't remove temporary files
20681 --recheck update $as_me by reconfiguring in the same conditions
20682 --file=FILE[:TEMPLATE]
20683 instantiate the configuration file FILE
20684 --header=FILE[:TEMPLATE]
20685 instantiate the configuration header FILE
20687 Configuration files:
20690 Configuration headers:
20693 Configuration commands:
20696 Report bugs to <bug-autoconf@gnu.org>."
20699 cat >>$CONFIG_STATUS <<_ACEOF
20701 iptables config.status 1.4.3.2
20702 configured by $0, generated by GNU Autoconf 2.61,
20703 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20705 Copyright (C) 2006 Free Software Foundation, Inc.
20706 This config.status script is free software; the Free Software Foundation
20707 gives unlimited permission to copy, distribute and modify it."
20715 cat >>$CONFIG_STATUS <<\_ACEOF
20716 # If no file are specified by the user, then we need to provide default
20717 # value. By we need to know if files were specified by the user.
20723 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20724 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20735 # Handling of the options.
20736 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20738 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20739 echo "$ac_cs_version"; exit ;;
20740 --debug | --debu | --deb | --de | --d | -d )
20742 --file | --fil | --fi | --f )
20744 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20745 ac_need_defaults=false;;
20746 --header | --heade | --head | --hea )
20748 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20749 ac_need_defaults=false;;
20751 # Conflict between --help and --header
20752 { echo "$as_me: error: ambiguous option: $1
20753 Try \`$0 --help' for more information." >&2
20754 { (exit 1); exit 1; }; };;
20755 --help | --hel | -h )
20756 echo "$ac_cs_usage"; exit ;;
20757 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20758 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20761 # This is an error.
20762 -*) { echo "$as_me: error: unrecognized option: $1
20763 Try \`$0 --help' for more information." >&2
20764 { (exit 1); exit 1; }; } ;;
20766 *) ac_config_targets="$ac_config_targets $1"
20767 ac_need_defaults=false ;;
20773 ac_configure_extra_args=
20775 if $ac_cs_silent; then
20777 ac_configure_extra_args="$ac_configure_extra_args --silent"
20781 cat >>$CONFIG_STATUS <<_ACEOF
20782 if \$ac_cs_recheck; then
20783 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20784 CONFIG_SHELL=$SHELL
20785 export CONFIG_SHELL
20786 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20790 cat >>$CONFIG_STATUS <<\_ACEOF
20794 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20795 ## Running $as_me. ##
20801 cat >>$CONFIG_STATUS <<_ACEOF
20805 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20809 cat >>$CONFIG_STATUS <<\_ACEOF
20811 # Handling of arguments.
20812 for ac_config_target in $ac_config_targets
20814 case $ac_config_target in
20815 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20816 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20817 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20818 "extensions/GNUmakefile") CONFIG_FILES="$CONFIG_FILES extensions/GNUmakefile" ;;
20819 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
20820 "libipq/Makefile") CONFIG_FILES="$CONFIG_FILES libipq/Makefile" ;;
20821 "include/xtables.h") CONFIG_FILES="$CONFIG_FILES include/xtables.h" ;;
20822 "include/iptables/internal.h") CONFIG_FILES="$CONFIG_FILES include/iptables/internal.h" ;;
20823 "libiptc.pc") CONFIG_FILES="$CONFIG_FILES libiptc.pc" ;;
20824 "xtables.pc") CONFIG_FILES="$CONFIG_FILES xtables.pc" ;;
20826 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20827 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20828 { (exit 1); exit 1; }; };;
20833 # If the user did not use the arguments to specify the items to instantiate,
20834 # then the envvar interface is used. Set only those that are not.
20835 # We use the long form for the default assignment because of an extremely
20836 # bizarre bug on SunOS 4.1.3.
20837 if $ac_need_defaults; then
20838 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20839 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20840 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20843 # Have a temporary directory for convenience. Make it in the build tree
20844 # simply because there is no reason against having it here, and in addition,
20845 # creating and moving files from /tmp can sometimes cause problems.
20846 # Hook for its removal unless debugging.
20847 # Note that there is a small window in which the directory will not be cleaned:
20848 # after its creation but before its name has been assigned to `$tmp'.
20852 trap 'exit_status=$?
20853 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20855 trap '{ (exit 1); exit 1; }' 1 2 13 15
20857 # Create a (secure) tmp directory for tmp files.
20860 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20861 test -n "$tmp" && test -d "$tmp"
20864 tmp=./conf$$-$RANDOM
20865 (umask 077 && mkdir "$tmp")
20868 echo "$me: cannot create a temporary directory in ." >&2
20869 { (exit 1); exit 1; }
20873 # Set up the sed scripts for CONFIG_FILES section.
20876 # No need to generate the scripts if there are no CONFIG_FILES.
20877 # This happens for instance when ./config.status config.h
20878 if test -n "$CONFIG_FILES"; then
20885 for ac_last_try in false false false false false :; do
20886 cat >conf$$subs.sed <<_ACEOF
20887 SHELL!$SHELL$ac_delim
20888 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20889 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20890 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20891 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20892 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20893 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20894 exec_prefix!$exec_prefix$ac_delim
20895 prefix!$prefix$ac_delim
20896 program_transform_name!$program_transform_name$ac_delim
20897 bindir!$bindir$ac_delim
20898 sbindir!$sbindir$ac_delim
20899 libexecdir!$libexecdir$ac_delim
20900 datarootdir!$datarootdir$ac_delim
20901 datadir!$datadir$ac_delim
20902 sysconfdir!$sysconfdir$ac_delim
20903 sharedstatedir!$sharedstatedir$ac_delim
20904 localstatedir!$localstatedir$ac_delim
20905 includedir!$includedir$ac_delim
20906 oldincludedir!$oldincludedir$ac_delim
20907 docdir!$docdir$ac_delim
20908 infodir!$infodir$ac_delim
20909 htmldir!$htmldir$ac_delim
20910 dvidir!$dvidir$ac_delim
20911 pdfdir!$pdfdir$ac_delim
20912 psdir!$psdir$ac_delim
20913 libdir!$libdir$ac_delim
20914 localedir!$localedir$ac_delim
20915 mandir!$mandir$ac_delim
20916 DEFS!$DEFS$ac_delim
20917 ECHO_C!$ECHO_C$ac_delim
20918 ECHO_N!$ECHO_N$ac_delim
20919 ECHO_T!$ECHO_T$ac_delim
20920 LIBS!$LIBS$ac_delim
20921 build_alias!$build_alias$ac_delim
20922 host_alias!$host_alias$ac_delim
20923 target_alias!$target_alias$ac_delim
20924 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20925 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20926 INSTALL_DATA!$INSTALL_DATA$ac_delim
20927 am__isrc!$am__isrc$ac_delim
20928 CYGPATH_W!$CYGPATH_W$ac_delim
20929 PACKAGE!$PACKAGE$ac_delim
20930 VERSION!$VERSION$ac_delim
20931 ACLOCAL!$ACLOCAL$ac_delim
20932 AUTOCONF!$AUTOCONF$ac_delim
20933 AUTOMAKE!$AUTOMAKE$ac_delim
20934 AUTOHEADER!$AUTOHEADER$ac_delim
20935 MAKEINFO!$MAKEINFO$ac_delim
20936 install_sh!$install_sh$ac_delim
20937 STRIP!$STRIP$ac_delim
20938 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
20939 mkdir_p!$mkdir_p$ac_delim
20941 SET_MAKE!$SET_MAKE$ac_delim
20942 am__leading_dot!$am__leading_dot$ac_delim
20943 AMTAR!$AMTAR$ac_delim
20944 am__tar!$am__tar$ac_delim
20945 am__untar!$am__untar$ac_delim
20947 CFLAGS!$CFLAGS$ac_delim
20948 LDFLAGS!$LDFLAGS$ac_delim
20949 CPPFLAGS!$CPPFLAGS$ac_delim
20950 ac_ct_CC!$ac_ct_CC$ac_delim
20951 EXEEXT!$EXEEXT$ac_delim
20952 OBJEXT!$OBJEXT$ac_delim
20953 DEPDIR!$DEPDIR$ac_delim
20954 am__include!$am__include$ac_delim
20955 am__quote!$am__quote$ac_delim
20956 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
20957 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
20958 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
20959 CCDEPMODE!$CCDEPMODE$ac_delim
20960 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
20961 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
20962 build!$build$ac_delim
20963 build_cpu!$build_cpu$ac_delim
20964 build_vendor!$build_vendor$ac_delim
20965 build_os!$build_os$ac_delim
20966 host!$host$ac_delim
20967 host_cpu!$host_cpu$ac_delim
20968 host_vendor!$host_vendor$ac_delim
20969 host_os!$host_os$ac_delim
20971 GREP!$GREP$ac_delim
20972 EGREP!$EGREP$ac_delim
20973 LN_S!$LN_S$ac_delim
20974 ECHO!$ECHO$ac_delim
20976 RANLIB!$RANLIB$ac_delim
20977 DSYMUTIL!$DSYMUTIL$ac_delim
20978 NMEDIT!$NMEDIT$ac_delim
20981 CXXFLAGS!$CXXFLAGS$ac_delim
20982 ac_ct_CXX!$ac_ct_CXX$ac_delim
20983 CXXDEPMODE!$CXXDEPMODE$ac_delim
20986 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20988 elif $ac_last_try; then
20989 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20990 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20991 { (exit 1); exit 1; }; }
20993 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20997 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20998 if test -n "$ac_eof"; then
20999 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21000 ac_eof=`expr $ac_eof + 1`
21003 cat >>$CONFIG_STATUS <<_ACEOF
21004 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21005 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21008 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21009 s/^/s,@/; s/!/@,|#_!!_#|/
21012 s/'"$ac_delim"'$/,g/; t
21014 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21015 ' >>$CONFIG_STATUS <conf$$subs.sed
21016 rm -f conf$$subs.sed
21017 cat >>$CONFIG_STATUS <<_ACEOF
21023 for ac_last_try in false false false false false :; do
21024 cat >conf$$subs.sed <<_ACEOF
21025 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21026 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21027 CXXCPP!$CXXCPP$ac_delim
21029 FFLAGS!$FFLAGS$ac_delim
21030 ac_ct_F77!$ac_ct_F77$ac_delim
21031 LIBTOOL!$LIBTOOL$ac_delim
21032 blacklist_modules!$blacklist_modules$ac_delim
21033 ENABLE_STATIC_TRUE!$ENABLE_STATIC_TRUE$ac_delim
21034 ENABLE_STATIC_FALSE!$ENABLE_STATIC_FALSE$ac_delim
21035 ENABLE_SHARED_TRUE!$ENABLE_SHARED_TRUE$ac_delim
21036 ENABLE_SHARED_FALSE!$ENABLE_SHARED_FALSE$ac_delim
21037 ENABLE_IPV4_TRUE!$ENABLE_IPV4_TRUE$ac_delim
21038 ENABLE_IPV4_FALSE!$ENABLE_IPV4_FALSE$ac_delim
21039 ENABLE_IPV6_TRUE!$ENABLE_IPV6_TRUE$ac_delim
21040 ENABLE_IPV6_FALSE!$ENABLE_IPV6_FALSE$ac_delim
21041 ENABLE_DEVEL_TRUE!$ENABLE_DEVEL_TRUE$ac_delim
21042 ENABLE_DEVEL_FALSE!$ENABLE_DEVEL_FALSE$ac_delim
21043 ENABLE_LIBIPQ_TRUE!$ENABLE_LIBIPQ_TRUE$ac_delim
21044 ENABLE_LIBIPQ_FALSE!$ENABLE_LIBIPQ_FALSE$ac_delim
21045 regular_CFLAGS!$regular_CFLAGS$ac_delim
21046 kinclude_CFLAGS!$kinclude_CFLAGS$ac_delim
21047 kbuilddir!$kbuilddir$ac_delim
21048 ksourcedir!$ksourcedir$ac_delim
21049 xtlibdir!$xtlibdir$ac_delim
21050 pkgconfigdir!$pkgconfigdir$ac_delim
21051 libxtables_vcurrent!$libxtables_vcurrent$ac_delim
21052 libxtables_vage!$libxtables_vage$ac_delim
21053 libxtables_vmajor!$libxtables_vmajor$ac_delim
21054 LIBOBJS!$LIBOBJS$ac_delim
21055 LTLIBOBJS!$LTLIBOBJS$ac_delim
21058 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 31; then
21060 elif $ac_last_try; then
21061 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21062 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21063 { (exit 1); exit 1; }; }
21065 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21069 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21070 if test -n "$ac_eof"; then
21071 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21072 ac_eof=`expr $ac_eof + 1`
21075 cat >>$CONFIG_STATUS <<_ACEOF
21076 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21077 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21080 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21081 s/^/s,@/; s/!/@,|#_!!_#|/
21084 s/'"$ac_delim"'$/,g/; t
21086 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21087 ' >>$CONFIG_STATUS <conf$$subs.sed
21088 rm -f conf$$subs.sed
21089 cat >>$CONFIG_STATUS <<_ACEOF
21096 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21097 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21098 # trailing colons and then remove the whole line if VPATH becomes empty
21099 # (actually we leave an empty line to preserve line numbers).
21100 if test "x$srcdir" = x.; then
21101 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21102 s/:*\$(srcdir):*/:/
21103 s/:*\${srcdir}:*/:/
21105 s/^\([^=]*=[ ]*\):*/\1/
21111 cat >>$CONFIG_STATUS <<\_ACEOF
21112 fi # test -n "$CONFIG_FILES"
21115 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21118 :[FHLC]) ac_mode=$ac_tag; continue;;
21120 case $ac_mode$ac_tag in
21122 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21123 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21124 { (exit 1); exit 1; }; };;
21125 :[FH]-) ac_tag=-:-;;
21126 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21143 -) ac_f="$tmp/stdin";;
21144 *) # Look for the file first in the build tree, then in the source tree
21145 # (if the path is not absolute). The absolute path cannot be DOS-style,
21146 # because $ac_f cannot contain `:'.
21150 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21152 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21153 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21154 { (exit 1); exit 1; }; };;
21156 ac_file_inputs="$ac_file_inputs $ac_f"
21159 # Let's still pretend it is `configure' which instantiates (i.e., don't
21160 # use $as_me), people would be surprised to read:
21161 # /* config.h. Generated by config.status. */
21162 configure_input="Generated from "`IFS=:
21163 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21164 if test x"$ac_file" != x-; then
21165 configure_input="$ac_file. $configure_input"
21166 { echo "$as_me:$LINENO: creating $ac_file" >&5
21167 echo "$as_me: creating $ac_file" >&6;}
21171 *:-:* | *:-) cat >"$tmp/stdin";;
21176 ac_dir=`$as_dirname -- "$ac_file" ||
21177 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21178 X"$ac_file" : 'X\(//\)[^/]' \| \
21179 X"$ac_file" : 'X\(//\)$' \| \
21180 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21182 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21186 /^X\(\/\/\)[^/].*/{
21201 -*) as_dir=./$as_dir;;
21203 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21207 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21208 *) as_qdir=$as_dir;;
21210 as_dirs="'$as_qdir' $as_dirs"
21211 as_dir=`$as_dirname -- "$as_dir" ||
21212 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21213 X"$as_dir" : 'X\(//\)[^/]' \| \
21214 X"$as_dir" : 'X\(//\)$' \| \
21215 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21217 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21221 /^X\(\/\/\)[^/].*/{
21234 test -d "$as_dir" && break
21236 test -z "$as_dirs" || eval "mkdir $as_dirs"
21237 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21238 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21239 { (exit 1); exit 1; }; }; }
21243 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21245 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21246 # A ".." for each directory in $ac_dir_suffix.
21247 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21248 case $ac_top_builddir_sub in
21249 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21250 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21253 ac_abs_top_builddir=$ac_pwd
21254 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21255 # for backward compatibility:
21256 ac_top_builddir=$ac_top_build_prefix
21259 .) # We are building in place.
21261 ac_top_srcdir=$ac_top_builddir_sub
21262 ac_abs_top_srcdir=$ac_pwd ;;
21263 [\\/]* | ?:[\\/]* ) # Absolute name.
21264 ac_srcdir=$srcdir$ac_dir_suffix;
21265 ac_top_srcdir=$srcdir
21266 ac_abs_top_srcdir=$srcdir ;;
21267 *) # Relative name.
21268 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21269 ac_top_srcdir=$ac_top_build_prefix$srcdir
21270 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21272 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21282 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21283 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21285 ac_MKDIR_P=$MKDIR_P
21287 [\\/$]* | ?:[\\/]* ) ;;
21288 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21292 cat >>$CONFIG_STATUS <<\_ACEOF
21293 # If the template does not know about datarootdir, expand it.
21294 # FIXME: This hack should be removed a few years after 2.60.
21295 ac_datarootdir_hack=; ac_datarootdir_seen=
21297 case `sed -n '/datarootdir/ {
21306 ' $ac_file_inputs` in
21307 *datarootdir*) ac_datarootdir_seen=yes;;
21308 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21309 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21310 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21312 cat >>$CONFIG_STATUS <<_ACEOF
21313 ac_datarootdir_hack='
21314 s&@datadir@&$datadir&g
21315 s&@docdir@&$docdir&g
21316 s&@infodir@&$infodir&g
21317 s&@localedir@&$localedir&g
21318 s&@mandir@&$mandir&g
21319 s&\\\${datarootdir}&$datarootdir&g' ;;
21323 # Neutralize VPATH when `$srcdir' = `.'.
21324 # Shell code in configure.ac might set extrasub.
21325 # FIXME: do we really want to maintain this feature?
21326 cat >>$CONFIG_STATUS <<_ACEOF
21330 cat >>$CONFIG_STATUS <<\_ACEOF
21332 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21333 s&@configure_input@&$configure_input&;t t
21334 s&@top_builddir@&$ac_top_builddir_sub&;t t
21335 s&@srcdir@&$ac_srcdir&;t t
21336 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21337 s&@top_srcdir@&$ac_top_srcdir&;t t
21338 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21339 s&@builddir@&$ac_builddir&;t t
21340 s&@abs_builddir@&$ac_abs_builddir&;t t
21341 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21342 s&@INSTALL@&$ac_INSTALL&;t t
21343 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21344 $ac_datarootdir_hack
21345 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21347 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21348 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21349 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21350 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21351 which seems to be undefined. Please make sure it is defined." >&5
21352 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21353 which seems to be undefined. Please make sure it is defined." >&2;}
21357 -) cat "$tmp/out"; rm -f "$tmp/out";;
21358 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21367 # Transform confdefs.h into a sed script `conftest.defines', that
21368 # substitutes the proper values into config.h.in to produce config.h.
21369 rm -f conftest.defines conftest.tail
21370 # First, append a space to every undef/define line, to ease matching.
21371 echo 's/$/ /' >conftest.defines
21372 # Then, protect against being on the right side of a sed subst, or in
21373 # an unquoted here document, in config.status. If some macros were
21374 # called several times there might be several #defines for the same
21375 # symbol, which is useless. But do not sort them, since the last
21376 # AC_DEFINE must be honored.
21377 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21378 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21379 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21380 # PARAMS is the parameter list in the macro definition--in most cases, it's
21381 # just an empty string.
21382 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21383 ac_dB='\\)[ (].*,\\1define\\2'
21391 s/^[ ]*#[ ]*define[ ][ ]*//
21396 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21397 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21398 ' >>conftest.defines
21400 # Remove the space that was appended to ease matching.
21401 # Then replace #undef with comments. This is necessary, for
21402 # example, in the case of _POSIX_SOURCE, which is predefined and required
21403 # on some systems where configure will not decide to define it.
21404 # (The regexp can be short, since the line contains either #define or #undef.)
21406 s,^[ #]*u.*,/* & */,' >>conftest.defines
21408 # Break up conftest.defines:
21409 ac_max_sed_lines=50
21411 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21412 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21413 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21415 ac_in='$ac_file_inputs'
21416 ac_out='"$tmp/out1"'
21417 ac_nxt='"$tmp/out2"'
21421 # Write a here document:
21422 cat >>$CONFIG_STATUS <<_ACEOF
21423 # First, check the format of the line:
21424 cat >"\$tmp/defines.sed" <<\\CEOF
21425 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21426 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21430 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21432 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21433 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21434 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21435 grep . conftest.tail >/dev/null || break
21436 rm -f conftest.defines
21437 mv conftest.tail conftest.defines
21439 rm -f conftest.defines conftest.tail
21441 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21442 cat >>$CONFIG_STATUS <<\_ACEOF
21443 if test x"$ac_file" != x-; then
21444 echo "/* $configure_input */" >"$tmp/config.h"
21445 cat "$ac_result" >>"$tmp/config.h"
21446 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21447 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21448 echo "$as_me: $ac_file is unchanged" >&6;}
21451 mv "$tmp/config.h" $ac_file
21454 echo "/* $configure_input */"
21458 # Compute $ac_file's index in $config_headers.
21461 for _am_header in $config_headers :; do
21462 case $_am_header in
21463 $_am_arg | $_am_arg:* )
21466 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21469 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21470 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21471 X"$_am_arg" : 'X\(//\)[^/]' \| \
21472 X"$_am_arg" : 'X\(//\)$' \| \
21473 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21475 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21479 /^X\(\/\/\)[^/].*/{
21491 s/.*/./; q'`/stamp-h$_am_stamp_count
21494 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21495 echo "$as_me: executing $ac_file commands" >&6;}
21500 case $ac_file$ac_mode in
21501 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21502 # Strip MF so we end up with the name of the file.
21503 mf=`echo "$mf" | sed -e 's/:.*$//'`
21504 # Check whether this is an Automake generated Makefile or not.
21505 # We used to match only the files named `Makefile.in', but
21506 # some people rename them; so instead we look at the file content.
21507 # Grep'ing the first line is not enough: some people post-process
21508 # each Makefile.in and add a new line on top of each file to say so.
21509 # Grep'ing the whole file is not good either: AIX grep has a line
21510 # limit of 2048, but all sed's we know have understand at least 4000.
21511 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21512 dirpart=`$as_dirname -- "$mf" ||
21513 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21514 X"$mf" : 'X\(//\)[^/]' \| \
21515 X"$mf" : 'X\(//\)$' \| \
21516 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21518 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21522 /^X\(\/\/\)[^/].*/{
21538 # Extract the definition of DEPDIR, am__include, and am__quote
21539 # from the Makefile without running `make'.
21540 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21541 test -z "$DEPDIR" && continue
21542 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21543 test -z "am__include" && continue
21544 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21545 # When using ansi2knr, U may be empty or an underscore; expand it
21546 U=`sed -n 's/^U = //p' < "$mf"`
21547 # Find all dependency output files, they are included files with
21548 # $(DEPDIR) in their names. We invoke sed twice because it is the
21549 # simplest approach to changing $(DEPDIR) to its actual value in the
21551 for file in `sed -n "
21552 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21553 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21554 # Make sure the directory exists.
21555 test -f "$dirpart/$file" && continue
21556 fdir=`$as_dirname -- "$file" ||
21557 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21558 X"$file" : 'X\(//\)[^/]' \| \
21559 X"$file" : 'X\(//\)$' \| \
21560 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21562 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21566 /^X\(\/\/\)[^/].*/{
21579 { as_dir=$dirpart/$fdir
21581 -*) as_dir=./$as_dir;;
21583 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21587 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21588 *) as_qdir=$as_dir;;
21590 as_dirs="'$as_qdir' $as_dirs"
21591 as_dir=`$as_dirname -- "$as_dir" ||
21592 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21593 X"$as_dir" : 'X\(//\)[^/]' \| \
21594 X"$as_dir" : 'X\(//\)$' \| \
21595 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21597 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21601 /^X\(\/\/\)[^/].*/{
21614 test -d "$as_dir" && break
21616 test -z "$as_dirs" || eval "mkdir $as_dirs"
21617 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21618 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21619 { (exit 1); exit 1; }; }; }
21620 # echo "creating $dirpart/$file"
21621 echo '# dummy' > "$dirpart/$file"
21630 { (exit 0); exit 0; }
21632 chmod +x $CONFIG_STATUS
21633 ac_clean_files=$ac_clean_files_save
21636 # configure is writing to config.log, and then calls config.status.
21637 # config.status does its own redirection, appending to config.log.
21638 # Unfortunately, on DOS this fails, as config.log is still kept open
21639 # by configure, so config.status won't be able to write to it; its
21640 # output is simply discarded. So we exec the FD to /dev/null,
21641 # effectively closing config.log, so it can be properly (re)opened and
21642 # appended to by config.status. When coming back to configure, we
21643 # need to make the FD available again.
21644 if test "$no_create" != yes; then
21646 ac_config_status_args=
21647 test "$silent" = yes &&
21648 ac_config_status_args="$ac_config_status_args --quiet"
21650 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21652 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21653 # would make configure fail if this is the last instruction.
21654 $ac_cs_success || { (exit 1); exit 1; }