2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for iptables 1.4.1.1.
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.1.1'
730 PACKAGE_STRING='iptables 1.4.1.1'
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
819 INSTALL_STRIP_PROGRAM
886 XTABLES_VERSION_MAJOR
887 XTABLES_VERSION_MINOR
888 XTABLES_VERSION_PATCH
889 XTABLES_VERSION_EXTRA
893 ac_precious_vars='build_alias
910 # Initialize some variables set by options.
912 ac_init_version=false
913 # The variables have the same names as the options, with
914 # dashes changed to underlines.
922 program_transform_name=s,x,x,
930 # Installation directory options.
931 # These are left unexpanded so users can "make install exec_prefix=/foo"
932 # and all the variables that are supposed to be based on exec_prefix
933 # by default will actually change.
934 # Use braces instead of parens because sh, perl, etc. also accept them.
935 # (The list follows the same order as the GNU Coding Standards.)
936 bindir='${exec_prefix}/bin'
937 sbindir='${exec_prefix}/sbin'
938 libexecdir='${exec_prefix}/libexec'
939 datarootdir='${prefix}/share'
940 datadir='${datarootdir}'
941 sysconfdir='${prefix}/etc'
942 sharedstatedir='${prefix}/com'
943 localstatedir='${prefix}/var'
944 includedir='${prefix}/include'
945 oldincludedir='/usr/include'
946 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
947 infodir='${datarootdir}/info'
952 libdir='${exec_prefix}/lib'
953 localedir='${datarootdir}/locale'
954 mandir='${datarootdir}/man'
960 # If the previous option needs an argument, assign it.
961 if test -n "$ac_prev"; then
962 eval $ac_prev=\$ac_option
968 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
972 # Accept the important Cygnus configure options, so we can diagnose typos.
974 case $ac_dashdash$ac_option in
978 -bindir | --bindir | --bindi | --bind | --bin | --bi)
980 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
983 -build | --build | --buil | --bui | --bu)
984 ac_prev=build_alias ;;
985 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
986 build_alias=$ac_optarg ;;
988 -cache-file | --cache-file | --cache-fil | --cache-fi \
989 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
990 ac_prev=cache_file ;;
991 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
992 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
993 cache_file=$ac_optarg ;;
996 cache_file=config.cache ;;
998 -datadir | --datadir | --datadi | --datad)
1000 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1001 datadir=$ac_optarg ;;
1003 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1004 | --dataroo | --dataro | --datar)
1005 ac_prev=datarootdir ;;
1006 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1007 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1008 datarootdir=$ac_optarg ;;
1010 -disable-* | --disable-*)
1011 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1012 # Reject names that are not valid shell variable names.
1013 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1014 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1015 { (exit 1); exit 1; }; }
1016 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1017 eval enable_$ac_feature=no ;;
1019 -docdir | --docdir | --docdi | --doc | --do)
1021 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1022 docdir=$ac_optarg ;;
1024 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1026 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1027 dvidir=$ac_optarg ;;
1029 -enable-* | --enable-*)
1030 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1031 # Reject names that are not valid shell variable names.
1032 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1033 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1034 { (exit 1); exit 1; }; }
1035 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1036 eval enable_$ac_feature=\$ac_optarg ;;
1038 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1039 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1040 | --exec | --exe | --ex)
1041 ac_prev=exec_prefix ;;
1042 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1043 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1044 | --exec=* | --exe=* | --ex=*)
1045 exec_prefix=$ac_optarg ;;
1047 -gas | --gas | --ga | --g)
1048 # Obsolete; use --with-gas.
1051 -help | --help | --hel | --he | -h)
1052 ac_init_help=long ;;
1053 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1054 ac_init_help=recursive ;;
1055 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1056 ac_init_help=short ;;
1058 -host | --host | --hos | --ho)
1059 ac_prev=host_alias ;;
1060 -host=* | --host=* | --hos=* | --ho=*)
1061 host_alias=$ac_optarg ;;
1063 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1065 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1067 htmldir=$ac_optarg ;;
1069 -includedir | --includedir | --includedi | --included | --include \
1070 | --includ | --inclu | --incl | --inc)
1071 ac_prev=includedir ;;
1072 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1073 | --includ=* | --inclu=* | --incl=* | --inc=*)
1074 includedir=$ac_optarg ;;
1076 -infodir | --infodir | --infodi | --infod | --info | --inf)
1078 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1079 infodir=$ac_optarg ;;
1081 -libdir | --libdir | --libdi | --libd)
1083 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1084 libdir=$ac_optarg ;;
1086 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1087 | --libexe | --libex | --libe)
1088 ac_prev=libexecdir ;;
1089 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1090 | --libexe=* | --libex=* | --libe=*)
1091 libexecdir=$ac_optarg ;;
1093 -localedir | --localedir | --localedi | --localed | --locale)
1094 ac_prev=localedir ;;
1095 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1096 localedir=$ac_optarg ;;
1098 -localstatedir | --localstatedir | --localstatedi | --localstated \
1099 | --localstate | --localstat | --localsta | --localst | --locals)
1100 ac_prev=localstatedir ;;
1101 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1102 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1103 localstatedir=$ac_optarg ;;
1105 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1107 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1108 mandir=$ac_optarg ;;
1110 -nfp | --nfp | --nf)
1111 # Obsolete; use --without-fp.
1114 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1115 | --no-cr | --no-c | -n)
1118 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1119 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1122 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1123 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1124 | --oldin | --oldi | --old | --ol | --o)
1125 ac_prev=oldincludedir ;;
1126 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1127 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1128 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1129 oldincludedir=$ac_optarg ;;
1131 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1133 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1134 prefix=$ac_optarg ;;
1136 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1137 | --program-pre | --program-pr | --program-p)
1138 ac_prev=program_prefix ;;
1139 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1140 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1141 program_prefix=$ac_optarg ;;
1143 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1144 | --program-suf | --program-su | --program-s)
1145 ac_prev=program_suffix ;;
1146 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1147 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1148 program_suffix=$ac_optarg ;;
1150 -program-transform-name | --program-transform-name \
1151 | --program-transform-nam | --program-transform-na \
1152 | --program-transform-n | --program-transform- \
1153 | --program-transform | --program-transfor \
1154 | --program-transfo | --program-transf \
1155 | --program-trans | --program-tran \
1156 | --progr-tra | --program-tr | --program-t)
1157 ac_prev=program_transform_name ;;
1158 -program-transform-name=* | --program-transform-name=* \
1159 | --program-transform-nam=* | --program-transform-na=* \
1160 | --program-transform-n=* | --program-transform-=* \
1161 | --program-transform=* | --program-transfor=* \
1162 | --program-transfo=* | --program-transf=* \
1163 | --program-trans=* | --program-tran=* \
1164 | --progr-tra=* | --program-tr=* | --program-t=*)
1165 program_transform_name=$ac_optarg ;;
1167 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1169 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1170 pdfdir=$ac_optarg ;;
1172 -psdir | --psdir | --psdi | --psd | --ps)
1174 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1177 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1178 | -silent | --silent | --silen | --sile | --sil)
1181 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1183 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1185 sbindir=$ac_optarg ;;
1187 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1188 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1189 | --sharedst | --shareds | --shared | --share | --shar \
1191 ac_prev=sharedstatedir ;;
1192 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1193 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1194 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1196 sharedstatedir=$ac_optarg ;;
1198 -site | --site | --sit)
1200 -site=* | --site=* | --sit=*)
1203 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1205 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1206 srcdir=$ac_optarg ;;
1208 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1209 | --syscon | --sysco | --sysc | --sys | --sy)
1210 ac_prev=sysconfdir ;;
1211 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1212 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1213 sysconfdir=$ac_optarg ;;
1215 -target | --target | --targe | --targ | --tar | --ta | --t)
1216 ac_prev=target_alias ;;
1217 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1218 target_alias=$ac_optarg ;;
1220 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1223 -version | --version | --versio | --versi | --vers | -V)
1224 ac_init_version=: ;;
1227 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1228 # Reject names that are not valid shell variable names.
1229 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1230 { echo "$as_me: error: invalid package name: $ac_package" >&2
1231 { (exit 1); exit 1; }; }
1232 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1233 eval with_$ac_package=\$ac_optarg ;;
1235 -without-* | --without-*)
1236 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1237 # Reject names that are not valid shell variable names.
1238 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1239 { echo "$as_me: error: invalid package name: $ac_package" >&2
1240 { (exit 1); exit 1; }; }
1241 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1242 eval with_$ac_package=no ;;
1245 # Obsolete; use --with-x.
1248 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1249 | --x-incl | --x-inc | --x-in | --x-i)
1250 ac_prev=x_includes ;;
1251 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1252 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1253 x_includes=$ac_optarg ;;
1255 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1256 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1257 ac_prev=x_libraries ;;
1258 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1259 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1260 x_libraries=$ac_optarg ;;
1262 -*) { echo "$as_me: error: unrecognized option: $ac_option
1263 Try \`$0 --help' for more information." >&2
1264 { (exit 1); exit 1; }; }
1268 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1269 # Reject names that are not valid shell variable names.
1270 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1271 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1272 { (exit 1); exit 1; }; }
1273 eval $ac_envvar=\$ac_optarg
1274 export $ac_envvar ;;
1277 # FIXME: should be removed in autoconf 3.0.
1278 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1279 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1280 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1281 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1287 if test -n "$ac_prev"; then
1288 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1289 { echo "$as_me: error: missing argument to $ac_option" >&2
1290 { (exit 1); exit 1; }; }
1293 # Be sure to have absolute directory names.
1294 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1295 datadir sysconfdir sharedstatedir localstatedir includedir \
1296 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1297 libdir localedir mandir
1299 eval ac_val=\$$ac_var
1301 [\\/$]* | ?:[\\/]* ) continue;;
1302 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1304 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1305 { (exit 1); exit 1; }; }
1308 # There might be people who depend on the old broken behavior: `$host'
1309 # used to hold the argument of --host etc.
1310 # FIXME: To remove some day.
1313 target=$target_alias
1315 # FIXME: To remove some day.
1316 if test "x$host_alias" != x; then
1317 if test "x$build_alias" = x; then
1318 cross_compiling=maybe
1319 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1320 If a cross compiler is detected then cross compile mode will be used." >&2
1321 elif test "x$build_alias" != "x$host_alias"; then
1327 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1329 test "$silent" = yes && exec 6>/dev/null
1332 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1333 ac_ls_di=`ls -di .` &&
1334 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1335 { echo "$as_me: error: Working directory cannot be determined" >&2
1336 { (exit 1); exit 1; }; }
1337 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1338 { echo "$as_me: error: pwd does not report name of working directory" >&2
1339 { (exit 1); exit 1; }; }
1342 # Find the source files, if location was not specified.
1343 if test -z "$srcdir"; then
1344 ac_srcdir_defaulted=yes
1345 # Try the directory containing this script, then the parent directory.
1346 ac_confdir=`$as_dirname -- "$0" ||
1347 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1348 X"$0" : 'X\(//\)[^/]' \| \
1349 X"$0" : 'X\(//\)$' \| \
1350 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1370 if test ! -r "$srcdir/$ac_unique_file"; then
1374 ac_srcdir_defaulted=no
1376 if test ! -r "$srcdir/$ac_unique_file"; then
1377 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1378 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1379 { (exit 1); exit 1; }; }
1381 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1383 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1384 { (exit 1); exit 1; }; }
1386 # When building in place, set srcdir=.
1387 if test "$ac_abs_confdir" = "$ac_pwd"; then
1390 # Remove unnecessary trailing slashes from srcdir.
1391 # Double slashes in file names in object file debugging info
1392 # mess up M-x gdb in Emacs.
1394 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1396 for ac_var in $ac_precious_vars; do
1397 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1398 eval ac_env_${ac_var}_value=\$${ac_var}
1399 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1400 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1404 # Report the --help message.
1406 if test "$ac_init_help" = "long"; then
1407 # Omit some internal or obsolete options to make the list less imposing.
1408 # This message is too long to be a string in the A/UX 3.1 sh.
1410 \`configure' configures iptables 1.4.1.1 to adapt to many kinds of systems.
1412 Usage: $0 [OPTION]... [VAR=VALUE]...
1414 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1415 VAR=VALUE. See below for descriptions of some of the useful variables.
1417 Defaults for the options are specified in brackets.
1420 -h, --help display this help and exit
1421 --help=short display options specific to this package
1422 --help=recursive display the short help of all the included packages
1423 -V, --version display version information and exit
1424 -q, --quiet, --silent do not print \`checking...' messages
1425 --cache-file=FILE cache test results in FILE [disabled]
1426 -C, --config-cache alias for \`--cache-file=config.cache'
1427 -n, --no-create do not create output files
1428 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1430 Installation directories:
1431 --prefix=PREFIX install architecture-independent files in PREFIX
1432 [$ac_default_prefix]
1433 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1436 By default, \`make install' will install all the files in
1437 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1438 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1439 for instance \`--prefix=\$HOME'.
1441 For better control, use the options below.
1443 Fine tuning of the installation directories:
1444 --bindir=DIR user executables [EPREFIX/bin]
1445 --sbindir=DIR system admin executables [EPREFIX/sbin]
1446 --libexecdir=DIR program executables [EPREFIX/libexec]
1447 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1448 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1449 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1450 --libdir=DIR object code libraries [EPREFIX/lib]
1451 --includedir=DIR C header files [PREFIX/include]
1452 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1453 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1454 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1455 --infodir=DIR info documentation [DATAROOTDIR/info]
1456 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1457 --mandir=DIR man documentation [DATAROOTDIR/man]
1458 --docdir=DIR documentation root [DATAROOTDIR/doc/iptables]
1459 --htmldir=DIR html documentation [DOCDIR]
1460 --dvidir=DIR dvi documentation [DOCDIR]
1461 --pdfdir=DIR pdf documentation [DOCDIR]
1462 --psdir=DIR ps documentation [DOCDIR]
1468 --program-prefix=PREFIX prepend PREFIX to installed program names
1469 --program-suffix=SUFFIX append SUFFIX to installed program names
1470 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1473 --build=BUILD configure for building on BUILD [guessed]
1474 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1478 if test -n "$ac_init_help"; then
1479 case $ac_init_help in
1480 short | recursive ) echo "Configuration of iptables 1.4.1.1:";;
1485 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1486 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1487 --disable-dependency-tracking speeds up one-time build
1488 --enable-dependency-tracking do not reject slow dependency extractors
1489 --enable-static[=PKGS] build static libraries [default=no]
1490 --enable-shared[=PKGS] build shared libraries [default=yes]
1491 --enable-fast-install[=PKGS]
1492 optimize for fast installation [default=yes]
1493 --disable-libtool-lock avoid locking (might break parallel builds)
1494 --enable-devel Install Xtables development headers
1495 --enable-libipq Build and install libipq
1498 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1499 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1500 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1501 --with-pic try to use only PIC/non-PIC objects [default=use
1503 --with-tags[=TAGS] include additional configurations [automatic]
1504 --with-kernel=PATH Path to kernel source/build directory
1505 --with-kbuild=PATH Path to kernel build directory
1506 [/lib/modules/CURRENT/build]
1507 --with-ksource=PATH Path to kernel source directory
1508 [/lib/modules/CURRENT/source]
1509 --with-xtlibdir=PATH Path where to install Xtables extensions
1510 [LIBEXECDIR/xtables]
1512 Some influential environment variables:
1513 CC C compiler command
1514 CFLAGS C compiler flags
1515 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1516 nonstandard directory <lib dir>
1517 LIBS libraries to pass to the linker, e.g. -l<library>
1518 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1519 you have headers in a nonstandard directory <include dir>
1521 CXX C++ compiler command
1522 CXXFLAGS C++ compiler flags
1523 CXXCPP C++ preprocessor
1524 F77 Fortran 77 compiler command
1525 FFLAGS Fortran 77 compiler flags
1527 Use these variables to override the choices made by `configure' or to help
1528 it to find libraries and programs with nonstandard names/locations.
1534 if test "$ac_init_help" = "recursive"; then
1535 # If there are subdirs, report their specific --help.
1536 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1537 test -d "$ac_dir" || continue
1541 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1543 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1544 # A ".." for each directory in $ac_dir_suffix.
1545 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1546 case $ac_top_builddir_sub in
1547 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1548 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1551 ac_abs_top_builddir=$ac_pwd
1552 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1553 # for backward compatibility:
1554 ac_top_builddir=$ac_top_build_prefix
1557 .) # We are building in place.
1559 ac_top_srcdir=$ac_top_builddir_sub
1560 ac_abs_top_srcdir=$ac_pwd ;;
1561 [\\/]* | ?:[\\/]* ) # Absolute name.
1562 ac_srcdir=$srcdir$ac_dir_suffix;
1563 ac_top_srcdir=$srcdir
1564 ac_abs_top_srcdir=$srcdir ;;
1566 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1567 ac_top_srcdir=$ac_top_build_prefix$srcdir
1568 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1570 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1572 cd "$ac_dir" || { ac_status=$?; continue; }
1573 # Check for guested configure.
1574 if test -f "$ac_srcdir/configure.gnu"; then
1576 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1577 elif test -f "$ac_srcdir/configure"; then
1579 $SHELL "$ac_srcdir/configure" --help=recursive
1581 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1583 cd "$ac_pwd" || { ac_status=$?; break; }
1587 test -n "$ac_init_help" && exit $ac_status
1588 if $ac_init_version; then
1590 iptables configure 1.4.1.1
1591 generated by GNU Autoconf 2.61
1593 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1594 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1595 This configure script is free software; the Free Software Foundation
1596 gives unlimited permission to copy, distribute and modify it.
1600 cat >config.log <<_ACEOF
1601 This file contains any messages produced by compilers while
1602 running configure, to aid debugging if configure makes a mistake.
1604 It was created by iptables $as_me 1.4.1.1, which was
1605 generated by GNU Autoconf 2.61. Invocation command line was
1617 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1618 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1619 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1620 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1621 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1623 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1624 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1626 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1627 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1628 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1629 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1630 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1631 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1632 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1640 test -z "$as_dir" && as_dir=.
1641 echo "PATH: $as_dir"
1657 # Keep a trace of the command line.
1658 # Strip out --no-create and --no-recursion so they do not pile up.
1659 # Strip out --silent because we don't want to record it for future runs.
1660 # Also quote any args containing shell meta-characters.
1661 # Make two passes to allow for proper duplicate-argument suppression.
1665 ac_must_keep_next=false
1671 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1672 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1673 | -silent | --silent | --silen | --sile | --sil)
1676 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1679 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1681 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1682 if test $ac_must_keep_next = true; then
1683 ac_must_keep_next=false # Got value, back to normal.
1686 *=* | --config-cache | -C | -disable-* | --disable-* \
1687 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1688 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1689 | -with-* | --with-* | -without-* | --without-* | --x)
1690 case "$ac_configure_args0 " in
1691 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1694 -* ) ac_must_keep_next=true ;;
1697 ac_configure_args="$ac_configure_args '$ac_arg'"
1702 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1703 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1705 # When interrupted or exit'd, cleanup temporary files, and complete
1706 # config.log. We remove comments because anyway the quotes in there
1707 # would cause problems or look ugly.
1708 # WARNING: Use '\'' to represent an apostrophe within the trap.
1709 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1710 trap 'exit_status=$?
1711 # Save into config.log some information that might help in debugging.
1716 ## ---------------- ##
1717 ## Cache variables. ##
1718 ## ---------------- ##
1721 # The following way of writing the cache mishandles newlines in values,
1723 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1724 eval ac_val=\$$ac_var
1728 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1729 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1732 _ | IFS | as_nl) ;; #(
1733 *) $as_unset $ac_var ;;
1738 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1739 *${as_nl}ac_space=\ *)
1741 "s/'\''/'\''\\\\'\'''\''/g;
1742 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1745 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1753 ## ----------------- ##
1754 ## Output variables. ##
1755 ## ----------------- ##
1758 for ac_var in $ac_subst_vars
1760 eval ac_val=\$$ac_var
1762 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1764 echo "$ac_var='\''$ac_val'\''"
1768 if test -n "$ac_subst_files"; then
1770 ## ------------------- ##
1771 ## File substitutions. ##
1772 ## ------------------- ##
1775 for ac_var in $ac_subst_files
1777 eval ac_val=\$$ac_var
1779 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1781 echo "$ac_var='\''$ac_val'\''"
1786 if test -s confdefs.h; then
1796 test "$ac_signal" != 0 &&
1797 echo "$as_me: caught signal $ac_signal"
1798 echo "$as_me: exit $exit_status"
1800 rm -f core *.core core.conftest.* &&
1801 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1804 for ac_signal in 1 2 13 15; do
1805 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1809 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1810 rm -f -r conftest* confdefs.h
1812 # Predefined preprocessor variables.
1814 cat >>confdefs.h <<_ACEOF
1815 #define PACKAGE_NAME "$PACKAGE_NAME"
1819 cat >>confdefs.h <<_ACEOF
1820 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1824 cat >>confdefs.h <<_ACEOF
1825 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1829 cat >>confdefs.h <<_ACEOF
1830 #define PACKAGE_STRING "$PACKAGE_STRING"
1834 cat >>confdefs.h <<_ACEOF
1835 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1839 # Let the site file select an alternate cache file if it wants to.
1840 # Prefer explicitly selected file to automatically selected ones.
1841 if test -n "$CONFIG_SITE"; then
1842 set x "$CONFIG_SITE"
1843 elif test "x$prefix" != xNONE; then
1844 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1846 set x "$ac_default_prefix/share/config.site" \
1847 "$ac_default_prefix/etc/config.site"
1852 if test -r "$ac_site_file"; then
1853 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1854 echo "$as_me: loading site script $ac_site_file" >&6;}
1855 sed 's/^/| /' "$ac_site_file" >&5
1860 if test -r "$cache_file"; then
1861 # Some versions of bash will fail to source /dev/null (special
1862 # files actually), so we avoid doing that.
1863 if test -f "$cache_file"; then
1864 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1865 echo "$as_me: loading cache $cache_file" >&6;}
1867 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1868 *) . "./$cache_file";;
1872 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1873 echo "$as_me: creating cache $cache_file" >&6;}
1877 # Check that the precious variables saved in the cache have kept the same
1879 ac_cache_corrupted=false
1880 for ac_var in $ac_precious_vars; do
1881 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1882 eval ac_new_set=\$ac_env_${ac_var}_set
1883 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1884 eval ac_new_val=\$ac_env_${ac_var}_value
1885 case $ac_old_set,$ac_new_set in
1887 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1888 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1889 ac_cache_corrupted=: ;;
1891 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1892 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1893 ac_cache_corrupted=: ;;
1896 if test "x$ac_old_val" != "x$ac_new_val"; then
1897 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1898 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1899 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1900 echo "$as_me: former value: $ac_old_val" >&2;}
1901 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1902 echo "$as_me: current value: $ac_new_val" >&2;}
1903 ac_cache_corrupted=:
1906 # Pass precious variables to config.status.
1907 if test "$ac_new_set" = set; then
1909 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1910 *) ac_arg=$ac_var=$ac_new_val ;;
1912 case " $ac_configure_args " in
1913 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1914 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1918 if $ac_cache_corrupted; then
1919 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1920 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1921 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1922 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1923 { (exit 1); exit 1; }; }
1951 ac_cpp='$CPP $CPPFLAGS'
1952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1957 ac_config_headers="$ac_config_headers config.h"
1960 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1961 if test -f "$ac_dir/install-sh"; then
1963 ac_install_sh="$ac_aux_dir/install-sh -c"
1965 elif test -f "$ac_dir/install.sh"; then
1967 ac_install_sh="$ac_aux_dir/install.sh -c"
1969 elif test -f "$ac_dir/shtool"; then
1971 ac_install_sh="$ac_aux_dir/shtool install -c"
1975 if test -z "$ac_aux_dir"; then
1976 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1977 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1978 { (exit 1); exit 1; }; }
1981 # These three variables are undocumented and unsupported,
1982 # and are intended to be withdrawn in a future Autoconf release.
1983 # They can cause serious problems if a builder's source tree is in a directory
1984 # whose full name contains unusual characters.
1985 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1986 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1987 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1990 # Find a good install program. We prefer a C program (faster),
1991 # so one script is as good as another. But avoid the broken or
1992 # incompatible versions:
1993 # SysV /etc/install, /usr/sbin/install
1994 # SunOS /usr/etc/install
1995 # IRIX /sbin/install
1997 # AmigaOS /C/install, which installs bootblocks on floppy discs
1998 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1999 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2000 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2001 # OS/2's system install, which has a completely different semantic
2002 # ./install, which can be erroneously created by make from ./install.sh.
2003 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2004 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2005 if test -z "$INSTALL"; then
2006 if test "${ac_cv_path_install+set}" = set; then
2007 echo $ECHO_N "(cached) $ECHO_C" >&6
2009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2013 test -z "$as_dir" && as_dir=.
2014 # Account for people who put trailing slashes in PATH elements.
2016 ./ | .// | /cC/* | \
2017 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2018 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2021 # OSF1 and SCO ODT 3.0 have their own names for install.
2022 # Don't use installbsd from OSF since it installs stuff as root
2024 for ac_prog in ginstall scoinst install; do
2025 for ac_exec_ext in '' $ac_executable_extensions; do
2026 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2027 if test $ac_prog = install &&
2028 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2029 # AIX install. It has an incompatible calling convention.
2031 elif test $ac_prog = install &&
2032 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2033 # program-specific install script used by HP pwplus--don't use.
2036 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2049 if test "${ac_cv_path_install+set}" = set; then
2050 INSTALL=$ac_cv_path_install
2052 # As a last resort, use the slow shell script. Don't cache a
2053 # value for INSTALL within a source directory, because that will
2054 # break other packages using the cache if that directory is
2055 # removed, or if the value is a relative name.
2056 INSTALL=$ac_install_sh
2059 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2060 echo "${ECHO_T}$INSTALL" >&6; }
2062 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2063 # It thinks the first close brace ends the variable substitution.
2064 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2066 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2068 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2070 am__api_version="1.9"
2071 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2072 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2075 echo timestamp > conftest.file
2076 # Do `set' in a subshell so we don't clobber the current shell's
2077 # arguments. Must try -L first in case configure is actually a
2078 # symlink; some systems play weird games with the mod time of symlinks
2079 # (eg FreeBSD returns the mod time of the symlink's containing
2082 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2083 if test "$*" = "X"; then
2085 set X `ls -t $srcdir/configure conftest.file`
2088 if test "$*" != "X $srcdir/configure conftest.file" \
2089 && test "$*" != "X conftest.file $srcdir/configure"; then
2091 # If neither matched, then we have a broken ls. This can happen
2092 # if, for instance, CONFIG_SHELL is bash and it inherits a
2093 # broken ls alias from the environment. This has actually
2094 # happened. Such a system could not be considered "sane".
2095 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2096 alias in your environment" >&5
2097 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2098 alias in your environment" >&2;}
2099 { (exit 1); exit 1; }; }
2102 test "$2" = conftest.file
2108 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2109 Check your system clock" >&5
2110 echo "$as_me: error: newly created file is older than distributed files!
2111 Check your system clock" >&2;}
2112 { (exit 1); exit 1; }; }
2114 { echo "$as_me:$LINENO: result: yes" >&5
2115 echo "${ECHO_T}yes" >&6; }
2116 test "$program_prefix" != NONE &&
2117 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2118 # Use a double $ so make ignores it.
2119 test "$program_suffix" != NONE &&
2120 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2121 # Double any \ or $. echo might interpret backslashes.
2122 # By default was `s,x,x', remove it if useless.
2123 cat <<\_ACEOF >conftest.sed
2124 s/[\\$]/&&/g;s/;s,x,x,$//
2126 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2129 # expand $ac_aux_dir to an absolute path
2130 am_aux_dir=`cd $ac_aux_dir && pwd`
2132 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2133 # Use eval to expand $SHELL
2134 if eval "$MISSING --run true"; then
2135 am_missing_run="$MISSING --run "
2138 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2139 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2142 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2143 # We used to keeping the `.' as first argument, in order to
2144 # allow $(mkdir_p) to be used without argument. As in
2145 # $(mkdir_p) $(somedir)
2146 # where $(somedir) is conditionally defined. However this is wrong
2148 # 1. if the package is installed by a user who cannot write `.'
2149 # make install will fail,
2150 # 2. the above comment should most certainly read
2151 # $(mkdir_p) $(DESTDIR)$(somedir)
2152 # so it does not work when $(somedir) is undefined and
2153 # $(DESTDIR) is not.
2154 # To support the latter case, we have to write
2155 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2156 # so the `.' trick is pointless.
2157 mkdir_p='mkdir -p --'
2159 # On NextStep and OpenStep, the `mkdir' command does not
2160 # recognize any option. It will interpret all options as
2161 # directories to create, and then abort because `.' already
2163 for d in ./-p ./--version;
2165 test -d $d && rmdir $d
2167 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2168 if test -f "$ac_aux_dir/mkinstalldirs"; then
2169 mkdir_p='$(mkinstalldirs)'
2171 mkdir_p='$(install_sh) -d'
2175 for ac_prog in gawk mawk nawk awk
2177 # Extract the first word of "$ac_prog", so it can be a program name with args.
2178 set dummy $ac_prog; ac_word=$2
2179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2181 if test "${ac_cv_prog_AWK+set}" = set; then
2182 echo $ECHO_N "(cached) $ECHO_C" >&6
2184 if test -n "$AWK"; then
2185 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2191 test -z "$as_dir" && as_dir=.
2192 for ac_exec_ext in '' $ac_executable_extensions; do
2193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2194 ac_cv_prog_AWK="$ac_prog"
2195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2205 if test -n "$AWK"; then
2206 { echo "$as_me:$LINENO: result: $AWK" >&5
2207 echo "${ECHO_T}$AWK" >&6; }
2209 { echo "$as_me:$LINENO: result: no" >&5
2210 echo "${ECHO_T}no" >&6; }
2214 test -n "$AWK" && break
2217 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2218 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2219 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2220 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2221 echo $ECHO_N "(cached) $ECHO_C" >&6
2223 cat >conftest.make <<\_ACEOF
2226 @echo '@@@%%%=$(MAKE)=@@@%%%'
2228 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2229 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2231 eval ac_cv_prog_make_${ac_make}_set=yes;;
2233 eval ac_cv_prog_make_${ac_make}_set=no;;
2237 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2238 { echo "$as_me:$LINENO: result: yes" >&5
2239 echo "${ECHO_T}yes" >&6; }
2242 { echo "$as_me:$LINENO: result: no" >&5
2243 echo "${ECHO_T}no" >&6; }
2244 SET_MAKE="MAKE=${MAKE-make}"
2247 rm -rf .tst 2>/dev/null
2248 mkdir .tst 2>/dev/null
2249 if test -d .tst; then
2254 rmdir .tst 2>/dev/null
2256 # test to see if srcdir already configured
2257 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2258 test -f $srcdir/config.status; then
2259 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2260 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2261 { (exit 1); exit 1; }; }
2264 # test whether we have cygpath
2265 if test -z "$CYGPATH_W"; then
2266 if (cygpath --version) >/dev/null 2>/dev/null; then
2267 CYGPATH_W='cygpath -w'
2274 # Define the identity of the package.
2279 cat >>confdefs.h <<_ACEOF
2280 #define PACKAGE "$PACKAGE"
2284 cat >>confdefs.h <<_ACEOF
2285 #define VERSION "$VERSION"
2288 # Some tools Automake needs.
2290 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2293 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2296 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2299 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2302 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2304 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2306 # Installed binaries are usually stripped using `strip' when the user
2307 # run `make install-strip'. However `strip' might not be the right
2308 # tool to use in cross-compilation environments, therefore Automake
2309 # will honor the `STRIP' environment variable to overrule this program.
2310 if test "$cross_compiling" != no; then
2311 if test -n "$ac_tool_prefix"; then
2312 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2313 set dummy ${ac_tool_prefix}strip; ac_word=$2
2314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2316 if test "${ac_cv_prog_STRIP+set}" = set; then
2317 echo $ECHO_N "(cached) $ECHO_C" >&6
2319 if test -n "$STRIP"; then
2320 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2326 test -z "$as_dir" && as_dir=.
2327 for ac_exec_ext in '' $ac_executable_extensions; do
2328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2329 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2339 STRIP=$ac_cv_prog_STRIP
2340 if test -n "$STRIP"; then
2341 { echo "$as_me:$LINENO: result: $STRIP" >&5
2342 echo "${ECHO_T}$STRIP" >&6; }
2344 { echo "$as_me:$LINENO: result: no" >&5
2345 echo "${ECHO_T}no" >&6; }
2350 if test -z "$ac_cv_prog_STRIP"; then
2352 # Extract the first word of "strip", so it can be a program name with args.
2353 set dummy strip; ac_word=$2
2354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2356 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2357 echo $ECHO_N "(cached) $ECHO_C" >&6
2359 if test -n "$ac_ct_STRIP"; then
2360 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2366 test -z "$as_dir" && as_dir=.
2367 for ac_exec_ext in '' $ac_executable_extensions; do
2368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2369 ac_cv_prog_ac_ct_STRIP="strip"
2370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2379 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2380 if test -n "$ac_ct_STRIP"; then
2381 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2382 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2384 { echo "$as_me:$LINENO: result: no" >&5
2385 echo "${ECHO_T}no" >&6; }
2388 if test "x$ac_ct_STRIP" = x; then
2391 case $cross_compiling:$ac_tool_warned in
2393 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2394 whose name does not start with the host triplet. If you think this
2395 configuration is useful to you, please write to autoconf@gnu.org." >&5
2396 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2397 whose name does not start with the host triplet. If you think this
2398 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2399 ac_tool_warned=yes ;;
2404 STRIP="$ac_cv_prog_STRIP"
2408 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2410 # We need awk for the "check" target. The system "awk" is bad on
2412 # Always define AMTAR for backward compatibility.
2414 AMTAR=${AMTAR-"${am_missing_run}tar"}
2416 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2423 ac_cpp='$CPP $CPPFLAGS'
2424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2427 if test -n "$ac_tool_prefix"; then
2428 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2429 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2432 if test "${ac_cv_prog_CC+set}" = set; then
2433 echo $ECHO_N "(cached) $ECHO_C" >&6
2435 if test -n "$CC"; then
2436 ac_cv_prog_CC="$CC" # Let the user override the test.
2438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2442 test -z "$as_dir" && as_dir=.
2443 for ac_exec_ext in '' $ac_executable_extensions; do
2444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2445 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2456 if test -n "$CC"; then
2457 { echo "$as_me:$LINENO: result: $CC" >&5
2458 echo "${ECHO_T}$CC" >&6; }
2460 { echo "$as_me:$LINENO: result: no" >&5
2461 echo "${ECHO_T}no" >&6; }
2466 if test -z "$ac_cv_prog_CC"; then
2468 # Extract the first word of "gcc", so it can be a program name with args.
2469 set dummy gcc; ac_word=$2
2470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2472 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2473 echo $ECHO_N "(cached) $ECHO_C" >&6
2475 if test -n "$ac_ct_CC"; then
2476 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2482 test -z "$as_dir" && as_dir=.
2483 for ac_exec_ext in '' $ac_executable_extensions; do
2484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2485 ac_cv_prog_ac_ct_CC="gcc"
2486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2495 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2496 if test -n "$ac_ct_CC"; then
2497 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2498 echo "${ECHO_T}$ac_ct_CC" >&6; }
2500 { echo "$as_me:$LINENO: result: no" >&5
2501 echo "${ECHO_T}no" >&6; }
2504 if test "x$ac_ct_CC" = x; then
2507 case $cross_compiling:$ac_tool_warned in
2509 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2510 whose name does not start with the host triplet. If you think this
2511 configuration is useful to you, please write to autoconf@gnu.org." >&5
2512 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2513 whose name does not start with the host triplet. If you think this
2514 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2515 ac_tool_warned=yes ;;
2523 if test -z "$CC"; then
2524 if test -n "$ac_tool_prefix"; then
2525 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2526 set dummy ${ac_tool_prefix}cc; ac_word=$2
2527 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2529 if test "${ac_cv_prog_CC+set}" = set; then
2530 echo $ECHO_N "(cached) $ECHO_C" >&6
2532 if test -n "$CC"; then
2533 ac_cv_prog_CC="$CC" # Let the user override the test.
2535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2539 test -z "$as_dir" && as_dir=.
2540 for ac_exec_ext in '' $ac_executable_extensions; do
2541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2542 ac_cv_prog_CC="${ac_tool_prefix}cc"
2543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2553 if test -n "$CC"; then
2554 { echo "$as_me:$LINENO: result: $CC" >&5
2555 echo "${ECHO_T}$CC" >&6; }
2557 { echo "$as_me:$LINENO: result: no" >&5
2558 echo "${ECHO_T}no" >&6; }
2564 if test -z "$CC"; then
2565 # Extract the first word of "cc", so it can be a program name with args.
2566 set dummy cc; ac_word=$2
2567 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2569 if test "${ac_cv_prog_CC+set}" = set; then
2570 echo $ECHO_N "(cached) $ECHO_C" >&6
2572 if test -n "$CC"; then
2573 ac_cv_prog_CC="$CC" # Let the user override the test.
2576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580 test -z "$as_dir" && as_dir=.
2581 for ac_exec_ext in '' $ac_executable_extensions; do
2582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2583 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2584 ac_prog_rejected=yes
2588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2595 if test $ac_prog_rejected = yes; then
2596 # We found a bogon in the path, so make sure we never use it.
2597 set dummy $ac_cv_prog_CC
2599 if test $# != 0; then
2600 # We chose a different compiler from the bogus one.
2601 # However, it has the same basename, so the bogon will be chosen
2602 # first if we set CC to just the basename; use the full file name.
2604 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2610 if test -n "$CC"; then
2611 { echo "$as_me:$LINENO: result: $CC" >&5
2612 echo "${ECHO_T}$CC" >&6; }
2614 { echo "$as_me:$LINENO: result: no" >&5
2615 echo "${ECHO_T}no" >&6; }
2620 if test -z "$CC"; then
2621 if test -n "$ac_tool_prefix"; then
2622 for ac_prog in cl.exe
2624 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2625 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2626 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2628 if test "${ac_cv_prog_CC+set}" = set; then
2629 echo $ECHO_N "(cached) $ECHO_C" >&6
2631 if test -n "$CC"; then
2632 ac_cv_prog_CC="$CC" # Let the user override the test.
2634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2638 test -z "$as_dir" && as_dir=.
2639 for ac_exec_ext in '' $ac_executable_extensions; do
2640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2641 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2652 if test -n "$CC"; then
2653 { echo "$as_me:$LINENO: result: $CC" >&5
2654 echo "${ECHO_T}$CC" >&6; }
2656 { echo "$as_me:$LINENO: result: no" >&5
2657 echo "${ECHO_T}no" >&6; }
2661 test -n "$CC" && break
2664 if test -z "$CC"; then
2666 for ac_prog in cl.exe
2668 # Extract the first word of "$ac_prog", so it can be a program name with args.
2669 set dummy $ac_prog; ac_word=$2
2670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2672 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2673 echo $ECHO_N "(cached) $ECHO_C" >&6
2675 if test -n "$ac_ct_CC"; then
2676 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682 test -z "$as_dir" && as_dir=.
2683 for ac_exec_ext in '' $ac_executable_extensions; do
2684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2685 ac_cv_prog_ac_ct_CC="$ac_prog"
2686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2695 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2696 if test -n "$ac_ct_CC"; then
2697 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2698 echo "${ECHO_T}$ac_ct_CC" >&6; }
2700 { echo "$as_me:$LINENO: result: no" >&5
2701 echo "${ECHO_T}no" >&6; }
2705 test -n "$ac_ct_CC" && break
2708 if test "x$ac_ct_CC" = x; then
2711 case $cross_compiling:$ac_tool_warned in
2713 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2714 whose name does not start with the host triplet. If you think this
2715 configuration is useful to you, please write to autoconf@gnu.org." >&5
2716 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2717 whose name does not start with the host triplet. If you think this
2718 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2719 ac_tool_warned=yes ;;
2728 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2729 See \`config.log' for more details." >&5
2730 echo "$as_me: error: no acceptable C compiler found in \$PATH
2731 See \`config.log' for more details." >&2;}
2732 { (exit 1); exit 1; }; }
2734 # Provide some information about the compiler.
2735 echo "$as_me:$LINENO: checking for C compiler version" >&5
2736 ac_compiler=`set X $ac_compile; echo $2`
2737 { (ac_try="$ac_compiler --version >&5"
2739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2740 *) ac_try_echo=$ac_try;;
2742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2743 (eval "$ac_compiler --version >&5") 2>&5
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); }
2747 { (ac_try="$ac_compiler -v >&5"
2749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2750 *) ac_try_echo=$ac_try;;
2752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2753 (eval "$ac_compiler -v >&5") 2>&5
2755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756 (exit $ac_status); }
2757 { (ac_try="$ac_compiler -V >&5"
2759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2760 *) ac_try_echo=$ac_try;;
2762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2763 (eval "$ac_compiler -V >&5") 2>&5
2765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766 (exit $ac_status); }
2768 cat >conftest.$ac_ext <<_ACEOF
2771 cat confdefs.h >>conftest.$ac_ext
2772 cat >>conftest.$ac_ext <<_ACEOF
2773 /* end confdefs.h. */
2783 ac_clean_files_save=$ac_clean_files
2784 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2785 # Try to create an executable without -o first, disregard a.out.
2786 # It will help us diagnose broken compilers, and finding out an intuition
2788 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2789 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2790 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2792 # List of possible output files, starting from the most likely.
2793 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2794 # only as a last resort. b.out is created by i960 compilers.
2795 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2797 # The IRIX 6 linker writes into existing files which may not be
2798 # executable, retaining their permissions. Remove them first so a
2799 # subsequent execution test works.
2801 for ac_file in $ac_files
2804 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2805 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2810 if { (ac_try="$ac_link_default"
2812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2813 *) ac_try_echo=$ac_try;;
2815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2816 (eval "$ac_link_default") 2>&5
2818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2819 (exit $ac_status); }; then
2820 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2821 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2822 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2823 # so that the user can short-circuit this test for compilers unknown to
2825 for ac_file in $ac_files ''
2827 test -f "$ac_file" || continue
2829 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2832 # We found the default executable, but exeext='' is most
2836 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2838 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2840 # We set ac_cv_exeext here because the later test for it is not
2841 # safe: cross compilers may not add the suffix if given an `-o'
2842 # argument, so we may need to know it at that point already.
2843 # Even if this section looks crufty: it has the advantage of
2850 test "$ac_cv_exeext" = no && ac_cv_exeext=
2856 { echo "$as_me:$LINENO: result: $ac_file" >&5
2857 echo "${ECHO_T}$ac_file" >&6; }
2858 if test -z "$ac_file"; then
2859 echo "$as_me: failed program was:" >&5
2860 sed 's/^/| /' conftest.$ac_ext >&5
2862 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2863 See \`config.log' for more details." >&5
2864 echo "$as_me: error: C compiler cannot create executables
2865 See \`config.log' for more details." >&2;}
2866 { (exit 77); exit 77; }; }
2869 ac_exeext=$ac_cv_exeext
2871 # Check that the compiler produces executables we can run. If not, either
2872 # the compiler is broken, or we cross compile.
2873 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2874 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2875 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2876 # If not cross compiling, check that we can run a simple program.
2877 if test "$cross_compiling" != yes; then
2878 if { ac_try='./$ac_file'
2879 { (case "(($ac_try" in
2880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2881 *) ac_try_echo=$ac_try;;
2883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2884 (eval "$ac_try") 2>&5
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); }; }; then
2890 if test "$cross_compiling" = maybe; then
2893 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2894 If you meant to cross compile, use \`--host'.
2895 See \`config.log' for more details." >&5
2896 echo "$as_me: error: cannot run C compiled programs.
2897 If you meant to cross compile, use \`--host'.
2898 See \`config.log' for more details." >&2;}
2899 { (exit 1); exit 1; }; }
2903 { echo "$as_me:$LINENO: result: yes" >&5
2904 echo "${ECHO_T}yes" >&6; }
2906 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2907 ac_clean_files=$ac_clean_files_save
2908 # Check that the compiler produces executables we can run. If not, either
2909 # the compiler is broken, or we cross compile.
2910 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2911 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2912 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2913 echo "${ECHO_T}$cross_compiling" >&6; }
2915 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2916 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2917 if { (ac_try="$ac_link"
2919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2920 *) ac_try_echo=$ac_try;;
2922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2923 (eval "$ac_link") 2>&5
2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926 (exit $ac_status); }; then
2927 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2928 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2929 # work properly (i.e., refer to `conftest.exe'), while it won't with
2931 for ac_file in conftest.exe conftest conftest.*; do
2932 test -f "$ac_file" || continue
2934 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2935 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2941 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2942 See \`config.log' for more details." >&5
2943 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2944 See \`config.log' for more details." >&2;}
2945 { (exit 1); exit 1; }; }
2948 rm -f conftest$ac_cv_exeext
2949 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2950 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2952 rm -f conftest.$ac_ext
2953 EXEEXT=$ac_cv_exeext
2955 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2956 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2957 if test "${ac_cv_objext+set}" = set; then
2958 echo $ECHO_N "(cached) $ECHO_C" >&6
2960 cat >conftest.$ac_ext <<_ACEOF
2963 cat confdefs.h >>conftest.$ac_ext
2964 cat >>conftest.$ac_ext <<_ACEOF
2965 /* end confdefs.h. */
2975 rm -f conftest.o conftest.obj
2976 if { (ac_try="$ac_compile"
2978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979 *) ac_try_echo=$ac_try;;
2981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2982 (eval "$ac_compile") 2>&5
2984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985 (exit $ac_status); }; then
2986 for ac_file in conftest.o conftest.obj conftest.*; do
2987 test -f "$ac_file" || continue;
2989 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2990 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2995 echo "$as_me: failed program was:" >&5
2996 sed 's/^/| /' conftest.$ac_ext >&5
2998 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2999 See \`config.log' for more details." >&5
3000 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3001 See \`config.log' for more details." >&2;}
3002 { (exit 1); exit 1; }; }
3005 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3007 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3008 echo "${ECHO_T}$ac_cv_objext" >&6; }
3009 OBJEXT=$ac_cv_objext
3011 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3012 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3013 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3014 echo $ECHO_N "(cached) $ECHO_C" >&6
3016 cat >conftest.$ac_ext <<_ACEOF
3019 cat confdefs.h >>conftest.$ac_ext
3020 cat >>conftest.$ac_ext <<_ACEOF
3021 /* end confdefs.h. */
3034 rm -f conftest.$ac_objext
3035 if { (ac_try="$ac_compile"
3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038 *) ac_try_echo=$ac_try;;
3040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3041 (eval "$ac_compile") 2>conftest.er1
3043 grep -v '^ *+' conftest.er1 >conftest.err
3045 cat conftest.err >&5
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); } && {
3048 test -z "$ac_c_werror_flag" ||
3049 test ! -s conftest.err
3050 } && test -s conftest.$ac_objext; then
3053 echo "$as_me: failed program was:" >&5
3054 sed 's/^/| /' conftest.$ac_ext >&5
3059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3060 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3063 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3064 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3065 GCC=`test $ac_compiler_gnu = yes && echo yes`
3066 ac_test_CFLAGS=${CFLAGS+set}
3067 ac_save_CFLAGS=$CFLAGS
3068 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3069 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3070 if test "${ac_cv_prog_cc_g+set}" = set; then
3071 echo $ECHO_N "(cached) $ECHO_C" >&6
3073 ac_save_c_werror_flag=$ac_c_werror_flag
3074 ac_c_werror_flag=yes
3077 cat >conftest.$ac_ext <<_ACEOF
3080 cat confdefs.h >>conftest.$ac_ext
3081 cat >>conftest.$ac_ext <<_ACEOF
3082 /* end confdefs.h. */
3092 rm -f conftest.$ac_objext
3093 if { (ac_try="$ac_compile"
3095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096 *) ac_try_echo=$ac_try;;
3098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099 (eval "$ac_compile") 2>conftest.er1
3101 grep -v '^ *+' conftest.er1 >conftest.err
3103 cat conftest.err >&5
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); } && {
3106 test -z "$ac_c_werror_flag" ||
3107 test ! -s conftest.err
3108 } && test -s conftest.$ac_objext; then
3111 echo "$as_me: failed program was:" >&5
3112 sed 's/^/| /' conftest.$ac_ext >&5
3115 cat >conftest.$ac_ext <<_ACEOF
3118 cat confdefs.h >>conftest.$ac_ext
3119 cat >>conftest.$ac_ext <<_ACEOF
3120 /* end confdefs.h. */
3130 rm -f conftest.$ac_objext
3131 if { (ac_try="$ac_compile"
3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134 *) ac_try_echo=$ac_try;;
3136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3137 (eval "$ac_compile") 2>conftest.er1
3139 grep -v '^ *+' conftest.er1 >conftest.err
3141 cat conftest.err >&5
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); } && {
3144 test -z "$ac_c_werror_flag" ||
3145 test ! -s conftest.err
3146 } && test -s conftest.$ac_objext; then
3149 echo "$as_me: failed program was:" >&5
3150 sed 's/^/| /' conftest.$ac_ext >&5
3152 ac_c_werror_flag=$ac_save_c_werror_flag
3154 cat >conftest.$ac_ext <<_ACEOF
3157 cat confdefs.h >>conftest.$ac_ext
3158 cat >>conftest.$ac_ext <<_ACEOF
3159 /* end confdefs.h. */
3169 rm -f conftest.$ac_objext
3170 if { (ac_try="$ac_compile"
3172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173 *) ac_try_echo=$ac_try;;
3175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3176 (eval "$ac_compile") 2>conftest.er1
3178 grep -v '^ *+' conftest.er1 >conftest.err
3180 cat conftest.err >&5
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); } && {
3183 test -z "$ac_c_werror_flag" ||
3184 test ! -s conftest.err
3185 } && test -s conftest.$ac_objext; then
3188 echo "$as_me: failed program was:" >&5
3189 sed 's/^/| /' conftest.$ac_ext >&5
3194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3201 ac_c_werror_flag=$ac_save_c_werror_flag
3203 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3204 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3205 if test "$ac_test_CFLAGS" = set; then
3206 CFLAGS=$ac_save_CFLAGS
3207 elif test $ac_cv_prog_cc_g = yes; then
3208 if test "$GCC" = yes; then
3214 if test "$GCC" = yes; then
3220 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3221 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3222 if test "${ac_cv_prog_cc_c89+set}" = set; then
3223 echo $ECHO_N "(cached) $ECHO_C" >&6
3225 ac_cv_prog_cc_c89=no
3227 cat >conftest.$ac_ext <<_ACEOF
3230 cat confdefs.h >>conftest.$ac_ext
3231 cat >>conftest.$ac_ext <<_ACEOF
3232 /* end confdefs.h. */
3235 #include <sys/types.h>
3236 #include <sys/stat.h>
3237 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3238 struct buf { int x; };
3239 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3240 static char *e (p, i)
3246 static char *f (char * (*g) (char **, int), char **p, ...)
3251 s = g (p, va_arg (v,int));
3256 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3257 function prototypes and stuff, but not '\xHH' hex character constants.
3258 These don't provoke an error unfortunately, instead are silently treated
3259 as 'x'. The following induces an error, until -std is added to get
3260 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3261 array size at least. It's necessary to write '\x00'==0 to get something
3262 that's true only with -std. */
3263 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3265 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3266 inside strings and character constants. */
3268 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3270 int test (int i, double x);
3271 struct s1 {int (*f) (int a);};
3272 struct s2 {int (*f) (double a);};
3273 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3279 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3284 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3285 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3287 CC="$ac_save_CC $ac_arg"
3288 rm -f conftest.$ac_objext
3289 if { (ac_try="$ac_compile"
3291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3292 *) ac_try_echo=$ac_try;;
3294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3295 (eval "$ac_compile") 2>conftest.er1
3297 grep -v '^ *+' conftest.er1 >conftest.err
3299 cat conftest.err >&5
3300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301 (exit $ac_status); } && {
3302 test -z "$ac_c_werror_flag" ||
3303 test ! -s conftest.err
3304 } && test -s conftest.$ac_objext; then
3305 ac_cv_prog_cc_c89=$ac_arg
3307 echo "$as_me: failed program was:" >&5
3308 sed 's/^/| /' conftest.$ac_ext >&5
3313 rm -f core conftest.err conftest.$ac_objext
3314 test "x$ac_cv_prog_cc_c89" != "xno" && break
3316 rm -f conftest.$ac_ext
3321 case "x$ac_cv_prog_cc_c89" in
3323 { echo "$as_me:$LINENO: result: none needed" >&5
3324 echo "${ECHO_T}none needed" >&6; } ;;
3326 { echo "$as_me:$LINENO: result: unsupported" >&5
3327 echo "${ECHO_T}unsupported" >&6; } ;;
3329 CC="$CC $ac_cv_prog_cc_c89"
3330 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3331 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3336 ac_cpp='$CPP $CPPFLAGS'
3337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3340 DEPDIR="${am__leading_dot}deps"
3342 ac_config_commands="$ac_config_commands depfiles"
3345 am_make=${MAKE-make}
3346 cat > confinc << 'END'
3351 # If we don't find an include directive, just comment out the code.
3352 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3353 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3357 # First try GNU make style include.
3358 echo "include confinc" > confmf
3359 # We grep out `Entering directory' and `Leaving directory'
3360 # messages which can occur if `w' ends up in MAKEFLAGS.
3361 # In particular we don't look at `^make:' because GNU make might
3362 # be invoked under some other name (usually "gmake"), in which
3363 # case it prints its new name instead of `make'.
3364 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3369 # Now try BSD make style include.
3370 if test "$am__include" = "#"; then
3371 echo '.include "confinc"' > confmf
3372 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3373 am__include=.include
3380 { echo "$as_me:$LINENO: result: $_am_result" >&5
3381 echo "${ECHO_T}$_am_result" >&6; }
3382 rm -f confinc confmf
3384 # Check whether --enable-dependency-tracking was given.
3385 if test "${enable_dependency_tracking+set}" = set; then
3386 enableval=$enable_dependency_tracking;
3389 if test "x$enable_dependency_tracking" != xno; then
3390 am_depcomp="$ac_aux_dir/depcomp"
3395 if test "x$enable_dependency_tracking" != xno; then
3406 depcc="$CC" am_compiler_list=
3408 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3409 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3410 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3411 echo $ECHO_N "(cached) $ECHO_C" >&6
3413 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3414 # We make a subdir and do the tests there. Otherwise we can end up
3415 # making bogus files that we don't know about and never remove. For
3416 # instance it was reported that on HP-UX the gcc test will end up
3417 # making a dummy file named `D' -- because `-MD' means `put the output
3420 # Copy depcomp to subdir because otherwise we won't find it if we're
3421 # using a relative directory.
3422 cp "$am_depcomp" conftest.dir
3424 # We will build objects and dependencies in a subdirectory because
3425 # it helps to detect inapplicable dependency modes. For instance
3426 # both Tru64's cc and ICC support -MD to output dependencies as a
3427 # side effect of compilation, but ICC will put the dependencies in
3428 # the current directory while Tru64 will put them in the object
3432 am_cv_CC_dependencies_compiler_type=none
3433 if test "$am_compiler_list" = ""; then
3434 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3436 for depmode in $am_compiler_list; do
3437 # Setup a source with many dependencies, because some compilers
3438 # like to wrap large dependency lists on column 80 (with \), and
3439 # we should not choose a depcomp mode which is confused by this.
3441 # We need to recreate these files for each test, as the compiler may
3442 # overwrite some of them when testing with obscure command lines.
3443 # This happens at least with the AIX C compiler.
3445 for i in 1 2 3 4 5 6; do
3446 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3447 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3448 # Solaris 8's {/usr,}/bin/sh.
3449 touch sub/conftst$i.h
3451 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3455 # after this tag, mechanisms are not by side-effect, so they'll
3456 # only be used when explicitly requested
3457 if test "x$enable_dependency_tracking" = xyes; then
3465 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3466 # mode. It turns out that the SunPro C++ compiler does not properly
3467 # handle `-M -o', and we need to detect this.
3468 if depmode=$depmode \
3469 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3470 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3471 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3472 >/dev/null 2>conftest.err &&
3473 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3474 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3475 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3476 # icc doesn't choke on unknown options, it will just issue warnings
3477 # or remarks (even with -Werror). So we grep stderr for any message
3478 # that says an option was ignored or not supported.
3479 # When given -MP, icc 7.0 and 7.1 complain thusly:
3480 # icc: Command line warning: ignoring option '-M'; no argument required
3481 # The diagnosis changed in icc 8.0:
3482 # icc: Command line remark: option '-MP' not supported
3483 if (grep 'ignoring option' conftest.err ||
3484 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3485 am_cv_CC_dependencies_compiler_type=$depmode
3494 am_cv_CC_dependencies_compiler_type=none
3498 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3499 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3500 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3505 test "x$enable_dependency_tracking" != xno \
3506 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3508 am__fastdepCC_FALSE='#'
3510 am__fastdepCC_TRUE='#'
3511 am__fastdepCC_FALSE=
3515 if test "x$CC" != xcc; then
3516 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3517 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3519 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3520 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3522 set dummy $CC; ac_cc=`echo $2 |
3523 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3524 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3525 echo $ECHO_N "(cached) $ECHO_C" >&6
3527 cat >conftest.$ac_ext <<_ACEOF
3530 cat confdefs.h >>conftest.$ac_ext
3531 cat >>conftest.$ac_ext <<_ACEOF
3532 /* end confdefs.h. */
3542 # Make sure it works both with $CC and with simple cc.
3543 # We do the test twice because some compilers refuse to overwrite an
3544 # existing .o file with -o, though they will create one.
3545 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3547 if { (case "(($ac_try" in
3548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549 *) ac_try_echo=$ac_try;;
3551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3552 (eval "$ac_try") 2>&5
3554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555 (exit $ac_status); } &&
3556 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3558 *) ac_try_echo=$ac_try;;
3560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3561 (eval "$ac_try") 2>&5
3563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); };
3566 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3567 if test "x$CC" != xcc; then
3568 # Test first that cc exists at all.
3569 if { ac_try='cc -c conftest.$ac_ext >&5'
3570 { (case "(($ac_try" in
3571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3572 *) ac_try_echo=$ac_try;;
3574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3575 (eval "$ac_try") 2>&5
3577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578 (exit $ac_status); }; }; then
3579 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3581 if { (case "(($ac_try" in
3582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3583 *) ac_try_echo=$ac_try;;
3585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3586 (eval "$ac_try") 2>&5
3588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); } &&
3590 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3592 *) ac_try_echo=$ac_try;;
3594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3595 (eval "$ac_try") 2>&5
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); };
3603 # cc exists but doesn't like -o.
3604 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3609 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3611 rm -f core conftest*
3614 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3615 { echo "$as_me:$LINENO: result: yes" >&5
3616 echo "${ECHO_T}yes" >&6; }
3618 { echo "$as_me:$LINENO: result: no" >&5
3619 echo "${ECHO_T}no" >&6; }
3621 cat >>confdefs.h <<\_ACEOF
3622 #define NO_MINUS_C_MINUS_O 1
3627 # FIXME: we rely on the cache variable name because
3628 # there is no other way.
3630 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3631 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3632 # Losing compiler, so override with the script.
3633 # FIXME: It is wrong to rewrite CC.
3634 # But if we don't then we get into trouble of one sort or another.
3635 # A longer-term fix would be to have automake use am__CC in this case,
3636 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3637 CC="$am_aux_dir/compile $CC"
3640 # Check whether --enable-static was given.
3641 if test "${enable_static+set}" = set; then
3642 enableval=$enable_static; p=${PACKAGE-default}
3644 yes) enable_static=yes ;;
3645 no) enable_static=no ;;
3648 # Look at the argument we got. We use all the common list separators.
3649 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3650 for pkg in $enableval; do
3652 if test "X$pkg" = "X$p"; then
3665 # Check whether --enable-shared was given.
3666 if test "${enable_shared+set}" = set; then
3667 enableval=$enable_shared; p=${PACKAGE-default}
3669 yes) enable_shared=yes ;;
3670 no) enable_shared=no ;;
3673 # Look at the argument we got. We use all the common list separators.
3674 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3675 for pkg in $enableval; do
3677 if test "X$pkg" = "X$p"; then
3689 # Check whether --enable-fast-install was given.
3690 if test "${enable_fast_install+set}" = set; then
3691 enableval=$enable_fast_install; p=${PACKAGE-default}
3693 yes) enable_fast_install=yes ;;
3694 no) enable_fast_install=no ;;
3696 enable_fast_install=no
3697 # Look at the argument we got. We use all the common list separators.
3698 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3699 for pkg in $enableval; do
3701 if test "X$pkg" = "X$p"; then
3702 enable_fast_install=yes
3709 enable_fast_install=yes
3713 # Make sure we can run config.sub.
3714 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3715 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3716 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3717 { (exit 1); exit 1; }; }
3719 { echo "$as_me:$LINENO: checking build system type" >&5
3720 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3721 if test "${ac_cv_build+set}" = set; then
3722 echo $ECHO_N "(cached) $ECHO_C" >&6
3724 ac_build_alias=$build_alias
3725 test "x$ac_build_alias" = x &&
3726 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3727 test "x$ac_build_alias" = x &&
3728 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3729 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3730 { (exit 1); exit 1; }; }
3731 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3732 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3733 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3734 { (exit 1); exit 1; }; }
3737 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3738 echo "${ECHO_T}$ac_cv_build" >&6; }
3739 case $ac_cv_build in
3741 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3742 echo "$as_me: error: invalid value of canonical build" >&2;}
3743 { (exit 1); exit 1; }; };;
3746 ac_save_IFS=$IFS; IFS='-'
3752 # Remember, the first character of IFS is used to create $*,
3753 # except with old shells:
3756 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3759 { echo "$as_me:$LINENO: checking host system type" >&5
3760 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3761 if test "${ac_cv_host+set}" = set; then
3762 echo $ECHO_N "(cached) $ECHO_C" >&6
3764 if test "x$host_alias" = x; then
3765 ac_cv_host=$ac_cv_build
3767 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3768 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3769 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3770 { (exit 1); exit 1; }; }
3774 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3775 echo "${ECHO_T}$ac_cv_host" >&6; }
3778 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3779 echo "$as_me: error: invalid value of canonical host" >&2;}
3780 { (exit 1); exit 1; }; };;
3783 ac_save_IFS=$IFS; IFS='-'
3789 # Remember, the first character of IFS is used to create $*,
3790 # except with old shells:
3793 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3796 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3797 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3798 if test "${lt_cv_path_SED+set}" = set; then
3799 echo $ECHO_N "(cached) $ECHO_C" >&6
3801 # Loop through the user's path and test for sed and gsed.
3802 # Then use that list of sed's as ones to test for truncation.
3803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3807 test -z "$as_dir" && as_dir=.
3808 for lt_ac_prog in sed gsed; do
3809 for ac_exec_ext in '' $ac_executable_extensions; do
3810 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3811 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3819 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3820 # along with /bin/sed that truncates output.
3821 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3822 test ! -f $lt_ac_sed && continue
3823 cat /dev/null > conftest.in
3825 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3826 # Check for GNU sed and select it if it is found.
3827 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3828 lt_cv_path_SED=$lt_ac_sed
3832 cat conftest.in conftest.in >conftest.tmp
3833 mv conftest.tmp conftest.in
3834 cp conftest.in conftest.nl
3836 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3837 cmp -s conftest.out conftest.nl || break
3838 # 10000 chars as input seems more than enough
3839 test $lt_ac_count -gt 10 && break
3840 lt_ac_count=`expr $lt_ac_count + 1`
3841 if test $lt_ac_count -gt $lt_ac_max; then
3842 lt_ac_max=$lt_ac_count
3843 lt_cv_path_SED=$lt_ac_sed
3852 { echo "$as_me:$LINENO: result: $SED" >&5
3853 echo "${ECHO_T}$SED" >&6; }
3855 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3856 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3857 if test "${ac_cv_path_GREP+set}" = set; then
3858 echo $ECHO_N "(cached) $ECHO_C" >&6
3860 # Extract the first word of "grep ggrep" to use in msg output
3861 if test -z "$GREP"; then
3862 set dummy grep ggrep; ac_prog_name=$2
3863 if test "${ac_cv_path_GREP+set}" = set; then
3864 echo $ECHO_N "(cached) $ECHO_C" >&6
3866 ac_path_GREP_found=false
3867 # Loop through the user's path and test for each of PROGNAME-LIST
3868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3869 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3872 test -z "$as_dir" && as_dir=.
3873 for ac_prog in grep ggrep; do
3874 for ac_exec_ext in '' $ac_executable_extensions; do
3875 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3876 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3877 # Check for GNU ac_path_GREP and select it if it is found.
3878 # Check for GNU $ac_path_GREP
3879 case `"$ac_path_GREP" --version 2>&1` in
3881 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3884 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3887 cat "conftest.in" "conftest.in" >"conftest.tmp"
3888 mv "conftest.tmp" "conftest.in"
3889 cp "conftest.in" "conftest.nl"
3890 echo 'GREP' >> "conftest.nl"
3891 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3892 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3893 ac_count=`expr $ac_count + 1`
3894 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3895 # Best one so far, save it but keep looking for a better one
3896 ac_cv_path_GREP="$ac_path_GREP"
3897 ac_path_GREP_max=$ac_count
3899 # 10*(2^10) chars as input seems more than enough
3900 test $ac_count -gt 10 && break
3902 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3906 $ac_path_GREP_found && break 3
3916 GREP="$ac_cv_path_GREP"
3917 if test -z "$GREP"; then
3918 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3919 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3920 { (exit 1); exit 1; }; }
3924 ac_cv_path_GREP=$GREP
3929 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3930 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3931 GREP="$ac_cv_path_GREP"
3934 { echo "$as_me:$LINENO: checking for egrep" >&5
3935 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3936 if test "${ac_cv_path_EGREP+set}" = set; then
3937 echo $ECHO_N "(cached) $ECHO_C" >&6
3939 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3940 then ac_cv_path_EGREP="$GREP -E"
3942 # Extract the first word of "egrep" to use in msg output
3943 if test -z "$EGREP"; then
3944 set dummy egrep; ac_prog_name=$2
3945 if test "${ac_cv_path_EGREP+set}" = set; then
3946 echo $ECHO_N "(cached) $ECHO_C" >&6
3948 ac_path_EGREP_found=false
3949 # Loop through the user's path and test for each of PROGNAME-LIST
3950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3951 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3954 test -z "$as_dir" && as_dir=.
3955 for ac_prog in egrep; do
3956 for ac_exec_ext in '' $ac_executable_extensions; do
3957 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3958 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3959 # Check for GNU ac_path_EGREP and select it if it is found.
3960 # Check for GNU $ac_path_EGREP
3961 case `"$ac_path_EGREP" --version 2>&1` in
3963 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3966 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3969 cat "conftest.in" "conftest.in" >"conftest.tmp"
3970 mv "conftest.tmp" "conftest.in"
3971 cp "conftest.in" "conftest.nl"
3972 echo 'EGREP' >> "conftest.nl"
3973 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3974 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3975 ac_count=`expr $ac_count + 1`
3976 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3977 # Best one so far, save it but keep looking for a better one
3978 ac_cv_path_EGREP="$ac_path_EGREP"
3979 ac_path_EGREP_max=$ac_count
3981 # 10*(2^10) chars as input seems more than enough
3982 test $ac_count -gt 10 && break
3984 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3988 $ac_path_EGREP_found && break 3
3998 EGREP="$ac_cv_path_EGREP"
3999 if test -z "$EGREP"; then
4000 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4001 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4002 { (exit 1); exit 1; }; }
4006 ac_cv_path_EGREP=$EGREP
4012 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4013 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4014 EGREP="$ac_cv_path_EGREP"
4018 # Check whether --with-gnu-ld was given.
4019 if test "${with_gnu_ld+set}" = set; then
4020 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4026 if test "$GCC" = yes; then
4027 # Check if gcc -print-prog-name=ld gives a path.
4028 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4029 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4032 # gcc leaves a trailing carriage return which upsets mingw
4033 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4035 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4038 # Accept absolute paths.
4040 re_direlt='/[^/][^/]*/\.\./'
4041 # Canonicalize the pathname of ld
4042 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4043 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4044 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4046 test -z "$LD" && LD="$ac_prog"
4049 # If it fails, then pretend we aren't using GCC.
4053 # If it is relative, then search for the first ld in PATH.
4057 elif test "$with_gnu_ld" = yes; then
4058 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4059 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4061 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4062 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4064 if test "${lt_cv_path_LD+set}" = set; then
4065 echo $ECHO_N "(cached) $ECHO_C" >&6
4067 if test -z "$LD"; then
4068 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4069 for ac_dir in $PATH; do
4071 test -z "$ac_dir" && ac_dir=.
4072 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4073 lt_cv_path_LD="$ac_dir/$ac_prog"
4074 # Check to see if the program is GNU ld. I'd rather use --version,
4075 # but apparently some variants of GNU ld only accept -v.
4076 # Break only if it was the GNU/non-GNU ld that we prefer.
4077 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4078 *GNU* | *'with BFD'*)
4079 test "$with_gnu_ld" != no && break
4082 test "$with_gnu_ld" != yes && break
4089 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4094 if test -n "$LD"; then
4095 { echo "$as_me:$LINENO: result: $LD" >&5
4096 echo "${ECHO_T}$LD" >&6; }
4098 { echo "$as_me:$LINENO: result: no" >&5
4099 echo "${ECHO_T}no" >&6; }
4101 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4102 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4103 { (exit 1); exit 1; }; }
4104 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4105 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4106 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4107 echo $ECHO_N "(cached) $ECHO_C" >&6
4109 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4110 case `$LD -v 2>&1 </dev/null` in
4111 *GNU* | *'with BFD'*)
4112 lt_cv_prog_gnu_ld=yes
4115 lt_cv_prog_gnu_ld=no
4119 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4120 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4121 with_gnu_ld=$lt_cv_prog_gnu_ld
4124 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4125 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4126 if test "${lt_cv_ld_reload_flag+set}" = set; then
4127 echo $ECHO_N "(cached) $ECHO_C" >&6
4129 lt_cv_ld_reload_flag='-r'
4131 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4132 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4133 reload_flag=$lt_cv_ld_reload_flag
4134 case $reload_flag in
4136 *) reload_flag=" $reload_flag" ;;
4138 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4141 if test "$GCC" = yes; then
4142 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4144 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4149 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4150 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4151 if test "${lt_cv_path_NM+set}" = set; then
4152 echo $ECHO_N "(cached) $ECHO_C" >&6
4154 if test -n "$NM"; then
4155 # Let the user override the test.
4158 lt_nm_to_check="${ac_tool_prefix}nm"
4159 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4160 lt_nm_to_check="$lt_nm_to_check nm"
4162 for lt_tmp_nm in $lt_nm_to_check; do
4163 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4164 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4166 test -z "$ac_dir" && ac_dir=.
4167 tmp_nm="$ac_dir/$lt_tmp_nm"
4168 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4169 # Check to see if the nm accepts a BSD-compat flag.
4170 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4171 # nm: unknown option "B" ignored
4172 # Tru64's nm complains that /dev/null is an invalid object file
4173 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4174 */dev/null* | *'Invalid file or object type'*)
4175 lt_cv_path_NM="$tmp_nm -B"
4179 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4181 lt_cv_path_NM="$tmp_nm -p"
4185 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4186 continue # so that we can try to find one that supports BSD flags
4195 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4198 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4199 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4202 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4203 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4205 if test "$LN_S" = "ln -s"; then
4206 { echo "$as_me:$LINENO: result: yes" >&5
4207 echo "${ECHO_T}yes" >&6; }
4209 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4210 echo "${ECHO_T}no, using $LN_S" >&6; }
4213 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4214 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4215 if test "${lt_cv_deplibs_check_method+set}" = set; then
4216 echo $ECHO_N "(cached) $ECHO_C" >&6
4218 lt_cv_file_magic_cmd='$MAGIC_CMD'
4219 lt_cv_file_magic_test_file=
4220 lt_cv_deplibs_check_method='unknown'
4221 # Need to set the preceding variable on all platforms that support
4222 # interlibrary dependencies.
4223 # 'none' -- dependencies not supported.
4224 # `unknown' -- same as none, but documents that we really don't know.
4225 # 'pass_all' -- all dependencies passed with no checks.
4226 # 'test_compile' -- check by making test program.
4227 # 'file_magic [[regex]]' -- check by looking for files in library path
4228 # which responds to the $file_magic_cmd with a given extended regex.
4229 # If you have `file' or equivalent on your system and you're not sure
4230 # whether `pass_all' will *always* work, you probably want this one.
4234 lt_cv_deplibs_check_method=pass_all
4238 lt_cv_deplibs_check_method=pass_all
4242 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4243 lt_cv_file_magic_cmd='/usr/bin/file -L'
4244 lt_cv_file_magic_test_file=/shlib/libc.so
4248 # func_win32_libid is a shell function defined in ltmain.sh
4249 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4250 lt_cv_file_magic_cmd='func_win32_libid'
4254 # Base MSYS/MinGW do not provide the 'file' command needed by
4255 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4256 # unless we find 'file', for example because we are cross-compiling.
4257 if ( file / ) >/dev/null 2>&1; then
4258 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4259 lt_cv_file_magic_cmd='func_win32_libid'
4261 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4262 lt_cv_file_magic_cmd='$OBJDUMP -f'
4266 darwin* | rhapsody*)
4267 lt_cv_deplibs_check_method=pass_all
4270 freebsd* | dragonfly*)
4271 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4274 # Not sure whether the presence of OpenBSD here was a mistake.
4275 # Let's accept both of them until this is cleared up.
4276 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4277 lt_cv_file_magic_cmd=/usr/bin/file
4278 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4282 lt_cv_deplibs_check_method=pass_all
4287 lt_cv_deplibs_check_method=pass_all
4290 hpux10.20* | hpux11*)
4291 lt_cv_file_magic_cmd=/usr/bin/file
4294 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4295 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4298 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]'
4299 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4302 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4303 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4309 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4310 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4313 irix5* | irix6* | nonstopux*)
4315 *-32|*"-32 ") libmagic=32-bit;;
4316 *-n32|*"-n32 ") libmagic=N32;;
4317 *-64|*"-64 ") libmagic=64-bit;;
4318 *) libmagic=never-match;;
4320 lt_cv_deplibs_check_method=pass_all
4323 # This must be Linux ELF.
4324 linux* | k*bsd*-gnu)
4325 lt_cv_deplibs_check_method=pass_all
4328 netbsd* | netbsdelf*-gnu)
4329 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4330 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4332 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4337 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4338 lt_cv_file_magic_cmd=/usr/bin/file
4339 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4343 lt_cv_deplibs_check_method=unknown
4347 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4348 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4350 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4354 osf3* | osf4* | osf5*)
4355 lt_cv_deplibs_check_method=pass_all
4359 lt_cv_deplibs_check_method=pass_all
4363 lt_cv_deplibs_check_method=pass_all
4367 case $host_vendor in
4369 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]'
4370 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4373 lt_cv_deplibs_check_method=pass_all
4376 lt_cv_file_magic_cmd='/bin/file'
4377 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4380 lt_cv_file_magic_cmd='/bin/file'
4381 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4382 lt_cv_file_magic_test_file=/lib/libc.so
4385 lt_cv_deplibs_check_method=pass_all
4388 lt_cv_deplibs_check_method=pass_all
4393 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4394 lt_cv_deplibs_check_method=pass_all
4399 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4400 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4401 file_magic_cmd=$lt_cv_file_magic_cmd
4402 deplibs_check_method=$lt_cv_deplibs_check_method
4403 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4408 # If no C compiler was specified, use CC.
4411 # If no C compiler flags were specified, use CFLAGS.
4412 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4414 # Allow CC to be a program name with arguments.
4418 # Check whether --enable-libtool-lock was given.
4419 if test "${enable_libtool_lock+set}" = set; then
4420 enableval=$enable_libtool_lock;
4423 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4425 # Some flags need to be propagated to the compiler or linker for good
4429 # Find out which ABI we are using.
4430 echo 'int i;' > conftest.$ac_ext
4431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4432 (eval $ac_compile) 2>&5
4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); }; then
4436 case `/usr/bin/file conftest.$ac_objext` in
4448 # Find out which ABI we are using.
4449 echo '#line 4449 "configure"' > conftest.$ac_ext
4450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4451 (eval $ac_compile) 2>&5
4453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454 (exit $ac_status); }; then
4455 if test "$lt_cv_prog_gnu_ld" = yes; then
4456 case `/usr/bin/file conftest.$ac_objext` in
4458 LD="${LD-ld} -melf32bsmip"
4461 LD="${LD-ld} -melf32bmipn32"
4464 LD="${LD-ld} -melf64bmip"
4468 case `/usr/bin/file conftest.$ac_objext` in
4484 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4485 s390*-*linux*|sparc*-*linux*)
4486 # Find out which ABI we are using.
4487 echo 'int i;' > conftest.$ac_ext
4488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4489 (eval $ac_compile) 2>&5
4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); }; then
4493 case `/usr/bin/file conftest.o` in
4496 x86_64-*kfreebsd*-gnu)
4497 LD="${LD-ld} -m elf_i386_fbsd"
4500 LD="${LD-ld} -m elf_i386"
4502 ppc64-*linux*|powerpc64-*linux*)
4503 LD="${LD-ld} -m elf32ppclinux"
4506 LD="${LD-ld} -m elf_s390"
4509 LD="${LD-ld} -m elf32_sparc"
4515 x86_64-*kfreebsd*-gnu)
4516 LD="${LD-ld} -m elf_x86_64_fbsd"
4519 LD="${LD-ld} -m elf_x86_64"
4521 ppc*-*linux*|powerpc*-*linux*)
4522 LD="${LD-ld} -m elf64ppc"
4525 LD="${LD-ld} -m elf64_s390"
4528 LD="${LD-ld} -m elf64_sparc"
4538 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4539 SAVE_CFLAGS="$CFLAGS"
4540 CFLAGS="$CFLAGS -belf"
4541 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4542 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4543 if test "${lt_cv_cc_needs_belf+set}" = set; then
4544 echo $ECHO_N "(cached) $ECHO_C" >&6
4547 ac_cpp='$CPP $CPPFLAGS'
4548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4552 cat >conftest.$ac_ext <<_ACEOF
4555 cat confdefs.h >>conftest.$ac_ext
4556 cat >>conftest.$ac_ext <<_ACEOF
4557 /* end confdefs.h. */
4567 rm -f conftest.$ac_objext conftest$ac_exeext
4568 if { (ac_try="$ac_link"
4570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4571 *) ac_try_echo=$ac_try;;
4573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4574 (eval "$ac_link") 2>conftest.er1
4576 grep -v '^ *+' conftest.er1 >conftest.err
4578 cat conftest.err >&5
4579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580 (exit $ac_status); } && {
4581 test -z "$ac_c_werror_flag" ||
4582 test ! -s conftest.err
4583 } && test -s conftest$ac_exeext &&
4584 $as_test_x conftest$ac_exeext; then
4585 lt_cv_cc_needs_belf=yes
4587 echo "$as_me: failed program was:" >&5
4588 sed 's/^/| /' conftest.$ac_ext >&5
4590 lt_cv_cc_needs_belf=no
4593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4594 conftest$ac_exeext conftest.$ac_ext
4596 ac_cpp='$CPP $CPPFLAGS'
4597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4602 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4603 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4604 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4605 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4606 CFLAGS="$SAVE_CFLAGS"
4610 # Find out which ABI we are using.
4611 echo 'int i;' > conftest.$ac_ext
4612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4613 (eval $ac_compile) 2>&5
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); }; then
4617 case `/usr/bin/file conftest.o` in
4619 case $lt_cv_prog_gnu_ld in
4620 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4622 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4636 need_locks="$enable_libtool_lock"
4640 ac_cpp='$CPP $CPPFLAGS'
4641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4644 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4645 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4646 # On Suns, sometimes $CPP names a directory.
4647 if test -n "$CPP" && test -d "$CPP"; then
4650 if test -z "$CPP"; then
4651 if test "${ac_cv_prog_CPP+set}" = set; then
4652 echo $ECHO_N "(cached) $ECHO_C" >&6
4654 # Double quotes because CPP needs to be expanded
4655 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4658 for ac_c_preproc_warn_flag in '' yes
4660 # Use a header file that comes with gcc, so configuring glibc
4661 # with a fresh cross-compiler works.
4662 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4663 # <limits.h> exists even on freestanding compilers.
4664 # On the NeXT, cc -E runs the code through the compiler's parser,
4665 # not just through cpp. "Syntax error" is here to catch this case.
4666 cat >conftest.$ac_ext <<_ACEOF
4669 cat confdefs.h >>conftest.$ac_ext
4670 cat >>conftest.$ac_ext <<_ACEOF
4671 /* end confdefs.h. */
4673 # include <limits.h>
4675 # include <assert.h>
4679 if { (ac_try="$ac_cpp conftest.$ac_ext"
4681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4682 *) ac_try_echo=$ac_try;;
4684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4685 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4687 grep -v '^ *+' conftest.er1 >conftest.err
4689 cat conftest.err >&5
4690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691 (exit $ac_status); } >/dev/null && {
4692 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4693 test ! -s conftest.err
4697 echo "$as_me: failed program was:" >&5
4698 sed 's/^/| /' conftest.$ac_ext >&5
4700 # Broken: fails on valid input.
4704 rm -f conftest.err conftest.$ac_ext
4706 # OK, works on sane cases. Now check whether nonexistent headers
4707 # can be detected and how.
4708 cat >conftest.$ac_ext <<_ACEOF
4711 cat confdefs.h >>conftest.$ac_ext
4712 cat >>conftest.$ac_ext <<_ACEOF
4713 /* end confdefs.h. */
4714 #include <ac_nonexistent.h>
4716 if { (ac_try="$ac_cpp conftest.$ac_ext"
4718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4719 *) ac_try_echo=$ac_try;;
4721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4722 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4724 grep -v '^ *+' conftest.er1 >conftest.err
4726 cat conftest.err >&5
4727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728 (exit $ac_status); } >/dev/null && {
4729 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4730 test ! -s conftest.err
4732 # Broken: success on invalid input.
4735 echo "$as_me: failed program was:" >&5
4736 sed 's/^/| /' conftest.$ac_ext >&5
4738 # Passes both tests.
4743 rm -f conftest.err conftest.$ac_ext
4746 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4747 rm -f conftest.err conftest.$ac_ext
4748 if $ac_preproc_ok; then
4760 { echo "$as_me:$LINENO: result: $CPP" >&5
4761 echo "${ECHO_T}$CPP" >&6; }
4763 for ac_c_preproc_warn_flag in '' yes
4765 # Use a header file that comes with gcc, so configuring glibc
4766 # with a fresh cross-compiler works.
4767 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4768 # <limits.h> exists even on freestanding compilers.
4769 # On the NeXT, cc -E runs the code through the compiler's parser,
4770 # not just through cpp. "Syntax error" is here to catch this case.
4771 cat >conftest.$ac_ext <<_ACEOF
4774 cat confdefs.h >>conftest.$ac_ext
4775 cat >>conftest.$ac_ext <<_ACEOF
4776 /* end confdefs.h. */
4778 # include <limits.h>
4780 # include <assert.h>
4784 if { (ac_try="$ac_cpp conftest.$ac_ext"
4786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4787 *) ac_try_echo=$ac_try;;
4789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4790 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4792 grep -v '^ *+' conftest.er1 >conftest.err
4794 cat conftest.err >&5
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); } >/dev/null && {
4797 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4798 test ! -s conftest.err
4802 echo "$as_me: failed program was:" >&5
4803 sed 's/^/| /' conftest.$ac_ext >&5
4805 # Broken: fails on valid input.
4809 rm -f conftest.err conftest.$ac_ext
4811 # OK, works on sane cases. Now check whether nonexistent headers
4812 # can be detected and how.
4813 cat >conftest.$ac_ext <<_ACEOF
4816 cat confdefs.h >>conftest.$ac_ext
4817 cat >>conftest.$ac_ext <<_ACEOF
4818 /* end confdefs.h. */
4819 #include <ac_nonexistent.h>
4821 if { (ac_try="$ac_cpp conftest.$ac_ext"
4823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4824 *) ac_try_echo=$ac_try;;
4826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4827 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4829 grep -v '^ *+' conftest.er1 >conftest.err
4831 cat conftest.err >&5
4832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833 (exit $ac_status); } >/dev/null && {
4834 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4835 test ! -s conftest.err
4837 # Broken: success on invalid input.
4840 echo "$as_me: failed program was:" >&5
4841 sed 's/^/| /' conftest.$ac_ext >&5
4843 # Passes both tests.
4848 rm -f conftest.err conftest.$ac_ext
4851 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4852 rm -f conftest.err conftest.$ac_ext
4853 if $ac_preproc_ok; then
4856 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4857 See \`config.log' for more details." >&5
4858 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4859 See \`config.log' for more details." >&2;}
4860 { (exit 1); exit 1; }; }
4864 ac_cpp='$CPP $CPPFLAGS'
4865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4870 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4871 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4872 if test "${ac_cv_header_stdc+set}" = set; then
4873 echo $ECHO_N "(cached) $ECHO_C" >&6
4875 cat >conftest.$ac_ext <<_ACEOF
4878 cat confdefs.h >>conftest.$ac_ext
4879 cat >>conftest.$ac_ext <<_ACEOF
4880 /* end confdefs.h. */
4894 rm -f conftest.$ac_objext
4895 if { (ac_try="$ac_compile"
4897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4898 *) ac_try_echo=$ac_try;;
4900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4901 (eval "$ac_compile") 2>conftest.er1
4903 grep -v '^ *+' conftest.er1 >conftest.err
4905 cat conftest.err >&5
4906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907 (exit $ac_status); } && {
4908 test -z "$ac_c_werror_flag" ||
4909 test ! -s conftest.err
4910 } && test -s conftest.$ac_objext; then
4911 ac_cv_header_stdc=yes
4913 echo "$as_me: failed program was:" >&5
4914 sed 's/^/| /' conftest.$ac_ext >&5
4916 ac_cv_header_stdc=no
4919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4921 if test $ac_cv_header_stdc = yes; then
4922 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4923 cat >conftest.$ac_ext <<_ACEOF
4926 cat confdefs.h >>conftest.$ac_ext
4927 cat >>conftest.$ac_ext <<_ACEOF
4928 /* end confdefs.h. */
4932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4933 $EGREP "memchr" >/dev/null 2>&1; then
4936 ac_cv_header_stdc=no
4942 if test $ac_cv_header_stdc = yes; then
4943 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4944 cat >conftest.$ac_ext <<_ACEOF
4947 cat confdefs.h >>conftest.$ac_ext
4948 cat >>conftest.$ac_ext <<_ACEOF
4949 /* end confdefs.h. */
4953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4954 $EGREP "free" >/dev/null 2>&1; then
4957 ac_cv_header_stdc=no
4963 if test $ac_cv_header_stdc = yes; then
4964 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4965 if test "$cross_compiling" = yes; then
4968 cat >conftest.$ac_ext <<_ACEOF
4971 cat confdefs.h >>conftest.$ac_ext
4972 cat >>conftest.$ac_ext <<_ACEOF
4973 /* end confdefs.h. */
4976 #if ((' ' & 0x0FF) == 0x020)
4977 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4978 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4980 # define ISLOWER(c) \
4981 (('a' <= (c) && (c) <= 'i') \
4982 || ('j' <= (c) && (c) <= 'r') \
4983 || ('s' <= (c) && (c) <= 'z'))
4984 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4987 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4992 for (i = 0; i < 256; i++)
4993 if (XOR (islower (i), ISLOWER (i))
4994 || toupper (i) != TOUPPER (i))
4999 rm -f conftest$ac_exeext
5000 if { (ac_try="$ac_link"
5002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5003 *) ac_try_echo=$ac_try;;
5005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5006 (eval "$ac_link") 2>&5
5008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5010 { (case "(($ac_try" in
5011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5012 *) ac_try_echo=$ac_try;;
5014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5015 (eval "$ac_try") 2>&5
5017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018 (exit $ac_status); }; }; then
5021 echo "$as_me: program exited with status $ac_status" >&5
5022 echo "$as_me: failed program was:" >&5
5023 sed 's/^/| /' conftest.$ac_ext >&5
5026 ac_cv_header_stdc=no
5028 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5034 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5035 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5036 if test $ac_cv_header_stdc = yes; then
5038 cat >>confdefs.h <<\_ACEOF
5039 #define STDC_HEADERS 1
5044 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5054 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5055 inttypes.h stdint.h unistd.h
5057 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5058 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5061 echo $ECHO_N "(cached) $ECHO_C" >&6
5063 cat >conftest.$ac_ext <<_ACEOF
5066 cat confdefs.h >>conftest.$ac_ext
5067 cat >>conftest.$ac_ext <<_ACEOF
5068 /* end confdefs.h. */
5069 $ac_includes_default
5071 #include <$ac_header>
5073 rm -f conftest.$ac_objext
5074 if { (ac_try="$ac_compile"
5076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5077 *) ac_try_echo=$ac_try;;
5079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5080 (eval "$ac_compile") 2>conftest.er1
5082 grep -v '^ *+' conftest.er1 >conftest.err
5084 cat conftest.err >&5
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); } && {
5087 test -z "$ac_c_werror_flag" ||
5088 test ! -s conftest.err
5089 } && test -s conftest.$ac_objext; then
5090 eval "$as_ac_Header=yes"
5092 echo "$as_me: failed program was:" >&5
5093 sed 's/^/| /' conftest.$ac_ext >&5
5095 eval "$as_ac_Header=no"
5098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5100 ac_res=`eval echo '${'$as_ac_Header'}'`
5101 { echo "$as_me:$LINENO: result: $ac_res" >&5
5102 echo "${ECHO_T}$ac_res" >&6; }
5103 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5104 cat >>confdefs.h <<_ACEOF
5105 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5114 for ac_header in dlfcn.h
5116 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5118 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5119 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5120 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5121 echo $ECHO_N "(cached) $ECHO_C" >&6
5123 ac_res=`eval echo '${'$as_ac_Header'}'`
5124 { echo "$as_me:$LINENO: result: $ac_res" >&5
5125 echo "${ECHO_T}$ac_res" >&6; }
5127 # Is the header compilable?
5128 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5129 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5130 cat >conftest.$ac_ext <<_ACEOF
5133 cat confdefs.h >>conftest.$ac_ext
5134 cat >>conftest.$ac_ext <<_ACEOF
5135 /* end confdefs.h. */
5136 $ac_includes_default
5137 #include <$ac_header>
5139 rm -f conftest.$ac_objext
5140 if { (ac_try="$ac_compile"
5142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5143 *) ac_try_echo=$ac_try;;
5145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5146 (eval "$ac_compile") 2>conftest.er1
5148 grep -v '^ *+' conftest.er1 >conftest.err
5150 cat conftest.err >&5
5151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152 (exit $ac_status); } && {
5153 test -z "$ac_c_werror_flag" ||
5154 test ! -s conftest.err
5155 } && test -s conftest.$ac_objext; then
5156 ac_header_compiler=yes
5158 echo "$as_me: failed program was:" >&5
5159 sed 's/^/| /' conftest.$ac_ext >&5
5161 ac_header_compiler=no
5164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5165 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5166 echo "${ECHO_T}$ac_header_compiler" >&6; }
5168 # Is the header present?
5169 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5170 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5171 cat >conftest.$ac_ext <<_ACEOF
5174 cat confdefs.h >>conftest.$ac_ext
5175 cat >>conftest.$ac_ext <<_ACEOF
5176 /* end confdefs.h. */
5177 #include <$ac_header>
5179 if { (ac_try="$ac_cpp conftest.$ac_ext"
5181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5182 *) ac_try_echo=$ac_try;;
5184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5185 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5187 grep -v '^ *+' conftest.er1 >conftest.err
5189 cat conftest.err >&5
5190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191 (exit $ac_status); } >/dev/null && {
5192 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5193 test ! -s conftest.err
5195 ac_header_preproc=yes
5197 echo "$as_me: failed program was:" >&5
5198 sed 's/^/| /' conftest.$ac_ext >&5
5200 ac_header_preproc=no
5203 rm -f conftest.err conftest.$ac_ext
5204 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5205 echo "${ECHO_T}$ac_header_preproc" >&6; }
5207 # So? What about this header?
5208 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5210 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5211 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5212 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5213 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5214 ac_header_preproc=yes
5217 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5218 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5219 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5220 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5221 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5222 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5223 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5224 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5225 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5226 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5227 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5228 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5232 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5235 echo $ECHO_N "(cached) $ECHO_C" >&6
5237 eval "$as_ac_Header=\$ac_header_preproc"
5239 ac_res=`eval echo '${'$as_ac_Header'}'`
5240 { echo "$as_me:$LINENO: result: $ac_res" >&5
5241 echo "${ECHO_T}$ac_res" >&6; }
5244 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5245 cat >>confdefs.h <<_ACEOF
5246 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5254 ac_cpp='$CXXCPP $CPPFLAGS'
5255 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5256 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5257 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5258 if test -z "$CXX"; then
5259 if test -n "$CCC"; then
5262 if test -n "$ac_tool_prefix"; then
5263 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5265 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5266 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5269 if test "${ac_cv_prog_CXX+set}" = set; then
5270 echo $ECHO_N "(cached) $ECHO_C" >&6
5272 if test -n "$CXX"; then
5273 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5279 test -z "$as_dir" && as_dir=.
5280 for ac_exec_ext in '' $ac_executable_extensions; do
5281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5282 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5293 if test -n "$CXX"; then
5294 { echo "$as_me:$LINENO: result: $CXX" >&5
5295 echo "${ECHO_T}$CXX" >&6; }
5297 { echo "$as_me:$LINENO: result: no" >&5
5298 echo "${ECHO_T}no" >&6; }
5302 test -n "$CXX" && break
5305 if test -z "$CXX"; then
5307 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5309 # Extract the first word of "$ac_prog", so it can be a program name with args.
5310 set dummy $ac_prog; ac_word=$2
5311 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5313 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5314 echo $ECHO_N "(cached) $ECHO_C" >&6
5316 if test -n "$ac_ct_CXX"; then
5317 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5323 test -z "$as_dir" && as_dir=.
5324 for ac_exec_ext in '' $ac_executable_extensions; do
5325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5326 ac_cv_prog_ac_ct_CXX="$ac_prog"
5327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5336 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5337 if test -n "$ac_ct_CXX"; then
5338 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5339 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5341 { echo "$as_me:$LINENO: result: no" >&5
5342 echo "${ECHO_T}no" >&6; }
5346 test -n "$ac_ct_CXX" && break
5349 if test "x$ac_ct_CXX" = x; then
5352 case $cross_compiling:$ac_tool_warned in
5354 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5355 whose name does not start with the host triplet. If you think this
5356 configuration is useful to you, please write to autoconf@gnu.org." >&5
5357 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5358 whose name does not start with the host triplet. If you think this
5359 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5360 ac_tool_warned=yes ;;
5368 # Provide some information about the compiler.
5369 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5370 ac_compiler=`set X $ac_compile; echo $2`
5371 { (ac_try="$ac_compiler --version >&5"
5373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5374 *) ac_try_echo=$ac_try;;
5376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5377 (eval "$ac_compiler --version >&5") 2>&5
5379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380 (exit $ac_status); }
5381 { (ac_try="$ac_compiler -v >&5"
5383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5384 *) ac_try_echo=$ac_try;;
5386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5387 (eval "$ac_compiler -v >&5") 2>&5
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); }
5391 { (ac_try="$ac_compiler -V >&5"
5393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5394 *) ac_try_echo=$ac_try;;
5396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5397 (eval "$ac_compiler -V >&5") 2>&5
5399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400 (exit $ac_status); }
5402 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5403 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5404 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5405 echo $ECHO_N "(cached) $ECHO_C" >&6
5407 cat >conftest.$ac_ext <<_ACEOF
5410 cat confdefs.h >>conftest.$ac_ext
5411 cat >>conftest.$ac_ext <<_ACEOF
5412 /* end confdefs.h. */
5425 rm -f conftest.$ac_objext
5426 if { (ac_try="$ac_compile"
5428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5429 *) ac_try_echo=$ac_try;;
5431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5432 (eval "$ac_compile") 2>conftest.er1
5434 grep -v '^ *+' conftest.er1 >conftest.err
5436 cat conftest.err >&5
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); } && {
5439 test -z "$ac_cxx_werror_flag" ||
5440 test ! -s conftest.err
5441 } && test -s conftest.$ac_objext; then
5444 echo "$as_me: failed program was:" >&5
5445 sed 's/^/| /' conftest.$ac_ext >&5
5450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5451 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5454 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5455 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5456 GXX=`test $ac_compiler_gnu = yes && echo yes`
5457 ac_test_CXXFLAGS=${CXXFLAGS+set}
5458 ac_save_CXXFLAGS=$CXXFLAGS
5459 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5460 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5461 if test "${ac_cv_prog_cxx_g+set}" = set; then
5462 echo $ECHO_N "(cached) $ECHO_C" >&6
5464 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5465 ac_cxx_werror_flag=yes
5468 cat >conftest.$ac_ext <<_ACEOF
5471 cat confdefs.h >>conftest.$ac_ext
5472 cat >>conftest.$ac_ext <<_ACEOF
5473 /* end confdefs.h. */
5483 rm -f conftest.$ac_objext
5484 if { (ac_try="$ac_compile"
5486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5487 *) ac_try_echo=$ac_try;;
5489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5490 (eval "$ac_compile") 2>conftest.er1
5492 grep -v '^ *+' conftest.er1 >conftest.err
5494 cat conftest.err >&5
5495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496 (exit $ac_status); } && {
5497 test -z "$ac_cxx_werror_flag" ||
5498 test ! -s conftest.err
5499 } && test -s conftest.$ac_objext; then
5500 ac_cv_prog_cxx_g=yes
5502 echo "$as_me: failed program was:" >&5
5503 sed 's/^/| /' conftest.$ac_ext >&5
5506 cat >conftest.$ac_ext <<_ACEOF
5509 cat confdefs.h >>conftest.$ac_ext
5510 cat >>conftest.$ac_ext <<_ACEOF
5511 /* end confdefs.h. */
5521 rm -f conftest.$ac_objext
5522 if { (ac_try="$ac_compile"
5524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5525 *) ac_try_echo=$ac_try;;
5527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5528 (eval "$ac_compile") 2>conftest.er1
5530 grep -v '^ *+' conftest.er1 >conftest.err
5532 cat conftest.err >&5
5533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534 (exit $ac_status); } && {
5535 test -z "$ac_cxx_werror_flag" ||
5536 test ! -s conftest.err
5537 } && test -s conftest.$ac_objext; then
5540 echo "$as_me: failed program was:" >&5
5541 sed 's/^/| /' conftest.$ac_ext >&5
5543 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5545 cat >conftest.$ac_ext <<_ACEOF
5548 cat confdefs.h >>conftest.$ac_ext
5549 cat >>conftest.$ac_ext <<_ACEOF
5550 /* end confdefs.h. */
5560 rm -f conftest.$ac_objext
5561 if { (ac_try="$ac_compile"
5563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5564 *) ac_try_echo=$ac_try;;
5566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5567 (eval "$ac_compile") 2>conftest.er1
5569 grep -v '^ *+' conftest.er1 >conftest.err
5571 cat conftest.err >&5
5572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573 (exit $ac_status); } && {
5574 test -z "$ac_cxx_werror_flag" ||
5575 test ! -s conftest.err
5576 } && test -s conftest.$ac_objext; then
5577 ac_cv_prog_cxx_g=yes
5579 echo "$as_me: failed program was:" >&5
5580 sed 's/^/| /' conftest.$ac_ext >&5
5585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5592 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5594 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5595 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5596 if test "$ac_test_CXXFLAGS" = set; then
5597 CXXFLAGS=$ac_save_CXXFLAGS
5598 elif test $ac_cv_prog_cxx_g = yes; then
5599 if test "$GXX" = yes; then
5605 if test "$GXX" = yes; then
5612 ac_cpp='$CXXCPP $CPPFLAGS'
5613 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5614 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5615 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5617 depcc="$CXX" am_compiler_list=
5619 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5620 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5621 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5622 echo $ECHO_N "(cached) $ECHO_C" >&6
5624 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5625 # We make a subdir and do the tests there. Otherwise we can end up
5626 # making bogus files that we don't know about and never remove. For
5627 # instance it was reported that on HP-UX the gcc test will end up
5628 # making a dummy file named `D' -- because `-MD' means `put the output
5631 # Copy depcomp to subdir because otherwise we won't find it if we're
5632 # using a relative directory.
5633 cp "$am_depcomp" conftest.dir
5635 # We will build objects and dependencies in a subdirectory because
5636 # it helps to detect inapplicable dependency modes. For instance
5637 # both Tru64's cc and ICC support -MD to output dependencies as a
5638 # side effect of compilation, but ICC will put the dependencies in
5639 # the current directory while Tru64 will put them in the object
5643 am_cv_CXX_dependencies_compiler_type=none
5644 if test "$am_compiler_list" = ""; then
5645 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5647 for depmode in $am_compiler_list; do
5648 # Setup a source with many dependencies, because some compilers
5649 # like to wrap large dependency lists on column 80 (with \), and
5650 # we should not choose a depcomp mode which is confused by this.
5652 # We need to recreate these files for each test, as the compiler may
5653 # overwrite some of them when testing with obscure command lines.
5654 # This happens at least with the AIX C compiler.
5656 for i in 1 2 3 4 5 6; do
5657 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5658 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5659 # Solaris 8's {/usr,}/bin/sh.
5660 touch sub/conftst$i.h
5662 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5666 # after this tag, mechanisms are not by side-effect, so they'll
5667 # only be used when explicitly requested
5668 if test "x$enable_dependency_tracking" = xyes; then
5676 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5677 # mode. It turns out that the SunPro C++ compiler does not properly
5678 # handle `-M -o', and we need to detect this.
5679 if depmode=$depmode \
5680 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5681 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5682 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5683 >/dev/null 2>conftest.err &&
5684 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5685 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5686 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5687 # icc doesn't choke on unknown options, it will just issue warnings
5688 # or remarks (even with -Werror). So we grep stderr for any message
5689 # that says an option was ignored or not supported.
5690 # When given -MP, icc 7.0 and 7.1 complain thusly:
5691 # icc: Command line warning: ignoring option '-M'; no argument required
5692 # The diagnosis changed in icc 8.0:
5693 # icc: Command line remark: option '-MP' not supported
5694 if (grep 'ignoring option' conftest.err ||
5695 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5696 am_cv_CXX_dependencies_compiler_type=$depmode
5705 am_cv_CXX_dependencies_compiler_type=none
5709 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5710 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5711 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5716 test "x$enable_dependency_tracking" != xno \
5717 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5718 am__fastdepCXX_TRUE=
5719 am__fastdepCXX_FALSE='#'
5721 am__fastdepCXX_TRUE='#'
5722 am__fastdepCXX_FALSE=
5728 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5729 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5730 (test "X$CXX" != "Xg++"))) ; then
5732 ac_cpp='$CXXCPP $CPPFLAGS'
5733 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5734 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5735 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5736 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5737 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5738 if test -z "$CXXCPP"; then
5739 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5740 echo $ECHO_N "(cached) $ECHO_C" >&6
5742 # Double quotes because CXXCPP needs to be expanded
5743 for CXXCPP in "$CXX -E" "/lib/cpp"
5746 for ac_cxx_preproc_warn_flag in '' yes
5748 # Use a header file that comes with gcc, so configuring glibc
5749 # with a fresh cross-compiler works.
5750 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5751 # <limits.h> exists even on freestanding compilers.
5752 # On the NeXT, cc -E runs the code through the compiler's parser,
5753 # not just through cpp. "Syntax error" is here to catch this case.
5754 cat >conftest.$ac_ext <<_ACEOF
5757 cat confdefs.h >>conftest.$ac_ext
5758 cat >>conftest.$ac_ext <<_ACEOF
5759 /* end confdefs.h. */
5761 # include <limits.h>
5763 # include <assert.h>
5767 if { (ac_try="$ac_cpp conftest.$ac_ext"
5769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5770 *) ac_try_echo=$ac_try;;
5772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5773 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5775 grep -v '^ *+' conftest.er1 >conftest.err
5777 cat conftest.err >&5
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); } >/dev/null && {
5780 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5781 test ! -s conftest.err
5785 echo "$as_me: failed program was:" >&5
5786 sed 's/^/| /' conftest.$ac_ext >&5
5788 # Broken: fails on valid input.
5792 rm -f conftest.err conftest.$ac_ext
5794 # OK, works on sane cases. Now check whether nonexistent headers
5795 # can be detected and how.
5796 cat >conftest.$ac_ext <<_ACEOF
5799 cat confdefs.h >>conftest.$ac_ext
5800 cat >>conftest.$ac_ext <<_ACEOF
5801 /* end confdefs.h. */
5802 #include <ac_nonexistent.h>
5804 if { (ac_try="$ac_cpp conftest.$ac_ext"
5806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5807 *) ac_try_echo=$ac_try;;
5809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5810 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5812 grep -v '^ *+' conftest.er1 >conftest.err
5814 cat conftest.err >&5
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); } >/dev/null && {
5817 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5818 test ! -s conftest.err
5820 # Broken: success on invalid input.
5823 echo "$as_me: failed program was:" >&5
5824 sed 's/^/| /' conftest.$ac_ext >&5
5826 # Passes both tests.
5831 rm -f conftest.err conftest.$ac_ext
5834 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5835 rm -f conftest.err conftest.$ac_ext
5836 if $ac_preproc_ok; then
5841 ac_cv_prog_CXXCPP=$CXXCPP
5844 CXXCPP=$ac_cv_prog_CXXCPP
5846 ac_cv_prog_CXXCPP=$CXXCPP
5848 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5849 echo "${ECHO_T}$CXXCPP" >&6; }
5851 for ac_cxx_preproc_warn_flag in '' yes
5853 # Use a header file that comes with gcc, so configuring glibc
5854 # with a fresh cross-compiler works.
5855 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5856 # <limits.h> exists even on freestanding compilers.
5857 # On the NeXT, cc -E runs the code through the compiler's parser,
5858 # not just through cpp. "Syntax error" is here to catch this case.
5859 cat >conftest.$ac_ext <<_ACEOF
5862 cat confdefs.h >>conftest.$ac_ext
5863 cat >>conftest.$ac_ext <<_ACEOF
5864 /* end confdefs.h. */
5866 # include <limits.h>
5868 # include <assert.h>
5872 if { (ac_try="$ac_cpp conftest.$ac_ext"
5874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5875 *) ac_try_echo=$ac_try;;
5877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5878 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5880 grep -v '^ *+' conftest.er1 >conftest.err
5882 cat conftest.err >&5
5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); } >/dev/null && {
5885 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5886 test ! -s conftest.err
5890 echo "$as_me: failed program was:" >&5
5891 sed 's/^/| /' conftest.$ac_ext >&5
5893 # Broken: fails on valid input.
5897 rm -f conftest.err conftest.$ac_ext
5899 # OK, works on sane cases. Now check whether nonexistent headers
5900 # can be detected and how.
5901 cat >conftest.$ac_ext <<_ACEOF
5904 cat confdefs.h >>conftest.$ac_ext
5905 cat >>conftest.$ac_ext <<_ACEOF
5906 /* end confdefs.h. */
5907 #include <ac_nonexistent.h>
5909 if { (ac_try="$ac_cpp conftest.$ac_ext"
5911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5912 *) ac_try_echo=$ac_try;;
5914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5915 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5917 grep -v '^ *+' conftest.er1 >conftest.err
5919 cat conftest.err >&5
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); } >/dev/null && {
5922 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5923 test ! -s conftest.err
5925 # Broken: success on invalid input.
5928 echo "$as_me: failed program was:" >&5
5929 sed 's/^/| /' conftest.$ac_ext >&5
5931 # Passes both tests.
5936 rm -f conftest.err conftest.$ac_ext
5939 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5940 rm -f conftest.err conftest.$ac_ext
5941 if $ac_preproc_ok; then
5944 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5945 See \`config.log' for more details." >&5
5946 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5947 See \`config.log' for more details." >&2;}
5948 { (exit 1); exit 1; }; }
5952 ac_cpp='$CXXCPP $CPPFLAGS'
5953 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5954 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5955 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5961 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5962 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5963 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5964 if test -n "$ac_tool_prefix"; then
5965 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
5967 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5968 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5969 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5971 if test "${ac_cv_prog_F77+set}" = set; then
5972 echo $ECHO_N "(cached) $ECHO_C" >&6
5974 if test -n "$F77"; then
5975 ac_cv_prog_F77="$F77" # Let the user override the test.
5977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5981 test -z "$as_dir" && as_dir=.
5982 for ac_exec_ext in '' $ac_executable_extensions; do
5983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5984 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5995 if test -n "$F77"; then
5996 { echo "$as_me:$LINENO: result: $F77" >&5
5997 echo "${ECHO_T}$F77" >&6; }
5999 { echo "$as_me:$LINENO: result: no" >&5
6000 echo "${ECHO_T}no" >&6; }
6004 test -n "$F77" && break
6007 if test -z "$F77"; then
6009 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
6011 # Extract the first word of "$ac_prog", so it can be a program name with args.
6012 set dummy $ac_prog; ac_word=$2
6013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6015 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6016 echo $ECHO_N "(cached) $ECHO_C" >&6
6018 if test -n "$ac_ct_F77"; then
6019 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6025 test -z "$as_dir" && as_dir=.
6026 for ac_exec_ext in '' $ac_executable_extensions; do
6027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6028 ac_cv_prog_ac_ct_F77="$ac_prog"
6029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6038 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6039 if test -n "$ac_ct_F77"; then
6040 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6041 echo "${ECHO_T}$ac_ct_F77" >&6; }
6043 { echo "$as_me:$LINENO: result: no" >&5
6044 echo "${ECHO_T}no" >&6; }
6048 test -n "$ac_ct_F77" && break
6051 if test "x$ac_ct_F77" = x; then
6054 case $cross_compiling:$ac_tool_warned in
6056 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6057 whose name does not start with the host triplet. If you think this
6058 configuration is useful to you, please write to autoconf@gnu.org." >&5
6059 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6060 whose name does not start with the host triplet. If you think this
6061 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6062 ac_tool_warned=yes ;;
6069 # Provide some information about the compiler.
6070 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6071 ac_compiler=`set X $ac_compile; echo $2`
6072 { (ac_try="$ac_compiler --version >&5"
6074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6075 *) ac_try_echo=$ac_try;;
6077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6078 (eval "$ac_compiler --version >&5") 2>&5
6080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081 (exit $ac_status); }
6082 { (ac_try="$ac_compiler -v >&5"
6084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6085 *) ac_try_echo=$ac_try;;
6087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6088 (eval "$ac_compiler -v >&5") 2>&5
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); }
6092 { (ac_try="$ac_compiler -V >&5"
6094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6095 *) ac_try_echo=$ac_try;;
6097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6098 (eval "$ac_compiler -V >&5") 2>&5
6100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101 (exit $ac_status); }
6104 # If we don't use `.F' as extension, the preprocessor is not run on the
6105 # input file. (Note that this only needs to work for GNU compilers.)
6108 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6109 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6110 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6111 echo $ECHO_N "(cached) $ECHO_C" >&6
6113 cat >conftest.$ac_ext <<_ACEOF
6121 rm -f conftest.$ac_objext
6122 if { (ac_try="$ac_compile"
6124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6125 *) ac_try_echo=$ac_try;;
6127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6128 (eval "$ac_compile") 2>conftest.er1
6130 grep -v '^ *+' conftest.er1 >conftest.err
6132 cat conftest.err >&5
6133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134 (exit $ac_status); } && {
6135 test -z "$ac_f77_werror_flag" ||
6136 test ! -s conftest.err
6137 } && test -s conftest.$ac_objext; then
6140 echo "$as_me: failed program was:" >&5
6141 sed 's/^/| /' conftest.$ac_ext >&5
6146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6147 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6150 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6151 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6153 ac_test_FFLAGS=${FFLAGS+set}
6154 ac_save_FFLAGS=$FFLAGS
6156 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6157 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6158 if test "${ac_cv_prog_f77_g+set}" = set; then
6159 echo $ECHO_N "(cached) $ECHO_C" >&6
6162 cat >conftest.$ac_ext <<_ACEOF
6167 rm -f conftest.$ac_objext
6168 if { (ac_try="$ac_compile"
6170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6171 *) ac_try_echo=$ac_try;;
6173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6174 (eval "$ac_compile") 2>conftest.er1
6176 grep -v '^ *+' conftest.er1 >conftest.err
6178 cat conftest.err >&5
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); } && {
6181 test -z "$ac_f77_werror_flag" ||
6182 test ! -s conftest.err
6183 } && test -s conftest.$ac_objext; then
6184 ac_cv_prog_f77_g=yes
6186 echo "$as_me: failed program was:" >&5
6187 sed 's/^/| /' conftest.$ac_ext >&5
6192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6195 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6196 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6197 if test "$ac_test_FFLAGS" = set; then
6198 FFLAGS=$ac_save_FFLAGS
6199 elif test $ac_cv_prog_f77_g = yes; then
6200 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6206 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6213 G77=`test $ac_compiler_gnu = yes && echo yes`
6215 ac_cpp='$CPP $CPPFLAGS'
6216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6222 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6223 # find the maximum length of command line arguments
6224 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6225 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6226 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6227 echo $ECHO_N "(cached) $ECHO_C" >&6
6234 # On DJGPP, this test can blow up pretty badly due to problems in libc
6235 # (any single argument exceeding 2000 bytes causes a buffer overrun
6236 # during glob expansion). Even if it were fixed, the result of this
6237 # check would be larger than it should be.
6238 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6242 # Under GNU Hurd, this test is not required because there is
6243 # no limit to the length of command line arguments.
6244 # Libtool will interpret -1 as no limit whatsoever
6245 lt_cv_sys_max_cmd_len=-1;
6249 # On Win9x/ME, this test blows up -- it succeeds, but takes
6250 # about 5 minutes as the teststring grows exponentially.
6251 # Worse, since 9x/ME are not pre-emptively multitasking,
6252 # you end up with a "frozen" computer, even though with patience
6253 # the test eventually succeeds (with a max line length of 256k).
6254 # Instead, let's just punt: use the minimum linelength reported by
6255 # all of the supported platforms: 8192 (on NT/2K/XP).
6256 lt_cv_sys_max_cmd_len=8192;
6260 # On AmigaOS with pdksh, this test takes hours, literally.
6261 # So we just punt and use a minimum line length of 8192.
6262 lt_cv_sys_max_cmd_len=8192;
6265 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6266 # This has been around since 386BSD, at least. Likely further.
6267 if test -x /sbin/sysctl; then
6268 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6269 elif test -x /usr/sbin/sysctl; then
6270 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6272 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6274 # And add a safety zone
6275 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6276 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6280 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6281 lt_cv_sys_max_cmd_len=196608
6285 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6286 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6287 # nice to cause kernel panics so lets avoid the loop below.
6288 # First set a reasonable default.
6289 lt_cv_sys_max_cmd_len=16384
6291 if test -x /sbin/sysconfig; then
6292 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6293 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6298 lt_cv_sys_max_cmd_len=102400
6300 sysv5* | sco5v6* | sysv4.2uw2*)
6301 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6302 if test -n "$kargmax"; then
6303 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6305 lt_cv_sys_max_cmd_len=32768
6309 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6310 if test -n "$lt_cv_sys_max_cmd_len"; then
6311 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6312 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6314 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6315 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6316 = "XX$teststring") >/dev/null 2>&1 &&
6317 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6318 lt_cv_sys_max_cmd_len=$new_result &&
6319 test $i != 17 # 1/2 MB should be enough
6322 teststring=$teststring$teststring
6325 # Add a significant safety factor because C++ compilers can tack on massive
6326 # amounts of additional arguments before passing them to the linker.
6327 # It appears as though 1/2 is a usable value.
6328 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6335 if test -n $lt_cv_sys_max_cmd_len ; then
6336 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6337 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6339 { echo "$as_me:$LINENO: result: none" >&5
6340 echo "${ECHO_T}none" >&6; }
6347 # Check for command to grab the raw symbol name followed by C symbol from nm.
6348 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6349 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6350 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6351 echo $ECHO_N "(cached) $ECHO_C" >&6
6354 # These are sane defaults that work on at least a few old systems.
6355 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6357 # Character class describing NM global symbol codes.
6358 symcode='[BCDEGRST]'
6360 # Regexp to match symbols that can be accessed directly from C.
6361 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6363 # Transform an extracted symbol line into a proper C declaration
6364 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6366 # Transform an extracted symbol line into symbol name and symbol address
6367 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'"
6369 # Define system-specific variables.
6374 cygwin* | mingw* | pw32*)
6375 symcode='[ABCDGISTW]'
6377 hpux*) # Its linker distinguishes data from code symbols
6378 if test "$host_cpu" = ia64; then
6379 symcode='[ABCDEGRST]'
6381 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6382 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'"
6384 linux* | k*bsd*-gnu)
6385 if test "$host_cpu" = ia64; then
6386 symcode='[ABCDGIRSTW]'
6387 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6388 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'"
6392 symcode='[BCDEGRST]'
6395 symcode='[BCDEGQRST]'
6406 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6414 # Handle CRLF in mingw tool chain
6418 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6422 # If we're using GNU nm, then use its standard symbol codes.
6423 case `$NM -V 2>&1` in
6424 *GNU* | *'with BFD'*)
6425 symcode='[ABCDGIRSTW]' ;;
6428 # Try without a prefix undercore, then with it.
6429 for ac_symprfx in "" "_"; do
6431 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6432 symxfrm="\\1 $ac_symprfx\\2 \\2"
6434 # Write the raw and C identifiers.
6435 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6437 # Check to see that the pipe works correctly.
6441 cat > conftest.$ac_ext <<EOF
6446 void nm_test_func(){}
6450 int main(){nm_test_var='a';nm_test_func();return(0);}
6453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6454 (eval $ac_compile) 2>&5
6456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457 (exit $ac_status); }; then
6458 # Now try to grab the symbols.
6460 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6461 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); } && test -s "$nlist"; then
6465 # Try sorting and uniquifying the output.
6466 if sort "$nlist" | uniq > "$nlist"T; then
6467 mv -f "$nlist"T "$nlist"
6472 # Make sure that we snagged all the symbols we need.
6473 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6474 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6475 cat <<EOF > conftest.$ac_ext
6481 # Now generate the symbol file.
6482 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6484 cat <<EOF >> conftest.$ac_ext
6485 #if defined (__STDC__) && __STDC__
6486 # define lt_ptr_t void *
6488 # define lt_ptr_t char *
6492 /* The mapping between symbol names and symbols. */
6497 lt_preloaded_symbols[] =
6500 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6501 cat <<\EOF >> conftest.$ac_ext
6509 # Now try linking the two files.
6510 mv conftest.$ac_objext conftstm.$ac_objext
6511 lt_save_LIBS="$LIBS"
6512 lt_save_CFLAGS="$CFLAGS"
6513 LIBS="conftstm.$ac_objext"
6514 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6516 (eval $ac_link) 2>&5
6518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6522 LIBS="$lt_save_LIBS"
6523 CFLAGS="$lt_save_CFLAGS"
6525 echo "cannot find nm_test_func in $nlist" >&5
6528 echo "cannot find nm_test_var in $nlist" >&5
6531 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6534 echo "$progname: failed program was:" >&5
6535 cat conftest.$ac_ext >&5
6537 rm -rf conftest* conftst*
6539 # Do not use the global_symbol_pipe unless it works.
6540 if test "$pipe_works" = yes; then
6543 lt_cv_sys_global_symbol_pipe=
6549 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6550 lt_cv_sys_global_symbol_to_cdecl=
6552 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6553 { echo "$as_me:$LINENO: result: failed" >&5
6554 echo "${ECHO_T}failed" >&6; }
6556 { echo "$as_me:$LINENO: result: ok" >&5
6557 echo "${ECHO_T}ok" >&6; }
6560 { echo "$as_me:$LINENO: checking for objdir" >&5
6561 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6562 if test "${lt_cv_objdir+set}" = set; then
6563 echo $ECHO_N "(cached) $ECHO_C" >&6
6565 rm -f .libs 2>/dev/null
6566 mkdir .libs 2>/dev/null
6567 if test -d .libs; then
6570 # MS-DOS does not allow filenames that begin with a dot.
6573 rmdir .libs 2>/dev/null
6575 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6576 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6577 objdir=$lt_cv_objdir
6585 # AIX sometimes has problems with the GCC collect2 program. For some
6586 # reason, if we set the COLLECT_NAMES environment variable, the problems
6587 # vanish in a puff of smoke.
6588 if test "X${COLLECT_NAMES+set}" != Xset; then
6590 export COLLECT_NAMES
6595 # Sed substitution that helps us do robust quoting. It backslashifies
6596 # metacharacters that are still active within double-quoted strings.
6597 Xsed='sed -e 1s/^X//'
6598 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6600 # Same as above, but do not quote variable references.
6601 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6603 # Sed substitution to delay expansion of an escaped shell variable in a
6604 # double_quote_subst'ed string.
6605 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6607 # Sed substitution to avoid accidental globbing in evaled expressions
6608 no_glob_subst='s/\*/\\\*/g'
6614 default_ofile=libtool
6615 can_build_shared=yes
6617 # All known linkers require a `.a' archive for static linking (except MSVC,
6618 # which needs '.lib').
6620 ltmain="$ac_aux_dir/ltmain.sh"
6621 ofile="$default_ofile"
6622 with_gnu_ld="$lt_cv_prog_gnu_ld"
6624 if test -n "$ac_tool_prefix"; then
6625 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6626 set dummy ${ac_tool_prefix}ar; ac_word=$2
6627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6629 if test "${ac_cv_prog_AR+set}" = set; then
6630 echo $ECHO_N "(cached) $ECHO_C" >&6
6632 if test -n "$AR"; then
6633 ac_cv_prog_AR="$AR" # Let the user override the test.
6635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6639 test -z "$as_dir" && as_dir=.
6640 for ac_exec_ext in '' $ac_executable_extensions; do
6641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6642 ac_cv_prog_AR="${ac_tool_prefix}ar"
6643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6653 if test -n "$AR"; then
6654 { echo "$as_me:$LINENO: result: $AR" >&5
6655 echo "${ECHO_T}$AR" >&6; }
6657 { echo "$as_me:$LINENO: result: no" >&5
6658 echo "${ECHO_T}no" >&6; }
6663 if test -z "$ac_cv_prog_AR"; then
6665 # Extract the first word of "ar", so it can be a program name with args.
6666 set dummy ar; ac_word=$2
6667 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6669 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6670 echo $ECHO_N "(cached) $ECHO_C" >&6
6672 if test -n "$ac_ct_AR"; then
6673 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6679 test -z "$as_dir" && as_dir=.
6680 for ac_exec_ext in '' $ac_executable_extensions; do
6681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6682 ac_cv_prog_ac_ct_AR="ar"
6683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6692 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6693 if test -n "$ac_ct_AR"; then
6694 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6695 echo "${ECHO_T}$ac_ct_AR" >&6; }
6697 { echo "$as_me:$LINENO: result: no" >&5
6698 echo "${ECHO_T}no" >&6; }
6701 if test "x$ac_ct_AR" = x; then
6704 case $cross_compiling:$ac_tool_warned in
6706 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6707 whose name does not start with the host triplet. If you think this
6708 configuration is useful to you, please write to autoconf@gnu.org." >&5
6709 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6710 whose name does not start with the host triplet. If you think this
6711 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6712 ac_tool_warned=yes ;;
6720 if test -n "$ac_tool_prefix"; then
6721 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6722 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6723 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6725 if test "${ac_cv_prog_RANLIB+set}" = set; then
6726 echo $ECHO_N "(cached) $ECHO_C" >&6
6728 if test -n "$RANLIB"; then
6729 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6735 test -z "$as_dir" && as_dir=.
6736 for ac_exec_ext in '' $ac_executable_extensions; do
6737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6738 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6748 RANLIB=$ac_cv_prog_RANLIB
6749 if test -n "$RANLIB"; then
6750 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6751 echo "${ECHO_T}$RANLIB" >&6; }
6753 { echo "$as_me:$LINENO: result: no" >&5
6754 echo "${ECHO_T}no" >&6; }
6759 if test -z "$ac_cv_prog_RANLIB"; then
6760 ac_ct_RANLIB=$RANLIB
6761 # Extract the first word of "ranlib", so it can be a program name with args.
6762 set dummy ranlib; ac_word=$2
6763 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6765 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6766 echo $ECHO_N "(cached) $ECHO_C" >&6
6768 if test -n "$ac_ct_RANLIB"; then
6769 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6775 test -z "$as_dir" && as_dir=.
6776 for ac_exec_ext in '' $ac_executable_extensions; do
6777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6778 ac_cv_prog_ac_ct_RANLIB="ranlib"
6779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6788 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6789 if test -n "$ac_ct_RANLIB"; then
6790 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6791 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6793 { echo "$as_me:$LINENO: result: no" >&5
6794 echo "${ECHO_T}no" >&6; }
6797 if test "x$ac_ct_RANLIB" = x; then
6800 case $cross_compiling:$ac_tool_warned in
6802 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6803 whose name does not start with the host triplet. If you think this
6804 configuration is useful to you, please write to autoconf@gnu.org." >&5
6805 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6806 whose name does not start with the host triplet. If you think this
6807 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6808 ac_tool_warned=yes ;;
6810 RANLIB=$ac_ct_RANLIB
6813 RANLIB="$ac_cv_prog_RANLIB"
6816 if test -n "$ac_tool_prefix"; then
6817 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6818 set dummy ${ac_tool_prefix}strip; ac_word=$2
6819 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6821 if test "${ac_cv_prog_STRIP+set}" = set; then
6822 echo $ECHO_N "(cached) $ECHO_C" >&6
6824 if test -n "$STRIP"; then
6825 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6831 test -z "$as_dir" && as_dir=.
6832 for ac_exec_ext in '' $ac_executable_extensions; do
6833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6834 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6844 STRIP=$ac_cv_prog_STRIP
6845 if test -n "$STRIP"; then
6846 { echo "$as_me:$LINENO: result: $STRIP" >&5
6847 echo "${ECHO_T}$STRIP" >&6; }
6849 { echo "$as_me:$LINENO: result: no" >&5
6850 echo "${ECHO_T}no" >&6; }
6855 if test -z "$ac_cv_prog_STRIP"; then
6857 # Extract the first word of "strip", so it can be a program name with args.
6858 set dummy strip; ac_word=$2
6859 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6861 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6862 echo $ECHO_N "(cached) $ECHO_C" >&6
6864 if test -n "$ac_ct_STRIP"; then
6865 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6871 test -z "$as_dir" && as_dir=.
6872 for ac_exec_ext in '' $ac_executable_extensions; do
6873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6874 ac_cv_prog_ac_ct_STRIP="strip"
6875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6884 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6885 if test -n "$ac_ct_STRIP"; then
6886 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6887 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6889 { echo "$as_me:$LINENO: result: no" >&5
6890 echo "${ECHO_T}no" >&6; }
6893 if test "x$ac_ct_STRIP" = x; then
6896 case $cross_compiling:$ac_tool_warned in
6898 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6899 whose name does not start with the host triplet. If you think this
6900 configuration is useful to you, please write to autoconf@gnu.org." >&5
6901 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6902 whose name does not start with the host triplet. If you think this
6903 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6904 ac_tool_warned=yes ;;
6909 STRIP="$ac_cv_prog_STRIP"
6914 old_CFLAGS="$CFLAGS"
6916 # Set sane defaults for various variables
6917 test -z "$AR" && AR=ar
6918 test -z "$AR_FLAGS" && AR_FLAGS=cru
6919 test -z "$AS" && AS=as
6920 test -z "$CC" && CC=cc
6921 test -z "$LTCC" && LTCC=$CC
6922 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6923 test -z "$DLLTOOL" && DLLTOOL=dlltool
6924 test -z "$LD" && LD=ld
6925 test -z "$LN_S" && LN_S="ln -s"
6926 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6927 test -z "$NM" && NM=nm
6928 test -z "$SED" && SED=sed
6929 test -z "$OBJDUMP" && OBJDUMP=objdump
6930 test -z "$RANLIB" && RANLIB=:
6931 test -z "$STRIP" && STRIP=:
6932 test -z "$ac_objext" && ac_objext=o
6934 # Determine commands to create old-style static archives.
6935 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6936 old_postinstall_cmds='chmod 644 $oldlib'
6937 old_postuninstall_cmds=
6939 if test -n "$RANLIB"; then
6942 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6945 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6948 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6951 for cc_temp in $compiler""; do
6953 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6954 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6959 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6962 # Only perform the check for file, if the check method requires it
6963 case $deplibs_check_method in
6965 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6966 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6967 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6968 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6969 echo $ECHO_N "(cached) $ECHO_C" >&6
6973 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6976 lt_save_MAGIC_CMD="$MAGIC_CMD"
6977 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6978 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6979 for ac_dir in $ac_dummy; do
6981 test -z "$ac_dir" && ac_dir=.
6982 if test -f $ac_dir/${ac_tool_prefix}file; then
6983 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6984 if test -n "$file_magic_test_file"; then
6985 case $deplibs_check_method in
6987 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6988 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6989 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6990 $EGREP "$file_magic_regex" > /dev/null; then
6995 *** Warning: the command libtool uses to detect shared libraries,
6996 *** $file_magic_cmd, produces output that libtool cannot recognize.
6997 *** The result is that libtool may fail to recognize shared libraries
6998 *** as such. This will affect the creation of libtool libraries that
6999 *** depend on shared libraries, but programs linked with such libtool
7000 *** libraries will work regardless of this problem. Nevertheless, you
7001 *** may want to report the problem to your system manager and/or to
7002 *** bug-libtool@gnu.org
7012 MAGIC_CMD="$lt_save_MAGIC_CMD"
7017 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7018 if test -n "$MAGIC_CMD"; then
7019 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7020 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7022 { echo "$as_me:$LINENO: result: no" >&5
7023 echo "${ECHO_T}no" >&6; }
7026 if test -z "$lt_cv_path_MAGIC_CMD"; then
7027 if test -n "$ac_tool_prefix"; then
7028 { echo "$as_me:$LINENO: checking for file" >&5
7029 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7030 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7031 echo $ECHO_N "(cached) $ECHO_C" >&6
7035 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7038 lt_save_MAGIC_CMD="$MAGIC_CMD"
7039 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7040 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7041 for ac_dir in $ac_dummy; do
7043 test -z "$ac_dir" && ac_dir=.
7044 if test -f $ac_dir/file; then
7045 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7046 if test -n "$file_magic_test_file"; then
7047 case $deplibs_check_method in
7049 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7050 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7051 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7052 $EGREP "$file_magic_regex" > /dev/null; then
7057 *** Warning: the command libtool uses to detect shared libraries,
7058 *** $file_magic_cmd, produces output that libtool cannot recognize.
7059 *** The result is that libtool may fail to recognize shared libraries
7060 *** as such. This will affect the creation of libtool libraries that
7061 *** depend on shared libraries, but programs linked with such libtool
7062 *** libraries will work regardless of this problem. Nevertheless, you
7063 *** may want to report the problem to your system manager and/or to
7064 *** bug-libtool@gnu.org
7074 MAGIC_CMD="$lt_save_MAGIC_CMD"
7079 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7080 if test -n "$MAGIC_CMD"; then
7081 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7082 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7084 { echo "$as_me:$LINENO: result: no" >&5
7085 echo "${ECHO_T}no" >&6; }
7099 rhapsody* | darwin*)
7100 if test -n "$ac_tool_prefix"; then
7101 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7102 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7103 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7105 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7106 echo $ECHO_N "(cached) $ECHO_C" >&6
7108 if test -n "$DSYMUTIL"; then
7109 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7115 test -z "$as_dir" && as_dir=.
7116 for ac_exec_ext in '' $ac_executable_extensions; do
7117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7118 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7128 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7129 if test -n "$DSYMUTIL"; then
7130 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7131 echo "${ECHO_T}$DSYMUTIL" >&6; }
7133 { echo "$as_me:$LINENO: result: no" >&5
7134 echo "${ECHO_T}no" >&6; }
7139 if test -z "$ac_cv_prog_DSYMUTIL"; then
7140 ac_ct_DSYMUTIL=$DSYMUTIL
7141 # Extract the first word of "dsymutil", so it can be a program name with args.
7142 set dummy dsymutil; ac_word=$2
7143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7145 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7146 echo $ECHO_N "(cached) $ECHO_C" >&6
7148 if test -n "$ac_ct_DSYMUTIL"; then
7149 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7155 test -z "$as_dir" && as_dir=.
7156 for ac_exec_ext in '' $ac_executable_extensions; do
7157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7158 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7168 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7169 if test -n "$ac_ct_DSYMUTIL"; then
7170 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7171 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7173 { echo "$as_me:$LINENO: result: no" >&5
7174 echo "${ECHO_T}no" >&6; }
7177 if test "x$ac_ct_DSYMUTIL" = x; then
7180 case $cross_compiling:$ac_tool_warned in
7182 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7183 whose name does not start with the host triplet. If you think this
7184 configuration is useful to you, please write to autoconf@gnu.org." >&5
7185 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7186 whose name does not start with the host triplet. If you think this
7187 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7188 ac_tool_warned=yes ;;
7190 DSYMUTIL=$ac_ct_DSYMUTIL
7193 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7196 if test -n "$ac_tool_prefix"; then
7197 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7198 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7199 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7201 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7202 echo $ECHO_N "(cached) $ECHO_C" >&6
7204 if test -n "$NMEDIT"; then
7205 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7211 test -z "$as_dir" && as_dir=.
7212 for ac_exec_ext in '' $ac_executable_extensions; do
7213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7214 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7224 NMEDIT=$ac_cv_prog_NMEDIT
7225 if test -n "$NMEDIT"; then
7226 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7227 echo "${ECHO_T}$NMEDIT" >&6; }
7229 { echo "$as_me:$LINENO: result: no" >&5
7230 echo "${ECHO_T}no" >&6; }
7235 if test -z "$ac_cv_prog_NMEDIT"; then
7236 ac_ct_NMEDIT=$NMEDIT
7237 # Extract the first word of "nmedit", so it can be a program name with args.
7238 set dummy nmedit; ac_word=$2
7239 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7241 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7242 echo $ECHO_N "(cached) $ECHO_C" >&6
7244 if test -n "$ac_ct_NMEDIT"; then
7245 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7251 test -z "$as_dir" && as_dir=.
7252 for ac_exec_ext in '' $ac_executable_extensions; do
7253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7254 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7264 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7265 if test -n "$ac_ct_NMEDIT"; then
7266 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7267 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7269 { echo "$as_me:$LINENO: result: no" >&5
7270 echo "${ECHO_T}no" >&6; }
7273 if test "x$ac_ct_NMEDIT" = x; then
7276 case $cross_compiling:$ac_tool_warned in
7278 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7279 whose name does not start with the host triplet. If you think this
7280 configuration is useful to you, please write to autoconf@gnu.org." >&5
7281 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7282 whose name does not start with the host triplet. If you think this
7283 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7284 ac_tool_warned=yes ;;
7286 NMEDIT=$ac_ct_NMEDIT
7289 NMEDIT="$ac_cv_prog_NMEDIT"
7293 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7294 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7295 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7296 echo $ECHO_N "(cached) $ECHO_C" >&6
7298 lt_cv_apple_cc_single_mod=no
7299 if test -z "${LT_MULTI_MODULE}"; then
7300 # By default we will add the -single_module flag. You can override
7301 # by either setting the environment variable LT_MULTI_MODULE
7302 # non-empty at configure time, or by adding -multi_module to the
7304 echo "int foo(void){return 1;}" > conftest.c
7305 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7306 -dynamiclib ${wl}-single_module conftest.c
7307 if test -f libconftest.dylib; then
7308 lt_cv_apple_cc_single_mod=yes
7309 rm -rf libconftest.dylib*
7314 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7315 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7316 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7317 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7318 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7319 echo $ECHO_N "(cached) $ECHO_C" >&6
7321 lt_cv_ld_exported_symbols_list=no
7322 save_LDFLAGS=$LDFLAGS
7323 echo "_main" > conftest.sym
7324 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7325 cat >conftest.$ac_ext <<_ACEOF
7328 cat confdefs.h >>conftest.$ac_ext
7329 cat >>conftest.$ac_ext <<_ACEOF
7330 /* end confdefs.h. */
7340 rm -f conftest.$ac_objext conftest$ac_exeext
7341 if { (ac_try="$ac_link"
7343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7344 *) ac_try_echo=$ac_try;;
7346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7347 (eval "$ac_link") 2>conftest.er1
7349 grep -v '^ *+' conftest.er1 >conftest.err
7351 cat conftest.err >&5
7352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353 (exit $ac_status); } && {
7354 test -z "$ac_c_werror_flag" ||
7355 test ! -s conftest.err
7356 } && test -s conftest$ac_exeext &&
7357 $as_test_x conftest$ac_exeext; then
7358 lt_cv_ld_exported_symbols_list=yes
7360 echo "$as_me: failed program was:" >&5
7361 sed 's/^/| /' conftest.$ac_ext >&5
7363 lt_cv_ld_exported_symbols_list=no
7366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7367 conftest$ac_exeext conftest.$ac_ext
7368 LDFLAGS="$save_LDFLAGS"
7371 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7372 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7374 rhapsody* | darwin1.[0123])
7375 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7377 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7379 # if running on 10.5 or later, the deployment target defaults
7380 # to the OS version, if on x86, and 10.4, the deployment
7381 # target defaults to 10.4. Don't you love it?
7382 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7383 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7384 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7386 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7388 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7392 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7393 _lt_dar_single_mod='$single_module'
7395 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7396 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7398 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7400 if test "$DSYMUTIL" != ":"; then
7401 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7412 # Check whether --enable-libtool-lock was given.
7413 if test "${enable_libtool_lock+set}" = set; then
7414 enableval=$enable_libtool_lock;
7417 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7420 # Check whether --with-pic was given.
7421 if test "${with_pic+set}" = set; then
7422 withval=$with_pic; pic_mode="$withval"
7427 test -z "$pic_mode" && pic_mode=default
7429 # Use C for the default configuration in the libtool script
7433 ac_cpp='$CPP $CPPFLAGS'
7434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7439 # Source file extension for C test sources.
7442 # Object file extension for compiled C test sources.
7446 # Code to be used in simple compile tests
7447 lt_simple_compile_test_code="int some_variable = 0;"
7449 # Code to be used in simple link tests
7450 lt_simple_link_test_code='int main(){return(0);}'
7453 # If no C compiler was specified, use CC.
7456 # If no C compiler flags were specified, use CFLAGS.
7457 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7459 # Allow CC to be a program name with arguments.
7463 # save warnings/boilerplate of simple test code
7464 ac_outfile=conftest.$ac_objext
7465 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7466 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7467 _lt_compiler_boilerplate=`cat conftest.err`
7470 ac_outfile=conftest.$ac_objext
7471 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7472 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7473 _lt_linker_boilerplate=`cat conftest.err`
7478 lt_prog_compiler_no_builtin_flag=
7480 if test "$GCC" = yes; then
7481 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7484 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7485 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7486 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7487 echo $ECHO_N "(cached) $ECHO_C" >&6
7489 lt_cv_prog_compiler_rtti_exceptions=no
7490 ac_outfile=conftest.$ac_objext
7491 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7492 lt_compiler_flag="-fno-rtti -fno-exceptions"
7493 # Insert the option either (1) after the last *FLAGS variable, or
7494 # (2) before a word containing "conftest.", or (3) at the end.
7495 # Note that $ac_compile itself does not contain backslashes and begins
7496 # with a dollar sign (not a hyphen), so the echo should work correctly.
7497 # The option is referenced via a variable to avoid confusing sed.
7498 lt_compile=`echo "$ac_compile" | $SED \
7499 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7500 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7501 -e 's:$: $lt_compiler_flag:'`
7502 (eval echo "\"\$as_me:7502: $lt_compile\"" >&5)
7503 (eval "$lt_compile" 2>conftest.err)
7505 cat conftest.err >&5
7506 echo "$as_me:7506: \$? = $ac_status" >&5
7507 if (exit $ac_status) && test -s "$ac_outfile"; then
7508 # The compiler can only warn and ignore the option if not recognized
7509 # So say no if there are warnings other than the usual output.
7510 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7511 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7512 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7513 lt_cv_prog_compiler_rtti_exceptions=yes
7519 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7520 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7522 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7523 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7530 lt_prog_compiler_wl=
7531 lt_prog_compiler_pic=
7532 lt_prog_compiler_static=
7534 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7535 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7537 if test "$GCC" = yes; then
7538 lt_prog_compiler_wl='-Wl,'
7539 lt_prog_compiler_static='-static'
7543 # All AIX code is PIC.
7544 if test "$host_cpu" = ia64; then
7545 # AIX 5 now supports IA64 processor
7546 lt_prog_compiler_static='-Bstatic'
7551 # FIXME: we need at least 68020 code to build shared libraries, but
7552 # adding the `-m68020' flag to GCC prevents building anything better,
7554 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7557 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7558 # PIC is the default for these OSes.
7561 mingw* | cygwin* | pw32* | os2*)
7562 # This hack is so that the source file can tell whether it is being
7563 # built for inclusion in a dll (and should export symbols for example).
7564 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7565 # (--disable-auto-import) libraries
7566 lt_prog_compiler_pic='-DDLL_EXPORT'
7569 darwin* | rhapsody*)
7570 # PIC is the default on this platform
7571 # Common symbols not allowed in MH_DYLIB files
7572 lt_prog_compiler_pic='-fno-common'
7576 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7577 # Instead, we relocate shared libraries at runtime.
7581 # Just because we use GCC doesn't mean we suddenly get shared libraries
7582 # on systems that don't support them.
7583 lt_prog_compiler_can_build_shared=no
7588 if test -d /usr/nec; then
7589 lt_prog_compiler_pic=-Kconform_pic
7594 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7601 lt_prog_compiler_pic='-fPIC'
7607 lt_prog_compiler_pic='-fPIC'
7611 # PORTME Check for flag to pass linker flags through the system compiler.
7614 lt_prog_compiler_wl='-Wl,'
7615 if test "$host_cpu" = ia64; then
7616 # AIX 5 now supports IA64 processor
7617 lt_prog_compiler_static='-Bstatic'
7619 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7623 # PIC is the default on this platform
7624 # Common symbols not allowed in MH_DYLIB files
7625 case $cc_basename in
7627 lt_prog_compiler_pic='-qnocommon'
7628 lt_prog_compiler_wl='-Wl,'
7633 mingw* | cygwin* | pw32* | os2*)
7634 # This hack is so that the source file can tell whether it is being
7635 # built for inclusion in a dll (and should export symbols for example).
7636 lt_prog_compiler_pic='-DDLL_EXPORT'
7639 hpux9* | hpux10* | hpux11*)
7640 lt_prog_compiler_wl='-Wl,'
7641 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7648 lt_prog_compiler_pic='+Z'
7651 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7652 lt_prog_compiler_static='${wl}-a ${wl}archive'
7655 irix5* | irix6* | nonstopux*)
7656 lt_prog_compiler_wl='-Wl,'
7657 # PIC (with -KPIC) is the default.
7658 lt_prog_compiler_static='-non_shared'
7662 lt_prog_compiler_pic='-KPIC'
7663 lt_prog_compiler_static='-Bstatic'
7666 linux* | k*bsd*-gnu)
7667 case $cc_basename in
7669 lt_prog_compiler_wl='-Wl,'
7670 lt_prog_compiler_pic='-KPIC'
7671 lt_prog_compiler_static='-static'
7673 pgcc* | pgf77* | pgf90* | pgf95*)
7674 # Portland Group compilers (*not* the Pentium gcc compiler,
7675 # which looks to be a dead project)
7676 lt_prog_compiler_wl='-Wl,'
7677 lt_prog_compiler_pic='-fpic'
7678 lt_prog_compiler_static='-Bstatic'
7681 lt_prog_compiler_wl='-Wl,'
7682 # All Alpha code is PIC.
7683 lt_prog_compiler_static='-non_shared'
7686 case `$CC -V 2>&1 | sed 5q` in
7689 lt_prog_compiler_pic='-KPIC'
7690 lt_prog_compiler_static='-Bstatic'
7691 lt_prog_compiler_wl='-Wl,'
7694 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7695 lt_prog_compiler_pic='-KPIC'
7696 lt_prog_compiler_static='-Bstatic'
7697 lt_prog_compiler_wl=''
7704 osf3* | osf4* | osf5*)
7705 lt_prog_compiler_wl='-Wl,'
7706 # All OSF/1 code is PIC.
7707 lt_prog_compiler_static='-non_shared'
7711 lt_prog_compiler_static='-non_shared'
7715 lt_prog_compiler_pic='-KPIC'
7716 lt_prog_compiler_static='-Bstatic'
7717 case $cc_basename in
7719 lt_prog_compiler_wl='-Qoption ld ';;
7721 lt_prog_compiler_wl='-Wl,';;
7726 lt_prog_compiler_wl='-Qoption ld '
7727 lt_prog_compiler_pic='-PIC'
7728 lt_prog_compiler_static='-Bstatic'
7731 sysv4 | sysv4.2uw2* | sysv4.3*)
7732 lt_prog_compiler_wl='-Wl,'
7733 lt_prog_compiler_pic='-KPIC'
7734 lt_prog_compiler_static='-Bstatic'
7738 if test -d /usr/nec ;then
7739 lt_prog_compiler_pic='-Kconform_pic'
7740 lt_prog_compiler_static='-Bstatic'
7744 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7745 lt_prog_compiler_wl='-Wl,'
7746 lt_prog_compiler_pic='-KPIC'
7747 lt_prog_compiler_static='-Bstatic'
7751 lt_prog_compiler_wl='-Wl,'
7752 lt_prog_compiler_can_build_shared=no
7756 lt_prog_compiler_pic='-pic'
7757 lt_prog_compiler_static='-Bstatic'
7761 lt_prog_compiler_can_build_shared=no
7766 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7767 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7770 # Check to make sure the PIC flag actually works.
7772 if test -n "$lt_prog_compiler_pic"; then
7774 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7775 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7776 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7777 echo $ECHO_N "(cached) $ECHO_C" >&6
7779 lt_cv_prog_compiler_pic_works=no
7780 ac_outfile=conftest.$ac_objext
7781 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7782 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7783 # Insert the option either (1) after the last *FLAGS variable, or
7784 # (2) before a word containing "conftest.", or (3) at the end.
7785 # Note that $ac_compile itself does not contain backslashes and begins
7786 # with a dollar sign (not a hyphen), so the echo should work correctly.
7787 # The option is referenced via a variable to avoid confusing sed.
7788 lt_compile=`echo "$ac_compile" | $SED \
7789 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7790 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7791 -e 's:$: $lt_compiler_flag:'`
7792 (eval echo "\"\$as_me:7792: $lt_compile\"" >&5)
7793 (eval "$lt_compile" 2>conftest.err)
7795 cat conftest.err >&5
7796 echo "$as_me:7796: \$? = $ac_status" >&5
7797 if (exit $ac_status) && test -s "$ac_outfile"; then
7798 # The compiler can only warn and ignore the option if not recognized
7799 # So say no if there are warnings other than the usual output.
7800 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7801 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7802 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7803 lt_cv_prog_compiler_pic_works=yes
7809 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7810 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7812 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7813 case $lt_prog_compiler_pic in
7815 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7818 lt_prog_compiler_pic=
7819 lt_prog_compiler_can_build_shared=no
7824 # For platforms which do not support PIC, -DPIC is meaningless:
7826 lt_prog_compiler_pic=
7829 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7834 # Check to make sure the static flag actually works.
7836 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7837 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7838 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7839 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7840 echo $ECHO_N "(cached) $ECHO_C" >&6
7842 lt_cv_prog_compiler_static_works=no
7843 save_LDFLAGS="$LDFLAGS"
7844 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7845 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7846 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7847 # The linker can only warn and ignore the option if not recognized
7848 # So say no if there are warnings
7849 if test -s conftest.err; then
7850 # Append any errors to the config.log.
7851 cat conftest.err 1>&5
7852 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7853 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7854 if diff conftest.exp conftest.er2 >/dev/null; then
7855 lt_cv_prog_compiler_static_works=yes
7858 lt_cv_prog_compiler_static_works=yes
7862 LDFLAGS="$save_LDFLAGS"
7865 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7866 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7868 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7871 lt_prog_compiler_static=
7875 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7876 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7877 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7878 echo $ECHO_N "(cached) $ECHO_C" >&6
7880 lt_cv_prog_compiler_c_o=no
7881 $rm -r conftest 2>/dev/null
7885 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7887 lt_compiler_flag="-o out/conftest2.$ac_objext"
7888 # Insert the option either (1) after the last *FLAGS variable, or
7889 # (2) before a word containing "conftest.", or (3) at the end.
7890 # Note that $ac_compile itself does not contain backslashes and begins
7891 # with a dollar sign (not a hyphen), so the echo should work correctly.
7892 lt_compile=`echo "$ac_compile" | $SED \
7893 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7894 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7895 -e 's:$: $lt_compiler_flag:'`
7896 (eval echo "\"\$as_me:7896: $lt_compile\"" >&5)
7897 (eval "$lt_compile" 2>out/conftest.err)
7899 cat out/conftest.err >&5
7900 echo "$as_me:7900: \$? = $ac_status" >&5
7901 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7903 # The compiler can only warn and ignore the option if not recognized
7904 # So say no if there are warnings
7905 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7906 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7907 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7908 lt_cv_prog_compiler_c_o=yes
7913 # SGI C++ compiler will create directory out/ii_files/ for
7914 # template instantiation
7915 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7916 $rm out/* && rmdir out
7922 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7923 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7926 hard_links="nottested"
7927 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7928 # do not overwrite the value of need_locks provided by the user
7929 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7930 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7933 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7935 ln conftest.a conftest.b 2>&5 || hard_links=no
7936 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7937 { echo "$as_me:$LINENO: result: $hard_links" >&5
7938 echo "${ECHO_T}$hard_links" >&6; }
7939 if test "$hard_links" = no; then
7940 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7941 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7948 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7949 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7952 allow_undefined_flag=
7953 enable_shared_with_static_runtimes=no
7955 archive_expsym_cmds=
7956 old_archive_From_new_cmds=
7957 old_archive_from_expsyms_cmds=
7958 export_dynamic_flag_spec=
7959 whole_archive_flag_spec=
7960 thread_safe_flag_spec=
7961 hardcode_libdir_flag_spec=
7962 hardcode_libdir_flag_spec_ld=
7963 hardcode_libdir_separator=
7966 hardcode_shlibpath_var=unsupported
7967 link_all_deplibs=unknown
7968 hardcode_automatic=no
7971 always_export_symbols=no
7972 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7973 # include_expsyms should be a list of space-separated symbols to be *always*
7974 # included in the symbol list
7976 # exclude_expsyms can be an extended regexp of symbols to exclude
7977 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7978 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7979 # as well as any symbol that contains `d'.
7980 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7981 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7982 # platforms (ab)use it in PIC code, but their linkers get confused if
7983 # the symbol is explicitly referenced. Since portable code cannot
7984 # rely on this symbol name, it's probably fine to never include it in
7985 # preloaded symbol tables.
7986 # Exclude shared library initialization/finalization symbols.
7987 extract_expsyms_cmds=
7988 # Just being paranoid about ensuring that cc_basename is set.
7989 for cc_temp in $compiler""; do
7991 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7992 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7997 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8000 cygwin* | mingw* | pw32*)
8001 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8002 # When not using gcc, we currently assume that we are using
8003 # Microsoft Visual C++.
8004 if test "$GCC" != yes; then
8009 # we just hope/assume this is gcc and not c89 (= MSVC++)
8018 if test "$with_gnu_ld" = yes; then
8019 # If archive_cmds runs LD, not CC, wlarc should be empty
8022 # Set some defaults for GNU ld with shared library support. These
8023 # are reset later if shared libraries are not supported. Putting them
8024 # here allows them to be overridden if necessary.
8025 runpath_var=LD_RUN_PATH
8026 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8027 export_dynamic_flag_spec='${wl}--export-dynamic'
8028 # ancient GNU ld didn't support --whole-archive et. al.
8029 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8030 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8032 whole_archive_flag_spec=
8034 supports_anon_versioning=no
8035 case `$LD -v 2>/dev/null` in
8036 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8037 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8038 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8039 *\ 2.11.*) ;; # other 2.11 versions
8040 *) supports_anon_versioning=yes ;;
8043 # See if GNU ld supports shared libraries.
8046 # On AIX/PPC, the GNU linker is very broken
8047 if test "$host_cpu" != ia64; then
8051 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8052 *** to be unable to reliably create shared libraries on AIX.
8053 *** Therefore, libtool is disabling shared libraries support. If you
8054 *** really care for shared libraries, you may want to modify your PATH
8055 *** so that a non-GNU linker is found, and then restart.
8062 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)'
8063 hardcode_libdir_flag_spec='-L$libdir'
8064 hardcode_minus_L=yes
8066 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8067 # that the semantics of dynamic libraries on AmigaOS, at least up
8068 # to version 4, is to share data among multiple programs linked
8069 # with the same dynamic library. Since this doesn't match the
8070 # behavior of shared libraries on other platforms, we can't use
8076 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8077 allow_undefined_flag=unsupported
8078 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8079 # support --undefined. This deserves some investigation. FIXME
8080 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8086 cygwin* | mingw* | pw32*)
8087 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8088 # as there is no search path for DLLs.
8089 hardcode_libdir_flag_spec='-L$libdir'
8090 allow_undefined_flag=unsupported
8091 always_export_symbols=no
8092 enable_shared_with_static_runtimes=yes
8093 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8095 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8096 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8097 # If the export-symbols file already is a .def file (1st line
8098 # is EXPORTS), use it as is; otherwise, prepend...
8099 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8100 cp $export_symbols $output_objdir/$soname.def;
8102 echo EXPORTS > $output_objdir/$soname.def;
8103 cat $export_symbols >> $output_objdir/$soname.def;
8105 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8113 hardcode_shlibpath_var=no
8114 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8115 export_dynamic_flag_spec='${wl}-E'
8116 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8117 # Instead, shared libraries are loaded at an image base (0x10000000 by
8118 # default) and relocated if they conflict, which is a slow very memory
8119 # consuming and fragmenting process. To avoid this, we pick a random,
8120 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8121 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8122 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8123 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'
8126 gnu* | linux* | k*bsd*-gnu)
8127 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8129 case $cc_basename,$host_cpu in
8130 pgcc*) # Portland Group C compiler
8131 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'
8132 tmp_addflag=' $pic_flag'
8134 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8135 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'
8136 tmp_addflag=' $pic_flag -Mnomain' ;;
8137 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8138 tmp_addflag=' -i_dynamic' ;;
8139 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8140 tmp_addflag=' -i_dynamic -nofor_main' ;;
8141 ifc* | ifort*) # Intel Fortran compiler
8142 tmp_addflag=' -nofor_main' ;;
8144 case `$CC -V 2>&1 | sed 5q` in
8145 *Sun\ C*) # Sun C 5.9
8146 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'
8147 tmp_sharedflag='-G' ;;
8148 *Sun\ F*) # Sun Fortran 8.3
8149 tmp_sharedflag='-G' ;;
8151 tmp_sharedflag='-shared' ;;
8153 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8155 if test $supports_anon_versioning = yes; then
8156 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8157 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8158 $echo "local: *; };" >> $output_objdir/$libname.ver~
8159 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8167 netbsd* | netbsdelf*-gnu)
8168 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8169 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8172 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8173 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8178 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8182 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8183 *** create shared libraries on Solaris systems. Therefore, libtool
8184 *** is disabling shared libraries support. We urge you to upgrade GNU
8185 *** binutils to release 2.9.1 or newer. Another option is to modify
8186 *** your PATH or compiler configuration so that the native linker is
8187 *** used, and then restart.
8190 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8191 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8192 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8198 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8199 case `$LD -v 2>&1` in
8200 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8204 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8205 *** reliably create shared libraries on SCO systems. Therefore, libtool
8206 *** is disabling shared libraries support. We urge you to upgrade GNU
8207 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8208 *** your PATH or compiler configuration so that the native linker is
8209 *** used, and then restart.
8214 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8215 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8216 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8217 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8226 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8229 hardcode_shlibpath_var=no
8233 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8234 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8235 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8242 if test "$ld_shlibs" = no; then
8244 hardcode_libdir_flag_spec=
8245 export_dynamic_flag_spec=
8246 whole_archive_flag_spec=
8249 # PORTME fill in a description of your system's linker (not GNU ld)
8252 allow_undefined_flag=unsupported
8253 always_export_symbols=yes
8254 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'
8255 # Note: this linker hardcodes the directories in LIBPATH if there
8256 # are no directories specified by -L.
8257 hardcode_minus_L=yes
8258 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8259 # Neither direct hardcoding nor static linking is supported with a
8261 hardcode_direct=unsupported
8266 if test "$host_cpu" = ia64; then
8267 # On IA64, the linker does run time linking by default, so we don't
8268 # have to do anything special.
8269 aix_use_runtimelinking=no
8270 exp_sym_flag='-Bexport'
8273 # If we're using GNU nm, then we don't want the "-C" option.
8274 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8275 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8276 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'
8278 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'
8280 aix_use_runtimelinking=no
8282 # Test if we are trying to use run time linking or normal
8283 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8284 # need to do runtime linking.
8285 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8286 for ld_flag in $LDFLAGS; do
8287 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8288 aix_use_runtimelinking=yes
8295 exp_sym_flag='-bexport'
8296 no_entry_flag='-bnoentry'
8299 # When large executables or shared objects are built, AIX ld can
8300 # have problems creating the table of contents. If linking a library
8301 # or program results in "error TOC overflow" add -mminimal-toc to
8302 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8303 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8307 hardcode_libdir_separator=':'
8308 link_all_deplibs=yes
8310 if test "$GCC" = yes; then
8311 case $host_os in aix4.[012]|aix4.[012].*)
8312 # We only want to do this on AIX 4.2 and lower, the check
8313 # below for broken collect2 doesn't work under 4.3+
8314 collect2name=`${CC} -print-prog-name=collect2`
8315 if test -f "$collect2name" && \
8316 strings "$collect2name" | grep resolve_lib_name >/dev/null
8318 # We have reworked collect2
8321 # We have old collect2
8322 hardcode_direct=unsupported
8323 # It fails to find uninstalled libraries when the uninstalled
8324 # path is not listed in the libpath. Setting hardcode_minus_L
8325 # to unsupported forces relinking
8326 hardcode_minus_L=yes
8327 hardcode_libdir_flag_spec='-L$libdir'
8328 hardcode_libdir_separator=
8332 shared_flag='-shared'
8333 if test "$aix_use_runtimelinking" = yes; then
8334 shared_flag="$shared_flag "'${wl}-G'
8338 if test "$host_cpu" = ia64; then
8339 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8340 # chokes on -Wl,-G. The following line is correct:
8343 if test "$aix_use_runtimelinking" = yes; then
8344 shared_flag='${wl}-G'
8346 shared_flag='${wl}-bM:SRE'
8351 # It seems that -bexpall does not export symbols beginning with
8352 # underscore (_), so it is better to generate a list of symbols to export.
8353 always_export_symbols=yes
8354 if test "$aix_use_runtimelinking" = yes; then
8355 # Warning - without using the other runtime loading flags (-brtl),
8356 # -berok will link without error, but may produce a broken library.
8357 allow_undefined_flag='-berok'
8358 # Determine the default libpath from the value encoded in an empty executable.
8359 cat >conftest.$ac_ext <<_ACEOF
8362 cat confdefs.h >>conftest.$ac_ext
8363 cat >>conftest.$ac_ext <<_ACEOF
8364 /* end confdefs.h. */
8374 rm -f conftest.$ac_objext conftest$ac_exeext
8375 if { (ac_try="$ac_link"
8377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8378 *) ac_try_echo=$ac_try;;
8380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8381 (eval "$ac_link") 2>conftest.er1
8383 grep -v '^ *+' conftest.er1 >conftest.err
8385 cat conftest.err >&5
8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 (exit $ac_status); } && {
8388 test -z "$ac_c_werror_flag" ||
8389 test ! -s conftest.err
8390 } && test -s conftest$ac_exeext &&
8391 $as_test_x conftest$ac_exeext; then
8393 lt_aix_libpath_sed='
8394 /Import File Strings/,/^$/ {
8400 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8401 # Check for a 64-bit object if we didn't find anything.
8402 if test -z "$aix_libpath"; then
8403 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8406 echo "$as_me: failed program was:" >&5
8407 sed 's/^/| /' conftest.$ac_ext >&5
8412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8413 conftest$ac_exeext conftest.$ac_ext
8414 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8416 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8417 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"
8419 if test "$host_cpu" = ia64; then
8420 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8421 allow_undefined_flag="-z nodefs"
8422 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"
8424 # Determine the default libpath from the value encoded in an empty executable.
8425 cat >conftest.$ac_ext <<_ACEOF
8428 cat confdefs.h >>conftest.$ac_ext
8429 cat >>conftest.$ac_ext <<_ACEOF
8430 /* end confdefs.h. */
8440 rm -f conftest.$ac_objext conftest$ac_exeext
8441 if { (ac_try="$ac_link"
8443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8444 *) ac_try_echo=$ac_try;;
8446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8447 (eval "$ac_link") 2>conftest.er1
8449 grep -v '^ *+' conftest.er1 >conftest.err
8451 cat conftest.err >&5
8452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453 (exit $ac_status); } && {
8454 test -z "$ac_c_werror_flag" ||
8455 test ! -s conftest.err
8456 } && test -s conftest$ac_exeext &&
8457 $as_test_x conftest$ac_exeext; then
8459 lt_aix_libpath_sed='
8460 /Import File Strings/,/^$/ {
8466 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8467 # Check for a 64-bit object if we didn't find anything.
8468 if test -z "$aix_libpath"; then
8469 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8472 echo "$as_me: failed program was:" >&5
8473 sed 's/^/| /' conftest.$ac_ext >&5
8478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8479 conftest$ac_exeext conftest.$ac_ext
8480 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8482 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8483 # Warning - without using the other run time loading flags,
8484 # -berok will link without error, but may produce a broken library.
8485 no_undefined_flag=' ${wl}-bernotok'
8486 allow_undefined_flag=' ${wl}-berok'
8487 # Exported symbols can be pulled into shared objects from archives
8488 whole_archive_flag_spec='$convenience'
8489 archive_cmds_need_lc=yes
8490 # This is similar to how AIX traditionally builds its shared libraries.
8491 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'
8497 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)'
8498 hardcode_libdir_flag_spec='-L$libdir'
8499 hardcode_minus_L=yes
8500 # see comment about different semantics on the GNU ld section
8505 export_dynamic_flag_spec=-rdynamic
8508 cygwin* | mingw* | pw32*)
8509 # When not using gcc, we currently assume that we are using
8510 # Microsoft Visual C++.
8511 # hardcode_libdir_flag_spec is actually meaningless, as there is
8512 # no search path for DLLs.
8513 hardcode_libdir_flag_spec=' '
8514 allow_undefined_flag=unsupported
8515 # Tell ltmain to make .lib files, not .a files.
8517 # Tell ltmain to make .dll files, not .so files.
8519 # FIXME: Setting linknames here is a bad hack.
8520 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8521 # The linker will automatically build a .lib file if we build a DLL.
8522 old_archive_From_new_cmds='true'
8523 # FIXME: Should let the user specify the lib program.
8524 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8525 fix_srcfile_path='`cygpath -w "$srcfile"`'
8526 enable_shared_with_static_runtimes=yes
8529 darwin* | rhapsody*)
8531 rhapsody* | darwin1.[012])
8532 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8535 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8536 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8538 case ${MACOSX_DEPLOYMENT_TARGET} in
8540 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8543 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8549 archive_cmds_need_lc=no
8551 hardcode_automatic=yes
8552 hardcode_shlibpath_var=unsupported
8553 whole_archive_flag_spec=''
8554 link_all_deplibs=yes
8555 if test "$GCC" = yes ; then
8556 output_verbose_link_cmd='echo'
8557 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8558 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8559 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}"
8560 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}"
8562 case $cc_basename in
8564 output_verbose_link_cmd='echo'
8565 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8566 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8567 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8568 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}'
8569 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}'
8579 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8580 hardcode_libdir_flag_spec='-L$libdir'
8581 hardcode_shlibpath_var=no
8588 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8589 # support. Future versions do this automatically, but an explicit c++rt0.o
8590 # does not break anything, and helps significantly (at the cost of a little
8593 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8594 hardcode_libdir_flag_spec='-R$libdir'
8596 hardcode_shlibpath_var=no
8599 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8601 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8603 hardcode_minus_L=yes
8604 hardcode_shlibpath_var=no
8607 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8608 freebsd* | dragonfly*)
8609 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8610 hardcode_libdir_flag_spec='-R$libdir'
8612 hardcode_shlibpath_var=no
8616 if test "$GCC" = yes; then
8617 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'
8619 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'
8621 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8622 hardcode_libdir_separator=:
8625 # hardcode_minus_L: Not really in the search PATH,
8626 # but as the default location of the library.
8627 hardcode_minus_L=yes
8628 export_dynamic_flag_spec='${wl}-E'
8632 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8633 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8635 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8637 if test "$with_gnu_ld" = no; then
8638 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8639 hardcode_libdir_separator=:
8642 export_dynamic_flag_spec='${wl}-E'
8644 # hardcode_minus_L: Not really in the search PATH,
8645 # but as the default location of the library.
8646 hardcode_minus_L=yes
8651 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8654 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8657 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8660 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8666 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8669 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8672 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8676 if test "$with_gnu_ld" = no; then
8677 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8678 hardcode_libdir_separator=:
8682 hardcode_libdir_flag_spec_ld='+b $libdir'
8684 hardcode_shlibpath_var=no
8688 export_dynamic_flag_spec='${wl}-E'
8690 # hardcode_minus_L: Not really in the search PATH,
8691 # but as the default location of the library.
8692 hardcode_minus_L=yes
8698 irix5* | irix6* | nonstopux*)
8699 if test "$GCC" = yes; then
8700 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'
8702 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'
8703 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8705 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8706 hardcode_libdir_separator=:
8707 link_all_deplibs=yes
8710 netbsd* | netbsdelf*-gnu)
8711 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8712 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8714 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8716 hardcode_libdir_flag_spec='-R$libdir'
8718 hardcode_shlibpath_var=no
8722 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8724 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8725 hardcode_libdir_separator=:
8726 hardcode_shlibpath_var=no
8730 if test -f /usr/libexec/ld.so; then
8732 hardcode_shlibpath_var=no
8733 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8734 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8735 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8736 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8737 export_dynamic_flag_spec='${wl}-E'
8740 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8741 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8742 hardcode_libdir_flag_spec='-R$libdir'
8745 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8746 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8756 hardcode_libdir_flag_spec='-L$libdir'
8757 hardcode_minus_L=yes
8758 allow_undefined_flag=unsupported
8759 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'
8760 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8764 if test "$GCC" = yes; then
8765 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8766 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'
8768 allow_undefined_flag=' -expect_unresolved \*'
8769 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'
8771 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8772 hardcode_libdir_separator=:
8775 osf4* | osf5*) # as osf3* with the addition of -msym flag
8776 if test "$GCC" = yes; then
8777 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8778 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'
8779 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8781 allow_undefined_flag=' -expect_unresolved \*'
8782 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'
8783 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8784 $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'
8786 # Both c and cxx compiler support -rpath directly
8787 hardcode_libdir_flag_spec='-rpath $libdir'
8789 hardcode_libdir_separator=:
8793 no_undefined_flag=' -z text'
8794 if test "$GCC" = yes; then
8796 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8797 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8798 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8801 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8802 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8803 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8805 hardcode_libdir_flag_spec='-R$libdir'
8806 hardcode_shlibpath_var=no
8808 solaris2.[0-5] | solaris2.[0-5].*) ;;
8810 # The compiler driver will combine and reorder linker options,
8811 # but understands `-z linker_flag'. GCC discards it without `$wl',
8812 # but is careful enough not to reorder.
8813 # Supported since Solaris 2.6 (maybe 2.5.1?)
8814 if test "$GCC" = yes; then
8815 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8817 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8821 link_all_deplibs=yes
8825 if test "x$host_vendor" = xsequent; then
8826 # Use $CC to link under sequent, because it throws in some extra .o
8827 # files that make .init and .fini sections work.
8828 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8830 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8832 hardcode_libdir_flag_spec='-L$libdir'
8834 hardcode_minus_L=yes
8835 hardcode_shlibpath_var=no
8839 case $host_vendor in
8841 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8842 hardcode_direct=yes # is this really true???
8845 ## LD is ld it makes a PLAMLIB
8846 ## CC just makes a GrossModule.
8847 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8848 reload_cmds='$CC -r -o $output$reload_objs'
8852 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8853 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8856 runpath_var='LD_RUN_PATH'
8857 hardcode_shlibpath_var=no
8861 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8862 hardcode_shlibpath_var=no
8863 export_dynamic_flag_spec='-Bexport'
8867 if test -d /usr/nec; then
8868 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8869 hardcode_shlibpath_var=no
8870 runpath_var=LD_RUN_PATH
8871 hardcode_runpath_var=yes
8876 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8877 no_undefined_flag='${wl}-z,text'
8878 archive_cmds_need_lc=no
8879 hardcode_shlibpath_var=no
8880 runpath_var='LD_RUN_PATH'
8882 if test "$GCC" = yes; then
8883 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8884 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8886 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8887 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8891 sysv5* | sco3.2v5* | sco5v6*)
8892 # Note: We can NOT use -z defs as we might desire, because we do not
8893 # link with -lc, and that would cause any symbols used from libc to
8894 # always be unresolved, which means just about no library would
8895 # ever link correctly. If we're not using GNU ld we use -z text
8896 # though, which does catch some bad symbols but isn't as heavy-handed
8898 no_undefined_flag='${wl}-z,text'
8899 allow_undefined_flag='${wl}-z,nodefs'
8900 archive_cmds_need_lc=no
8901 hardcode_shlibpath_var=no
8902 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8903 hardcode_libdir_separator=':'
8904 link_all_deplibs=yes
8905 export_dynamic_flag_spec='${wl}-Bexport'
8906 runpath_var='LD_RUN_PATH'
8908 if test "$GCC" = yes; then
8909 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8910 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8912 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8913 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8918 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8919 hardcode_libdir_flag_spec='-L$libdir'
8920 hardcode_shlibpath_var=no
8929 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8930 echo "${ECHO_T}$ld_shlibs" >&6; }
8931 test "$ld_shlibs" = no && can_build_shared=no
8934 # Do we need to explicitly link libc?
8936 case "x$archive_cmds_need_lc" in
8938 # Assume -lc should be added
8939 archive_cmds_need_lc=yes
8941 if test "$enable_shared" = yes && test "$GCC" = yes; then
8942 case $archive_cmds in
8944 # FIXME: we may have to deal with multi-command sequences.
8947 # Test whether the compiler implicitly links with -lc since on some
8948 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8949 # to ld, don't add -lc before -lgcc.
8950 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8951 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8953 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8956 (eval $ac_compile) 2>&5
8958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959 (exit $ac_status); } 2>conftest.err; then
8962 libobjs=conftest.$ac_objext
8964 wl=$lt_prog_compiler_wl
8965 pic_flag=$lt_prog_compiler_pic
8971 lt_save_allow_undefined_flag=$allow_undefined_flag
8972 allow_undefined_flag=
8973 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8974 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977 (exit $ac_status); }
8979 archive_cmds_need_lc=no
8981 archive_cmds_need_lc=yes
8983 allow_undefined_flag=$lt_save_allow_undefined_flag
8985 cat conftest.err 1>&5
8988 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8989 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8996 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8997 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8999 libname_spec='lib$name'
9007 shlibpath_overrides_runpath=unknown
9009 dynamic_linker="$host_os ld.so"
9010 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9012 if test "$GCC" = yes; then
9014 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9015 *) lt_awk_arg="/^libraries:/" ;;
9017 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9018 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9019 # if the path contains ";" then we assume it to be the separator
9020 # otherwise default to the standard path separator (i.e. ":") - it is
9021 # assumed that no part of a normal pathname contains ";" but that should
9022 # okay in the real world where ";" in dirpaths is itself problematic.
9023 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9025 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9027 # Ok, now we have the path, separated by spaces, we can step through it
9028 # and add multilib dir if necessary.
9029 lt_tmp_lt_search_path_spec=
9030 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9031 for lt_sys_path in $lt_search_path_spec; do
9032 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9033 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9035 test -d "$lt_sys_path" && \
9036 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9039 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9040 BEGIN {RS=" "; FS="/|\n";} {
9043 for (lt_i = NF; lt_i > 0; lt_i--) {
9044 if ($lt_i != "" && $lt_i != ".") {
9045 if ($lt_i == "..") {
9048 if (lt_count == 0) {
9049 lt_foo="/" $lt_i lt_foo;
9056 if (lt_foo != "") { lt_freq[lt_foo]++; }
9057 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9059 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9061 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9063 need_lib_prefix=unknown
9064 hardcode_into_libs=no
9066 # when you set need_version to no, make sure it does not cause -set_version
9067 # flags to be left without arguments
9068 need_version=unknown
9073 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9074 shlibpath_var=LIBPATH
9076 # AIX 3 has no versioning support, so we append a major version to the name.
9077 soname_spec='${libname}${release}${shared_ext}$major'
9084 hardcode_into_libs=yes
9085 if test "$host_cpu" = ia64; then
9086 # AIX 5 supports IA64
9087 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9088 shlibpath_var=LD_LIBRARY_PATH
9090 # With GCC up to 2.95.x, collect2 would create an import file
9091 # for dependence libraries. The import file would start with
9092 # the line `#! .'. This would cause the generated library to
9093 # depend on `.', always an invalid library. This was fixed in
9094 # development snapshots of GCC prior to 3.0.
9096 aix4 | aix4.[01] | aix4.[01].*)
9097 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9099 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9106 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9107 # soname into executable. Probably we can add versioning support to
9108 # collect2, so additional links can be useful in future.
9109 if test "$aix_use_runtimelinking" = yes; then
9110 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9111 # instead of lib<name>.a to let people know that these are not
9112 # typical AIX shared libraries.
9113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9115 # We preserve .a as extension for shared libraries through AIX4.2
9116 # and later when we are not doing run time linking.
9117 library_names_spec='${libname}${release}.a $libname.a'
9118 soname_spec='${libname}${release}${shared_ext}$major'
9120 shlibpath_var=LIBPATH
9125 library_names_spec='$libname.ixlibrary $libname.a'
9126 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9127 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'
9131 library_names_spec='${libname}${shared_ext}'
9132 dynamic_linker="$host_os ld.so"
9133 shlibpath_var=LIBRARY_PATH
9139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9140 soname_spec='${libname}${release}${shared_ext}$major'
9141 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9142 shlibpath_var=LD_LIBRARY_PATH
9143 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9144 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9145 # the default ld.so.conf also contains /usr/contrib/lib and
9146 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9147 # libtool to hard-code these into programs
9150 cygwin* | mingw* | pw32*)
9151 version_type=windows
9156 case $GCC,$host_os in
9157 yes,cygwin* | yes,mingw* | yes,pw32*)
9158 library_names_spec='$libname.dll.a'
9159 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9160 postinstall_cmds='base_file=`basename \${file}`~
9161 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9162 dldir=$destdir/`dirname \$dlpath`~
9163 test -d \$dldir || mkdir -p \$dldir~
9164 $install_prog $dir/$dlname \$dldir/$dlname~
9165 chmod a+x \$dldir/$dlname'
9166 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9167 dlpath=$dir/\$dldll~
9169 shlibpath_overrides_runpath=yes
9173 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9174 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9175 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9178 # MinGW DLLs use traditional 'lib' prefix
9179 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9180 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9181 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9182 # It is most probably a Windows format PATH printed by
9183 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9184 # path with ; separators, and with drive letters. We can handle the
9185 # drive letters (cygwin fileutils understands them), so leave them,
9186 # especially as we might pass files found there to a mingw objdump,
9187 # which wouldn't understand a cygwinified path. Ahh.
9188 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9190 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9194 # pw32 DLLs use 'pw' prefix rather than 'lib'
9195 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9201 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9204 dynamic_linker='Win32 ld.exe'
9205 # FIXME: first we should search . and the directory the executable is in
9209 darwin* | rhapsody*)
9210 dynamic_linker="$host_os dyld"
9214 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9215 soname_spec='${libname}${release}${major}$shared_ext'
9216 shlibpath_overrides_runpath=yes
9217 shlibpath_var=DYLD_LIBRARY_PATH
9218 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9220 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9221 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9229 soname_spec='${libname}${release}${shared_ext}$major'
9230 shlibpath_var=LD_LIBRARY_PATH
9237 freebsd* | dragonfly*)
9238 # DragonFly does not have aout. When/if they implement a new
9239 # versioning mechanism, adjust this.
9240 if test -x /usr/bin/objformat; then
9241 objformat=`/usr/bin/objformat`
9244 freebsd[123]*) objformat=aout ;;
9248 version_type=freebsd-$objformat
9249 case $version_type in
9251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9256 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9260 shlibpath_var=LD_LIBRARY_PATH
9263 shlibpath_overrides_runpath=yes
9265 freebsd3.[01]* | freebsdelf3.[01]*)
9266 shlibpath_overrides_runpath=yes
9267 hardcode_into_libs=yes
9269 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9270 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9271 shlibpath_overrides_runpath=no
9272 hardcode_into_libs=yes
9274 *) # from 4.6 on, and DragonFly
9275 shlibpath_overrides_runpath=yes
9276 hardcode_into_libs=yes
9285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9286 soname_spec='${libname}${release}${shared_ext}$major'
9287 shlibpath_var=LD_LIBRARY_PATH
9288 hardcode_into_libs=yes
9291 hpux9* | hpux10* | hpux11*)
9292 # Give a soname corresponding to the major version so that dld.sl refuses to
9293 # link against other versions.
9300 hardcode_into_libs=yes
9301 dynamic_linker="$host_os dld.so"
9302 shlibpath_var=LD_LIBRARY_PATH
9303 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9305 soname_spec='${libname}${release}${shared_ext}$major'
9306 if test "X$HPUX_IA64_MODE" = X32; then
9307 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9309 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9311 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9315 hardcode_into_libs=yes
9316 dynamic_linker="$host_os dld.sl"
9317 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9318 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9320 soname_spec='${libname}${release}${shared_ext}$major'
9321 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9322 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9326 dynamic_linker="$host_os dld.sl"
9327 shlibpath_var=SHLIB_PATH
9328 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9330 soname_spec='${libname}${release}${shared_ext}$major'
9333 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9334 postinstall_cmds='chmod 555 $lib'
9341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9342 soname_spec='${libname}${release}${shared_ext}$major'
9343 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9344 shlibpath_var=LD_LIBRARY_PATH
9345 shlibpath_overrides_runpath=no
9346 hardcode_into_libs=yes
9349 irix5* | irix6* | nonstopux*)
9351 nonstopux*) version_type=nonstopux ;;
9353 if test "$lt_cv_prog_gnu_ld" = yes; then
9361 soname_spec='${libname}${release}${shared_ext}$major'
9362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9364 irix5* | nonstopux*)
9368 case $LD in # libtool.m4 will add one of these switches to LD
9369 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9370 libsuff= shlibsuff= libmagic=32-bit;;
9371 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9372 libsuff=32 shlibsuff=N32 libmagic=N32;;
9373 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9374 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9375 *) libsuff= shlibsuff= libmagic=never-match;;
9379 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9380 shlibpath_overrides_runpath=no
9381 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9382 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9383 hardcode_into_libs=yes
9386 # No shared lib support for Linux oldld, aout, or coff.
9387 linux*oldld* | linux*aout* | linux*coff*)
9391 # This must be Linux ELF.
9392 linux* | k*bsd*-gnu)
9396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9397 soname_spec='${libname}${release}${shared_ext}$major'
9398 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9399 shlibpath_var=LD_LIBRARY_PATH
9400 shlibpath_overrides_runpath=no
9401 # This implies no fast_install, which is unacceptable.
9402 # Some rework will be needed to allow for fast_install
9403 # before this can be enabled.
9404 hardcode_into_libs=yes
9406 # Append ld.so.conf contents to the search path
9407 if test -f /etc/ld.so.conf; then
9408 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' ' '`
9409 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9412 # We used to test for /lib/ld.so.1 and disable shared libraries on
9413 # powerpc, because MkLinux only supported shared libraries with the
9414 # GNU dynamic linker. Since this was broken with cross compilers,
9415 # most powerpc-linux boxes support dynamic linking these days and
9416 # people can always --disable-shared, the test was removed, and we
9417 # assume the GNU/Linux dynamic linker is in use.
9418 dynamic_linker='GNU/Linux ld.so'
9425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9426 soname_spec='${libname}${release}${shared_ext}$major'
9427 shlibpath_var=LD_LIBRARY_PATH
9428 shlibpath_overrides_runpath=no
9429 hardcode_into_libs=yes
9430 dynamic_linker='NetBSD ld.elf_so'
9437 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9439 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9440 dynamic_linker='NetBSD (a.out) ld.so'
9442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9443 soname_spec='${libname}${release}${shared_ext}$major'
9444 dynamic_linker='NetBSD ld.elf_so'
9446 shlibpath_var=LD_LIBRARY_PATH
9447 shlibpath_overrides_runpath=yes
9448 hardcode_into_libs=yes
9453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9454 shlibpath_var=LD_LIBRARY_PATH
9455 shlibpath_overrides_runpath=yes
9462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9463 soname_spec='${libname}${release}${shared_ext}$major'
9464 shlibpath_var=LD_LIBRARY_PATH
9465 shlibpath_overrides_runpath=yes
9470 sys_lib_dlsearch_path_spec="/usr/lib"
9472 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9474 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9475 *) need_version=no ;;
9477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9478 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9479 shlibpath_var=LD_LIBRARY_PATH
9480 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9482 openbsd2.[89] | openbsd2.[89].*)
9483 shlibpath_overrides_runpath=no
9486 shlibpath_overrides_runpath=yes
9490 shlibpath_overrides_runpath=yes
9495 libname_spec='$name'
9498 library_names_spec='$libname${shared_ext} $libname.a'
9499 dynamic_linker='OS/2 ld.exe'
9500 shlibpath_var=LIBPATH
9503 osf3* | osf4* | osf5*)
9507 soname_spec='${libname}${release}${shared_ext}$major'
9508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9509 shlibpath_var=LD_LIBRARY_PATH
9510 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9511 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9523 soname_spec='${libname}${release}${shared_ext}$major'
9524 shlibpath_var=LD_LIBRARY_PATH
9525 shlibpath_overrides_runpath=yes
9526 hardcode_into_libs=yes
9527 # ldd complains unless libraries are executable
9528 postinstall_cmds='chmod +x $lib'
9533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9534 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9535 shlibpath_var=LD_LIBRARY_PATH
9536 shlibpath_overrides_runpath=yes
9537 if test "$with_gnu_ld" = yes; then
9545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9546 soname_spec='${libname}${release}${shared_ext}$major'
9547 shlibpath_var=LD_LIBRARY_PATH
9548 case $host_vendor in
9550 shlibpath_overrides_runpath=no
9552 export_dynamic_flag_spec='${wl}-Blargedynsym'
9553 runpath_var=LD_RUN_PATH
9561 shlibpath_overrides_runpath=no
9562 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9568 if test -d /usr/nec ;then
9570 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9571 soname_spec='$libname${shared_ext}.$major'
9572 shlibpath_var=LD_LIBRARY_PATH
9576 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9577 version_type=freebsd-elf
9580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9581 soname_spec='${libname}${release}${shared_ext}$major'
9582 shlibpath_var=LD_LIBRARY_PATH
9583 hardcode_into_libs=yes
9584 if test "$with_gnu_ld" = yes; then
9585 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9586 shlibpath_overrides_runpath=no
9588 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9589 shlibpath_overrides_runpath=yes
9592 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9596 sys_lib_dlsearch_path_spec='/usr/lib'
9601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9602 soname_spec='${libname}${release}${shared_ext}$major'
9603 shlibpath_var=LD_LIBRARY_PATH
9610 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9611 echo "${ECHO_T}$dynamic_linker" >&6; }
9612 test "$dynamic_linker" = no && can_build_shared=no
9614 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9615 echo $ECHO_N "(cached) $ECHO_C" >&6
9617 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9620 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9621 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9622 echo $ECHO_N "(cached) $ECHO_C" >&6
9624 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9627 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9629 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9630 if test "$GCC" = yes; then
9631 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9634 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9635 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9637 if test -n "$hardcode_libdir_flag_spec" || \
9638 test -n "$runpath_var" || \
9639 test "X$hardcode_automatic" = "Xyes" ; then
9641 # We can hardcode non-existant directories.
9642 if test "$hardcode_direct" != no &&
9643 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9644 # have to relink, otherwise we might link with an installed library
9645 # when we should be linking with a yet-to-be-installed one
9646 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9647 test "$hardcode_minus_L" != no; then
9648 # Linking always hardcodes the temporary library directory.
9649 hardcode_action=relink
9651 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9652 hardcode_action=immediate
9655 # We cannot hardcode anything, or else we can only hardcode existing
9657 hardcode_action=unsupported
9659 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9660 echo "${ECHO_T}$hardcode_action" >&6; }
9662 if test "$hardcode_action" = relink; then
9663 # Fast installation is not supported
9664 enable_fast_install=no
9665 elif test "$shlibpath_overrides_runpath" = yes ||
9666 test "$enable_shared" = no; then
9667 # Fast installation is not necessary
9668 enable_fast_install=needless
9673 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9674 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9675 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9676 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9677 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9678 { echo "$as_me:$LINENO: result: yes" >&5
9679 echo "${ECHO_T}yes" >&6; }
9681 # FIXME - insert some real tests, host_os isn't really good enough
9684 if test -n "$STRIP" ; then
9685 striplib="$STRIP -x"
9686 old_striplib="$STRIP -S"
9687 { echo "$as_me:$LINENO: result: yes" >&5
9688 echo "${ECHO_T}yes" >&6; }
9690 { echo "$as_me:$LINENO: result: no" >&5
9691 echo "${ECHO_T}no" >&6; }
9695 { echo "$as_me:$LINENO: result: no" >&5
9696 echo "${ECHO_T}no" >&6; }
9701 if test "x$enable_dlopen" != xyes; then
9702 enable_dlopen=unknown
9703 enable_dlopen_self=unknown
9704 enable_dlopen_self_static=unknown
9711 lt_cv_dlopen="load_add_on"
9713 lt_cv_dlopen_self=yes
9717 lt_cv_dlopen="LoadLibrary"
9722 lt_cv_dlopen="dlopen"
9727 # if libdl is installed we need to link against it
9728 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9729 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9730 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9731 echo $ECHO_N "(cached) $ECHO_C" >&6
9733 ac_check_lib_save_LIBS=$LIBS
9735 cat >conftest.$ac_ext <<_ACEOF
9738 cat confdefs.h >>conftest.$ac_ext
9739 cat >>conftest.$ac_ext <<_ACEOF
9740 /* end confdefs.h. */
9742 /* Override any GCC internal prototype to avoid an error.
9743 Use char because int might match the return type of a GCC
9744 builtin and then its argument prototype would still apply. */
9757 rm -f conftest.$ac_objext conftest$ac_exeext
9758 if { (ac_try="$ac_link"
9760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9761 *) ac_try_echo=$ac_try;;
9763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9764 (eval "$ac_link") 2>conftest.er1
9766 grep -v '^ *+' conftest.er1 >conftest.err
9768 cat conftest.err >&5
9769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770 (exit $ac_status); } && {
9771 test -z "$ac_c_werror_flag" ||
9772 test ! -s conftest.err
9773 } && test -s conftest$ac_exeext &&
9774 $as_test_x conftest$ac_exeext; then
9775 ac_cv_lib_dl_dlopen=yes
9777 echo "$as_me: failed program was:" >&5
9778 sed 's/^/| /' conftest.$ac_ext >&5
9780 ac_cv_lib_dl_dlopen=no
9783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9784 conftest$ac_exeext conftest.$ac_ext
9785 LIBS=$ac_check_lib_save_LIBS
9787 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9788 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9789 if test $ac_cv_lib_dl_dlopen = yes; then
9790 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9795 lt_cv_dlopen_self=yes
9802 { echo "$as_me:$LINENO: checking for shl_load" >&5
9803 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9804 if test "${ac_cv_func_shl_load+set}" = set; then
9805 echo $ECHO_N "(cached) $ECHO_C" >&6
9807 cat >conftest.$ac_ext <<_ACEOF
9810 cat confdefs.h >>conftest.$ac_ext
9811 cat >>conftest.$ac_ext <<_ACEOF
9812 /* end confdefs.h. */
9813 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9814 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9815 #define shl_load innocuous_shl_load
9817 /* System header to define __stub macros and hopefully few prototypes,
9818 which can conflict with char shl_load (); below.
9819 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9820 <limits.h> exists even on freestanding compilers. */
9823 # include <limits.h>
9825 # include <assert.h>
9830 /* Override any GCC internal prototype to avoid an error.
9831 Use char because int might match the return type of a GCC
9832 builtin and then its argument prototype would still apply. */
9837 /* The GNU C library defines this for functions which it implements
9838 to always fail with ENOSYS. Some functions are actually named
9839 something starting with __ and the normal name is an alias. */
9840 #if defined __stub_shl_load || defined __stub___shl_load
9852 rm -f conftest.$ac_objext conftest$ac_exeext
9853 if { (ac_try="$ac_link"
9855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9856 *) ac_try_echo=$ac_try;;
9858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9859 (eval "$ac_link") 2>conftest.er1
9861 grep -v '^ *+' conftest.er1 >conftest.err
9863 cat conftest.err >&5
9864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865 (exit $ac_status); } && {
9866 test -z "$ac_c_werror_flag" ||
9867 test ! -s conftest.err
9868 } && test -s conftest$ac_exeext &&
9869 $as_test_x conftest$ac_exeext; then
9870 ac_cv_func_shl_load=yes
9872 echo "$as_me: failed program was:" >&5
9873 sed 's/^/| /' conftest.$ac_ext >&5
9875 ac_cv_func_shl_load=no
9878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9879 conftest$ac_exeext conftest.$ac_ext
9881 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9882 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9883 if test $ac_cv_func_shl_load = yes; then
9884 lt_cv_dlopen="shl_load"
9886 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9887 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9888 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9889 echo $ECHO_N "(cached) $ECHO_C" >&6
9891 ac_check_lib_save_LIBS=$LIBS
9893 cat >conftest.$ac_ext <<_ACEOF
9896 cat confdefs.h >>conftest.$ac_ext
9897 cat >>conftest.$ac_ext <<_ACEOF
9898 /* end confdefs.h. */
9900 /* Override any GCC internal prototype to avoid an error.
9901 Use char because int might match the return type of a GCC
9902 builtin and then its argument prototype would still apply. */
9915 rm -f conftest.$ac_objext conftest$ac_exeext
9916 if { (ac_try="$ac_link"
9918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9919 *) ac_try_echo=$ac_try;;
9921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9922 (eval "$ac_link") 2>conftest.er1
9924 grep -v '^ *+' conftest.er1 >conftest.err
9926 cat conftest.err >&5
9927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928 (exit $ac_status); } && {
9929 test -z "$ac_c_werror_flag" ||
9930 test ! -s conftest.err
9931 } && test -s conftest$ac_exeext &&
9932 $as_test_x conftest$ac_exeext; then
9933 ac_cv_lib_dld_shl_load=yes
9935 echo "$as_me: failed program was:" >&5
9936 sed 's/^/| /' conftest.$ac_ext >&5
9938 ac_cv_lib_dld_shl_load=no
9941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9942 conftest$ac_exeext conftest.$ac_ext
9943 LIBS=$ac_check_lib_save_LIBS
9945 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9946 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9947 if test $ac_cv_lib_dld_shl_load = yes; then
9948 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9950 { echo "$as_me:$LINENO: checking for dlopen" >&5
9951 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9952 if test "${ac_cv_func_dlopen+set}" = set; then
9953 echo $ECHO_N "(cached) $ECHO_C" >&6
9955 cat >conftest.$ac_ext <<_ACEOF
9958 cat confdefs.h >>conftest.$ac_ext
9959 cat >>conftest.$ac_ext <<_ACEOF
9960 /* end confdefs.h. */
9961 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9962 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9963 #define dlopen innocuous_dlopen
9965 /* System header to define __stub macros and hopefully few prototypes,
9966 which can conflict with char dlopen (); below.
9967 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9968 <limits.h> exists even on freestanding compilers. */
9971 # include <limits.h>
9973 # include <assert.h>
9978 /* Override any GCC internal prototype to avoid an error.
9979 Use char because int might match the return type of a GCC
9980 builtin and then its argument prototype would still apply. */
9985 /* The GNU C library defines this for functions which it implements
9986 to always fail with ENOSYS. Some functions are actually named
9987 something starting with __ and the normal name is an alias. */
9988 #if defined __stub_dlopen || defined __stub___dlopen
10000 rm -f conftest.$ac_objext conftest$ac_exeext
10001 if { (ac_try="$ac_link"
10002 case "(($ac_try" in
10003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10004 *) ac_try_echo=$ac_try;;
10006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10007 (eval "$ac_link") 2>conftest.er1
10009 grep -v '^ *+' conftest.er1 >conftest.err
10011 cat conftest.err >&5
10012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013 (exit $ac_status); } && {
10014 test -z "$ac_c_werror_flag" ||
10015 test ! -s conftest.err
10016 } && test -s conftest$ac_exeext &&
10017 $as_test_x conftest$ac_exeext; then
10018 ac_cv_func_dlopen=yes
10020 echo "$as_me: failed program was:" >&5
10021 sed 's/^/| /' conftest.$ac_ext >&5
10023 ac_cv_func_dlopen=no
10026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10027 conftest$ac_exeext conftest.$ac_ext
10029 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10030 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10031 if test $ac_cv_func_dlopen = yes; then
10032 lt_cv_dlopen="dlopen"
10034 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10035 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10036 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10037 echo $ECHO_N "(cached) $ECHO_C" >&6
10039 ac_check_lib_save_LIBS=$LIBS
10041 cat >conftest.$ac_ext <<_ACEOF
10044 cat confdefs.h >>conftest.$ac_ext
10045 cat >>conftest.$ac_ext <<_ACEOF
10046 /* end confdefs.h. */
10048 /* Override any GCC internal prototype to avoid an error.
10049 Use char because int might match the return type of a GCC
10050 builtin and then its argument prototype would still apply. */
10063 rm -f conftest.$ac_objext conftest$ac_exeext
10064 if { (ac_try="$ac_link"
10065 case "(($ac_try" in
10066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10067 *) ac_try_echo=$ac_try;;
10069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10070 (eval "$ac_link") 2>conftest.er1
10072 grep -v '^ *+' conftest.er1 >conftest.err
10074 cat conftest.err >&5
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); } && {
10077 test -z "$ac_c_werror_flag" ||
10078 test ! -s conftest.err
10079 } && test -s conftest$ac_exeext &&
10080 $as_test_x conftest$ac_exeext; then
10081 ac_cv_lib_dl_dlopen=yes
10083 echo "$as_me: failed program was:" >&5
10084 sed 's/^/| /' conftest.$ac_ext >&5
10086 ac_cv_lib_dl_dlopen=no
10089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10090 conftest$ac_exeext conftest.$ac_ext
10091 LIBS=$ac_check_lib_save_LIBS
10093 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10094 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10095 if test $ac_cv_lib_dl_dlopen = yes; then
10096 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10098 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10099 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10100 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10101 echo $ECHO_N "(cached) $ECHO_C" >&6
10103 ac_check_lib_save_LIBS=$LIBS
10104 LIBS="-lsvld $LIBS"
10105 cat >conftest.$ac_ext <<_ACEOF
10108 cat confdefs.h >>conftest.$ac_ext
10109 cat >>conftest.$ac_ext <<_ACEOF
10110 /* end confdefs.h. */
10112 /* Override any GCC internal prototype to avoid an error.
10113 Use char because int might match the return type of a GCC
10114 builtin and then its argument prototype would still apply. */
10127 rm -f conftest.$ac_objext conftest$ac_exeext
10128 if { (ac_try="$ac_link"
10129 case "(($ac_try" in
10130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10131 *) ac_try_echo=$ac_try;;
10133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10134 (eval "$ac_link") 2>conftest.er1
10136 grep -v '^ *+' conftest.er1 >conftest.err
10138 cat conftest.err >&5
10139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140 (exit $ac_status); } && {
10141 test -z "$ac_c_werror_flag" ||
10142 test ! -s conftest.err
10143 } && test -s conftest$ac_exeext &&
10144 $as_test_x conftest$ac_exeext; then
10145 ac_cv_lib_svld_dlopen=yes
10147 echo "$as_me: failed program was:" >&5
10148 sed 's/^/| /' conftest.$ac_ext >&5
10150 ac_cv_lib_svld_dlopen=no
10153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10154 conftest$ac_exeext conftest.$ac_ext
10155 LIBS=$ac_check_lib_save_LIBS
10157 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10158 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10159 if test $ac_cv_lib_svld_dlopen = yes; then
10160 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10162 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10163 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10164 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10165 echo $ECHO_N "(cached) $ECHO_C" >&6
10167 ac_check_lib_save_LIBS=$LIBS
10169 cat >conftest.$ac_ext <<_ACEOF
10172 cat confdefs.h >>conftest.$ac_ext
10173 cat >>conftest.$ac_ext <<_ACEOF
10174 /* end confdefs.h. */
10176 /* Override any GCC internal prototype to avoid an error.
10177 Use char because int might match the return type of a GCC
10178 builtin and then its argument prototype would still apply. */
10186 return dld_link ();
10191 rm -f conftest.$ac_objext conftest$ac_exeext
10192 if { (ac_try="$ac_link"
10193 case "(($ac_try" in
10194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10195 *) ac_try_echo=$ac_try;;
10197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10198 (eval "$ac_link") 2>conftest.er1
10200 grep -v '^ *+' conftest.er1 >conftest.err
10202 cat conftest.err >&5
10203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204 (exit $ac_status); } && {
10205 test -z "$ac_c_werror_flag" ||
10206 test ! -s conftest.err
10207 } && test -s conftest$ac_exeext &&
10208 $as_test_x conftest$ac_exeext; then
10209 ac_cv_lib_dld_dld_link=yes
10211 echo "$as_me: failed program was:" >&5
10212 sed 's/^/| /' conftest.$ac_ext >&5
10214 ac_cv_lib_dld_dld_link=no
10217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10218 conftest$ac_exeext conftest.$ac_ext
10219 LIBS=$ac_check_lib_save_LIBS
10221 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10222 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10223 if test $ac_cv_lib_dld_dld_link = yes; then
10224 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10245 if test "x$lt_cv_dlopen" != xno; then
10251 case $lt_cv_dlopen in
10253 save_CPPFLAGS="$CPPFLAGS"
10254 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10256 save_LDFLAGS="$LDFLAGS"
10257 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10260 LIBS="$lt_cv_dlopen_libs $LIBS"
10262 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10263 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10264 if test "${lt_cv_dlopen_self+set}" = set; then
10265 echo $ECHO_N "(cached) $ECHO_C" >&6
10267 if test "$cross_compiling" = yes; then :
10268 lt_cv_dlopen_self=cross
10270 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10271 lt_status=$lt_dlunknown
10272 cat > conftest.$ac_ext <<EOF
10273 #line 10273 "configure"
10274 #include "confdefs.h"
10283 # define LT_DLGLOBAL RTLD_GLOBAL
10286 # define LT_DLGLOBAL DL_GLOBAL
10288 # define LT_DLGLOBAL 0
10292 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10293 find out it does not work in some platform. */
10294 #ifndef LT_DLLAZY_OR_NOW
10296 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10299 # define LT_DLLAZY_OR_NOW DL_LAZY
10302 # define LT_DLLAZY_OR_NOW RTLD_NOW
10305 # define LT_DLLAZY_OR_NOW DL_NOW
10307 # define LT_DLLAZY_OR_NOW 0
10315 extern "C" void exit (int);
10318 void fnord() { int i=42;}
10321 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10322 int status = $lt_dlunknown;
10326 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10327 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10328 /* dlclose (self); */
10336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10337 (eval $ac_link) 2>&5
10339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10341 (./conftest; exit; ) >&5 2>/dev/null
10343 case x$lt_status in
10344 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10345 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10346 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10349 # compilation failed
10350 lt_cv_dlopen_self=no
10357 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10358 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10360 if test "x$lt_cv_dlopen_self" = xyes; then
10361 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10362 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10363 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10364 if test "${lt_cv_dlopen_self_static+set}" = set; then
10365 echo $ECHO_N "(cached) $ECHO_C" >&6
10367 if test "$cross_compiling" = yes; then :
10368 lt_cv_dlopen_self_static=cross
10370 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10371 lt_status=$lt_dlunknown
10372 cat > conftest.$ac_ext <<EOF
10373 #line 10373 "configure"
10374 #include "confdefs.h"
10383 # define LT_DLGLOBAL RTLD_GLOBAL
10386 # define LT_DLGLOBAL DL_GLOBAL
10388 # define LT_DLGLOBAL 0
10392 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10393 find out it does not work in some platform. */
10394 #ifndef LT_DLLAZY_OR_NOW
10396 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10399 # define LT_DLLAZY_OR_NOW DL_LAZY
10402 # define LT_DLLAZY_OR_NOW RTLD_NOW
10405 # define LT_DLLAZY_OR_NOW DL_NOW
10407 # define LT_DLLAZY_OR_NOW 0
10415 extern "C" void exit (int);
10418 void fnord() { int i=42;}
10421 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10422 int status = $lt_dlunknown;
10426 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10427 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10428 /* dlclose (self); */
10436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10437 (eval $ac_link) 2>&5
10439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10441 (./conftest; exit; ) >&5 2>/dev/null
10443 case x$lt_status in
10444 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10445 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10446 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10449 # compilation failed
10450 lt_cv_dlopen_self_static=no
10457 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10458 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10461 CPPFLAGS="$save_CPPFLAGS"
10462 LDFLAGS="$save_LDFLAGS"
10467 case $lt_cv_dlopen_self in
10468 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10469 *) enable_dlopen_self=unknown ;;
10472 case $lt_cv_dlopen_self_static in
10473 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10474 *) enable_dlopen_self_static=unknown ;;
10479 # Report which library types will actually be built
10480 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10481 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10482 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10483 echo "${ECHO_T}$can_build_shared" >&6; }
10485 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10486 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10487 test "$can_build_shared" = "no" && enable_shared=no
10489 # On AIX, shared libraries and static libraries use the same namespace, and
10490 # are all built from PIC.
10493 test "$enable_shared" = yes && enable_static=no
10494 if test -n "$RANLIB"; then
10495 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10496 postinstall_cmds='$RANLIB $lib'
10501 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10502 test "$enable_shared" = yes && enable_static=no
10506 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10507 echo "${ECHO_T}$enable_shared" >&6; }
10509 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10510 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10511 # Make sure either enable_shared or enable_static is yes.
10512 test "$enable_shared" = yes || enable_static=yes
10513 { echo "$as_me:$LINENO: result: $enable_static" >&5
10514 echo "${ECHO_T}$enable_static" >&6; }
10516 # The else clause should only fire when bootstrapping the
10517 # libtool distribution, otherwise you forgot to ship ltmain.sh
10518 # with your package, and you will get complaints that there are
10519 # no rules to generate ltmain.sh.
10520 if test -f "$ltmain"; then
10521 # See if we are running on zsh, and set the options which allow our commands through
10522 # without removal of \ escapes.
10523 if test -n "${ZSH_VERSION+set}" ; then
10524 setopt NO_GLOB_SUBST
10526 # Now quote all the things that may contain metacharacters while being
10527 # careful not to overquote the AC_SUBSTed values. We take copies of the
10528 # variables and quote the copies for generation of the libtool script.
10529 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10531 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10532 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10533 deplibs_check_method reload_flag reload_cmds need_locks \
10534 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10535 lt_cv_sys_global_symbol_to_c_name_address \
10536 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10537 old_postinstall_cmds old_postuninstall_cmds \
10541 lt_prog_compiler_wl \
10542 lt_prog_compiler_pic \
10543 lt_prog_compiler_static \
10544 lt_prog_compiler_no_builtin_flag \
10545 export_dynamic_flag_spec \
10546 thread_safe_flag_spec \
10547 whole_archive_flag_spec \
10548 enable_shared_with_static_runtimes \
10550 old_archive_from_new_cmds \
10555 compiler_lib_search_path \
10556 compiler_lib_search_dirs \
10558 archive_expsym_cmds \
10560 postuninstall_cmds \
10561 old_archive_from_expsyms_cmds \
10562 allow_undefined_flag \
10563 no_undefined_flag \
10564 export_symbols_cmds \
10565 hardcode_libdir_flag_spec \
10566 hardcode_libdir_flag_spec_ld \
10567 hardcode_libdir_separator \
10568 hardcode_automatic \
10570 module_expsym_cmds \
10571 lt_cv_prog_compiler_c_o \
10574 include_expsyms; do
10577 old_archive_cmds | \
10578 old_archive_from_new_cmds | \
10580 archive_expsym_cmds | \
10582 module_expsym_cmds | \
10583 old_archive_from_expsyms_cmds | \
10584 export_symbols_cmds | \
10585 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10586 postinstall_cmds | postuninstall_cmds | \
10587 old_postinstall_cmds | old_postuninstall_cmds | \
10588 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10589 # Double-quote double-evaled strings.
10590 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10593 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10599 *'\$0 --fallback-echo"')
10600 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10604 cfgfile="${ofile}T"
10605 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10607 { echo "$as_me:$LINENO: creating $ofile" >&5
10608 echo "$as_me: creating $ofile" >&6;}
10610 cat <<__EOF__ >> "$cfgfile"
10613 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10614 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10615 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10617 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10618 # Free Software Foundation, Inc.
10620 # This file is part of GNU Libtool:
10621 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10623 # This program is free software; you can redistribute it and/or modify
10624 # it under the terms of the GNU General Public License as published by
10625 # the Free Software Foundation; either version 2 of the License, or
10626 # (at your option) any later version.
10628 # This program is distributed in the hope that it will be useful, but
10629 # WITHOUT ANY WARRANTY; without even the implied warranty of
10630 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10631 # General Public License for more details.
10633 # You should have received a copy of the GNU General Public License
10634 # along with this program; if not, write to the Free Software
10635 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10637 # As a special exception to the GNU General Public License, if you
10638 # distribute this file as part of a program that contains a
10639 # configuration script generated by Autoconf, you may include it under
10640 # the same distribution terms that you use for the rest of that program.
10642 # A sed program that does not truncate output.
10645 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10646 Xsed="$SED -e 1s/^X//"
10648 # The HP-UX ksh and POSIX shell print the target directory to stdout
10649 # if CDPATH is set.
10650 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10652 # The names of the tagged configurations supported by this script.
10655 # ### BEGIN LIBTOOL CONFIG
10657 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10659 # Shell to use when invoking shell scripts.
10662 # Whether or not to build shared libraries.
10663 build_libtool_libs=$enable_shared
10665 # Whether or not to build static libraries.
10666 build_old_libs=$enable_static
10668 # Whether or not to add -lc for building shared libraries.
10669 build_libtool_need_lc=$archive_cmds_need_lc
10671 # Whether or not to disallow shared libs when runtime libs are static
10672 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10674 # Whether or not to optimize for fast installation.
10675 fast_install=$enable_fast_install
10678 host_alias=$host_alias
10682 # The build system.
10683 build_alias=$build_alias
10687 # An echo program that does not interpret backslashes.
10692 AR_FLAGS=$lt_AR_FLAGS
10697 # LTCC compiler flags.
10698 LTCFLAGS=$lt_LTCFLAGS
10700 # A language-specific compiler.
10703 # Is the compiler the GNU C compiler?
10709 # The linker used to build libraries.
10712 # Whether we need hard or soft links.
10715 # A BSD-compatible nm program.
10718 # A symbol stripping program
10721 # Used to examine libraries when file_magic_cmd begins "file"
10722 MAGIC_CMD=$MAGIC_CMD
10724 # Used on cygwin: DLL creation program.
10727 # Used on cygwin: object dumper.
10730 # Used on cygwin: assembler.
10733 # The name of the directory that contains temporary libtool files.
10736 # How to create reloadable object files.
10737 reload_flag=$lt_reload_flag
10738 reload_cmds=$lt_reload_cmds
10740 # How to pass a linker flag through the compiler.
10741 wl=$lt_lt_prog_compiler_wl
10743 # Object file suffix (normally "o").
10744 objext="$ac_objext"
10746 # Old archive suffix (normally "a").
10749 # Shared library suffix (normally ".so").
10750 shrext_cmds='$shrext_cmds'
10752 # Executable file suffix (normally "").
10755 # Additional compiler flags for building library objects.
10756 pic_flag=$lt_lt_prog_compiler_pic
10759 # What is the maximum length of a command?
10760 max_cmd_len=$lt_cv_sys_max_cmd_len
10762 # Does compiler simultaneously support -c and -o options?
10763 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10765 # Must we lock files when doing compilation?
10766 need_locks=$lt_need_locks
10768 # Do we need the lib prefix for modules?
10769 need_lib_prefix=$need_lib_prefix
10771 # Do we need a version for libraries?
10772 need_version=$need_version
10774 # Whether dlopen is supported.
10775 dlopen_support=$enable_dlopen
10777 # Whether dlopen of programs is supported.
10778 dlopen_self=$enable_dlopen_self
10780 # Whether dlopen of statically linked programs is supported.
10781 dlopen_self_static=$enable_dlopen_self_static
10783 # Compiler flag to prevent dynamic linking.
10784 link_static_flag=$lt_lt_prog_compiler_static
10786 # Compiler flag to turn off builtin functions.
10787 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10789 # Compiler flag to allow reflexive dlopens.
10790 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10792 # Compiler flag to generate shared objects directly from archives.
10793 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10795 # Compiler flag to generate thread-safe objects.
10796 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10798 # Library versioning type.
10799 version_type=$version_type
10801 # Format of library name prefix.
10802 libname_spec=$lt_libname_spec
10804 # List of archive names. First name is the real one, the rest are links.
10805 # The last name is the one that the linker finds with -lNAME.
10806 library_names_spec=$lt_library_names_spec
10808 # The coded name of the library, if different from the real name.
10809 soname_spec=$lt_soname_spec
10811 # Commands used to build and install an old-style archive.
10813 old_archive_cmds=$lt_old_archive_cmds
10814 old_postinstall_cmds=$lt_old_postinstall_cmds
10815 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10817 # Create an old-style archive from a shared archive.
10818 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10820 # Create a temporary old-style archive to link instead of a shared archive.
10821 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10823 # Commands used to build and install a shared archive.
10824 archive_cmds=$lt_archive_cmds
10825 archive_expsym_cmds=$lt_archive_expsym_cmds
10826 postinstall_cmds=$lt_postinstall_cmds
10827 postuninstall_cmds=$lt_postuninstall_cmds
10829 # Commands used to build a loadable module (assumed same as above if empty)
10830 module_cmds=$lt_module_cmds
10831 module_expsym_cmds=$lt_module_expsym_cmds
10833 # Commands to strip libraries.
10834 old_striplib=$lt_old_striplib
10835 striplib=$lt_striplib
10837 # Dependencies to place before the objects being linked to create a
10839 predep_objects=$lt_predep_objects
10841 # Dependencies to place after the objects being linked to create a
10843 postdep_objects=$lt_postdep_objects
10845 # Dependencies to place before the objects being linked to create a
10847 predeps=$lt_predeps
10849 # Dependencies to place after the objects being linked to create a
10851 postdeps=$lt_postdeps
10853 # The directories searched by this compiler when creating a shared
10855 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10857 # The library search path used internally by the compiler when linking
10858 # a shared library.
10859 compiler_lib_search_path=$lt_compiler_lib_search_path
10861 # Method to check whether dependent libraries are shared objects.
10862 deplibs_check_method=$lt_deplibs_check_method
10864 # Command to use when deplibs_check_method == file_magic.
10865 file_magic_cmd=$lt_file_magic_cmd
10867 # Flag that allows shared libraries with undefined symbols to be built.
10868 allow_undefined_flag=$lt_allow_undefined_flag
10870 # Flag that forces no undefined symbols.
10871 no_undefined_flag=$lt_no_undefined_flag
10873 # Commands used to finish a libtool library installation in a directory.
10874 finish_cmds=$lt_finish_cmds
10876 # Same as above, but a single script fragment to be evaled but not shown.
10877 finish_eval=$lt_finish_eval
10879 # Take the output of nm and produce a listing of raw symbols and C names.
10880 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10882 # Transform the output of nm in a proper C declaration
10883 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10885 # Transform the output of nm in a C name address pair
10886 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10888 # This is the shared library runtime path variable.
10889 runpath_var=$runpath_var
10891 # This is the shared library path variable.
10892 shlibpath_var=$shlibpath_var
10894 # Is shlibpath searched before the hard-coded library search path?
10895 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10897 # How to hardcode a shared library path into an executable.
10898 hardcode_action=$hardcode_action
10900 # Whether we should hardcode library paths into libraries.
10901 hardcode_into_libs=$hardcode_into_libs
10903 # Flag to hardcode \$libdir into a binary during linking.
10904 # This must work even if \$libdir does not exist.
10905 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10907 # If ld is used when linking, flag to hardcode \$libdir into
10908 # a binary during linking. This must work even if \$libdir does
10910 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10912 # Whether we need a single -rpath flag with a separated argument.
10913 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10915 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10916 # resulting binary.
10917 hardcode_direct=$hardcode_direct
10919 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10920 # resulting binary.
10921 hardcode_minus_L=$hardcode_minus_L
10923 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10924 # the resulting binary.
10925 hardcode_shlibpath_var=$hardcode_shlibpath_var
10927 # Set to yes if building a shared library automatically hardcodes DIR into the library
10928 # and all subsequent libraries and executables linked against it.
10929 hardcode_automatic=$hardcode_automatic
10931 # Variables whose values should be saved in libtool wrapper scripts and
10932 # restored at relink time.
10933 variables_saved_for_relink="$variables_saved_for_relink"
10935 # Whether libtool must link a program against all its dependency libraries.
10936 link_all_deplibs=$link_all_deplibs
10938 # Compile-time system search path for libraries
10939 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10941 # Run-time system search path for libraries
10942 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10944 # Fix the shell variable \$srcfile for the compiler.
10945 fix_srcfile_path=$lt_fix_srcfile_path
10947 # Set to yes if exported symbols are required.
10948 always_export_symbols=$always_export_symbols
10950 # The commands to list exported symbols.
10951 export_symbols_cmds=$lt_export_symbols_cmds
10953 # The commands to extract the exported symbol list from a shared archive.
10954 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10956 # Symbols that should not be listed in the preloaded symbols.
10957 exclude_expsyms=$lt_exclude_expsyms
10959 # Symbols that must always be exported.
10960 include_expsyms=$lt_include_expsyms
10962 # ### END LIBTOOL CONFIG
10969 cat <<\EOF >> "$cfgfile"
10971 # AIX sometimes has problems with the GCC collect2 program. For some
10972 # reason, if we set the COLLECT_NAMES environment variable, the problems
10973 # vanish in a puff of smoke.
10974 if test "X${COLLECT_NAMES+set}" != Xset; then
10976 export COLLECT_NAMES
10982 # We use sed instead of cat because bash on DJGPP gets confused if
10983 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10984 # text mode, it properly converts lines to CR/LF. This bash problem
10985 # is reportedly fixed, but why not run on old versions too?
10986 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10988 mv -f "$cfgfile" "$ofile" || \
10989 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10993 # If there is no Makefile yet, we rely on a make rule to execute
10994 # `config.status --recheck' to rerun these tests and create the
10995 # libtool script then.
10996 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10997 if test -f "$ltmain_in"; then
10998 test -f Makefile && make "$ltmain"
11004 ac_cpp='$CPP $CPPFLAGS'
11005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11012 # Check whether --with-tags was given.
11013 if test "${with_tags+set}" = set; then
11014 withval=$with_tags; tagnames="$withval"
11018 if test -f "$ltmain" && test -n "$tagnames"; then
11019 if test ! -f "${ofile}"; then
11020 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11021 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11024 if test -z "$LTCC"; then
11025 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11026 if test -z "$LTCC"; then
11027 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11028 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11030 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11031 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11034 if test -z "$LTCFLAGS"; then
11035 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11038 # Extract list of available tagged configurations in $ofile.
11039 # Note that this assumes the entire list is on one line.
11040 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11042 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11043 for tagname in $tagnames; do
11045 # Check whether tagname contains only valid characters
11046 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11048 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11049 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11050 { (exit 1); exit 1; }; }
11054 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11056 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11057 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11058 { (exit 1); exit 1; }; }
11061 # Update the list of available tags.
11062 if test -n "$tagname"; then
11063 echo appending configuration tag \"$tagname\" to $ofile
11067 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11068 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11069 (test "X$CXX" != "Xg++"))) ; then
11071 ac_cpp='$CXXCPP $CPPFLAGS'
11072 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11073 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11074 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11079 archive_cmds_need_lc_CXX=no
11080 allow_undefined_flag_CXX=
11081 always_export_symbols_CXX=no
11082 archive_expsym_cmds_CXX=
11083 export_dynamic_flag_spec_CXX=
11084 hardcode_direct_CXX=no
11085 hardcode_libdir_flag_spec_CXX=
11086 hardcode_libdir_flag_spec_ld_CXX=
11087 hardcode_libdir_separator_CXX=
11088 hardcode_minus_L_CXX=no
11089 hardcode_shlibpath_var_CXX=unsupported
11090 hardcode_automatic_CXX=no
11092 module_expsym_cmds_CXX=
11093 link_all_deplibs_CXX=unknown
11094 old_archive_cmds_CXX=$old_archive_cmds
11095 no_undefined_flag_CXX=
11096 whole_archive_flag_spec_CXX=
11097 enable_shared_with_static_runtimes_CXX=no
11099 # Dependencies to place before and after the object being linked:
11100 predep_objects_CXX=
11101 postdep_objects_CXX=
11104 compiler_lib_search_path_CXX=
11105 compiler_lib_search_dirs_CXX=
11107 # Source file extension for C++ test sources.
11110 # Object file extension for compiled C++ test sources.
11114 # Code to be used in simple compile tests
11115 lt_simple_compile_test_code="int some_variable = 0;"
11117 # Code to be used in simple link tests
11118 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11120 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11122 # If no C compiler was specified, use CC.
11125 # If no C compiler flags were specified, use CFLAGS.
11126 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11128 # Allow CC to be a program name with arguments.
11132 # save warnings/boilerplate of simple test code
11133 ac_outfile=conftest.$ac_objext
11134 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11135 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11136 _lt_compiler_boilerplate=`cat conftest.err`
11139 ac_outfile=conftest.$ac_objext
11140 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11141 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11142 _lt_linker_boilerplate=`cat conftest.err`
11146 # Allow CC to be a program name with arguments.
11151 lt_save_with_gnu_ld=$with_gnu_ld
11152 lt_save_path_LD=$lt_cv_path_LD
11153 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11154 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11156 $as_unset lt_cv_prog_gnu_ld
11158 if test -n "${lt_cv_path_LDCXX+set}"; then
11159 lt_cv_path_LD=$lt_cv_path_LDCXX
11161 $as_unset lt_cv_path_LD
11163 test -z "${LDCXX+set}" || LD=$LDCXX
11167 for cc_temp in $compiler""; do
11169 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11170 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11175 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11178 # We don't want -fno-exception wen compiling C++ code, so set the
11179 # no_builtin_flag separately
11180 if test "$GXX" = yes; then
11181 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11183 lt_prog_compiler_no_builtin_flag_CXX=
11186 if test "$GXX" = yes; then
11187 # Set up default GNU C++ configuration
11190 # Check whether --with-gnu-ld was given.
11191 if test "${with_gnu_ld+set}" = set; then
11192 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11198 if test "$GCC" = yes; then
11199 # Check if gcc -print-prog-name=ld gives a path.
11200 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11201 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11204 # gcc leaves a trailing carriage return which upsets mingw
11205 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11207 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11210 # Accept absolute paths.
11212 re_direlt='/[^/][^/]*/\.\./'
11213 # Canonicalize the pathname of ld
11214 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11215 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11216 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11218 test -z "$LD" && LD="$ac_prog"
11221 # If it fails, then pretend we aren't using GCC.
11225 # If it is relative, then search for the first ld in PATH.
11226 with_gnu_ld=unknown
11229 elif test "$with_gnu_ld" = yes; then
11230 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11231 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11233 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11234 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11236 if test "${lt_cv_path_LD+set}" = set; then
11237 echo $ECHO_N "(cached) $ECHO_C" >&6
11239 if test -z "$LD"; then
11240 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11241 for ac_dir in $PATH; do
11243 test -z "$ac_dir" && ac_dir=.
11244 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11245 lt_cv_path_LD="$ac_dir/$ac_prog"
11246 # Check to see if the program is GNU ld. I'd rather use --version,
11247 # but apparently some variants of GNU ld only accept -v.
11248 # Break only if it was the GNU/non-GNU ld that we prefer.
11249 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11250 *GNU* | *'with BFD'*)
11251 test "$with_gnu_ld" != no && break
11254 test "$with_gnu_ld" != yes && break
11261 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11265 LD="$lt_cv_path_LD"
11266 if test -n "$LD"; then
11267 { echo "$as_me:$LINENO: result: $LD" >&5
11268 echo "${ECHO_T}$LD" >&6; }
11270 { echo "$as_me:$LINENO: result: no" >&5
11271 echo "${ECHO_T}no" >&6; }
11273 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11274 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11275 { (exit 1); exit 1; }; }
11276 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11277 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11278 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11279 echo $ECHO_N "(cached) $ECHO_C" >&6
11281 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11282 case `$LD -v 2>&1 </dev/null` in
11283 *GNU* | *'with BFD'*)
11284 lt_cv_prog_gnu_ld=yes
11287 lt_cv_prog_gnu_ld=no
11291 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11292 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11293 with_gnu_ld=$lt_cv_prog_gnu_ld
11297 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11298 # archiving commands below assume that GNU ld is being used.
11299 if test "$with_gnu_ld" = yes; then
11300 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11301 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'
11303 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11304 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11306 # If archive_cmds runs LD, not CC, wlarc should be empty
11307 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11308 # investigate it a little bit more. (MM)
11311 # ancient GNU ld didn't support --whole-archive et. al.
11312 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11313 grep 'no-whole-archive' > /dev/null; then
11314 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11316 whole_archive_flag_spec_CXX=
11322 # A generic and very simple default shared library creation
11323 # command for GNU C++ for the case where it uses the native
11324 # linker, instead of GNU ld. If possible, this setting should
11325 # overridden to take advantage of the native linker features on
11326 # the platform it is being used on.
11327 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11330 # Commands to make compiler produce verbose output that lists
11331 # what "hidden" libraries, object files and flags are used when
11332 # linking a shared library.
11333 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11341 # PORTME: fill in a description of your system's C++ link characteristics
11342 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11343 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11347 # FIXME: insert proper C++ library support
11351 if test "$host_cpu" = ia64; then
11352 # On IA64, the linker does run time linking by default, so we don't
11353 # have to do anything special.
11354 aix_use_runtimelinking=no
11355 exp_sym_flag='-Bexport'
11358 aix_use_runtimelinking=no
11360 # Test if we are trying to use run time linking or normal
11361 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11362 # need to do runtime linking.
11363 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11364 for ld_flag in $LDFLAGS; do
11367 aix_use_runtimelinking=yes
11375 exp_sym_flag='-bexport'
11376 no_entry_flag='-bnoentry'
11379 # When large executables or shared objects are built, AIX ld can
11380 # have problems creating the table of contents. If linking a library
11381 # or program results in "error TOC overflow" add -mminimal-toc to
11382 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11383 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11385 archive_cmds_CXX=''
11386 hardcode_direct_CXX=yes
11387 hardcode_libdir_separator_CXX=':'
11388 link_all_deplibs_CXX=yes
11390 if test "$GXX" = yes; then
11391 case $host_os in aix4.[012]|aix4.[012].*)
11392 # We only want to do this on AIX 4.2 and lower, the check
11393 # below for broken collect2 doesn't work under 4.3+
11394 collect2name=`${CC} -print-prog-name=collect2`
11395 if test -f "$collect2name" && \
11396 strings "$collect2name" | grep resolve_lib_name >/dev/null
11398 # We have reworked collect2
11401 # We have old collect2
11402 hardcode_direct_CXX=unsupported
11403 # It fails to find uninstalled libraries when the uninstalled
11404 # path is not listed in the libpath. Setting hardcode_minus_L
11405 # to unsupported forces relinking
11406 hardcode_minus_L_CXX=yes
11407 hardcode_libdir_flag_spec_CXX='-L$libdir'
11408 hardcode_libdir_separator_CXX=
11412 shared_flag='-shared'
11413 if test "$aix_use_runtimelinking" = yes; then
11414 shared_flag="$shared_flag "'${wl}-G'
11418 if test "$host_cpu" = ia64; then
11419 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11420 # chokes on -Wl,-G. The following line is correct:
11423 if test "$aix_use_runtimelinking" = yes; then
11424 shared_flag='${wl}-G'
11426 shared_flag='${wl}-bM:SRE'
11431 # It seems that -bexpall does not export symbols beginning with
11432 # underscore (_), so it is better to generate a list of symbols to export.
11433 always_export_symbols_CXX=yes
11434 if test "$aix_use_runtimelinking" = yes; then
11435 # Warning - without using the other runtime loading flags (-brtl),
11436 # -berok will link without error, but may produce a broken library.
11437 allow_undefined_flag_CXX='-berok'
11438 # Determine the default libpath from the value encoded in an empty executable.
11439 cat >conftest.$ac_ext <<_ACEOF
11442 cat confdefs.h >>conftest.$ac_ext
11443 cat >>conftest.$ac_ext <<_ACEOF
11444 /* end confdefs.h. */
11454 rm -f conftest.$ac_objext conftest$ac_exeext
11455 if { (ac_try="$ac_link"
11456 case "(($ac_try" in
11457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11458 *) ac_try_echo=$ac_try;;
11460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11461 (eval "$ac_link") 2>conftest.er1
11463 grep -v '^ *+' conftest.er1 >conftest.err
11465 cat conftest.err >&5
11466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11467 (exit $ac_status); } && {
11468 test -z "$ac_cxx_werror_flag" ||
11469 test ! -s conftest.err
11470 } && test -s conftest$ac_exeext &&
11471 $as_test_x conftest$ac_exeext; then
11473 lt_aix_libpath_sed='
11474 /Import File Strings/,/^$/ {
11480 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11481 # Check for a 64-bit object if we didn't find anything.
11482 if test -z "$aix_libpath"; then
11483 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11486 echo "$as_me: failed program was:" >&5
11487 sed 's/^/| /' conftest.$ac_ext >&5
11492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11493 conftest$ac_exeext conftest.$ac_ext
11494 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11496 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11498 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"
11500 if test "$host_cpu" = ia64; then
11501 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11502 allow_undefined_flag_CXX="-z nodefs"
11503 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"
11505 # Determine the default libpath from the value encoded in an empty executable.
11506 cat >conftest.$ac_ext <<_ACEOF
11509 cat confdefs.h >>conftest.$ac_ext
11510 cat >>conftest.$ac_ext <<_ACEOF
11511 /* end confdefs.h. */
11521 rm -f conftest.$ac_objext conftest$ac_exeext
11522 if { (ac_try="$ac_link"
11523 case "(($ac_try" in
11524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11525 *) ac_try_echo=$ac_try;;
11527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11528 (eval "$ac_link") 2>conftest.er1
11530 grep -v '^ *+' conftest.er1 >conftest.err
11532 cat conftest.err >&5
11533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534 (exit $ac_status); } && {
11535 test -z "$ac_cxx_werror_flag" ||
11536 test ! -s conftest.err
11537 } && test -s conftest$ac_exeext &&
11538 $as_test_x conftest$ac_exeext; then
11540 lt_aix_libpath_sed='
11541 /Import File Strings/,/^$/ {
11547 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11548 # Check for a 64-bit object if we didn't find anything.
11549 if test -z "$aix_libpath"; then
11550 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11553 echo "$as_me: failed program was:" >&5
11554 sed 's/^/| /' conftest.$ac_ext >&5
11559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11560 conftest$ac_exeext conftest.$ac_ext
11561 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11563 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11564 # Warning - without using the other run time loading flags,
11565 # -berok will link without error, but may produce a broken library.
11566 no_undefined_flag_CXX=' ${wl}-bernotok'
11567 allow_undefined_flag_CXX=' ${wl}-berok'
11568 # Exported symbols can be pulled into shared objects from archives
11569 whole_archive_flag_spec_CXX='$convenience'
11570 archive_cmds_need_lc_CXX=yes
11571 # This is similar to how AIX traditionally builds its shared libraries.
11572 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'
11578 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11579 allow_undefined_flag_CXX=unsupported
11580 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11581 # support --undefined. This deserves some investigation. FIXME
11582 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11589 case $cc_basename in
11591 # FIXME: insert proper C++ library support
11597 cygwin* | mingw* | pw32*)
11598 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11599 # as there is no search path for DLLs.
11600 hardcode_libdir_flag_spec_CXX='-L$libdir'
11601 allow_undefined_flag_CXX=unsupported
11602 always_export_symbols_CXX=no
11603 enable_shared_with_static_runtimes_CXX=yes
11605 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11606 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'
11607 # If the export-symbols file already is a .def file (1st line
11608 # is EXPORTS), use it as is; otherwise, prepend...
11609 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11610 cp $export_symbols $output_objdir/$soname.def;
11612 echo EXPORTS > $output_objdir/$soname.def;
11613 cat $export_symbols >> $output_objdir/$soname.def;
11615 $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'
11620 darwin* | rhapsody*)
11621 archive_cmds_need_lc_CXX=no
11622 hardcode_direct_CXX=no
11623 hardcode_automatic_CXX=yes
11624 hardcode_shlibpath_var_CXX=unsupported
11625 whole_archive_flag_spec_CXX=''
11626 link_all_deplibs_CXX=yes
11627 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11628 if test "$GXX" = yes ; then
11629 output_verbose_link_cmd='echo'
11630 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}"
11631 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11632 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}"
11633 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}"
11634 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11635 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}"
11636 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}"
11639 case $cc_basename in
11641 output_verbose_link_cmd='echo'
11642 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'
11643 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11644 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11645 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}'
11646 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}'
11656 case $cc_basename in
11658 # FIXME: insert proper C++ library support
11662 # Green Hills C++ Compiler
11663 # FIXME: insert proper C++ library support
11667 # FIXME: insert proper C++ library support
11673 # C++ shared libraries reported to be fairly broken before switch to ELF
11677 archive_cmds_need_lc_CXX=no
11679 freebsd* | dragonfly*)
11680 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11687 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11688 hardcode_libdir_separator_CXX=:
11689 export_dynamic_flag_spec_CXX='${wl}-E'
11690 hardcode_direct_CXX=yes
11691 hardcode_minus_L_CXX=yes # Not in the search PATH,
11692 # but as the default
11693 # location of the library.
11695 case $cc_basename in
11697 # FIXME: insert proper C++ library support
11701 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'
11702 # Commands to make compiler produce verbose output that lists
11703 # what "hidden" libraries, object files and flags are used when
11704 # linking a shared library.
11706 # There doesn't appear to be a way to prevent this compiler from
11707 # explicitly linking system object files so we need to strip them
11708 # from the output so that they don't get included in the library
11710 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'
11713 if test "$GXX" = yes; then
11714 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'
11716 # FIXME: insert proper C++ library support
11723 if test $with_gnu_ld = no; then
11724 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11725 hardcode_libdir_separator_CXX=:
11730 export_dynamic_flag_spec_CXX='${wl}-E'
11736 hardcode_direct_CXX=no
11737 hardcode_shlibpath_var_CXX=no
11740 hardcode_direct_CXX=yes
11741 hardcode_minus_L_CXX=yes # Not in the search PATH,
11742 # but as the default
11743 # location of the library.
11747 case $cc_basename in
11749 # FIXME: insert proper C++ library support
11755 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11758 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11761 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11764 # Commands to make compiler produce verbose output that lists
11765 # what "hidden" libraries, object files and flags are used when
11766 # linking a shared library.
11768 # There doesn't appear to be a way to prevent this compiler from
11769 # explicitly linking system object files so we need to strip them
11770 # from the output so that they don't get included in the library
11772 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'
11775 if test "$GXX" = yes; then
11776 if test $with_gnu_ld = no; then
11779 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11782 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11785 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'
11790 # FIXME: insert proper C++ library support
11797 hardcode_direct_CXX=no
11798 hardcode_shlibpath_var_CXX=no
11799 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11800 export_dynamic_flag_spec_CXX='${wl}-E'
11801 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11802 # Instead, shared libraries are loaded at an image base (0x10000000 by
11803 # default) and relocated if they conflict, which is a slow very memory
11804 # consuming and fragmenting process. To avoid this, we pick a random,
11805 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11806 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11807 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'
11808 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'
11811 case $cc_basename in
11814 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'
11816 # Archives containing C++ object files must be created using
11817 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11818 # necessary to make sure instantiated templates are included
11820 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11823 if test "$GXX" = yes; then
11824 if test "$with_gnu_ld" = no; then
11825 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'
11827 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'
11830 link_all_deplibs_CXX=yes
11833 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11834 hardcode_libdir_separator_CXX=:
11836 linux* | k*bsd*-gnu)
11837 case $cc_basename in
11839 # Kuck and Associates, Inc. (KAI) C++ Compiler
11841 # KCC will only create a shared library if the output file
11842 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11843 # to its proper name (with version) after linking.
11844 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'
11845 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'
11846 # Commands to make compiler produce verbose output that lists
11847 # what "hidden" libraries, object files and flags are used when
11848 # linking a shared library.
11850 # There doesn't appear to be a way to prevent this compiler from
11851 # explicitly linking system object files so we need to strip them
11852 # from the output so that they don't get included in the library
11854 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'
11856 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11857 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11859 # Archives containing C++ object files must be created using
11860 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11861 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11866 # version 8.0 and above of icpc choke on multiply defined symbols
11867 # if we add $predep_objects and $postdep_objects, however 7.1 and
11868 # earlier do not add the objects themselves.
11869 case `$CC -V 2>&1` in
11871 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11872 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'
11874 *) # Version 8.0 or newer
11877 ia64*) tmp_idyn=' -i_dynamic';;
11879 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11880 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'
11883 archive_cmds_need_lc_CXX=no
11884 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11885 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11886 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11889 # Portland Group C++ compiler
11890 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11891 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'
11893 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11894 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11895 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'
11899 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11900 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'
11902 runpath_var=LD_RUN_PATH
11903 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11904 hardcode_libdir_separator_CXX=:
11906 # Commands to make compiler produce verbose output that lists
11907 # what "hidden" libraries, object files and flags are used when
11908 # linking a shared library.
11910 # There doesn't appear to be a way to prevent this compiler from
11911 # explicitly linking system object files so we need to strip them
11912 # from the output so that they don't get included in the library
11914 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'
11917 case `$CC -V 2>&1 | sed 5q` in
11920 no_undefined_flag_CXX=' -zdefs'
11921 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11922 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'
11923 hardcode_libdir_flag_spec_CXX='-R$libdir'
11924 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'
11926 # Not sure whether something based on
11927 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11929 output_verbose_link_cmd='echo'
11931 # Archives containing C++ object files must be created using
11932 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11933 # necessary to make sure instantiated templates are included
11935 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11942 # FIXME: insert proper C++ library support
11946 # FIXME: insert proper C++ library support
11950 case $cc_basename in
11952 # FIXME: insert proper C++ library support
11956 # FIXME: insert proper C++ library support
11961 netbsd* | netbsdelf*-gnu)
11962 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11963 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11965 hardcode_libdir_flag_spec_CXX='-R$libdir'
11966 hardcode_direct_CXX=yes
11967 hardcode_shlibpath_var_CXX=no
11969 # Workaround some broken pre-1.5 toolchains
11970 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11973 # C++ shared libraries are fairly broken
11977 if test -f /usr/libexec/ld.so; then
11978 hardcode_direct_CXX=yes
11979 hardcode_shlibpath_var_CXX=no
11980 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11981 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11982 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11983 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11984 export_dynamic_flag_spec_CXX='${wl}-E'
11985 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11987 output_verbose_link_cmd='echo'
11993 case $cc_basename in
11995 # Kuck and Associates, Inc. (KAI) C++ Compiler
11997 # KCC will only create a shared library if the output file
11998 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11999 # to its proper name (with version) after linking.
12000 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'
12002 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12003 hardcode_libdir_separator_CXX=:
12005 # Archives containing C++ object files must be created using
12006 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12007 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12011 # Rational C++ 2.4.1
12012 # FIXME: insert proper C++ library support
12016 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12017 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'
12019 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12020 hardcode_libdir_separator_CXX=:
12022 # Commands to make compiler produce verbose output that lists
12023 # what "hidden" libraries, object files and flags are used when
12024 # linking a shared library.
12026 # There doesn't appear to be a way to prevent this compiler from
12027 # explicitly linking system object files so we need to strip them
12028 # from the output so that they don't get included in the library
12030 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'
12033 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12034 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12035 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'
12037 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12038 hardcode_libdir_separator_CXX=:
12040 # Commands to make compiler produce verbose output that lists
12041 # what "hidden" libraries, object files and flags are used when
12042 # linking a shared library.
12043 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12046 # FIXME: insert proper C++ library support
12053 case $cc_basename in
12055 # Kuck and Associates, Inc. (KAI) C++ Compiler
12057 # KCC will only create a shared library if the output file
12058 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12059 # to its proper name (with version) after linking.
12060 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'
12062 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12063 hardcode_libdir_separator_CXX=:
12065 # Archives containing C++ object files must be created using
12066 # the KAI C++ compiler.
12067 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12070 # Rational C++ 2.4.1
12071 # FIXME: insert proper C++ library support
12075 allow_undefined_flag_CXX=' -expect_unresolved \*'
12076 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'
12077 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12078 echo "-hidden">> $lib.exp~
12079 $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~
12082 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12083 hardcode_libdir_separator_CXX=:
12085 # Commands to make compiler produce verbose output that lists
12086 # what "hidden" libraries, object files and flags are used when
12087 # linking a shared library.
12089 # There doesn't appear to be a way to prevent this compiler from
12090 # explicitly linking system object files so we need to strip them
12091 # from the output so that they don't get included in the library
12093 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'
12096 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12097 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12098 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'
12100 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12101 hardcode_libdir_separator_CXX=:
12103 # Commands to make compiler produce verbose output that lists
12104 # what "hidden" libraries, object files and flags are used when
12105 # linking a shared library.
12106 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12109 # FIXME: insert proper C++ library support
12116 # FIXME: insert proper C++ library support
12120 case $cc_basename in
12123 # FIXME: insert proper C++ library support
12128 # FIXME: insert proper C++ library support
12132 # FIXME: insert proper C++ library support
12138 case $cc_basename in
12140 # Sun C++ 4.2, 5.x and Centerline C++
12141 archive_cmds_need_lc_CXX=yes
12142 no_undefined_flag_CXX=' -zdefs'
12143 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12144 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12145 $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'
12147 hardcode_libdir_flag_spec_CXX='-R$libdir'
12148 hardcode_shlibpath_var_CXX=no
12150 solaris2.[0-5] | solaris2.[0-5].*) ;;
12152 # The compiler driver will combine and reorder linker options,
12153 # but understands `-z linker_flag'.
12154 # Supported since Solaris 2.6 (maybe 2.5.1?)
12155 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12158 link_all_deplibs_CXX=yes
12160 output_verbose_link_cmd='echo'
12162 # Archives containing C++ object files must be created using
12163 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12164 # necessary to make sure instantiated templates are included
12166 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12169 # Green Hills C++ Compiler
12170 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12172 # The C++ compiler must be used to create the archive.
12173 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12176 # GNU C++ compiler with Solaris linker
12177 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12178 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12179 if $CC --version | grep -v '^2\.7' > /dev/null; then
12180 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12181 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12182 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12184 # Commands to make compiler produce verbose output that lists
12185 # what "hidden" libraries, object files and flags are used when
12186 # linking a shared library.
12187 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12189 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12191 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12192 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12193 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12195 # Commands to make compiler produce verbose output that lists
12196 # what "hidden" libraries, object files and flags are used when
12197 # linking a shared library.
12198 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12201 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12203 solaris2.[0-5] | solaris2.[0-5].*) ;;
12205 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12212 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12213 no_undefined_flag_CXX='${wl}-z,text'
12214 archive_cmds_need_lc_CXX=no
12215 hardcode_shlibpath_var_CXX=no
12216 runpath_var='LD_RUN_PATH'
12218 case $cc_basename in
12220 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12221 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12224 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12225 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12229 sysv5* | sco3.2v5* | sco5v6*)
12230 # Note: We can NOT use -z defs as we might desire, because we do not
12231 # link with -lc, and that would cause any symbols used from libc to
12232 # always be unresolved, which means just about no library would
12233 # ever link correctly. If we're not using GNU ld we use -z text
12234 # though, which does catch some bad symbols but isn't as heavy-handed
12236 # For security reasons, it is highly recommended that you always
12237 # use absolute paths for naming shared libraries, and exclude the
12238 # DT_RUNPATH tag from executables and libraries. But doing so
12239 # requires that you compile everything twice, which is a pain.
12240 # So that behaviour is only enabled if SCOABSPATH is set to a
12241 # non-empty value in the environment. Most likely only useful for
12242 # creating official distributions of packages.
12243 # This is a hack until libtool officially supports absolute path
12244 # names for shared libraries.
12245 no_undefined_flag_CXX='${wl}-z,text'
12246 allow_undefined_flag_CXX='${wl}-z,nodefs'
12247 archive_cmds_need_lc_CXX=no
12248 hardcode_shlibpath_var_CXX=no
12249 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12250 hardcode_libdir_separator_CXX=':'
12251 link_all_deplibs_CXX=yes
12252 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12253 runpath_var='LD_RUN_PATH'
12255 case $cc_basename in
12257 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12258 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12261 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12262 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12267 case $cc_basename in
12269 # NonStop-UX NCC 3.20
12270 # FIXME: insert proper C++ library support
12274 # FIXME: insert proper C++ library support
12280 # FIXME: insert proper C++ library support
12284 # FIXME: insert proper C++ library support
12288 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12289 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12290 test "$ld_shlibs_CXX" = no && can_build_shared=no
12295 cat > conftest.$ac_ext <<EOF
12299 Foo (void) { a = 0; }
12305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12306 (eval $ac_compile) 2>&5
12308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309 (exit $ac_status); }; then
12310 # Parse the compiler output and extract the necessary
12311 # objects, libraries and library flags.
12313 # Sentinel used to keep track of whether or not we are before
12314 # the conftest object file.
12315 pre_test_object_deps_done=no
12317 # The `*' in the case matches for architectures that use `case' in
12318 # $output_verbose_cmd can trigger glob expansion during the loop
12319 # eval without this substitution.
12320 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12322 for p in `eval $output_verbose_link_cmd`; do
12326 # Some compilers place space between "-{L,R}" and the path.
12327 # Remove the space.
12328 if test $p = "-L" \
12329 || test $p = "-R"; then
12336 if test "$pre_test_object_deps_done" = no; then
12339 # Internal compiler library paths should come after those
12340 # provided the user. The postdeps already come after the
12341 # user supplied libs so there is no need to process them.
12342 if test -z "$compiler_lib_search_path_CXX"; then
12343 compiler_lib_search_path_CXX="${prev}${p}"
12345 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12348 # The "-l" case would never come before the object being
12349 # linked, so don't bother handling this case.
12352 if test -z "$postdeps_CXX"; then
12353 postdeps_CXX="${prev}${p}"
12355 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12361 # This assumes that the test object file only shows up
12362 # once in the compiler output.
12363 if test "$p" = "conftest.$objext"; then
12364 pre_test_object_deps_done=yes
12368 if test "$pre_test_object_deps_done" = no; then
12369 if test -z "$predep_objects_CXX"; then
12370 predep_objects_CXX="$p"
12372 predep_objects_CXX="$predep_objects_CXX $p"
12375 if test -z "$postdep_objects_CXX"; then
12376 postdep_objects_CXX="$p"
12378 postdep_objects_CXX="$postdep_objects_CXX $p"
12383 *) ;; # Ignore the rest.
12391 echo "libtool.m4: error: problem compiling CXX test program"
12394 $rm -f confest.$objext
12396 compiler_lib_search_dirs_CXX=
12397 if test -n "$compiler_lib_search_path_CXX"; then
12398 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12401 # PORTME: override above test on systems where it is broken
12404 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12405 # hack all around it, let's just trust "g++" to DTRT.
12406 predep_objects_CXX=
12407 postdep_objects_CXX=
12412 case `$CC -V 2>&1 | sed 5q` in
12416 # The more standards-conforming stlport4 library is
12417 # incompatible with the Cstd library. Avoid specifying
12418 # it if it's in CXXFLAGS. Ignore libCrun as
12419 # -library=stlport4 depends on it.
12420 case " $CXX $CXXFLAGS " in
12421 *" -library=stlport4 "*)
12422 solaris_use_stlport4=yes
12425 if test "$solaris_use_stlport4" != yes; then
12426 postdeps_CXX='-library=Cstd -library=Crun'
12433 case $cc_basename in
12435 # The more standards-conforming stlport4 library is
12436 # incompatible with the Cstd library. Avoid specifying
12437 # it if it's in CXXFLAGS. Ignore libCrun as
12438 # -library=stlport4 depends on it.
12439 case " $CXX $CXXFLAGS " in
12440 *" -library=stlport4 "*)
12441 solaris_use_stlport4=yes
12445 # Adding this requires a known-good setup of shared libraries for
12446 # Sun compiler versions before 5.6, else PIC objects from an old
12447 # archive will be linked into the output, leading to subtle bugs.
12448 if test "$solaris_use_stlport4" != yes; then
12449 postdeps_CXX='-library=Cstd -library=Crun'
12456 case " $postdeps_CXX " in
12457 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12460 lt_prog_compiler_wl_CXX=
12461 lt_prog_compiler_pic_CXX=
12462 lt_prog_compiler_static_CXX=
12464 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12465 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12467 # C++ specific cases for pic, static, wl, etc.
12468 if test "$GXX" = yes; then
12469 lt_prog_compiler_wl_CXX='-Wl,'
12470 lt_prog_compiler_static_CXX='-static'
12474 # All AIX code is PIC.
12475 if test "$host_cpu" = ia64; then
12476 # AIX 5 now supports IA64 processor
12477 lt_prog_compiler_static_CXX='-Bstatic'
12481 # FIXME: we need at least 68020 code to build shared libraries, but
12482 # adding the `-m68020' flag to GCC prevents building anything better,
12484 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12486 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12487 # PIC is the default for these OSes.
12489 mingw* | cygwin* | os2* | pw32*)
12490 # This hack is so that the source file can tell whether it is being
12491 # built for inclusion in a dll (and should export symbols for example).
12492 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12493 # (--disable-auto-import) libraries
12494 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12496 darwin* | rhapsody*)
12497 # PIC is the default on this platform
12498 # Common symbols not allowed in MH_DYLIB files
12499 lt_prog_compiler_pic_CXX='-fno-common'
12502 # DJGPP does not support shared libraries at all
12503 lt_prog_compiler_pic_CXX=
12506 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12507 # Instead, we relocate shared libraries at runtime.
12510 if test -d /usr/nec; then
12511 lt_prog_compiler_pic_CXX=-Kconform_pic
12515 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12516 # not for PA HP-UX.
12521 lt_prog_compiler_pic_CXX='-fPIC'
12526 lt_prog_compiler_pic_CXX='-fPIC'
12532 # All AIX code is PIC.
12533 if test "$host_cpu" = ia64; then
12534 # AIX 5 now supports IA64 processor
12535 lt_prog_compiler_static_CXX='-Bstatic'
12537 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12541 case $cc_basename in
12543 # Green Hills C++ Compiler
12544 # _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"
12549 # PIC is the default on this platform
12550 # Common symbols not allowed in MH_DYLIB files
12551 case $cc_basename in
12553 lt_prog_compiler_pic_CXX='-qnocommon'
12554 lt_prog_compiler_wl_CXX='-Wl,'
12559 case $cc_basename in
12561 lt_prog_compiler_pic_CXX='-KPIC'
12564 # Green Hills C++ Compiler
12565 lt_prog_compiler_pic_CXX='-pic'
12571 freebsd* | dragonfly*)
12572 # FreeBSD uses GNU C++
12574 hpux9* | hpux10* | hpux11*)
12575 case $cc_basename in
12577 lt_prog_compiler_wl_CXX='-Wl,'
12578 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12579 if test "$host_cpu" != ia64; then
12580 lt_prog_compiler_pic_CXX='+Z'
12584 lt_prog_compiler_wl_CXX='-Wl,'
12585 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12591 lt_prog_compiler_pic_CXX='+Z'
12600 # This is c89, which is MS Visual C++ (no shared libs)
12601 # Anyone wants to do a port?
12603 irix5* | irix6* | nonstopux*)
12604 case $cc_basename in
12606 lt_prog_compiler_wl_CXX='-Wl,'
12607 lt_prog_compiler_static_CXX='-non_shared'
12608 # CC pic flag -KPIC is the default.
12614 linux* | k*bsd*-gnu)
12615 case $cc_basename in
12618 lt_prog_compiler_wl_CXX='--backend -Wl,'
12619 lt_prog_compiler_pic_CXX='-fPIC'
12623 lt_prog_compiler_wl_CXX='-Wl,'
12624 lt_prog_compiler_pic_CXX='-KPIC'
12625 lt_prog_compiler_static_CXX='-static'
12628 # Portland Group C++ compiler.
12629 lt_prog_compiler_wl_CXX='-Wl,'
12630 lt_prog_compiler_pic_CXX='-fpic'
12631 lt_prog_compiler_static_CXX='-Bstatic'
12635 # Make sure the PIC flag is empty. It appears that all Alpha
12636 # Linux and Compaq Tru64 Unix objects are PIC.
12637 lt_prog_compiler_pic_CXX=
12638 lt_prog_compiler_static_CXX='-non_shared'
12641 case `$CC -V 2>&1 | sed 5q` in
12644 lt_prog_compiler_pic_CXX='-KPIC'
12645 lt_prog_compiler_static_CXX='-Bstatic'
12646 lt_prog_compiler_wl_CXX='-Qoption ld '
12657 case $cc_basename in
12659 lt_prog_compiler_pic_CXX='-W c,exportall'
12665 netbsd* | netbsdelf*-gnu)
12667 osf3* | osf4* | osf5*)
12668 case $cc_basename in
12670 lt_prog_compiler_wl_CXX='--backend -Wl,'
12673 # Rational C++ 2.4.1
12674 lt_prog_compiler_pic_CXX='-pic'
12677 # Digital/Compaq C++
12678 lt_prog_compiler_wl_CXX='-Wl,'
12679 # Make sure the PIC flag is empty. It appears that all Alpha
12680 # Linux and Compaq Tru64 Unix objects are PIC.
12681 lt_prog_compiler_pic_CXX=
12682 lt_prog_compiler_static_CXX='-non_shared'
12691 case $cc_basename in
12693 # Sun C++ 4.2, 5.x and Centerline C++
12694 lt_prog_compiler_pic_CXX='-KPIC'
12695 lt_prog_compiler_static_CXX='-Bstatic'
12696 lt_prog_compiler_wl_CXX='-Qoption ld '
12699 # Green Hills C++ Compiler
12700 lt_prog_compiler_pic_CXX='-PIC'
12707 case $cc_basename in
12710 lt_prog_compiler_pic_CXX='-pic'
12711 lt_prog_compiler_static_CXX='-Bstatic'
12715 lt_prog_compiler_pic_CXX='-pic'
12722 case $cc_basename in
12724 # NonStop-UX NCC 3.20
12725 lt_prog_compiler_pic_CXX='-KPIC'
12731 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12732 case $cc_basename in
12734 lt_prog_compiler_wl_CXX='-Wl,'
12735 lt_prog_compiler_pic_CXX='-KPIC'
12736 lt_prog_compiler_static_CXX='-Bstatic'
12743 lt_prog_compiler_can_build_shared_CXX=no
12748 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12749 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12752 # Check to make sure the PIC flag actually works.
12754 if test -n "$lt_prog_compiler_pic_CXX"; then
12756 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12757 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12758 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12759 echo $ECHO_N "(cached) $ECHO_C" >&6
12761 lt_cv_prog_compiler_pic_works_CXX=no
12762 ac_outfile=conftest.$ac_objext
12763 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12764 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12765 # Insert the option either (1) after the last *FLAGS variable, or
12766 # (2) before a word containing "conftest.", or (3) at the end.
12767 # Note that $ac_compile itself does not contain backslashes and begins
12768 # with a dollar sign (not a hyphen), so the echo should work correctly.
12769 # The option is referenced via a variable to avoid confusing sed.
12770 lt_compile=`echo "$ac_compile" | $SED \
12771 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12772 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12773 -e 's:$: $lt_compiler_flag:'`
12774 (eval echo "\"\$as_me:12774: $lt_compile\"" >&5)
12775 (eval "$lt_compile" 2>conftest.err)
12777 cat conftest.err >&5
12778 echo "$as_me:12778: \$? = $ac_status" >&5
12779 if (exit $ac_status) && test -s "$ac_outfile"; then
12780 # The compiler can only warn and ignore the option if not recognized
12781 # So say no if there are warnings other than the usual output.
12782 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12783 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12784 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12785 lt_cv_prog_compiler_pic_works_CXX=yes
12791 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12792 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12794 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12795 case $lt_prog_compiler_pic_CXX in
12797 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12800 lt_prog_compiler_pic_CXX=
12801 lt_prog_compiler_can_build_shared_CXX=no
12806 # For platforms which do not support PIC, -DPIC is meaningless:
12808 lt_prog_compiler_pic_CXX=
12811 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12816 # Check to make sure the static flag actually works.
12818 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12819 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12820 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12821 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12822 echo $ECHO_N "(cached) $ECHO_C" >&6
12824 lt_cv_prog_compiler_static_works_CXX=no
12825 save_LDFLAGS="$LDFLAGS"
12826 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12827 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12828 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12829 # The linker can only warn and ignore the option if not recognized
12830 # So say no if there are warnings
12831 if test -s conftest.err; then
12832 # Append any errors to the config.log.
12833 cat conftest.err 1>&5
12834 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12835 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12836 if diff conftest.exp conftest.er2 >/dev/null; then
12837 lt_cv_prog_compiler_static_works_CXX=yes
12840 lt_cv_prog_compiler_static_works_CXX=yes
12844 LDFLAGS="$save_LDFLAGS"
12847 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12848 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12850 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12853 lt_prog_compiler_static_CXX=
12857 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12858 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12859 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12860 echo $ECHO_N "(cached) $ECHO_C" >&6
12862 lt_cv_prog_compiler_c_o_CXX=no
12863 $rm -r conftest 2>/dev/null
12867 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12869 lt_compiler_flag="-o out/conftest2.$ac_objext"
12870 # Insert the option either (1) after the last *FLAGS variable, or
12871 # (2) before a word containing "conftest.", or (3) at the end.
12872 # Note that $ac_compile itself does not contain backslashes and begins
12873 # with a dollar sign (not a hyphen), so the echo should work correctly.
12874 lt_compile=`echo "$ac_compile" | $SED \
12875 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12876 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12877 -e 's:$: $lt_compiler_flag:'`
12878 (eval echo "\"\$as_me:12878: $lt_compile\"" >&5)
12879 (eval "$lt_compile" 2>out/conftest.err)
12881 cat out/conftest.err >&5
12882 echo "$as_me:12882: \$? = $ac_status" >&5
12883 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12885 # The compiler can only warn and ignore the option if not recognized
12886 # So say no if there are warnings
12887 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12888 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12889 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12890 lt_cv_prog_compiler_c_o_CXX=yes
12895 # SGI C++ compiler will create directory out/ii_files/ for
12896 # template instantiation
12897 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12898 $rm out/* && rmdir out
12904 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12905 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12908 hard_links="nottested"
12909 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12910 # do not overwrite the value of need_locks provided by the user
12911 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12912 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12915 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12917 ln conftest.a conftest.b 2>&5 || hard_links=no
12918 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12919 { echo "$as_me:$LINENO: result: $hard_links" >&5
12920 echo "${ECHO_T}$hard_links" >&6; }
12921 if test "$hard_links" = no; then
12922 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12923 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12930 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12931 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12933 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12936 # If we're using GNU nm, then we don't want the "-C" option.
12937 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12938 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12939 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'
12941 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'
12945 export_symbols_cmds_CXX="$ltdll_cmds"
12948 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'
12950 linux* | k*bsd*-gnu)
12951 link_all_deplibs_CXX=no
12954 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12957 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12959 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12960 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12961 test "$ld_shlibs_CXX" = no && can_build_shared=no
12964 # Do we need to explicitly link libc?
12966 case "x$archive_cmds_need_lc_CXX" in
12968 # Assume -lc should be added
12969 archive_cmds_need_lc_CXX=yes
12971 if test "$enable_shared" = yes && test "$GCC" = yes; then
12972 case $archive_cmds_CXX in
12974 # FIXME: we may have to deal with multi-command sequences.
12977 # Test whether the compiler implicitly links with -lc since on some
12978 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12979 # to ld, don't add -lc before -lgcc.
12980 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12981 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12983 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12986 (eval $ac_compile) 2>&5
12988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989 (exit $ac_status); } 2>conftest.err; then
12992 libobjs=conftest.$ac_objext
12994 wl=$lt_prog_compiler_wl_CXX
12995 pic_flag=$lt_prog_compiler_pic_CXX
13001 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13002 allow_undefined_flag_CXX=
13003 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13004 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007 (exit $ac_status); }
13009 archive_cmds_need_lc_CXX=no
13011 archive_cmds_need_lc_CXX=yes
13013 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13015 cat conftest.err 1>&5
13018 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13019 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13026 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13027 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13028 library_names_spec=
13029 libname_spec='lib$name'
13033 postuninstall_cmds=
13037 shlibpath_overrides_runpath=unknown
13039 dynamic_linker="$host_os ld.so"
13040 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13042 need_lib_prefix=unknown
13043 hardcode_into_libs=no
13045 # when you set need_version to no, make sure it does not cause -set_version
13046 # flags to be left without arguments
13047 need_version=unknown
13052 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13053 shlibpath_var=LIBPATH
13055 # AIX 3 has no versioning support, so we append a major version to the name.
13056 soname_spec='${libname}${release}${shared_ext}$major'
13063 hardcode_into_libs=yes
13064 if test "$host_cpu" = ia64; then
13065 # AIX 5 supports IA64
13066 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13067 shlibpath_var=LD_LIBRARY_PATH
13069 # With GCC up to 2.95.x, collect2 would create an import file
13070 # for dependence libraries. The import file would start with
13071 # the line `#! .'. This would cause the generated library to
13072 # depend on `.', always an invalid library. This was fixed in
13073 # development snapshots of GCC prior to 3.0.
13075 aix4 | aix4.[01] | aix4.[01].*)
13076 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13078 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13081 can_build_shared=no
13085 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13086 # soname into executable. Probably we can add versioning support to
13087 # collect2, so additional links can be useful in future.
13088 if test "$aix_use_runtimelinking" = yes; then
13089 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13090 # instead of lib<name>.a to let people know that these are not
13091 # typical AIX shared libraries.
13092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13094 # We preserve .a as extension for shared libraries through AIX4.2
13095 # and later when we are not doing run time linking.
13096 library_names_spec='${libname}${release}.a $libname.a'
13097 soname_spec='${libname}${release}${shared_ext}$major'
13099 shlibpath_var=LIBPATH
13104 library_names_spec='$libname.ixlibrary $libname.a'
13105 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13106 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'
13110 library_names_spec='${libname}${shared_ext}'
13111 dynamic_linker="$host_os ld.so"
13112 shlibpath_var=LIBRARY_PATH
13118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13119 soname_spec='${libname}${release}${shared_ext}$major'
13120 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13121 shlibpath_var=LD_LIBRARY_PATH
13122 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13123 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13124 # the default ld.so.conf also contains /usr/contrib/lib and
13125 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13126 # libtool to hard-code these into programs
13129 cygwin* | mingw* | pw32*)
13130 version_type=windows
13135 case $GCC,$host_os in
13136 yes,cygwin* | yes,mingw* | yes,pw32*)
13137 library_names_spec='$libname.dll.a'
13138 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13139 postinstall_cmds='base_file=`basename \${file}`~
13140 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13141 dldir=$destdir/`dirname \$dlpath`~
13142 test -d \$dldir || mkdir -p \$dldir~
13143 $install_prog $dir/$dlname \$dldir/$dlname~
13144 chmod a+x \$dldir/$dlname'
13145 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13146 dlpath=$dir/\$dldll~
13148 shlibpath_overrides_runpath=yes
13152 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13153 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13154 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13157 # MinGW DLLs use traditional 'lib' prefix
13158 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13159 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13160 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13161 # It is most probably a Windows format PATH printed by
13162 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13163 # path with ; separators, and with drive letters. We can handle the
13164 # drive letters (cygwin fileutils understands them), so leave them,
13165 # especially as we might pass files found there to a mingw objdump,
13166 # which wouldn't understand a cygwinified path. Ahh.
13167 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13169 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13173 # pw32 DLLs use 'pw' prefix rather than 'lib'
13174 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13180 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13183 dynamic_linker='Win32 ld.exe'
13184 # FIXME: first we should search . and the directory the executable is in
13188 darwin* | rhapsody*)
13189 dynamic_linker="$host_os dyld"
13190 version_type=darwin
13193 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13194 soname_spec='${libname}${release}${major}$shared_ext'
13195 shlibpath_overrides_runpath=yes
13196 shlibpath_var=DYLD_LIBRARY_PATH
13197 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13199 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13207 soname_spec='${libname}${release}${shared_ext}$major'
13208 shlibpath_var=LD_LIBRARY_PATH
13215 freebsd* | dragonfly*)
13216 # DragonFly does not have aout. When/if they implement a new
13217 # versioning mechanism, adjust this.
13218 if test -x /usr/bin/objformat; then
13219 objformat=`/usr/bin/objformat`
13222 freebsd[123]*) objformat=aout ;;
13223 *) objformat=elf ;;
13226 version_type=freebsd-$objformat
13227 case $version_type in
13229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13234 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13238 shlibpath_var=LD_LIBRARY_PATH
13241 shlibpath_overrides_runpath=yes
13243 freebsd3.[01]* | freebsdelf3.[01]*)
13244 shlibpath_overrides_runpath=yes
13245 hardcode_into_libs=yes
13247 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13248 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13249 shlibpath_overrides_runpath=no
13250 hardcode_into_libs=yes
13252 *) # from 4.6 on, and DragonFly
13253 shlibpath_overrides_runpath=yes
13254 hardcode_into_libs=yes
13263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13264 soname_spec='${libname}${release}${shared_ext}$major'
13265 shlibpath_var=LD_LIBRARY_PATH
13266 hardcode_into_libs=yes
13269 hpux9* | hpux10* | hpux11*)
13270 # Give a soname corresponding to the major version so that dld.sl refuses to
13271 # link against other versions.
13278 hardcode_into_libs=yes
13279 dynamic_linker="$host_os dld.so"
13280 shlibpath_var=LD_LIBRARY_PATH
13281 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13283 soname_spec='${libname}${release}${shared_ext}$major'
13284 if test "X$HPUX_IA64_MODE" = X32; then
13285 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13287 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13289 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13293 hardcode_into_libs=yes
13294 dynamic_linker="$host_os dld.sl"
13295 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13296 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13298 soname_spec='${libname}${release}${shared_ext}$major'
13299 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13300 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13304 dynamic_linker="$host_os dld.sl"
13305 shlibpath_var=SHLIB_PATH
13306 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13308 soname_spec='${libname}${release}${shared_ext}$major'
13311 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13312 postinstall_cmds='chmod 555 $lib'
13319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13320 soname_spec='${libname}${release}${shared_ext}$major'
13321 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13322 shlibpath_var=LD_LIBRARY_PATH
13323 shlibpath_overrides_runpath=no
13324 hardcode_into_libs=yes
13327 irix5* | irix6* | nonstopux*)
13329 nonstopux*) version_type=nonstopux ;;
13331 if test "$lt_cv_prog_gnu_ld" = yes; then
13339 soname_spec='${libname}${release}${shared_ext}$major'
13340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13342 irix5* | nonstopux*)
13343 libsuff= shlibsuff=
13346 case $LD in # libtool.m4 will add one of these switches to LD
13347 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13348 libsuff= shlibsuff= libmagic=32-bit;;
13349 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13350 libsuff=32 shlibsuff=N32 libmagic=N32;;
13351 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13352 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13353 *) libsuff= shlibsuff= libmagic=never-match;;
13357 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13358 shlibpath_overrides_runpath=no
13359 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13360 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13361 hardcode_into_libs=yes
13364 # No shared lib support for Linux oldld, aout, or coff.
13365 linux*oldld* | linux*aout* | linux*coff*)
13369 # This must be Linux ELF.
13370 linux* | k*bsd*-gnu)
13374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13375 soname_spec='${libname}${release}${shared_ext}$major'
13376 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13377 shlibpath_var=LD_LIBRARY_PATH
13378 shlibpath_overrides_runpath=no
13379 # This implies no fast_install, which is unacceptable.
13380 # Some rework will be needed to allow for fast_install
13381 # before this can be enabled.
13382 hardcode_into_libs=yes
13384 # Append ld.so.conf contents to the search path
13385 if test -f /etc/ld.so.conf; then
13386 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' ' '`
13387 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13390 # We used to test for /lib/ld.so.1 and disable shared libraries on
13391 # powerpc, because MkLinux only supported shared libraries with the
13392 # GNU dynamic linker. Since this was broken with cross compilers,
13393 # most powerpc-linux boxes support dynamic linking these days and
13394 # people can always --disable-shared, the test was removed, and we
13395 # assume the GNU/Linux dynamic linker is in use.
13396 dynamic_linker='GNU/Linux ld.so'
13403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13404 soname_spec='${libname}${release}${shared_ext}$major'
13405 shlibpath_var=LD_LIBRARY_PATH
13406 shlibpath_overrides_runpath=no
13407 hardcode_into_libs=yes
13408 dynamic_linker='NetBSD ld.elf_so'
13415 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13417 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13418 dynamic_linker='NetBSD (a.out) ld.so'
13420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13421 soname_spec='${libname}${release}${shared_ext}$major'
13422 dynamic_linker='NetBSD ld.elf_so'
13424 shlibpath_var=LD_LIBRARY_PATH
13425 shlibpath_overrides_runpath=yes
13426 hardcode_into_libs=yes
13431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13432 shlibpath_var=LD_LIBRARY_PATH
13433 shlibpath_overrides_runpath=yes
13440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13441 soname_spec='${libname}${release}${shared_ext}$major'
13442 shlibpath_var=LD_LIBRARY_PATH
13443 shlibpath_overrides_runpath=yes
13448 sys_lib_dlsearch_path_spec="/usr/lib"
13450 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13452 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13453 *) need_version=no ;;
13455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13456 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13457 shlibpath_var=LD_LIBRARY_PATH
13458 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13460 openbsd2.[89] | openbsd2.[89].*)
13461 shlibpath_overrides_runpath=no
13464 shlibpath_overrides_runpath=yes
13468 shlibpath_overrides_runpath=yes
13473 libname_spec='$name'
13476 library_names_spec='$libname${shared_ext} $libname.a'
13477 dynamic_linker='OS/2 ld.exe'
13478 shlibpath_var=LIBPATH
13481 osf3* | osf4* | osf5*)
13485 soname_spec='${libname}${release}${shared_ext}$major'
13486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13487 shlibpath_var=LD_LIBRARY_PATH
13488 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13489 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13501 soname_spec='${libname}${release}${shared_ext}$major'
13502 shlibpath_var=LD_LIBRARY_PATH
13503 shlibpath_overrides_runpath=yes
13504 hardcode_into_libs=yes
13505 # ldd complains unless libraries are executable
13506 postinstall_cmds='chmod +x $lib'
13511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13512 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13513 shlibpath_var=LD_LIBRARY_PATH
13514 shlibpath_overrides_runpath=yes
13515 if test "$with_gnu_ld" = yes; then
13523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13524 soname_spec='${libname}${release}${shared_ext}$major'
13525 shlibpath_var=LD_LIBRARY_PATH
13526 case $host_vendor in
13528 shlibpath_overrides_runpath=no
13530 export_dynamic_flag_spec='${wl}-Blargedynsym'
13531 runpath_var=LD_RUN_PATH
13539 shlibpath_overrides_runpath=no
13540 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13546 if test -d /usr/nec ;then
13548 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13549 soname_spec='$libname${shared_ext}.$major'
13550 shlibpath_var=LD_LIBRARY_PATH
13554 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13555 version_type=freebsd-elf
13558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13559 soname_spec='${libname}${release}${shared_ext}$major'
13560 shlibpath_var=LD_LIBRARY_PATH
13561 hardcode_into_libs=yes
13562 if test "$with_gnu_ld" = yes; then
13563 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13564 shlibpath_overrides_runpath=no
13566 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13567 shlibpath_overrides_runpath=yes
13570 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13574 sys_lib_dlsearch_path_spec='/usr/lib'
13579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13580 soname_spec='${libname}${release}${shared_ext}$major'
13581 shlibpath_var=LD_LIBRARY_PATH
13588 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13589 echo "${ECHO_T}$dynamic_linker" >&6; }
13590 test "$dynamic_linker" = no && can_build_shared=no
13592 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13593 echo $ECHO_N "(cached) $ECHO_C" >&6
13595 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13598 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13599 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13600 echo $ECHO_N "(cached) $ECHO_C" >&6
13602 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13605 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13607 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13608 if test "$GCC" = yes; then
13609 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13612 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13613 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13614 hardcode_action_CXX=
13615 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13616 test -n "$runpath_var_CXX" || \
13617 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13619 # We can hardcode non-existant directories.
13620 if test "$hardcode_direct_CXX" != no &&
13621 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13622 # have to relink, otherwise we might link with an installed library
13623 # when we should be linking with a yet-to-be-installed one
13624 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13625 test "$hardcode_minus_L_CXX" != no; then
13626 # Linking always hardcodes the temporary library directory.
13627 hardcode_action_CXX=relink
13629 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13630 hardcode_action_CXX=immediate
13633 # We cannot hardcode anything, or else we can only hardcode existing
13635 hardcode_action_CXX=unsupported
13637 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13638 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13640 if test "$hardcode_action_CXX" = relink; then
13641 # Fast installation is not supported
13642 enable_fast_install=no
13643 elif test "$shlibpath_overrides_runpath" = yes ||
13644 test "$enable_shared" = no; then
13645 # Fast installation is not necessary
13646 enable_fast_install=needless
13650 # The else clause should only fire when bootstrapping the
13651 # libtool distribution, otherwise you forgot to ship ltmain.sh
13652 # with your package, and you will get complaints that there are
13653 # no rules to generate ltmain.sh.
13654 if test -f "$ltmain"; then
13655 # See if we are running on zsh, and set the options which allow our commands through
13656 # without removal of \ escapes.
13657 if test -n "${ZSH_VERSION+set}" ; then
13658 setopt NO_GLOB_SUBST
13660 # Now quote all the things that may contain metacharacters while being
13661 # careful not to overquote the AC_SUBSTed values. We take copies of the
13662 # variables and quote the copies for generation of the libtool script.
13663 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13665 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13666 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13667 deplibs_check_method reload_flag reload_cmds need_locks \
13668 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13669 lt_cv_sys_global_symbol_to_c_name_address \
13670 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13671 old_postinstall_cmds old_postuninstall_cmds \
13675 lt_prog_compiler_wl_CXX \
13676 lt_prog_compiler_pic_CXX \
13677 lt_prog_compiler_static_CXX \
13678 lt_prog_compiler_no_builtin_flag_CXX \
13679 export_dynamic_flag_spec_CXX \
13680 thread_safe_flag_spec_CXX \
13681 whole_archive_flag_spec_CXX \
13682 enable_shared_with_static_runtimes_CXX \
13683 old_archive_cmds_CXX \
13684 old_archive_from_new_cmds_CXX \
13685 predep_objects_CXX \
13686 postdep_objects_CXX \
13689 compiler_lib_search_path_CXX \
13690 compiler_lib_search_dirs_CXX \
13692 archive_expsym_cmds_CXX \
13693 postinstall_cmds_CXX \
13694 postuninstall_cmds_CXX \
13695 old_archive_from_expsyms_cmds_CXX \
13696 allow_undefined_flag_CXX \
13697 no_undefined_flag_CXX \
13698 export_symbols_cmds_CXX \
13699 hardcode_libdir_flag_spec_CXX \
13700 hardcode_libdir_flag_spec_ld_CXX \
13701 hardcode_libdir_separator_CXX \
13702 hardcode_automatic_CXX \
13704 module_expsym_cmds_CXX \
13705 lt_cv_prog_compiler_c_o_CXX \
13706 fix_srcfile_path_CXX \
13707 exclude_expsyms_CXX \
13708 include_expsyms_CXX; do
13711 old_archive_cmds_CXX | \
13712 old_archive_from_new_cmds_CXX | \
13713 archive_cmds_CXX | \
13714 archive_expsym_cmds_CXX | \
13715 module_cmds_CXX | \
13716 module_expsym_cmds_CXX | \
13717 old_archive_from_expsyms_cmds_CXX | \
13718 export_symbols_cmds_CXX | \
13719 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13720 postinstall_cmds | postuninstall_cmds | \
13721 old_postinstall_cmds | old_postuninstall_cmds | \
13722 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13723 # Double-quote double-evaled strings.
13724 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13727 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13733 *'\$0 --fallback-echo"')
13734 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13740 cat <<__EOF__ >> "$cfgfile"
13741 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13743 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13745 # Shell to use when invoking shell scripts.
13748 # Whether or not to build shared libraries.
13749 build_libtool_libs=$enable_shared
13751 # Whether or not to build static libraries.
13752 build_old_libs=$enable_static
13754 # Whether or not to add -lc for building shared libraries.
13755 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13757 # Whether or not to disallow shared libs when runtime libs are static
13758 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13760 # Whether or not to optimize for fast installation.
13761 fast_install=$enable_fast_install
13764 host_alias=$host_alias
13768 # The build system.
13769 build_alias=$build_alias
13773 # An echo program that does not interpret backslashes.
13778 AR_FLAGS=$lt_AR_FLAGS
13783 # LTCC compiler flags.
13784 LTCFLAGS=$lt_LTCFLAGS
13786 # A language-specific compiler.
13787 CC=$lt_compiler_CXX
13789 # Is the compiler the GNU C compiler?
13795 # The linker used to build libraries.
13798 # Whether we need hard or soft links.
13801 # A BSD-compatible nm program.
13804 # A symbol stripping program
13807 # Used to examine libraries when file_magic_cmd begins "file"
13808 MAGIC_CMD=$MAGIC_CMD
13810 # Used on cygwin: DLL creation program.
13813 # Used on cygwin: object dumper.
13816 # Used on cygwin: assembler.
13819 # The name of the directory that contains temporary libtool files.
13822 # How to create reloadable object files.
13823 reload_flag=$lt_reload_flag
13824 reload_cmds=$lt_reload_cmds
13826 # How to pass a linker flag through the compiler.
13827 wl=$lt_lt_prog_compiler_wl_CXX
13829 # Object file suffix (normally "o").
13830 objext="$ac_objext"
13832 # Old archive suffix (normally "a").
13835 # Shared library suffix (normally ".so").
13836 shrext_cmds='$shrext_cmds'
13838 # Executable file suffix (normally "").
13841 # Additional compiler flags for building library objects.
13842 pic_flag=$lt_lt_prog_compiler_pic_CXX
13845 # What is the maximum length of a command?
13846 max_cmd_len=$lt_cv_sys_max_cmd_len
13848 # Does compiler simultaneously support -c and -o options?
13849 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13851 # Must we lock files when doing compilation?
13852 need_locks=$lt_need_locks
13854 # Do we need the lib prefix for modules?
13855 need_lib_prefix=$need_lib_prefix
13857 # Do we need a version for libraries?
13858 need_version=$need_version
13860 # Whether dlopen is supported.
13861 dlopen_support=$enable_dlopen
13863 # Whether dlopen of programs is supported.
13864 dlopen_self=$enable_dlopen_self
13866 # Whether dlopen of statically linked programs is supported.
13867 dlopen_self_static=$enable_dlopen_self_static
13869 # Compiler flag to prevent dynamic linking.
13870 link_static_flag=$lt_lt_prog_compiler_static_CXX
13872 # Compiler flag to turn off builtin functions.
13873 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13875 # Compiler flag to allow reflexive dlopens.
13876 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13878 # Compiler flag to generate shared objects directly from archives.
13879 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13881 # Compiler flag to generate thread-safe objects.
13882 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13884 # Library versioning type.
13885 version_type=$version_type
13887 # Format of library name prefix.
13888 libname_spec=$lt_libname_spec
13890 # List of archive names. First name is the real one, the rest are links.
13891 # The last name is the one that the linker finds with -lNAME.
13892 library_names_spec=$lt_library_names_spec
13894 # The coded name of the library, if different from the real name.
13895 soname_spec=$lt_soname_spec
13897 # Commands used to build and install an old-style archive.
13899 old_archive_cmds=$lt_old_archive_cmds_CXX
13900 old_postinstall_cmds=$lt_old_postinstall_cmds
13901 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13903 # Create an old-style archive from a shared archive.
13904 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13906 # Create a temporary old-style archive to link instead of a shared archive.
13907 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13909 # Commands used to build and install a shared archive.
13910 archive_cmds=$lt_archive_cmds_CXX
13911 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13912 postinstall_cmds=$lt_postinstall_cmds
13913 postuninstall_cmds=$lt_postuninstall_cmds
13915 # Commands used to build a loadable module (assumed same as above if empty)
13916 module_cmds=$lt_module_cmds_CXX
13917 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13919 # Commands to strip libraries.
13920 old_striplib=$lt_old_striplib
13921 striplib=$lt_striplib
13923 # Dependencies to place before the objects being linked to create a
13925 predep_objects=$lt_predep_objects_CXX
13927 # Dependencies to place after the objects being linked to create a
13929 postdep_objects=$lt_postdep_objects_CXX
13931 # Dependencies to place before the objects being linked to create a
13933 predeps=$lt_predeps_CXX
13935 # Dependencies to place after the objects being linked to create a
13937 postdeps=$lt_postdeps_CXX
13939 # The directories searched by this compiler when creating a shared
13941 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13943 # The library search path used internally by the compiler when linking
13944 # a shared library.
13945 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13947 # Method to check whether dependent libraries are shared objects.
13948 deplibs_check_method=$lt_deplibs_check_method
13950 # Command to use when deplibs_check_method == file_magic.
13951 file_magic_cmd=$lt_file_magic_cmd
13953 # Flag that allows shared libraries with undefined symbols to be built.
13954 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13956 # Flag that forces no undefined symbols.
13957 no_undefined_flag=$lt_no_undefined_flag_CXX
13959 # Commands used to finish a libtool library installation in a directory.
13960 finish_cmds=$lt_finish_cmds
13962 # Same as above, but a single script fragment to be evaled but not shown.
13963 finish_eval=$lt_finish_eval
13965 # Take the output of nm and produce a listing of raw symbols and C names.
13966 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13968 # Transform the output of nm in a proper C declaration
13969 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13971 # Transform the output of nm in a C name address pair
13972 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13974 # This is the shared library runtime path variable.
13975 runpath_var=$runpath_var
13977 # This is the shared library path variable.
13978 shlibpath_var=$shlibpath_var
13980 # Is shlibpath searched before the hard-coded library search path?
13981 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13983 # How to hardcode a shared library path into an executable.
13984 hardcode_action=$hardcode_action_CXX
13986 # Whether we should hardcode library paths into libraries.
13987 hardcode_into_libs=$hardcode_into_libs
13989 # Flag to hardcode \$libdir into a binary during linking.
13990 # This must work even if \$libdir does not exist.
13991 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13993 # If ld is used when linking, flag to hardcode \$libdir into
13994 # a binary during linking. This must work even if \$libdir does
13996 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13998 # Whether we need a single -rpath flag with a separated argument.
13999 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14001 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14002 # resulting binary.
14003 hardcode_direct=$hardcode_direct_CXX
14005 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14006 # resulting binary.
14007 hardcode_minus_L=$hardcode_minus_L_CXX
14009 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14010 # the resulting binary.
14011 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14013 # Set to yes if building a shared library automatically hardcodes DIR into the library
14014 # and all subsequent libraries and executables linked against it.
14015 hardcode_automatic=$hardcode_automatic_CXX
14017 # Variables whose values should be saved in libtool wrapper scripts and
14018 # restored at relink time.
14019 variables_saved_for_relink="$variables_saved_for_relink"
14021 # Whether libtool must link a program against all its dependency libraries.
14022 link_all_deplibs=$link_all_deplibs_CXX
14024 # Compile-time system search path for libraries
14025 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14027 # Run-time system search path for libraries
14028 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14030 # Fix the shell variable \$srcfile for the compiler.
14031 fix_srcfile_path=$lt_fix_srcfile_path
14033 # Set to yes if exported symbols are required.
14034 always_export_symbols=$always_export_symbols_CXX
14036 # The commands to list exported symbols.
14037 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14039 # The commands to extract the exported symbol list from a shared archive.
14040 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14042 # Symbols that should not be listed in the preloaded symbols.
14043 exclude_expsyms=$lt_exclude_expsyms_CXX
14045 # Symbols that must always be exported.
14046 include_expsyms=$lt_include_expsyms_CXX
14048 # ### END LIBTOOL TAG CONFIG: $tagname
14054 # If there is no Makefile yet, we rely on a make rule to execute
14055 # `config.status --recheck' to rerun these tests and create the
14056 # libtool script then.
14057 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14058 if test -f "$ltmain_in"; then
14059 test -f Makefile && make "$ltmain"
14065 ac_cpp='$CPP $CPPFLAGS'
14066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14074 with_gnu_ldcxx=$with_gnu_ld
14075 with_gnu_ld=$lt_save_with_gnu_ld
14076 lt_cv_path_LDCXX=$lt_cv_path_LD
14077 lt_cv_path_LD=$lt_save_path_LD
14078 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14079 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14087 if test -n "$F77" && test "X$F77" != "Xno"; then
14090 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14091 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14092 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14095 archive_cmds_need_lc_F77=no
14096 allow_undefined_flag_F77=
14097 always_export_symbols_F77=no
14098 archive_expsym_cmds_F77=
14099 export_dynamic_flag_spec_F77=
14100 hardcode_direct_F77=no
14101 hardcode_libdir_flag_spec_F77=
14102 hardcode_libdir_flag_spec_ld_F77=
14103 hardcode_libdir_separator_F77=
14104 hardcode_minus_L_F77=no
14105 hardcode_automatic_F77=no
14107 module_expsym_cmds_F77=
14108 link_all_deplibs_F77=unknown
14109 old_archive_cmds_F77=$old_archive_cmds
14110 no_undefined_flag_F77=
14111 whole_archive_flag_spec_F77=
14112 enable_shared_with_static_runtimes_F77=no
14114 # Source file extension for f77 test sources.
14117 # Object file extension for compiled f77 test sources.
14121 # Code to be used in simple compile tests
14122 lt_simple_compile_test_code="\
14128 # Code to be used in simple link tests
14129 lt_simple_link_test_code="\
14134 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14136 # If no C compiler was specified, use CC.
14139 # If no C compiler flags were specified, use CFLAGS.
14140 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14142 # Allow CC to be a program name with arguments.
14146 # save warnings/boilerplate of simple test code
14147 ac_outfile=conftest.$ac_objext
14148 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14149 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14150 _lt_compiler_boilerplate=`cat conftest.err`
14153 ac_outfile=conftest.$ac_objext
14154 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14155 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14156 _lt_linker_boilerplate=`cat conftest.err`
14160 # Allow CC to be a program name with arguments.
14165 for cc_temp in $compiler""; do
14167 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14168 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14173 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14176 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14177 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14178 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14179 echo "${ECHO_T}$can_build_shared" >&6; }
14181 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14182 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14183 test "$can_build_shared" = "no" && enable_shared=no
14185 # On AIX, shared libraries and static libraries use the same namespace, and
14186 # are all built from PIC.
14189 test "$enable_shared" = yes && enable_static=no
14190 if test -n "$RANLIB"; then
14191 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14192 postinstall_cmds='$RANLIB $lib'
14196 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14197 test "$enable_shared" = yes && enable_static=no
14201 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14202 echo "${ECHO_T}$enable_shared" >&6; }
14204 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14205 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14206 # Make sure either enable_shared or enable_static is yes.
14207 test "$enable_shared" = yes || enable_static=yes
14208 { echo "$as_me:$LINENO: result: $enable_static" >&5
14209 echo "${ECHO_T}$enable_static" >&6; }
14214 lt_prog_compiler_wl_F77=
14215 lt_prog_compiler_pic_F77=
14216 lt_prog_compiler_static_F77=
14218 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14219 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14221 if test "$GCC" = yes; then
14222 lt_prog_compiler_wl_F77='-Wl,'
14223 lt_prog_compiler_static_F77='-static'
14227 # All AIX code is PIC.
14228 if test "$host_cpu" = ia64; then
14229 # AIX 5 now supports IA64 processor
14230 lt_prog_compiler_static_F77='-Bstatic'
14235 # FIXME: we need at least 68020 code to build shared libraries, but
14236 # adding the `-m68020' flag to GCC prevents building anything better,
14238 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14241 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14242 # PIC is the default for these OSes.
14245 mingw* | cygwin* | pw32* | os2*)
14246 # This hack is so that the source file can tell whether it is being
14247 # built for inclusion in a dll (and should export symbols for example).
14248 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14249 # (--disable-auto-import) libraries
14250 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14253 darwin* | rhapsody*)
14254 # PIC is the default on this platform
14255 # Common symbols not allowed in MH_DYLIB files
14256 lt_prog_compiler_pic_F77='-fno-common'
14260 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14261 # Instead, we relocate shared libraries at runtime.
14265 # Just because we use GCC doesn't mean we suddenly get shared libraries
14266 # on systems that don't support them.
14267 lt_prog_compiler_can_build_shared_F77=no
14272 if test -d /usr/nec; then
14273 lt_prog_compiler_pic_F77=-Kconform_pic
14278 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14279 # not for PA HP-UX.
14285 lt_prog_compiler_pic_F77='-fPIC'
14291 lt_prog_compiler_pic_F77='-fPIC'
14295 # PORTME Check for flag to pass linker flags through the system compiler.
14298 lt_prog_compiler_wl_F77='-Wl,'
14299 if test "$host_cpu" = ia64; then
14300 # AIX 5 now supports IA64 processor
14301 lt_prog_compiler_static_F77='-Bstatic'
14303 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14307 # PIC is the default on this platform
14308 # Common symbols not allowed in MH_DYLIB files
14309 case $cc_basename in
14311 lt_prog_compiler_pic_F77='-qnocommon'
14312 lt_prog_compiler_wl_F77='-Wl,'
14317 mingw* | cygwin* | pw32* | os2*)
14318 # This hack is so that the source file can tell whether it is being
14319 # built for inclusion in a dll (and should export symbols for example).
14320 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14323 hpux9* | hpux10* | hpux11*)
14324 lt_prog_compiler_wl_F77='-Wl,'
14325 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14326 # not for PA HP-UX.
14332 lt_prog_compiler_pic_F77='+Z'
14335 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14336 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14339 irix5* | irix6* | nonstopux*)
14340 lt_prog_compiler_wl_F77='-Wl,'
14341 # PIC (with -KPIC) is the default.
14342 lt_prog_compiler_static_F77='-non_shared'
14346 lt_prog_compiler_pic_F77='-KPIC'
14347 lt_prog_compiler_static_F77='-Bstatic'
14350 linux* | k*bsd*-gnu)
14351 case $cc_basename in
14353 lt_prog_compiler_wl_F77='-Wl,'
14354 lt_prog_compiler_pic_F77='-KPIC'
14355 lt_prog_compiler_static_F77='-static'
14357 pgcc* | pgf77* | pgf90* | pgf95*)
14358 # Portland Group compilers (*not* the Pentium gcc compiler,
14359 # which looks to be a dead project)
14360 lt_prog_compiler_wl_F77='-Wl,'
14361 lt_prog_compiler_pic_F77='-fpic'
14362 lt_prog_compiler_static_F77='-Bstatic'
14365 lt_prog_compiler_wl_F77='-Wl,'
14366 # All Alpha code is PIC.
14367 lt_prog_compiler_static_F77='-non_shared'
14370 case `$CC -V 2>&1 | sed 5q` in
14373 lt_prog_compiler_pic_F77='-KPIC'
14374 lt_prog_compiler_static_F77='-Bstatic'
14375 lt_prog_compiler_wl_F77='-Wl,'
14378 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14379 lt_prog_compiler_pic_F77='-KPIC'
14380 lt_prog_compiler_static_F77='-Bstatic'
14381 lt_prog_compiler_wl_F77=''
14388 osf3* | osf4* | osf5*)
14389 lt_prog_compiler_wl_F77='-Wl,'
14390 # All OSF/1 code is PIC.
14391 lt_prog_compiler_static_F77='-non_shared'
14395 lt_prog_compiler_static_F77='-non_shared'
14399 lt_prog_compiler_pic_F77='-KPIC'
14400 lt_prog_compiler_static_F77='-Bstatic'
14401 case $cc_basename in
14402 f77* | f90* | f95*)
14403 lt_prog_compiler_wl_F77='-Qoption ld ';;
14405 lt_prog_compiler_wl_F77='-Wl,';;
14410 lt_prog_compiler_wl_F77='-Qoption ld '
14411 lt_prog_compiler_pic_F77='-PIC'
14412 lt_prog_compiler_static_F77='-Bstatic'
14415 sysv4 | sysv4.2uw2* | sysv4.3*)
14416 lt_prog_compiler_wl_F77='-Wl,'
14417 lt_prog_compiler_pic_F77='-KPIC'
14418 lt_prog_compiler_static_F77='-Bstatic'
14422 if test -d /usr/nec ;then
14423 lt_prog_compiler_pic_F77='-Kconform_pic'
14424 lt_prog_compiler_static_F77='-Bstatic'
14428 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14429 lt_prog_compiler_wl_F77='-Wl,'
14430 lt_prog_compiler_pic_F77='-KPIC'
14431 lt_prog_compiler_static_F77='-Bstatic'
14435 lt_prog_compiler_wl_F77='-Wl,'
14436 lt_prog_compiler_can_build_shared_F77=no
14440 lt_prog_compiler_pic_F77='-pic'
14441 lt_prog_compiler_static_F77='-Bstatic'
14445 lt_prog_compiler_can_build_shared_F77=no
14450 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14451 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14454 # Check to make sure the PIC flag actually works.
14456 if test -n "$lt_prog_compiler_pic_F77"; then
14458 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14459 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14460 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14461 echo $ECHO_N "(cached) $ECHO_C" >&6
14463 lt_cv_prog_compiler_pic_works_F77=no
14464 ac_outfile=conftest.$ac_objext
14465 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14466 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14467 # Insert the option either (1) after the last *FLAGS variable, or
14468 # (2) before a word containing "conftest.", or (3) at the end.
14469 # Note that $ac_compile itself does not contain backslashes and begins
14470 # with a dollar sign (not a hyphen), so the echo should work correctly.
14471 # The option is referenced via a variable to avoid confusing sed.
14472 lt_compile=`echo "$ac_compile" | $SED \
14473 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14474 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14475 -e 's:$: $lt_compiler_flag:'`
14476 (eval echo "\"\$as_me:14476: $lt_compile\"" >&5)
14477 (eval "$lt_compile" 2>conftest.err)
14479 cat conftest.err >&5
14480 echo "$as_me:14480: \$? = $ac_status" >&5
14481 if (exit $ac_status) && test -s "$ac_outfile"; then
14482 # The compiler can only warn and ignore the option if not recognized
14483 # So say no if there are warnings other than the usual output.
14484 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14485 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14486 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14487 lt_cv_prog_compiler_pic_works_F77=yes
14493 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14494 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14496 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14497 case $lt_prog_compiler_pic_F77 in
14499 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14502 lt_prog_compiler_pic_F77=
14503 lt_prog_compiler_can_build_shared_F77=no
14508 # For platforms which do not support PIC, -DPIC is meaningless:
14510 lt_prog_compiler_pic_F77=
14513 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14518 # Check to make sure the static flag actually works.
14520 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14521 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14522 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14523 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14524 echo $ECHO_N "(cached) $ECHO_C" >&6
14526 lt_cv_prog_compiler_static_works_F77=no
14527 save_LDFLAGS="$LDFLAGS"
14528 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14529 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14530 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14531 # The linker can only warn and ignore the option if not recognized
14532 # So say no if there are warnings
14533 if test -s conftest.err; then
14534 # Append any errors to the config.log.
14535 cat conftest.err 1>&5
14536 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14537 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14538 if diff conftest.exp conftest.er2 >/dev/null; then
14539 lt_cv_prog_compiler_static_works_F77=yes
14542 lt_cv_prog_compiler_static_works_F77=yes
14546 LDFLAGS="$save_LDFLAGS"
14549 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14550 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14552 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14555 lt_prog_compiler_static_F77=
14559 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14560 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14561 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14562 echo $ECHO_N "(cached) $ECHO_C" >&6
14564 lt_cv_prog_compiler_c_o_F77=no
14565 $rm -r conftest 2>/dev/null
14569 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14571 lt_compiler_flag="-o out/conftest2.$ac_objext"
14572 # Insert the option either (1) after the last *FLAGS variable, or
14573 # (2) before a word containing "conftest.", or (3) at the end.
14574 # Note that $ac_compile itself does not contain backslashes and begins
14575 # with a dollar sign (not a hyphen), so the echo should work correctly.
14576 lt_compile=`echo "$ac_compile" | $SED \
14577 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14578 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14579 -e 's:$: $lt_compiler_flag:'`
14580 (eval echo "\"\$as_me:14580: $lt_compile\"" >&5)
14581 (eval "$lt_compile" 2>out/conftest.err)
14583 cat out/conftest.err >&5
14584 echo "$as_me:14584: \$? = $ac_status" >&5
14585 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14587 # The compiler can only warn and ignore the option if not recognized
14588 # So say no if there are warnings
14589 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14590 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14591 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14592 lt_cv_prog_compiler_c_o_F77=yes
14597 # SGI C++ compiler will create directory out/ii_files/ for
14598 # template instantiation
14599 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14600 $rm out/* && rmdir out
14606 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14607 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14610 hard_links="nottested"
14611 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14612 # do not overwrite the value of need_locks provided by the user
14613 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14614 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14617 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14619 ln conftest.a conftest.b 2>&5 || hard_links=no
14620 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14621 { echo "$as_me:$LINENO: result: $hard_links" >&5
14622 echo "${ECHO_T}$hard_links" >&6; }
14623 if test "$hard_links" = no; then
14624 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14625 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14632 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14633 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14636 allow_undefined_flag_F77=
14637 enable_shared_with_static_runtimes_F77=no
14639 archive_expsym_cmds_F77=
14640 old_archive_From_new_cmds_F77=
14641 old_archive_from_expsyms_cmds_F77=
14642 export_dynamic_flag_spec_F77=
14643 whole_archive_flag_spec_F77=
14644 thread_safe_flag_spec_F77=
14645 hardcode_libdir_flag_spec_F77=
14646 hardcode_libdir_flag_spec_ld_F77=
14647 hardcode_libdir_separator_F77=
14648 hardcode_direct_F77=no
14649 hardcode_minus_L_F77=no
14650 hardcode_shlibpath_var_F77=unsupported
14651 link_all_deplibs_F77=unknown
14652 hardcode_automatic_F77=no
14654 module_expsym_cmds_F77=
14655 always_export_symbols_F77=no
14656 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14657 # include_expsyms should be a list of space-separated symbols to be *always*
14658 # included in the symbol list
14659 include_expsyms_F77=
14660 # exclude_expsyms can be an extended regexp of symbols to exclude
14661 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14662 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14663 # as well as any symbol that contains `d'.
14664 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14665 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14666 # platforms (ab)use it in PIC code, but their linkers get confused if
14667 # the symbol is explicitly referenced. Since portable code cannot
14668 # rely on this symbol name, it's probably fine to never include it in
14669 # preloaded symbol tables.
14670 # Exclude shared library initialization/finalization symbols.
14671 extract_expsyms_cmds=
14672 # Just being paranoid about ensuring that cc_basename is set.
14673 for cc_temp in $compiler""; do
14675 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14676 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14681 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14684 cygwin* | mingw* | pw32*)
14685 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14686 # When not using gcc, we currently assume that we are using
14687 # Microsoft Visual C++.
14688 if test "$GCC" != yes; then
14693 # we just hope/assume this is gcc and not c89 (= MSVC++)
14702 if test "$with_gnu_ld" = yes; then
14703 # If archive_cmds runs LD, not CC, wlarc should be empty
14706 # Set some defaults for GNU ld with shared library support. These
14707 # are reset later if shared libraries are not supported. Putting them
14708 # here allows them to be overridden if necessary.
14709 runpath_var=LD_RUN_PATH
14710 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14711 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14712 # ancient GNU ld didn't support --whole-archive et. al.
14713 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14714 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14716 whole_archive_flag_spec_F77=
14718 supports_anon_versioning=no
14719 case `$LD -v 2>/dev/null` in
14720 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14721 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14722 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14723 *\ 2.11.*) ;; # other 2.11 versions
14724 *) supports_anon_versioning=yes ;;
14727 # See if GNU ld supports shared libraries.
14730 # On AIX/PPC, the GNU linker is very broken
14731 if test "$host_cpu" != ia64; then
14735 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14736 *** to be unable to reliably create shared libraries on AIX.
14737 *** Therefore, libtool is disabling shared libraries support. If you
14738 *** really care for shared libraries, you may want to modify your PATH
14739 *** so that a non-GNU linker is found, and then restart.
14746 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)'
14747 hardcode_libdir_flag_spec_F77='-L$libdir'
14748 hardcode_minus_L_F77=yes
14750 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14751 # that the semantics of dynamic libraries on AmigaOS, at least up
14752 # to version 4, is to share data among multiple programs linked
14753 # with the same dynamic library. Since this doesn't match the
14754 # behavior of shared libraries on other platforms, we can't use
14760 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14761 allow_undefined_flag_F77=unsupported
14762 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14763 # support --undefined. This deserves some investigation. FIXME
14764 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14770 cygwin* | mingw* | pw32*)
14771 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14772 # as there is no search path for DLLs.
14773 hardcode_libdir_flag_spec_F77='-L$libdir'
14774 allow_undefined_flag_F77=unsupported
14775 always_export_symbols_F77=no
14776 enable_shared_with_static_runtimes_F77=yes
14777 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14779 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14780 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14781 # If the export-symbols file already is a .def file (1st line
14782 # is EXPORTS), use it as is; otherwise, prepend...
14783 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14784 cp $export_symbols $output_objdir/$soname.def;
14786 echo EXPORTS > $output_objdir/$soname.def;
14787 cat $export_symbols >> $output_objdir/$soname.def;
14789 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14796 hardcode_direct_F77=no
14797 hardcode_shlibpath_var_F77=no
14798 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14799 export_dynamic_flag_spec_F77='${wl}-E'
14800 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14801 # Instead, shared libraries are loaded at an image base (0x10000000 by
14802 # default) and relocated if they conflict, which is a slow very memory
14803 # consuming and fragmenting process. To avoid this, we pick a random,
14804 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14805 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14806 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'
14807 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'
14810 gnu* | linux* | k*bsd*-gnu)
14811 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14813 case $cc_basename,$host_cpu in
14814 pgcc*) # Portland Group C compiler
14815 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'
14816 tmp_addflag=' $pic_flag'
14818 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14819 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'
14820 tmp_addflag=' $pic_flag -Mnomain' ;;
14821 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14822 tmp_addflag=' -i_dynamic' ;;
14823 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14824 tmp_addflag=' -i_dynamic -nofor_main' ;;
14825 ifc* | ifort*) # Intel Fortran compiler
14826 tmp_addflag=' -nofor_main' ;;
14828 case `$CC -V 2>&1 | sed 5q` in
14829 *Sun\ C*) # Sun C 5.9
14830 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'
14831 tmp_sharedflag='-G' ;;
14832 *Sun\ F*) # Sun Fortran 8.3
14833 tmp_sharedflag='-G' ;;
14835 tmp_sharedflag='-shared' ;;
14837 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14839 if test $supports_anon_versioning = yes; then
14840 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14841 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14842 $echo "local: *; };" >> $output_objdir/$libname.ver~
14843 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14845 link_all_deplibs_F77=no
14851 netbsd* | netbsdelf*-gnu)
14852 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14853 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14856 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14857 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14862 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14866 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14867 *** create shared libraries on Solaris systems. Therefore, libtool
14868 *** is disabling shared libraries support. We urge you to upgrade GNU
14869 *** binutils to release 2.9.1 or newer. Another option is to modify
14870 *** your PATH or compiler configuration so that the native linker is
14871 *** used, and then restart.
14874 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14875 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14876 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14882 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14883 case `$LD -v 2>&1` in
14884 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14888 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14889 *** reliably create shared libraries on SCO systems. Therefore, libtool
14890 *** is disabling shared libraries support. We urge you to upgrade GNU
14891 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14892 *** your PATH or compiler configuration so that the native linker is
14893 *** used, and then restart.
14898 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14899 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14900 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14901 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14910 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14912 hardcode_direct_F77=yes
14913 hardcode_shlibpath_var_F77=no
14917 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14918 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14919 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14926 if test "$ld_shlibs_F77" = no; then
14928 hardcode_libdir_flag_spec_F77=
14929 export_dynamic_flag_spec_F77=
14930 whole_archive_flag_spec_F77=
14933 # PORTME fill in a description of your system's linker (not GNU ld)
14936 allow_undefined_flag_F77=unsupported
14937 always_export_symbols_F77=yes
14938 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'
14939 # Note: this linker hardcodes the directories in LIBPATH if there
14940 # are no directories specified by -L.
14941 hardcode_minus_L_F77=yes
14942 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14943 # Neither direct hardcoding nor static linking is supported with a
14945 hardcode_direct_F77=unsupported
14950 if test "$host_cpu" = ia64; then
14951 # On IA64, the linker does run time linking by default, so we don't
14952 # have to do anything special.
14953 aix_use_runtimelinking=no
14954 exp_sym_flag='-Bexport'
14957 # If we're using GNU nm, then we don't want the "-C" option.
14958 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14959 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14960 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'
14962 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'
14964 aix_use_runtimelinking=no
14966 # Test if we are trying to use run time linking or normal
14967 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14968 # need to do runtime linking.
14969 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14970 for ld_flag in $LDFLAGS; do
14971 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14972 aix_use_runtimelinking=yes
14979 exp_sym_flag='-bexport'
14980 no_entry_flag='-bnoentry'
14983 # When large executables or shared objects are built, AIX ld can
14984 # have problems creating the table of contents. If linking a library
14985 # or program results in "error TOC overflow" add -mminimal-toc to
14986 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14987 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14989 archive_cmds_F77=''
14990 hardcode_direct_F77=yes
14991 hardcode_libdir_separator_F77=':'
14992 link_all_deplibs_F77=yes
14994 if test "$GCC" = yes; then
14995 case $host_os in aix4.[012]|aix4.[012].*)
14996 # We only want to do this on AIX 4.2 and lower, the check
14997 # below for broken collect2 doesn't work under 4.3+
14998 collect2name=`${CC} -print-prog-name=collect2`
14999 if test -f "$collect2name" && \
15000 strings "$collect2name" | grep resolve_lib_name >/dev/null
15002 # We have reworked collect2
15005 # We have old collect2
15006 hardcode_direct_F77=unsupported
15007 # It fails to find uninstalled libraries when the uninstalled
15008 # path is not listed in the libpath. Setting hardcode_minus_L
15009 # to unsupported forces relinking
15010 hardcode_minus_L_F77=yes
15011 hardcode_libdir_flag_spec_F77='-L$libdir'
15012 hardcode_libdir_separator_F77=
15016 shared_flag='-shared'
15017 if test "$aix_use_runtimelinking" = yes; then
15018 shared_flag="$shared_flag "'${wl}-G'
15022 if test "$host_cpu" = ia64; then
15023 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15024 # chokes on -Wl,-G. The following line is correct:
15027 if test "$aix_use_runtimelinking" = yes; then
15028 shared_flag='${wl}-G'
15030 shared_flag='${wl}-bM:SRE'
15035 # It seems that -bexpall does not export symbols beginning with
15036 # underscore (_), so it is better to generate a list of symbols to export.
15037 always_export_symbols_F77=yes
15038 if test "$aix_use_runtimelinking" = yes; then
15039 # Warning - without using the other runtime loading flags (-brtl),
15040 # -berok will link without error, but may produce a broken library.
15041 allow_undefined_flag_F77='-berok'
15042 # Determine the default libpath from the value encoded in an empty executable.
15043 cat >conftest.$ac_ext <<_ACEOF
15048 rm -f conftest.$ac_objext conftest$ac_exeext
15049 if { (ac_try="$ac_link"
15050 case "(($ac_try" in
15051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15052 *) ac_try_echo=$ac_try;;
15054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15055 (eval "$ac_link") 2>conftest.er1
15057 grep -v '^ *+' conftest.er1 >conftest.err
15059 cat conftest.err >&5
15060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061 (exit $ac_status); } && {
15062 test -z "$ac_f77_werror_flag" ||
15063 test ! -s conftest.err
15064 } && test -s conftest$ac_exeext &&
15065 $as_test_x conftest$ac_exeext; then
15067 lt_aix_libpath_sed='
15068 /Import File Strings/,/^$/ {
15074 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15075 # Check for a 64-bit object if we didn't find anything.
15076 if test -z "$aix_libpath"; then
15077 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15080 echo "$as_me: failed program was:" >&5
15081 sed 's/^/| /' conftest.$ac_ext >&5
15086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15087 conftest$ac_exeext conftest.$ac_ext
15088 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15090 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15091 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"
15093 if test "$host_cpu" = ia64; then
15094 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15095 allow_undefined_flag_F77="-z nodefs"
15096 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"
15098 # Determine the default libpath from the value encoded in an empty executable.
15099 cat >conftest.$ac_ext <<_ACEOF
15104 rm -f conftest.$ac_objext conftest$ac_exeext
15105 if { (ac_try="$ac_link"
15106 case "(($ac_try" in
15107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15108 *) ac_try_echo=$ac_try;;
15110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15111 (eval "$ac_link") 2>conftest.er1
15113 grep -v '^ *+' conftest.er1 >conftest.err
15115 cat conftest.err >&5
15116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117 (exit $ac_status); } && {
15118 test -z "$ac_f77_werror_flag" ||
15119 test ! -s conftest.err
15120 } && test -s conftest$ac_exeext &&
15121 $as_test_x conftest$ac_exeext; then
15123 lt_aix_libpath_sed='
15124 /Import File Strings/,/^$/ {
15130 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15131 # Check for a 64-bit object if we didn't find anything.
15132 if test -z "$aix_libpath"; then
15133 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15136 echo "$as_me: failed program was:" >&5
15137 sed 's/^/| /' conftest.$ac_ext >&5
15142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15143 conftest$ac_exeext conftest.$ac_ext
15144 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15146 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15147 # Warning - without using the other run time loading flags,
15148 # -berok will link without error, but may produce a broken library.
15149 no_undefined_flag_F77=' ${wl}-bernotok'
15150 allow_undefined_flag_F77=' ${wl}-berok'
15151 # Exported symbols can be pulled into shared objects from archives
15152 whole_archive_flag_spec_F77='$convenience'
15153 archive_cmds_need_lc_F77=yes
15154 # This is similar to how AIX traditionally builds its shared libraries.
15155 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'
15161 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)'
15162 hardcode_libdir_flag_spec_F77='-L$libdir'
15163 hardcode_minus_L_F77=yes
15164 # see comment about different semantics on the GNU ld section
15169 export_dynamic_flag_spec_F77=-rdynamic
15172 cygwin* | mingw* | pw32*)
15173 # When not using gcc, we currently assume that we are using
15174 # Microsoft Visual C++.
15175 # hardcode_libdir_flag_spec is actually meaningless, as there is
15176 # no search path for DLLs.
15177 hardcode_libdir_flag_spec_F77=' '
15178 allow_undefined_flag_F77=unsupported
15179 # Tell ltmain to make .lib files, not .a files.
15181 # Tell ltmain to make .dll files, not .so files.
15183 # FIXME: Setting linknames here is a bad hack.
15184 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15185 # The linker will automatically build a .lib file if we build a DLL.
15186 old_archive_From_new_cmds_F77='true'
15187 # FIXME: Should let the user specify the lib program.
15188 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15189 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15190 enable_shared_with_static_runtimes_F77=yes
15193 darwin* | rhapsody*)
15195 rhapsody* | darwin1.[012])
15196 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15199 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15200 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15202 case ${MACOSX_DEPLOYMENT_TARGET} in
15204 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15207 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15213 archive_cmds_need_lc_F77=no
15214 hardcode_direct_F77=no
15215 hardcode_automatic_F77=yes
15216 hardcode_shlibpath_var_F77=unsupported
15217 whole_archive_flag_spec_F77=''
15218 link_all_deplibs_F77=yes
15219 if test "$GCC" = yes ; then
15220 output_verbose_link_cmd='echo'
15221 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}"
15222 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15223 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}"
15224 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}"
15226 case $cc_basename in
15228 output_verbose_link_cmd='echo'
15229 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15230 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15231 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15232 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}'
15233 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}'
15243 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15244 hardcode_libdir_flag_spec_F77='-L$libdir'
15245 hardcode_shlibpath_var_F77=no
15252 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15253 # support. Future versions do this automatically, but an explicit c++rt0.o
15254 # does not break anything, and helps significantly (at the cost of a little
15257 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15258 hardcode_libdir_flag_spec_F77='-R$libdir'
15259 hardcode_direct_F77=yes
15260 hardcode_shlibpath_var_F77=no
15263 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15265 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15266 hardcode_direct_F77=yes
15267 hardcode_minus_L_F77=yes
15268 hardcode_shlibpath_var_F77=no
15271 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15272 freebsd* | dragonfly*)
15273 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15274 hardcode_libdir_flag_spec_F77='-R$libdir'
15275 hardcode_direct_F77=yes
15276 hardcode_shlibpath_var_F77=no
15280 if test "$GCC" = yes; then
15281 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'
15283 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'
15285 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15286 hardcode_libdir_separator_F77=:
15287 hardcode_direct_F77=yes
15289 # hardcode_minus_L: Not really in the search PATH,
15290 # but as the default location of the library.
15291 hardcode_minus_L_F77=yes
15292 export_dynamic_flag_spec_F77='${wl}-E'
15296 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15297 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15299 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15301 if test "$with_gnu_ld" = no; then
15302 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15303 hardcode_libdir_separator_F77=:
15305 hardcode_direct_F77=yes
15306 export_dynamic_flag_spec_F77='${wl}-E'
15308 # hardcode_minus_L: Not really in the search PATH,
15309 # but as the default location of the library.
15310 hardcode_minus_L_F77=yes
15315 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15318 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15321 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15324 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='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15333 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15336 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15340 if test "$with_gnu_ld" = no; then
15341 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15342 hardcode_libdir_separator_F77=:
15346 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15347 hardcode_direct_F77=no
15348 hardcode_shlibpath_var_F77=no
15351 hardcode_direct_F77=yes
15352 export_dynamic_flag_spec_F77='${wl}-E'
15354 # hardcode_minus_L: Not really in the search PATH,
15355 # but as the default location of the library.
15356 hardcode_minus_L_F77=yes
15362 irix5* | irix6* | nonstopux*)
15363 if test "$GCC" = yes; then
15364 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'
15366 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'
15367 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15369 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15370 hardcode_libdir_separator_F77=:
15371 link_all_deplibs_F77=yes
15374 netbsd* | netbsdelf*-gnu)
15375 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15376 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15378 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15380 hardcode_libdir_flag_spec_F77='-R$libdir'
15381 hardcode_direct_F77=yes
15382 hardcode_shlibpath_var_F77=no
15386 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15387 hardcode_direct_F77=yes
15388 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15389 hardcode_libdir_separator_F77=:
15390 hardcode_shlibpath_var_F77=no
15394 if test -f /usr/libexec/ld.so; then
15395 hardcode_direct_F77=yes
15396 hardcode_shlibpath_var_F77=no
15397 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15398 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15399 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15400 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15401 export_dynamic_flag_spec_F77='${wl}-E'
15404 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15405 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15406 hardcode_libdir_flag_spec_F77='-R$libdir'
15409 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15410 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15420 hardcode_libdir_flag_spec_F77='-L$libdir'
15421 hardcode_minus_L_F77=yes
15422 allow_undefined_flag_F77=unsupported
15423 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'
15424 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15428 if test "$GCC" = yes; then
15429 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15430 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'
15432 allow_undefined_flag_F77=' -expect_unresolved \*'
15433 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'
15435 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15436 hardcode_libdir_separator_F77=:
15439 osf4* | osf5*) # as osf3* with the addition of -msym flag
15440 if test "$GCC" = yes; then
15441 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15442 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'
15443 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15445 allow_undefined_flag_F77=' -expect_unresolved \*'
15446 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'
15447 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~
15448 $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'
15450 # Both c and cxx compiler support -rpath directly
15451 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15453 hardcode_libdir_separator_F77=:
15457 no_undefined_flag_F77=' -z text'
15458 if test "$GCC" = yes; then
15460 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15461 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15462 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15465 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15466 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15467 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15469 hardcode_libdir_flag_spec_F77='-R$libdir'
15470 hardcode_shlibpath_var_F77=no
15472 solaris2.[0-5] | solaris2.[0-5].*) ;;
15474 # The compiler driver will combine and reorder linker options,
15475 # but understands `-z linker_flag'. GCC discards it without `$wl',
15476 # but is careful enough not to reorder.
15477 # Supported since Solaris 2.6 (maybe 2.5.1?)
15478 if test "$GCC" = yes; then
15479 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15481 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15485 link_all_deplibs_F77=yes
15489 if test "x$host_vendor" = xsequent; then
15490 # Use $CC to link under sequent, because it throws in some extra .o
15491 # files that make .init and .fini sections work.
15492 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15494 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15496 hardcode_libdir_flag_spec_F77='-L$libdir'
15497 hardcode_direct_F77=yes
15498 hardcode_minus_L_F77=yes
15499 hardcode_shlibpath_var_F77=no
15503 case $host_vendor in
15505 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15506 hardcode_direct_F77=yes # is this really true???
15509 ## LD is ld it makes a PLAMLIB
15510 ## CC just makes a GrossModule.
15511 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15512 reload_cmds_F77='$CC -r -o $output$reload_objs'
15513 hardcode_direct_F77=no
15516 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15517 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15520 runpath_var='LD_RUN_PATH'
15521 hardcode_shlibpath_var_F77=no
15525 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15526 hardcode_shlibpath_var_F77=no
15527 export_dynamic_flag_spec_F77='-Bexport'
15531 if test -d /usr/nec; then
15532 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15533 hardcode_shlibpath_var_F77=no
15534 runpath_var=LD_RUN_PATH
15535 hardcode_runpath_var=yes
15540 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15541 no_undefined_flag_F77='${wl}-z,text'
15542 archive_cmds_need_lc_F77=no
15543 hardcode_shlibpath_var_F77=no
15544 runpath_var='LD_RUN_PATH'
15546 if test "$GCC" = yes; then
15547 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15548 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15550 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15551 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15555 sysv5* | sco3.2v5* | sco5v6*)
15556 # Note: We can NOT use -z defs as we might desire, because we do not
15557 # link with -lc, and that would cause any symbols used from libc to
15558 # always be unresolved, which means just about no library would
15559 # ever link correctly. If we're not using GNU ld we use -z text
15560 # though, which does catch some bad symbols but isn't as heavy-handed
15562 no_undefined_flag_F77='${wl}-z,text'
15563 allow_undefined_flag_F77='${wl}-z,nodefs'
15564 archive_cmds_need_lc_F77=no
15565 hardcode_shlibpath_var_F77=no
15566 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15567 hardcode_libdir_separator_F77=':'
15568 link_all_deplibs_F77=yes
15569 export_dynamic_flag_spec_F77='${wl}-Bexport'
15570 runpath_var='LD_RUN_PATH'
15572 if test "$GCC" = yes; then
15573 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15574 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15576 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15577 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15582 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15583 hardcode_libdir_flag_spec_F77='-L$libdir'
15584 hardcode_shlibpath_var_F77=no
15593 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15594 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15595 test "$ld_shlibs_F77" = no && can_build_shared=no
15598 # Do we need to explicitly link libc?
15600 case "x$archive_cmds_need_lc_F77" in
15602 # Assume -lc should be added
15603 archive_cmds_need_lc_F77=yes
15605 if test "$enable_shared" = yes && test "$GCC" = yes; then
15606 case $archive_cmds_F77 in
15608 # FIXME: we may have to deal with multi-command sequences.
15611 # Test whether the compiler implicitly links with -lc since on some
15612 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15613 # to ld, don't add -lc before -lgcc.
15614 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15615 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15617 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15620 (eval $ac_compile) 2>&5
15622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15623 (exit $ac_status); } 2>conftest.err; then
15626 libobjs=conftest.$ac_objext
15628 wl=$lt_prog_compiler_wl_F77
15629 pic_flag=$lt_prog_compiler_pic_F77
15635 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15636 allow_undefined_flag_F77=
15637 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15638 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15641 (exit $ac_status); }
15643 archive_cmds_need_lc_F77=no
15645 archive_cmds_need_lc_F77=yes
15647 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15649 cat conftest.err 1>&5
15652 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15653 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15660 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15661 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15662 library_names_spec=
15663 libname_spec='lib$name'
15667 postuninstall_cmds=
15671 shlibpath_overrides_runpath=unknown
15673 dynamic_linker="$host_os ld.so"
15674 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15676 need_lib_prefix=unknown
15677 hardcode_into_libs=no
15679 # when you set need_version to no, make sure it does not cause -set_version
15680 # flags to be left without arguments
15681 need_version=unknown
15686 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15687 shlibpath_var=LIBPATH
15689 # AIX 3 has no versioning support, so we append a major version to the name.
15690 soname_spec='${libname}${release}${shared_ext}$major'
15697 hardcode_into_libs=yes
15698 if test "$host_cpu" = ia64; then
15699 # AIX 5 supports IA64
15700 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15701 shlibpath_var=LD_LIBRARY_PATH
15703 # With GCC up to 2.95.x, collect2 would create an import file
15704 # for dependence libraries. The import file would start with
15705 # the line `#! .'. This would cause the generated library to
15706 # depend on `.', always an invalid library. This was fixed in
15707 # development snapshots of GCC prior to 3.0.
15709 aix4 | aix4.[01] | aix4.[01].*)
15710 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15712 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15715 can_build_shared=no
15719 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15720 # soname into executable. Probably we can add versioning support to
15721 # collect2, so additional links can be useful in future.
15722 if test "$aix_use_runtimelinking" = yes; then
15723 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15724 # instead of lib<name>.a to let people know that these are not
15725 # typical AIX shared libraries.
15726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15728 # We preserve .a as extension for shared libraries through AIX4.2
15729 # and later when we are not doing run time linking.
15730 library_names_spec='${libname}${release}.a $libname.a'
15731 soname_spec='${libname}${release}${shared_ext}$major'
15733 shlibpath_var=LIBPATH
15738 library_names_spec='$libname.ixlibrary $libname.a'
15739 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15740 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'
15744 library_names_spec='${libname}${shared_ext}'
15745 dynamic_linker="$host_os ld.so"
15746 shlibpath_var=LIBRARY_PATH
15752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15753 soname_spec='${libname}${release}${shared_ext}$major'
15754 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15755 shlibpath_var=LD_LIBRARY_PATH
15756 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15757 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15758 # the default ld.so.conf also contains /usr/contrib/lib and
15759 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15760 # libtool to hard-code these into programs
15763 cygwin* | mingw* | pw32*)
15764 version_type=windows
15769 case $GCC,$host_os in
15770 yes,cygwin* | yes,mingw* | yes,pw32*)
15771 library_names_spec='$libname.dll.a'
15772 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15773 postinstall_cmds='base_file=`basename \${file}`~
15774 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15775 dldir=$destdir/`dirname \$dlpath`~
15776 test -d \$dldir || mkdir -p \$dldir~
15777 $install_prog $dir/$dlname \$dldir/$dlname~
15778 chmod a+x \$dldir/$dlname'
15779 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15780 dlpath=$dir/\$dldll~
15782 shlibpath_overrides_runpath=yes
15786 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15787 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15788 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15791 # MinGW DLLs use traditional 'lib' prefix
15792 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15793 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15794 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15795 # It is most probably a Windows format PATH printed by
15796 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15797 # path with ; separators, and with drive letters. We can handle the
15798 # drive letters (cygwin fileutils understands them), so leave them,
15799 # especially as we might pass files found there to a mingw objdump,
15800 # which wouldn't understand a cygwinified path. Ahh.
15801 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15803 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15807 # pw32 DLLs use 'pw' prefix rather than 'lib'
15808 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15814 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15817 dynamic_linker='Win32 ld.exe'
15818 # FIXME: first we should search . and the directory the executable is in
15822 darwin* | rhapsody*)
15823 dynamic_linker="$host_os dyld"
15824 version_type=darwin
15827 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15828 soname_spec='${libname}${release}${major}$shared_ext'
15829 shlibpath_overrides_runpath=yes
15830 shlibpath_var=DYLD_LIBRARY_PATH
15831 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15833 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15841 soname_spec='${libname}${release}${shared_ext}$major'
15842 shlibpath_var=LD_LIBRARY_PATH
15849 freebsd* | dragonfly*)
15850 # DragonFly does not have aout. When/if they implement a new
15851 # versioning mechanism, adjust this.
15852 if test -x /usr/bin/objformat; then
15853 objformat=`/usr/bin/objformat`
15856 freebsd[123]*) objformat=aout ;;
15857 *) objformat=elf ;;
15860 version_type=freebsd-$objformat
15861 case $version_type in
15863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15868 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15872 shlibpath_var=LD_LIBRARY_PATH
15875 shlibpath_overrides_runpath=yes
15877 freebsd3.[01]* | freebsdelf3.[01]*)
15878 shlibpath_overrides_runpath=yes
15879 hardcode_into_libs=yes
15881 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15882 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15883 shlibpath_overrides_runpath=no
15884 hardcode_into_libs=yes
15886 *) # from 4.6 on, and DragonFly
15887 shlibpath_overrides_runpath=yes
15888 hardcode_into_libs=yes
15897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15898 soname_spec='${libname}${release}${shared_ext}$major'
15899 shlibpath_var=LD_LIBRARY_PATH
15900 hardcode_into_libs=yes
15903 hpux9* | hpux10* | hpux11*)
15904 # Give a soname corresponding to the major version so that dld.sl refuses to
15905 # link against other versions.
15912 hardcode_into_libs=yes
15913 dynamic_linker="$host_os dld.so"
15914 shlibpath_var=LD_LIBRARY_PATH
15915 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15917 soname_spec='${libname}${release}${shared_ext}$major'
15918 if test "X$HPUX_IA64_MODE" = X32; then
15919 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15921 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15923 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15927 hardcode_into_libs=yes
15928 dynamic_linker="$host_os dld.sl"
15929 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15930 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15932 soname_spec='${libname}${release}${shared_ext}$major'
15933 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15934 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15938 dynamic_linker="$host_os dld.sl"
15939 shlibpath_var=SHLIB_PATH
15940 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15942 soname_spec='${libname}${release}${shared_ext}$major'
15945 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15946 postinstall_cmds='chmod 555 $lib'
15953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15954 soname_spec='${libname}${release}${shared_ext}$major'
15955 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15956 shlibpath_var=LD_LIBRARY_PATH
15957 shlibpath_overrides_runpath=no
15958 hardcode_into_libs=yes
15961 irix5* | irix6* | nonstopux*)
15963 nonstopux*) version_type=nonstopux ;;
15965 if test "$lt_cv_prog_gnu_ld" = yes; then
15973 soname_spec='${libname}${release}${shared_ext}$major'
15974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15976 irix5* | nonstopux*)
15977 libsuff= shlibsuff=
15980 case $LD in # libtool.m4 will add one of these switches to LD
15981 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15982 libsuff= shlibsuff= libmagic=32-bit;;
15983 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15984 libsuff=32 shlibsuff=N32 libmagic=N32;;
15985 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15986 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15987 *) libsuff= shlibsuff= libmagic=never-match;;
15991 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15992 shlibpath_overrides_runpath=no
15993 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15994 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15995 hardcode_into_libs=yes
15998 # No shared lib support for Linux oldld, aout, or coff.
15999 linux*oldld* | linux*aout* | linux*coff*)
16003 # This must be Linux ELF.
16004 linux* | k*bsd*-gnu)
16008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16009 soname_spec='${libname}${release}${shared_ext}$major'
16010 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16011 shlibpath_var=LD_LIBRARY_PATH
16012 shlibpath_overrides_runpath=no
16013 # This implies no fast_install, which is unacceptable.
16014 # Some rework will be needed to allow for fast_install
16015 # before this can be enabled.
16016 hardcode_into_libs=yes
16018 # Append ld.so.conf contents to the search path
16019 if test -f /etc/ld.so.conf; then
16020 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' ' '`
16021 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16024 # We used to test for /lib/ld.so.1 and disable shared libraries on
16025 # powerpc, because MkLinux only supported shared libraries with the
16026 # GNU dynamic linker. Since this was broken with cross compilers,
16027 # most powerpc-linux boxes support dynamic linking these days and
16028 # people can always --disable-shared, the test was removed, and we
16029 # assume the GNU/Linux dynamic linker is in use.
16030 dynamic_linker='GNU/Linux ld.so'
16037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16038 soname_spec='${libname}${release}${shared_ext}$major'
16039 shlibpath_var=LD_LIBRARY_PATH
16040 shlibpath_overrides_runpath=no
16041 hardcode_into_libs=yes
16042 dynamic_linker='NetBSD ld.elf_so'
16049 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16051 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16052 dynamic_linker='NetBSD (a.out) ld.so'
16054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16055 soname_spec='${libname}${release}${shared_ext}$major'
16056 dynamic_linker='NetBSD ld.elf_so'
16058 shlibpath_var=LD_LIBRARY_PATH
16059 shlibpath_overrides_runpath=yes
16060 hardcode_into_libs=yes
16065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16066 shlibpath_var=LD_LIBRARY_PATH
16067 shlibpath_overrides_runpath=yes
16074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16075 soname_spec='${libname}${release}${shared_ext}$major'
16076 shlibpath_var=LD_LIBRARY_PATH
16077 shlibpath_overrides_runpath=yes
16082 sys_lib_dlsearch_path_spec="/usr/lib"
16084 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16086 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16087 *) need_version=no ;;
16089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16090 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16091 shlibpath_var=LD_LIBRARY_PATH
16092 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16094 openbsd2.[89] | openbsd2.[89].*)
16095 shlibpath_overrides_runpath=no
16098 shlibpath_overrides_runpath=yes
16102 shlibpath_overrides_runpath=yes
16107 libname_spec='$name'
16110 library_names_spec='$libname${shared_ext} $libname.a'
16111 dynamic_linker='OS/2 ld.exe'
16112 shlibpath_var=LIBPATH
16115 osf3* | osf4* | osf5*)
16119 soname_spec='${libname}${release}${shared_ext}$major'
16120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16121 shlibpath_var=LD_LIBRARY_PATH
16122 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16123 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16135 soname_spec='${libname}${release}${shared_ext}$major'
16136 shlibpath_var=LD_LIBRARY_PATH
16137 shlibpath_overrides_runpath=yes
16138 hardcode_into_libs=yes
16139 # ldd complains unless libraries are executable
16140 postinstall_cmds='chmod +x $lib'
16145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16146 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16147 shlibpath_var=LD_LIBRARY_PATH
16148 shlibpath_overrides_runpath=yes
16149 if test "$with_gnu_ld" = yes; then
16157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16158 soname_spec='${libname}${release}${shared_ext}$major'
16159 shlibpath_var=LD_LIBRARY_PATH
16160 case $host_vendor in
16162 shlibpath_overrides_runpath=no
16164 export_dynamic_flag_spec='${wl}-Blargedynsym'
16165 runpath_var=LD_RUN_PATH
16173 shlibpath_overrides_runpath=no
16174 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16180 if test -d /usr/nec ;then
16182 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16183 soname_spec='$libname${shared_ext}.$major'
16184 shlibpath_var=LD_LIBRARY_PATH
16188 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16189 version_type=freebsd-elf
16192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16193 soname_spec='${libname}${release}${shared_ext}$major'
16194 shlibpath_var=LD_LIBRARY_PATH
16195 hardcode_into_libs=yes
16196 if test "$with_gnu_ld" = yes; then
16197 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16198 shlibpath_overrides_runpath=no
16200 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16201 shlibpath_overrides_runpath=yes
16204 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16208 sys_lib_dlsearch_path_spec='/usr/lib'
16213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16214 soname_spec='${libname}${release}${shared_ext}$major'
16215 shlibpath_var=LD_LIBRARY_PATH
16222 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16223 echo "${ECHO_T}$dynamic_linker" >&6; }
16224 test "$dynamic_linker" = no && can_build_shared=no
16226 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16227 echo $ECHO_N "(cached) $ECHO_C" >&6
16229 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16232 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16233 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16234 echo $ECHO_N "(cached) $ECHO_C" >&6
16236 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16239 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16241 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16242 if test "$GCC" = yes; then
16243 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16246 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16247 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16248 hardcode_action_F77=
16249 if test -n "$hardcode_libdir_flag_spec_F77" || \
16250 test -n "$runpath_var_F77" || \
16251 test "X$hardcode_automatic_F77" = "Xyes" ; then
16253 # We can hardcode non-existant directories.
16254 if test "$hardcode_direct_F77" != no &&
16255 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16256 # have to relink, otherwise we might link with an installed library
16257 # when we should be linking with a yet-to-be-installed one
16258 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16259 test "$hardcode_minus_L_F77" != no; then
16260 # Linking always hardcodes the temporary library directory.
16261 hardcode_action_F77=relink
16263 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16264 hardcode_action_F77=immediate
16267 # We cannot hardcode anything, or else we can only hardcode existing
16269 hardcode_action_F77=unsupported
16271 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16272 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16274 if test "$hardcode_action_F77" = relink; then
16275 # Fast installation is not supported
16276 enable_fast_install=no
16277 elif test "$shlibpath_overrides_runpath" = yes ||
16278 test "$enable_shared" = no; then
16279 # Fast installation is not necessary
16280 enable_fast_install=needless
16284 # The else clause should only fire when bootstrapping the
16285 # libtool distribution, otherwise you forgot to ship ltmain.sh
16286 # with your package, and you will get complaints that there are
16287 # no rules to generate ltmain.sh.
16288 if test -f "$ltmain"; then
16289 # See if we are running on zsh, and set the options which allow our commands through
16290 # without removal of \ escapes.
16291 if test -n "${ZSH_VERSION+set}" ; then
16292 setopt NO_GLOB_SUBST
16294 # Now quote all the things that may contain metacharacters while being
16295 # careful not to overquote the AC_SUBSTed values. We take copies of the
16296 # variables and quote the copies for generation of the libtool script.
16297 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16299 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16300 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16301 deplibs_check_method reload_flag reload_cmds need_locks \
16302 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16303 lt_cv_sys_global_symbol_to_c_name_address \
16304 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16305 old_postinstall_cmds old_postuninstall_cmds \
16309 lt_prog_compiler_wl_F77 \
16310 lt_prog_compiler_pic_F77 \
16311 lt_prog_compiler_static_F77 \
16312 lt_prog_compiler_no_builtin_flag_F77 \
16313 export_dynamic_flag_spec_F77 \
16314 thread_safe_flag_spec_F77 \
16315 whole_archive_flag_spec_F77 \
16316 enable_shared_with_static_runtimes_F77 \
16317 old_archive_cmds_F77 \
16318 old_archive_from_new_cmds_F77 \
16319 predep_objects_F77 \
16320 postdep_objects_F77 \
16323 compiler_lib_search_path_F77 \
16324 compiler_lib_search_dirs_F77 \
16326 archive_expsym_cmds_F77 \
16327 postinstall_cmds_F77 \
16328 postuninstall_cmds_F77 \
16329 old_archive_from_expsyms_cmds_F77 \
16330 allow_undefined_flag_F77 \
16331 no_undefined_flag_F77 \
16332 export_symbols_cmds_F77 \
16333 hardcode_libdir_flag_spec_F77 \
16334 hardcode_libdir_flag_spec_ld_F77 \
16335 hardcode_libdir_separator_F77 \
16336 hardcode_automatic_F77 \
16338 module_expsym_cmds_F77 \
16339 lt_cv_prog_compiler_c_o_F77 \
16340 fix_srcfile_path_F77 \
16341 exclude_expsyms_F77 \
16342 include_expsyms_F77; do
16345 old_archive_cmds_F77 | \
16346 old_archive_from_new_cmds_F77 | \
16347 archive_cmds_F77 | \
16348 archive_expsym_cmds_F77 | \
16349 module_cmds_F77 | \
16350 module_expsym_cmds_F77 | \
16351 old_archive_from_expsyms_cmds_F77 | \
16352 export_symbols_cmds_F77 | \
16353 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16354 postinstall_cmds | postuninstall_cmds | \
16355 old_postinstall_cmds | old_postuninstall_cmds | \
16356 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16357 # Double-quote double-evaled strings.
16358 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16361 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16367 *'\$0 --fallback-echo"')
16368 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16374 cat <<__EOF__ >> "$cfgfile"
16375 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16377 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16379 # Shell to use when invoking shell scripts.
16382 # Whether or not to build shared libraries.
16383 build_libtool_libs=$enable_shared
16385 # Whether or not to build static libraries.
16386 build_old_libs=$enable_static
16388 # Whether or not to add -lc for building shared libraries.
16389 build_libtool_need_lc=$archive_cmds_need_lc_F77
16391 # Whether or not to disallow shared libs when runtime libs are static
16392 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16394 # Whether or not to optimize for fast installation.
16395 fast_install=$enable_fast_install
16398 host_alias=$host_alias
16402 # The build system.
16403 build_alias=$build_alias
16407 # An echo program that does not interpret backslashes.
16412 AR_FLAGS=$lt_AR_FLAGS
16417 # LTCC compiler flags.
16418 LTCFLAGS=$lt_LTCFLAGS
16420 # A language-specific compiler.
16421 CC=$lt_compiler_F77
16423 # Is the compiler the GNU C compiler?
16429 # The linker used to build libraries.
16432 # Whether we need hard or soft links.
16435 # A BSD-compatible nm program.
16438 # A symbol stripping program
16441 # Used to examine libraries when file_magic_cmd begins "file"
16442 MAGIC_CMD=$MAGIC_CMD
16444 # Used on cygwin: DLL creation program.
16447 # Used on cygwin: object dumper.
16450 # Used on cygwin: assembler.
16453 # The name of the directory that contains temporary libtool files.
16456 # How to create reloadable object files.
16457 reload_flag=$lt_reload_flag
16458 reload_cmds=$lt_reload_cmds
16460 # How to pass a linker flag through the compiler.
16461 wl=$lt_lt_prog_compiler_wl_F77
16463 # Object file suffix (normally "o").
16464 objext="$ac_objext"
16466 # Old archive suffix (normally "a").
16469 # Shared library suffix (normally ".so").
16470 shrext_cmds='$shrext_cmds'
16472 # Executable file suffix (normally "").
16475 # Additional compiler flags for building library objects.
16476 pic_flag=$lt_lt_prog_compiler_pic_F77
16479 # What is the maximum length of a command?
16480 max_cmd_len=$lt_cv_sys_max_cmd_len
16482 # Does compiler simultaneously support -c and -o options?
16483 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16485 # Must we lock files when doing compilation?
16486 need_locks=$lt_need_locks
16488 # Do we need the lib prefix for modules?
16489 need_lib_prefix=$need_lib_prefix
16491 # Do we need a version for libraries?
16492 need_version=$need_version
16494 # Whether dlopen is supported.
16495 dlopen_support=$enable_dlopen
16497 # Whether dlopen of programs is supported.
16498 dlopen_self=$enable_dlopen_self
16500 # Whether dlopen of statically linked programs is supported.
16501 dlopen_self_static=$enable_dlopen_self_static
16503 # Compiler flag to prevent dynamic linking.
16504 link_static_flag=$lt_lt_prog_compiler_static_F77
16506 # Compiler flag to turn off builtin functions.
16507 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16509 # Compiler flag to allow reflexive dlopens.
16510 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16512 # Compiler flag to generate shared objects directly from archives.
16513 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16515 # Compiler flag to generate thread-safe objects.
16516 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16518 # Library versioning type.
16519 version_type=$version_type
16521 # Format of library name prefix.
16522 libname_spec=$lt_libname_spec
16524 # List of archive names. First name is the real one, the rest are links.
16525 # The last name is the one that the linker finds with -lNAME.
16526 library_names_spec=$lt_library_names_spec
16528 # The coded name of the library, if different from the real name.
16529 soname_spec=$lt_soname_spec
16531 # Commands used to build and install an old-style archive.
16533 old_archive_cmds=$lt_old_archive_cmds_F77
16534 old_postinstall_cmds=$lt_old_postinstall_cmds
16535 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16537 # Create an old-style archive from a shared archive.
16538 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16540 # Create a temporary old-style archive to link instead of a shared archive.
16541 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16543 # Commands used to build and install a shared archive.
16544 archive_cmds=$lt_archive_cmds_F77
16545 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16546 postinstall_cmds=$lt_postinstall_cmds
16547 postuninstall_cmds=$lt_postuninstall_cmds
16549 # Commands used to build a loadable module (assumed same as above if empty)
16550 module_cmds=$lt_module_cmds_F77
16551 module_expsym_cmds=$lt_module_expsym_cmds_F77
16553 # Commands to strip libraries.
16554 old_striplib=$lt_old_striplib
16555 striplib=$lt_striplib
16557 # Dependencies to place before the objects being linked to create a
16559 predep_objects=$lt_predep_objects_F77
16561 # Dependencies to place after the objects being linked to create a
16563 postdep_objects=$lt_postdep_objects_F77
16565 # Dependencies to place before the objects being linked to create a
16567 predeps=$lt_predeps_F77
16569 # Dependencies to place after the objects being linked to create a
16571 postdeps=$lt_postdeps_F77
16573 # The directories searched by this compiler when creating a shared
16575 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16577 # The library search path used internally by the compiler when linking
16578 # a shared library.
16579 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16581 # Method to check whether dependent libraries are shared objects.
16582 deplibs_check_method=$lt_deplibs_check_method
16584 # Command to use when deplibs_check_method == file_magic.
16585 file_magic_cmd=$lt_file_magic_cmd
16587 # Flag that allows shared libraries with undefined symbols to be built.
16588 allow_undefined_flag=$lt_allow_undefined_flag_F77
16590 # Flag that forces no undefined symbols.
16591 no_undefined_flag=$lt_no_undefined_flag_F77
16593 # Commands used to finish a libtool library installation in a directory.
16594 finish_cmds=$lt_finish_cmds
16596 # Same as above, but a single script fragment to be evaled but not shown.
16597 finish_eval=$lt_finish_eval
16599 # Take the output of nm and produce a listing of raw symbols and C names.
16600 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16602 # Transform the output of nm in a proper C declaration
16603 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16605 # Transform the output of nm in a C name address pair
16606 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16608 # This is the shared library runtime path variable.
16609 runpath_var=$runpath_var
16611 # This is the shared library path variable.
16612 shlibpath_var=$shlibpath_var
16614 # Is shlibpath searched before the hard-coded library search path?
16615 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16617 # How to hardcode a shared library path into an executable.
16618 hardcode_action=$hardcode_action_F77
16620 # Whether we should hardcode library paths into libraries.
16621 hardcode_into_libs=$hardcode_into_libs
16623 # Flag to hardcode \$libdir into a binary during linking.
16624 # This must work even if \$libdir does not exist.
16625 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16627 # If ld is used when linking, flag to hardcode \$libdir into
16628 # a binary during linking. This must work even if \$libdir does
16630 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16632 # Whether we need a single -rpath flag with a separated argument.
16633 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16635 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16636 # resulting binary.
16637 hardcode_direct=$hardcode_direct_F77
16639 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16640 # resulting binary.
16641 hardcode_minus_L=$hardcode_minus_L_F77
16643 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16644 # the resulting binary.
16645 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16647 # Set to yes if building a shared library automatically hardcodes DIR into the library
16648 # and all subsequent libraries and executables linked against it.
16649 hardcode_automatic=$hardcode_automatic_F77
16651 # Variables whose values should be saved in libtool wrapper scripts and
16652 # restored at relink time.
16653 variables_saved_for_relink="$variables_saved_for_relink"
16655 # Whether libtool must link a program against all its dependency libraries.
16656 link_all_deplibs=$link_all_deplibs_F77
16658 # Compile-time system search path for libraries
16659 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16661 # Run-time system search path for libraries
16662 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16664 # Fix the shell variable \$srcfile for the compiler.
16665 fix_srcfile_path=$lt_fix_srcfile_path
16667 # Set to yes if exported symbols are required.
16668 always_export_symbols=$always_export_symbols_F77
16670 # The commands to list exported symbols.
16671 export_symbols_cmds=$lt_export_symbols_cmds_F77
16673 # The commands to extract the exported symbol list from a shared archive.
16674 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16676 # Symbols that should not be listed in the preloaded symbols.
16677 exclude_expsyms=$lt_exclude_expsyms_F77
16679 # Symbols that must always be exported.
16680 include_expsyms=$lt_include_expsyms_F77
16682 # ### END LIBTOOL TAG CONFIG: $tagname
16688 # If there is no Makefile yet, we rely on a make rule to execute
16689 # `config.status --recheck' to rerun these tests and create the
16690 # libtool script then.
16691 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16692 if test -f "$ltmain_in"; then
16693 test -f Makefile && make "$ltmain"
16699 ac_cpp='$CPP $CPPFLAGS'
16700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16712 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16715 # Source file extension for Java test sources.
16718 # Object file extension for compiled Java test sources.
16722 # Code to be used in simple compile tests
16723 lt_simple_compile_test_code="class foo {}"
16725 # Code to be used in simple link tests
16726 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16728 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16730 # If no C compiler was specified, use CC.
16733 # If no C compiler flags were specified, use CFLAGS.
16734 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16736 # Allow CC to be a program name with arguments.
16740 # save warnings/boilerplate of simple test code
16741 ac_outfile=conftest.$ac_objext
16742 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16743 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16744 _lt_compiler_boilerplate=`cat conftest.err`
16747 ac_outfile=conftest.$ac_objext
16748 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16749 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16750 _lt_linker_boilerplate=`cat conftest.err`
16754 # Allow CC to be a program name with arguments.
16759 for cc_temp in $compiler""; do
16761 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16762 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16767 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16770 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16771 archive_cmds_need_lc_GCJ=no
16773 old_archive_cmds_GCJ=$old_archive_cmds
16776 lt_prog_compiler_no_builtin_flag_GCJ=
16778 if test "$GCC" = yes; then
16779 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16782 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16783 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16784 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16785 echo $ECHO_N "(cached) $ECHO_C" >&6
16787 lt_cv_prog_compiler_rtti_exceptions=no
16788 ac_outfile=conftest.$ac_objext
16789 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16790 lt_compiler_flag="-fno-rtti -fno-exceptions"
16791 # Insert the option either (1) after the last *FLAGS variable, or
16792 # (2) before a word containing "conftest.", or (3) at the end.
16793 # Note that $ac_compile itself does not contain backslashes and begins
16794 # with a dollar sign (not a hyphen), so the echo should work correctly.
16795 # The option is referenced via a variable to avoid confusing sed.
16796 lt_compile=`echo "$ac_compile" | $SED \
16797 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16798 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16799 -e 's:$: $lt_compiler_flag:'`
16800 (eval echo "\"\$as_me:16800: $lt_compile\"" >&5)
16801 (eval "$lt_compile" 2>conftest.err)
16803 cat conftest.err >&5
16804 echo "$as_me:16804: \$? = $ac_status" >&5
16805 if (exit $ac_status) && test -s "$ac_outfile"; then
16806 # The compiler can only warn and ignore the option if not recognized
16807 # So say no if there are warnings other than the usual output.
16808 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16809 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16810 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16811 lt_cv_prog_compiler_rtti_exceptions=yes
16817 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16818 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16820 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16821 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16828 lt_prog_compiler_wl_GCJ=
16829 lt_prog_compiler_pic_GCJ=
16830 lt_prog_compiler_static_GCJ=
16832 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16833 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16835 if test "$GCC" = yes; then
16836 lt_prog_compiler_wl_GCJ='-Wl,'
16837 lt_prog_compiler_static_GCJ='-static'
16841 # All AIX code is PIC.
16842 if test "$host_cpu" = ia64; then
16843 # AIX 5 now supports IA64 processor
16844 lt_prog_compiler_static_GCJ='-Bstatic'
16849 # FIXME: we need at least 68020 code to build shared libraries, but
16850 # adding the `-m68020' flag to GCC prevents building anything better,
16852 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16855 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16856 # PIC is the default for these OSes.
16859 mingw* | cygwin* | pw32* | os2*)
16860 # This hack is so that the source file can tell whether it is being
16861 # built for inclusion in a dll (and should export symbols for example).
16862 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16863 # (--disable-auto-import) libraries
16867 darwin* | rhapsody*)
16868 # PIC is the default on this platform
16869 # Common symbols not allowed in MH_DYLIB files
16870 lt_prog_compiler_pic_GCJ='-fno-common'
16874 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16875 # Instead, we relocate shared libraries at runtime.
16879 # Just because we use GCC doesn't mean we suddenly get shared libraries
16880 # on systems that don't support them.
16881 lt_prog_compiler_can_build_shared_GCJ=no
16886 if test -d /usr/nec; then
16887 lt_prog_compiler_pic_GCJ=-Kconform_pic
16892 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16893 # not for PA HP-UX.
16899 lt_prog_compiler_pic_GCJ='-fPIC'
16905 lt_prog_compiler_pic_GCJ='-fPIC'
16909 # PORTME Check for flag to pass linker flags through the system compiler.
16912 lt_prog_compiler_wl_GCJ='-Wl,'
16913 if test "$host_cpu" = ia64; then
16914 # AIX 5 now supports IA64 processor
16915 lt_prog_compiler_static_GCJ='-Bstatic'
16917 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16921 # PIC is the default on this platform
16922 # Common symbols not allowed in MH_DYLIB files
16923 case $cc_basename in
16925 lt_prog_compiler_pic_GCJ='-qnocommon'
16926 lt_prog_compiler_wl_GCJ='-Wl,'
16931 mingw* | cygwin* | pw32* | os2*)
16932 # This hack is so that the source file can tell whether it is being
16933 # built for inclusion in a dll (and should export symbols for example).
16937 hpux9* | hpux10* | hpux11*)
16938 lt_prog_compiler_wl_GCJ='-Wl,'
16939 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16940 # not for PA HP-UX.
16946 lt_prog_compiler_pic_GCJ='+Z'
16949 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16950 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16953 irix5* | irix6* | nonstopux*)
16954 lt_prog_compiler_wl_GCJ='-Wl,'
16955 # PIC (with -KPIC) is the default.
16956 lt_prog_compiler_static_GCJ='-non_shared'
16960 lt_prog_compiler_pic_GCJ='-KPIC'
16961 lt_prog_compiler_static_GCJ='-Bstatic'
16964 linux* | k*bsd*-gnu)
16965 case $cc_basename in
16967 lt_prog_compiler_wl_GCJ='-Wl,'
16968 lt_prog_compiler_pic_GCJ='-KPIC'
16969 lt_prog_compiler_static_GCJ='-static'
16971 pgcc* | pgf77* | pgf90* | pgf95*)
16972 # Portland Group compilers (*not* the Pentium gcc compiler,
16973 # which looks to be a dead project)
16974 lt_prog_compiler_wl_GCJ='-Wl,'
16975 lt_prog_compiler_pic_GCJ='-fpic'
16976 lt_prog_compiler_static_GCJ='-Bstatic'
16979 lt_prog_compiler_wl_GCJ='-Wl,'
16980 # All Alpha code is PIC.
16981 lt_prog_compiler_static_GCJ='-non_shared'
16984 case `$CC -V 2>&1 | sed 5q` in
16987 lt_prog_compiler_pic_GCJ='-KPIC'
16988 lt_prog_compiler_static_GCJ='-Bstatic'
16989 lt_prog_compiler_wl_GCJ='-Wl,'
16992 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16993 lt_prog_compiler_pic_GCJ='-KPIC'
16994 lt_prog_compiler_static_GCJ='-Bstatic'
16995 lt_prog_compiler_wl_GCJ=''
17002 osf3* | osf4* | osf5*)
17003 lt_prog_compiler_wl_GCJ='-Wl,'
17004 # All OSF/1 code is PIC.
17005 lt_prog_compiler_static_GCJ='-non_shared'
17009 lt_prog_compiler_static_GCJ='-non_shared'
17013 lt_prog_compiler_pic_GCJ='-KPIC'
17014 lt_prog_compiler_static_GCJ='-Bstatic'
17015 case $cc_basename in
17016 f77* | f90* | f95*)
17017 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17019 lt_prog_compiler_wl_GCJ='-Wl,';;
17024 lt_prog_compiler_wl_GCJ='-Qoption ld '
17025 lt_prog_compiler_pic_GCJ='-PIC'
17026 lt_prog_compiler_static_GCJ='-Bstatic'
17029 sysv4 | sysv4.2uw2* | sysv4.3*)
17030 lt_prog_compiler_wl_GCJ='-Wl,'
17031 lt_prog_compiler_pic_GCJ='-KPIC'
17032 lt_prog_compiler_static_GCJ='-Bstatic'
17036 if test -d /usr/nec ;then
17037 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17038 lt_prog_compiler_static_GCJ='-Bstatic'
17042 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17043 lt_prog_compiler_wl_GCJ='-Wl,'
17044 lt_prog_compiler_pic_GCJ='-KPIC'
17045 lt_prog_compiler_static_GCJ='-Bstatic'
17049 lt_prog_compiler_wl_GCJ='-Wl,'
17050 lt_prog_compiler_can_build_shared_GCJ=no
17054 lt_prog_compiler_pic_GCJ='-pic'
17055 lt_prog_compiler_static_GCJ='-Bstatic'
17059 lt_prog_compiler_can_build_shared_GCJ=no
17064 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17065 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17068 # Check to make sure the PIC flag actually works.
17070 if test -n "$lt_prog_compiler_pic_GCJ"; then
17072 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17073 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17074 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17075 echo $ECHO_N "(cached) $ECHO_C" >&6
17077 lt_cv_prog_compiler_pic_works_GCJ=no
17078 ac_outfile=conftest.$ac_objext
17079 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17080 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17081 # Insert the option either (1) after the last *FLAGS variable, or
17082 # (2) before a word containing "conftest.", or (3) at the end.
17083 # Note that $ac_compile itself does not contain backslashes and begins
17084 # with a dollar sign (not a hyphen), so the echo should work correctly.
17085 # The option is referenced via a variable to avoid confusing sed.
17086 lt_compile=`echo "$ac_compile" | $SED \
17087 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17088 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17089 -e 's:$: $lt_compiler_flag:'`
17090 (eval echo "\"\$as_me:17090: $lt_compile\"" >&5)
17091 (eval "$lt_compile" 2>conftest.err)
17093 cat conftest.err >&5
17094 echo "$as_me:17094: \$? = $ac_status" >&5
17095 if (exit $ac_status) && test -s "$ac_outfile"; then
17096 # The compiler can only warn and ignore the option if not recognized
17097 # So say no if there are warnings other than the usual output.
17098 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17099 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17100 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17101 lt_cv_prog_compiler_pic_works_GCJ=yes
17107 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17108 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17110 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17111 case $lt_prog_compiler_pic_GCJ in
17113 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17116 lt_prog_compiler_pic_GCJ=
17117 lt_prog_compiler_can_build_shared_GCJ=no
17122 # For platforms which do not support PIC, -DPIC is meaningless:
17124 lt_prog_compiler_pic_GCJ=
17127 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17132 # Check to make sure the static flag actually works.
17134 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17135 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17136 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17137 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17138 echo $ECHO_N "(cached) $ECHO_C" >&6
17140 lt_cv_prog_compiler_static_works_GCJ=no
17141 save_LDFLAGS="$LDFLAGS"
17142 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17143 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17144 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17145 # The linker can only warn and ignore the option if not recognized
17146 # So say no if there are warnings
17147 if test -s conftest.err; then
17148 # Append any errors to the config.log.
17149 cat conftest.err 1>&5
17150 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17151 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17152 if diff conftest.exp conftest.er2 >/dev/null; then
17153 lt_cv_prog_compiler_static_works_GCJ=yes
17156 lt_cv_prog_compiler_static_works_GCJ=yes
17160 LDFLAGS="$save_LDFLAGS"
17163 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17164 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17166 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17169 lt_prog_compiler_static_GCJ=
17173 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17174 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17175 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17176 echo $ECHO_N "(cached) $ECHO_C" >&6
17178 lt_cv_prog_compiler_c_o_GCJ=no
17179 $rm -r conftest 2>/dev/null
17183 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17185 lt_compiler_flag="-o out/conftest2.$ac_objext"
17186 # Insert the option either (1) after the last *FLAGS variable, or
17187 # (2) before a word containing "conftest.", or (3) at the end.
17188 # Note that $ac_compile itself does not contain backslashes and begins
17189 # with a dollar sign (not a hyphen), so the echo should work correctly.
17190 lt_compile=`echo "$ac_compile" | $SED \
17191 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17192 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17193 -e 's:$: $lt_compiler_flag:'`
17194 (eval echo "\"\$as_me:17194: $lt_compile\"" >&5)
17195 (eval "$lt_compile" 2>out/conftest.err)
17197 cat out/conftest.err >&5
17198 echo "$as_me:17198: \$? = $ac_status" >&5
17199 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17201 # The compiler can only warn and ignore the option if not recognized
17202 # So say no if there are warnings
17203 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17204 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17205 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17206 lt_cv_prog_compiler_c_o_GCJ=yes
17211 # SGI C++ compiler will create directory out/ii_files/ for
17212 # template instantiation
17213 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17214 $rm out/* && rmdir out
17220 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17221 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17224 hard_links="nottested"
17225 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17226 # do not overwrite the value of need_locks provided by the user
17227 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17228 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17231 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17233 ln conftest.a conftest.b 2>&5 || hard_links=no
17234 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17235 { echo "$as_me:$LINENO: result: $hard_links" >&5
17236 echo "${ECHO_T}$hard_links" >&6; }
17237 if test "$hard_links" = no; then
17238 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17239 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17246 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17247 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17250 allow_undefined_flag_GCJ=
17251 enable_shared_with_static_runtimes_GCJ=no
17253 archive_expsym_cmds_GCJ=
17254 old_archive_From_new_cmds_GCJ=
17255 old_archive_from_expsyms_cmds_GCJ=
17256 export_dynamic_flag_spec_GCJ=
17257 whole_archive_flag_spec_GCJ=
17258 thread_safe_flag_spec_GCJ=
17259 hardcode_libdir_flag_spec_GCJ=
17260 hardcode_libdir_flag_spec_ld_GCJ=
17261 hardcode_libdir_separator_GCJ=
17262 hardcode_direct_GCJ=no
17263 hardcode_minus_L_GCJ=no
17264 hardcode_shlibpath_var_GCJ=unsupported
17265 link_all_deplibs_GCJ=unknown
17266 hardcode_automatic_GCJ=no
17268 module_expsym_cmds_GCJ=
17269 always_export_symbols_GCJ=no
17270 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17271 # include_expsyms should be a list of space-separated symbols to be *always*
17272 # included in the symbol list
17273 include_expsyms_GCJ=
17274 # exclude_expsyms can be an extended regexp of symbols to exclude
17275 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17276 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17277 # as well as any symbol that contains `d'.
17278 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17279 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17280 # platforms (ab)use it in PIC code, but their linkers get confused if
17281 # the symbol is explicitly referenced. Since portable code cannot
17282 # rely on this symbol name, it's probably fine to never include it in
17283 # preloaded symbol tables.
17284 # Exclude shared library initialization/finalization symbols.
17285 extract_expsyms_cmds=
17286 # Just being paranoid about ensuring that cc_basename is set.
17287 for cc_temp in $compiler""; do
17289 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17290 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17295 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17298 cygwin* | mingw* | pw32*)
17299 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17300 # When not using gcc, we currently assume that we are using
17301 # Microsoft Visual C++.
17302 if test "$GCC" != yes; then
17307 # we just hope/assume this is gcc and not c89 (= MSVC++)
17316 if test "$with_gnu_ld" = yes; then
17317 # If archive_cmds runs LD, not CC, wlarc should be empty
17320 # Set some defaults for GNU ld with shared library support. These
17321 # are reset later if shared libraries are not supported. Putting them
17322 # here allows them to be overridden if necessary.
17323 runpath_var=LD_RUN_PATH
17324 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17325 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17326 # ancient GNU ld didn't support --whole-archive et. al.
17327 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17328 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17330 whole_archive_flag_spec_GCJ=
17332 supports_anon_versioning=no
17333 case `$LD -v 2>/dev/null` in
17334 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17335 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17336 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17337 *\ 2.11.*) ;; # other 2.11 versions
17338 *) supports_anon_versioning=yes ;;
17341 # See if GNU ld supports shared libraries.
17344 # On AIX/PPC, the GNU linker is very broken
17345 if test "$host_cpu" != ia64; then
17349 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17350 *** to be unable to reliably create shared libraries on AIX.
17351 *** Therefore, libtool is disabling shared libraries support. If you
17352 *** really care for shared libraries, you may want to modify your PATH
17353 *** so that a non-GNU linker is found, and then restart.
17360 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)'
17361 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17362 hardcode_minus_L_GCJ=yes
17364 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17365 # that the semantics of dynamic libraries on AmigaOS, at least up
17366 # to version 4, is to share data among multiple programs linked
17367 # with the same dynamic library. Since this doesn't match the
17368 # behavior of shared libraries on other platforms, we can't use
17374 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17375 allow_undefined_flag_GCJ=unsupported
17376 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17377 # support --undefined. This deserves some investigation. FIXME
17378 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17384 cygwin* | mingw* | pw32*)
17385 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17386 # as there is no search path for DLLs.
17387 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17388 allow_undefined_flag_GCJ=unsupported
17389 always_export_symbols_GCJ=no
17390 enable_shared_with_static_runtimes_GCJ=yes
17391 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17393 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17394 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17395 # If the export-symbols file already is a .def file (1st line
17396 # is EXPORTS), use it as is; otherwise, prepend...
17397 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17398 cp $export_symbols $output_objdir/$soname.def;
17400 echo EXPORTS > $output_objdir/$soname.def;
17401 cat $export_symbols >> $output_objdir/$soname.def;
17403 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17410 hardcode_direct_GCJ=no
17411 hardcode_shlibpath_var_GCJ=no
17412 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17413 export_dynamic_flag_spec_GCJ='${wl}-E'
17414 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17415 # Instead, shared libraries are loaded at an image base (0x10000000 by
17416 # default) and relocated if they conflict, which is a slow very memory
17417 # consuming and fragmenting process. To avoid this, we pick a random,
17418 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17419 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17420 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'
17421 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'
17424 gnu* | linux* | k*bsd*-gnu)
17425 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17427 case $cc_basename,$host_cpu in
17428 pgcc*) # Portland Group C compiler
17429 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'
17430 tmp_addflag=' $pic_flag'
17432 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17433 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'
17434 tmp_addflag=' $pic_flag -Mnomain' ;;
17435 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17436 tmp_addflag=' -i_dynamic' ;;
17437 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17438 tmp_addflag=' -i_dynamic -nofor_main' ;;
17439 ifc* | ifort*) # Intel Fortran compiler
17440 tmp_addflag=' -nofor_main' ;;
17442 case `$CC -V 2>&1 | sed 5q` in
17443 *Sun\ C*) # Sun C 5.9
17444 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'
17445 tmp_sharedflag='-G' ;;
17446 *Sun\ F*) # Sun Fortran 8.3
17447 tmp_sharedflag='-G' ;;
17449 tmp_sharedflag='-shared' ;;
17451 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17453 if test $supports_anon_versioning = yes; then
17454 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17455 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17456 $echo "local: *; };" >> $output_objdir/$libname.ver~
17457 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17459 link_all_deplibs_GCJ=no
17465 netbsd* | netbsdelf*-gnu)
17466 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17467 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17470 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17471 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17476 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17480 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17481 *** create shared libraries on Solaris systems. Therefore, libtool
17482 *** is disabling shared libraries support. We urge you to upgrade GNU
17483 *** binutils to release 2.9.1 or newer. Another option is to modify
17484 *** your PATH or compiler configuration so that the native linker is
17485 *** used, and then restart.
17488 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17489 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17490 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17496 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17497 case `$LD -v 2>&1` in
17498 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17502 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17503 *** reliably create shared libraries on SCO systems. Therefore, libtool
17504 *** is disabling shared libraries support. We urge you to upgrade GNU
17505 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17506 *** your PATH or compiler configuration so that the native linker is
17507 *** used, and then restart.
17512 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17513 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17514 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17515 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17524 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17526 hardcode_direct_GCJ=yes
17527 hardcode_shlibpath_var_GCJ=no
17531 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17532 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17533 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17540 if test "$ld_shlibs_GCJ" = no; then
17542 hardcode_libdir_flag_spec_GCJ=
17543 export_dynamic_flag_spec_GCJ=
17544 whole_archive_flag_spec_GCJ=
17547 # PORTME fill in a description of your system's linker (not GNU ld)
17550 allow_undefined_flag_GCJ=unsupported
17551 always_export_symbols_GCJ=yes
17552 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'
17553 # Note: this linker hardcodes the directories in LIBPATH if there
17554 # are no directories specified by -L.
17555 hardcode_minus_L_GCJ=yes
17556 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17557 # Neither direct hardcoding nor static linking is supported with a
17559 hardcode_direct_GCJ=unsupported
17564 if test "$host_cpu" = ia64; then
17565 # On IA64, the linker does run time linking by default, so we don't
17566 # have to do anything special.
17567 aix_use_runtimelinking=no
17568 exp_sym_flag='-Bexport'
17571 # If we're using GNU nm, then we don't want the "-C" option.
17572 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17573 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17574 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'
17576 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'
17578 aix_use_runtimelinking=no
17580 # Test if we are trying to use run time linking or normal
17581 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17582 # need to do runtime linking.
17583 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17584 for ld_flag in $LDFLAGS; do
17585 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17586 aix_use_runtimelinking=yes
17593 exp_sym_flag='-bexport'
17594 no_entry_flag='-bnoentry'
17597 # When large executables or shared objects are built, AIX ld can
17598 # have problems creating the table of contents. If linking a library
17599 # or program results in "error TOC overflow" add -mminimal-toc to
17600 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17601 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17603 archive_cmds_GCJ=''
17604 hardcode_direct_GCJ=yes
17605 hardcode_libdir_separator_GCJ=':'
17606 link_all_deplibs_GCJ=yes
17608 if test "$GCC" = yes; then
17609 case $host_os in aix4.[012]|aix4.[012].*)
17610 # We only want to do this on AIX 4.2 and lower, the check
17611 # below for broken collect2 doesn't work under 4.3+
17612 collect2name=`${CC} -print-prog-name=collect2`
17613 if test -f "$collect2name" && \
17614 strings "$collect2name" | grep resolve_lib_name >/dev/null
17616 # We have reworked collect2
17619 # We have old collect2
17620 hardcode_direct_GCJ=unsupported
17621 # It fails to find uninstalled libraries when the uninstalled
17622 # path is not listed in the libpath. Setting hardcode_minus_L
17623 # to unsupported forces relinking
17624 hardcode_minus_L_GCJ=yes
17625 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17626 hardcode_libdir_separator_GCJ=
17630 shared_flag='-shared'
17631 if test "$aix_use_runtimelinking" = yes; then
17632 shared_flag="$shared_flag "'${wl}-G'
17636 if test "$host_cpu" = ia64; then
17637 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17638 # chokes on -Wl,-G. The following line is correct:
17641 if test "$aix_use_runtimelinking" = yes; then
17642 shared_flag='${wl}-G'
17644 shared_flag='${wl}-bM:SRE'
17649 # It seems that -bexpall does not export symbols beginning with
17650 # underscore (_), so it is better to generate a list of symbols to export.
17651 always_export_symbols_GCJ=yes
17652 if test "$aix_use_runtimelinking" = yes; then
17653 # Warning - without using the other runtime loading flags (-brtl),
17654 # -berok will link without error, but may produce a broken library.
17655 allow_undefined_flag_GCJ='-berok'
17656 # Determine the default libpath from the value encoded in an empty executable.
17657 cat >conftest.$ac_ext <<_ACEOF
17660 cat confdefs.h >>conftest.$ac_ext
17661 cat >>conftest.$ac_ext <<_ACEOF
17662 /* end confdefs.h. */
17672 rm -f conftest.$ac_objext conftest$ac_exeext
17673 if { (ac_try="$ac_link"
17674 case "(($ac_try" in
17675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17676 *) ac_try_echo=$ac_try;;
17678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17679 (eval "$ac_link") 2>conftest.er1
17681 grep -v '^ *+' conftest.er1 >conftest.err
17683 cat conftest.err >&5
17684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685 (exit $ac_status); } && {
17686 test -z "$ac_c_werror_flag" ||
17687 test ! -s conftest.err
17688 } && test -s conftest$ac_exeext &&
17689 $as_test_x conftest$ac_exeext; then
17691 lt_aix_libpath_sed='
17692 /Import File Strings/,/^$/ {
17698 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17699 # Check for a 64-bit object if we didn't find anything.
17700 if test -z "$aix_libpath"; then
17701 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17704 echo "$as_me: failed program was:" >&5
17705 sed 's/^/| /' conftest.$ac_ext >&5
17710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17711 conftest$ac_exeext conftest.$ac_ext
17712 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17714 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17715 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"
17717 if test "$host_cpu" = ia64; then
17718 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17719 allow_undefined_flag_GCJ="-z nodefs"
17720 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"
17722 # Determine the default libpath from the value encoded in an empty executable.
17723 cat >conftest.$ac_ext <<_ACEOF
17726 cat confdefs.h >>conftest.$ac_ext
17727 cat >>conftest.$ac_ext <<_ACEOF
17728 /* end confdefs.h. */
17738 rm -f conftest.$ac_objext conftest$ac_exeext
17739 if { (ac_try="$ac_link"
17740 case "(($ac_try" in
17741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17742 *) ac_try_echo=$ac_try;;
17744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17745 (eval "$ac_link") 2>conftest.er1
17747 grep -v '^ *+' conftest.er1 >conftest.err
17749 cat conftest.err >&5
17750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751 (exit $ac_status); } && {
17752 test -z "$ac_c_werror_flag" ||
17753 test ! -s conftest.err
17754 } && test -s conftest$ac_exeext &&
17755 $as_test_x conftest$ac_exeext; then
17757 lt_aix_libpath_sed='
17758 /Import File Strings/,/^$/ {
17764 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17765 # Check for a 64-bit object if we didn't find anything.
17766 if test -z "$aix_libpath"; then
17767 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17770 echo "$as_me: failed program was:" >&5
17771 sed 's/^/| /' conftest.$ac_ext >&5
17776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17777 conftest$ac_exeext conftest.$ac_ext
17778 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17780 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17781 # Warning - without using the other run time loading flags,
17782 # -berok will link without error, but may produce a broken library.
17783 no_undefined_flag_GCJ=' ${wl}-bernotok'
17784 allow_undefined_flag_GCJ=' ${wl}-berok'
17785 # Exported symbols can be pulled into shared objects from archives
17786 whole_archive_flag_spec_GCJ='$convenience'
17787 archive_cmds_need_lc_GCJ=yes
17788 # This is similar to how AIX traditionally builds its shared libraries.
17789 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'
17795 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)'
17796 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17797 hardcode_minus_L_GCJ=yes
17798 # see comment about different semantics on the GNU ld section
17803 export_dynamic_flag_spec_GCJ=-rdynamic
17806 cygwin* | mingw* | pw32*)
17807 # When not using gcc, we currently assume that we are using
17808 # Microsoft Visual C++.
17809 # hardcode_libdir_flag_spec is actually meaningless, as there is
17810 # no search path for DLLs.
17811 hardcode_libdir_flag_spec_GCJ=' '
17812 allow_undefined_flag_GCJ=unsupported
17813 # Tell ltmain to make .lib files, not .a files.
17815 # Tell ltmain to make .dll files, not .so files.
17817 # FIXME: Setting linknames here is a bad hack.
17818 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17819 # The linker will automatically build a .lib file if we build a DLL.
17820 old_archive_From_new_cmds_GCJ='true'
17821 # FIXME: Should let the user specify the lib program.
17822 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17823 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17824 enable_shared_with_static_runtimes_GCJ=yes
17827 darwin* | rhapsody*)
17829 rhapsody* | darwin1.[012])
17830 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17833 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17834 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17836 case ${MACOSX_DEPLOYMENT_TARGET} in
17838 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17841 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17847 archive_cmds_need_lc_GCJ=no
17848 hardcode_direct_GCJ=no
17849 hardcode_automatic_GCJ=yes
17850 hardcode_shlibpath_var_GCJ=unsupported
17851 whole_archive_flag_spec_GCJ=''
17852 link_all_deplibs_GCJ=yes
17853 if test "$GCC" = yes ; then
17854 output_verbose_link_cmd='echo'
17855 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}"
17856 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17857 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}"
17858 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}"
17860 case $cc_basename in
17862 output_verbose_link_cmd='echo'
17863 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17864 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17865 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17866 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}'
17867 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}'
17877 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17878 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17879 hardcode_shlibpath_var_GCJ=no
17886 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17887 # support. Future versions do this automatically, but an explicit c++rt0.o
17888 # does not break anything, and helps significantly (at the cost of a little
17891 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17892 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17893 hardcode_direct_GCJ=yes
17894 hardcode_shlibpath_var_GCJ=no
17897 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17899 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17900 hardcode_direct_GCJ=yes
17901 hardcode_minus_L_GCJ=yes
17902 hardcode_shlibpath_var_GCJ=no
17905 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17906 freebsd* | dragonfly*)
17907 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17908 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17909 hardcode_direct_GCJ=yes
17910 hardcode_shlibpath_var_GCJ=no
17914 if test "$GCC" = yes; then
17915 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'
17917 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'
17919 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17920 hardcode_libdir_separator_GCJ=:
17921 hardcode_direct_GCJ=yes
17923 # hardcode_minus_L: Not really in the search PATH,
17924 # but as the default location of the library.
17925 hardcode_minus_L_GCJ=yes
17926 export_dynamic_flag_spec_GCJ='${wl}-E'
17930 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17931 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17933 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17935 if test "$with_gnu_ld" = no; then
17936 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17937 hardcode_libdir_separator_GCJ=:
17939 hardcode_direct_GCJ=yes
17940 export_dynamic_flag_spec_GCJ='${wl}-E'
17942 # hardcode_minus_L: Not really in the search PATH,
17943 # but as the default location of the library.
17944 hardcode_minus_L_GCJ=yes
17949 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17952 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17955 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17958 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='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17967 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17970 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17974 if test "$with_gnu_ld" = no; then
17975 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17976 hardcode_libdir_separator_GCJ=:
17980 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17981 hardcode_direct_GCJ=no
17982 hardcode_shlibpath_var_GCJ=no
17985 hardcode_direct_GCJ=yes
17986 export_dynamic_flag_spec_GCJ='${wl}-E'
17988 # hardcode_minus_L: Not really in the search PATH,
17989 # but as the default location of the library.
17990 hardcode_minus_L_GCJ=yes
17996 irix5* | irix6* | nonstopux*)
17997 if test "$GCC" = yes; then
17998 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'
18000 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'
18001 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18003 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18004 hardcode_libdir_separator_GCJ=:
18005 link_all_deplibs_GCJ=yes
18008 netbsd* | netbsdelf*-gnu)
18009 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18010 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18012 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18014 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18015 hardcode_direct_GCJ=yes
18016 hardcode_shlibpath_var_GCJ=no
18020 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18021 hardcode_direct_GCJ=yes
18022 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18023 hardcode_libdir_separator_GCJ=:
18024 hardcode_shlibpath_var_GCJ=no
18028 if test -f /usr/libexec/ld.so; then
18029 hardcode_direct_GCJ=yes
18030 hardcode_shlibpath_var_GCJ=no
18031 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18032 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18033 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18034 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18035 export_dynamic_flag_spec_GCJ='${wl}-E'
18038 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18039 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18040 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18043 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18044 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18054 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18055 hardcode_minus_L_GCJ=yes
18056 allow_undefined_flag_GCJ=unsupported
18057 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'
18058 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18062 if test "$GCC" = yes; then
18063 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18064 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'
18066 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18067 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'
18069 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18070 hardcode_libdir_separator_GCJ=:
18073 osf4* | osf5*) # as osf3* with the addition of -msym flag
18074 if test "$GCC" = yes; then
18075 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18076 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'
18077 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18079 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18080 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'
18081 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~
18082 $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'
18084 # Both c and cxx compiler support -rpath directly
18085 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18087 hardcode_libdir_separator_GCJ=:
18091 no_undefined_flag_GCJ=' -z text'
18092 if test "$GCC" = yes; then
18094 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18095 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18096 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18099 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18100 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18101 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18103 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18104 hardcode_shlibpath_var_GCJ=no
18106 solaris2.[0-5] | solaris2.[0-5].*) ;;
18108 # The compiler driver will combine and reorder linker options,
18109 # but understands `-z linker_flag'. GCC discards it without `$wl',
18110 # but is careful enough not to reorder.
18111 # Supported since Solaris 2.6 (maybe 2.5.1?)
18112 if test "$GCC" = yes; then
18113 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18115 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18119 link_all_deplibs_GCJ=yes
18123 if test "x$host_vendor" = xsequent; then
18124 # Use $CC to link under sequent, because it throws in some extra .o
18125 # files that make .init and .fini sections work.
18126 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18128 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18130 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18131 hardcode_direct_GCJ=yes
18132 hardcode_minus_L_GCJ=yes
18133 hardcode_shlibpath_var_GCJ=no
18137 case $host_vendor in
18139 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18140 hardcode_direct_GCJ=yes # is this really true???
18143 ## LD is ld it makes a PLAMLIB
18144 ## CC just makes a GrossModule.
18145 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18146 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18147 hardcode_direct_GCJ=no
18150 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18151 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18154 runpath_var='LD_RUN_PATH'
18155 hardcode_shlibpath_var_GCJ=no
18159 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18160 hardcode_shlibpath_var_GCJ=no
18161 export_dynamic_flag_spec_GCJ='-Bexport'
18165 if test -d /usr/nec; then
18166 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18167 hardcode_shlibpath_var_GCJ=no
18168 runpath_var=LD_RUN_PATH
18169 hardcode_runpath_var=yes
18174 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18175 no_undefined_flag_GCJ='${wl}-z,text'
18176 archive_cmds_need_lc_GCJ=no
18177 hardcode_shlibpath_var_GCJ=no
18178 runpath_var='LD_RUN_PATH'
18180 if test "$GCC" = yes; then
18181 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18182 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18184 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18185 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18189 sysv5* | sco3.2v5* | sco5v6*)
18190 # Note: We can NOT use -z defs as we might desire, because we do not
18191 # link with -lc, and that would cause any symbols used from libc to
18192 # always be unresolved, which means just about no library would
18193 # ever link correctly. If we're not using GNU ld we use -z text
18194 # though, which does catch some bad symbols but isn't as heavy-handed
18196 no_undefined_flag_GCJ='${wl}-z,text'
18197 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18198 archive_cmds_need_lc_GCJ=no
18199 hardcode_shlibpath_var_GCJ=no
18200 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18201 hardcode_libdir_separator_GCJ=':'
18202 link_all_deplibs_GCJ=yes
18203 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18204 runpath_var='LD_RUN_PATH'
18206 if test "$GCC" = yes; then
18207 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18208 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18210 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18211 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18216 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18217 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18218 hardcode_shlibpath_var_GCJ=no
18227 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18228 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18229 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18232 # Do we need to explicitly link libc?
18234 case "x$archive_cmds_need_lc_GCJ" in
18236 # Assume -lc should be added
18237 archive_cmds_need_lc_GCJ=yes
18239 if test "$enable_shared" = yes && test "$GCC" = yes; then
18240 case $archive_cmds_GCJ in
18242 # FIXME: we may have to deal with multi-command sequences.
18245 # Test whether the compiler implicitly links with -lc since on some
18246 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18247 # to ld, don't add -lc before -lgcc.
18248 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18249 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18251 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18254 (eval $ac_compile) 2>&5
18256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18257 (exit $ac_status); } 2>conftest.err; then
18260 libobjs=conftest.$ac_objext
18262 wl=$lt_prog_compiler_wl_GCJ
18263 pic_flag=$lt_prog_compiler_pic_GCJ
18269 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18270 allow_undefined_flag_GCJ=
18271 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18272 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275 (exit $ac_status); }
18277 archive_cmds_need_lc_GCJ=no
18279 archive_cmds_need_lc_GCJ=yes
18281 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18283 cat conftest.err 1>&5
18286 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18287 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18294 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18295 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18296 library_names_spec=
18297 libname_spec='lib$name'
18301 postuninstall_cmds=
18305 shlibpath_overrides_runpath=unknown
18307 dynamic_linker="$host_os ld.so"
18308 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18310 need_lib_prefix=unknown
18311 hardcode_into_libs=no
18313 # when you set need_version to no, make sure it does not cause -set_version
18314 # flags to be left without arguments
18315 need_version=unknown
18320 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18321 shlibpath_var=LIBPATH
18323 # AIX 3 has no versioning support, so we append a major version to the name.
18324 soname_spec='${libname}${release}${shared_ext}$major'
18331 hardcode_into_libs=yes
18332 if test "$host_cpu" = ia64; then
18333 # AIX 5 supports IA64
18334 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18335 shlibpath_var=LD_LIBRARY_PATH
18337 # With GCC up to 2.95.x, collect2 would create an import file
18338 # for dependence libraries. The import file would start with
18339 # the line `#! .'. This would cause the generated library to
18340 # depend on `.', always an invalid library. This was fixed in
18341 # development snapshots of GCC prior to 3.0.
18343 aix4 | aix4.[01] | aix4.[01].*)
18344 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18346 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18349 can_build_shared=no
18353 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18354 # soname into executable. Probably we can add versioning support to
18355 # collect2, so additional links can be useful in future.
18356 if test "$aix_use_runtimelinking" = yes; then
18357 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18358 # instead of lib<name>.a to let people know that these are not
18359 # typical AIX shared libraries.
18360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18362 # We preserve .a as extension for shared libraries through AIX4.2
18363 # and later when we are not doing run time linking.
18364 library_names_spec='${libname}${release}.a $libname.a'
18365 soname_spec='${libname}${release}${shared_ext}$major'
18367 shlibpath_var=LIBPATH
18372 library_names_spec='$libname.ixlibrary $libname.a'
18373 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18374 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
18378 library_names_spec='${libname}${shared_ext}'
18379 dynamic_linker="$host_os ld.so"
18380 shlibpath_var=LIBRARY_PATH
18386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18387 soname_spec='${libname}${release}${shared_ext}$major'
18388 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18389 shlibpath_var=LD_LIBRARY_PATH
18390 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18391 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18392 # the default ld.so.conf also contains /usr/contrib/lib and
18393 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18394 # libtool to hard-code these into programs
18397 cygwin* | mingw* | pw32*)
18398 version_type=windows
18403 case $GCC,$host_os in
18404 yes,cygwin* | yes,mingw* | yes,pw32*)
18405 library_names_spec='$libname.dll.a'
18406 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18407 postinstall_cmds='base_file=`basename \${file}`~
18408 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18409 dldir=$destdir/`dirname \$dlpath`~
18410 test -d \$dldir || mkdir -p \$dldir~
18411 $install_prog $dir/$dlname \$dldir/$dlname~
18412 chmod a+x \$dldir/$dlname'
18413 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18414 dlpath=$dir/\$dldll~
18416 shlibpath_overrides_runpath=yes
18420 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18421 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18422 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18425 # MinGW DLLs use traditional 'lib' prefix
18426 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18427 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18428 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18429 # It is most probably a Windows format PATH printed by
18430 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18431 # path with ; separators, and with drive letters. We can handle the
18432 # drive letters (cygwin fileutils understands them), so leave them,
18433 # especially as we might pass files found there to a mingw objdump,
18434 # which wouldn't understand a cygwinified path. Ahh.
18435 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18437 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18441 # pw32 DLLs use 'pw' prefix rather than 'lib'
18442 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18448 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18451 dynamic_linker='Win32 ld.exe'
18452 # FIXME: first we should search . and the directory the executable is in
18456 darwin* | rhapsody*)
18457 dynamic_linker="$host_os dyld"
18458 version_type=darwin
18461 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18462 soname_spec='${libname}${release}${major}$shared_ext'
18463 shlibpath_overrides_runpath=yes
18464 shlibpath_var=DYLD_LIBRARY_PATH
18465 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18467 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18475 soname_spec='${libname}${release}${shared_ext}$major'
18476 shlibpath_var=LD_LIBRARY_PATH
18483 freebsd* | dragonfly*)
18484 # DragonFly does not have aout. When/if they implement a new
18485 # versioning mechanism, adjust this.
18486 if test -x /usr/bin/objformat; then
18487 objformat=`/usr/bin/objformat`
18490 freebsd[123]*) objformat=aout ;;
18491 *) objformat=elf ;;
18494 version_type=freebsd-$objformat
18495 case $version_type in
18497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18502 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18506 shlibpath_var=LD_LIBRARY_PATH
18509 shlibpath_overrides_runpath=yes
18511 freebsd3.[01]* | freebsdelf3.[01]*)
18512 shlibpath_overrides_runpath=yes
18513 hardcode_into_libs=yes
18515 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18516 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18517 shlibpath_overrides_runpath=no
18518 hardcode_into_libs=yes
18520 *) # from 4.6 on, and DragonFly
18521 shlibpath_overrides_runpath=yes
18522 hardcode_into_libs=yes
18531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18532 soname_spec='${libname}${release}${shared_ext}$major'
18533 shlibpath_var=LD_LIBRARY_PATH
18534 hardcode_into_libs=yes
18537 hpux9* | hpux10* | hpux11*)
18538 # Give a soname corresponding to the major version so that dld.sl refuses to
18539 # link against other versions.
18546 hardcode_into_libs=yes
18547 dynamic_linker="$host_os dld.so"
18548 shlibpath_var=LD_LIBRARY_PATH
18549 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18551 soname_spec='${libname}${release}${shared_ext}$major'
18552 if test "X$HPUX_IA64_MODE" = X32; then
18553 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18555 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18557 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18561 hardcode_into_libs=yes
18562 dynamic_linker="$host_os dld.sl"
18563 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18564 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18566 soname_spec='${libname}${release}${shared_ext}$major'
18567 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18568 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18572 dynamic_linker="$host_os dld.sl"
18573 shlibpath_var=SHLIB_PATH
18574 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18576 soname_spec='${libname}${release}${shared_ext}$major'
18579 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18580 postinstall_cmds='chmod 555 $lib'
18587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18588 soname_spec='${libname}${release}${shared_ext}$major'
18589 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18590 shlibpath_var=LD_LIBRARY_PATH
18591 shlibpath_overrides_runpath=no
18592 hardcode_into_libs=yes
18595 irix5* | irix6* | nonstopux*)
18597 nonstopux*) version_type=nonstopux ;;
18599 if test "$lt_cv_prog_gnu_ld" = yes; then
18607 soname_spec='${libname}${release}${shared_ext}$major'
18608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18610 irix5* | nonstopux*)
18611 libsuff= shlibsuff=
18614 case $LD in # libtool.m4 will add one of these switches to LD
18615 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18616 libsuff= shlibsuff= libmagic=32-bit;;
18617 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18618 libsuff=32 shlibsuff=N32 libmagic=N32;;
18619 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18620 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18621 *) libsuff= shlibsuff= libmagic=never-match;;
18625 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18626 shlibpath_overrides_runpath=no
18627 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18628 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18629 hardcode_into_libs=yes
18632 # No shared lib support for Linux oldld, aout, or coff.
18633 linux*oldld* | linux*aout* | linux*coff*)
18637 # This must be Linux ELF.
18638 linux* | k*bsd*-gnu)
18642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18643 soname_spec='${libname}${release}${shared_ext}$major'
18644 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18645 shlibpath_var=LD_LIBRARY_PATH
18646 shlibpath_overrides_runpath=no
18647 # This implies no fast_install, which is unacceptable.
18648 # Some rework will be needed to allow for fast_install
18649 # before this can be enabled.
18650 hardcode_into_libs=yes
18652 # Append ld.so.conf contents to the search path
18653 if test -f /etc/ld.so.conf; then
18654 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' ' '`
18655 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18658 # We used to test for /lib/ld.so.1 and disable shared libraries on
18659 # powerpc, because MkLinux only supported shared libraries with the
18660 # GNU dynamic linker. Since this was broken with cross compilers,
18661 # most powerpc-linux boxes support dynamic linking these days and
18662 # people can always --disable-shared, the test was removed, and we
18663 # assume the GNU/Linux dynamic linker is in use.
18664 dynamic_linker='GNU/Linux ld.so'
18671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18672 soname_spec='${libname}${release}${shared_ext}$major'
18673 shlibpath_var=LD_LIBRARY_PATH
18674 shlibpath_overrides_runpath=no
18675 hardcode_into_libs=yes
18676 dynamic_linker='NetBSD ld.elf_so'
18683 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18685 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18686 dynamic_linker='NetBSD (a.out) ld.so'
18688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18689 soname_spec='${libname}${release}${shared_ext}$major'
18690 dynamic_linker='NetBSD ld.elf_so'
18692 shlibpath_var=LD_LIBRARY_PATH
18693 shlibpath_overrides_runpath=yes
18694 hardcode_into_libs=yes
18699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18700 shlibpath_var=LD_LIBRARY_PATH
18701 shlibpath_overrides_runpath=yes
18708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18709 soname_spec='${libname}${release}${shared_ext}$major'
18710 shlibpath_var=LD_LIBRARY_PATH
18711 shlibpath_overrides_runpath=yes
18716 sys_lib_dlsearch_path_spec="/usr/lib"
18718 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18720 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18721 *) need_version=no ;;
18723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18724 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18725 shlibpath_var=LD_LIBRARY_PATH
18726 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18728 openbsd2.[89] | openbsd2.[89].*)
18729 shlibpath_overrides_runpath=no
18732 shlibpath_overrides_runpath=yes
18736 shlibpath_overrides_runpath=yes
18741 libname_spec='$name'
18744 library_names_spec='$libname${shared_ext} $libname.a'
18745 dynamic_linker='OS/2 ld.exe'
18746 shlibpath_var=LIBPATH
18749 osf3* | osf4* | osf5*)
18753 soname_spec='${libname}${release}${shared_ext}$major'
18754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18755 shlibpath_var=LD_LIBRARY_PATH
18756 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18757 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18769 soname_spec='${libname}${release}${shared_ext}$major'
18770 shlibpath_var=LD_LIBRARY_PATH
18771 shlibpath_overrides_runpath=yes
18772 hardcode_into_libs=yes
18773 # ldd complains unless libraries are executable
18774 postinstall_cmds='chmod +x $lib'
18779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18780 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18781 shlibpath_var=LD_LIBRARY_PATH
18782 shlibpath_overrides_runpath=yes
18783 if test "$with_gnu_ld" = yes; then
18791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18792 soname_spec='${libname}${release}${shared_ext}$major'
18793 shlibpath_var=LD_LIBRARY_PATH
18794 case $host_vendor in
18796 shlibpath_overrides_runpath=no
18798 export_dynamic_flag_spec='${wl}-Blargedynsym'
18799 runpath_var=LD_RUN_PATH
18807 shlibpath_overrides_runpath=no
18808 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18814 if test -d /usr/nec ;then
18816 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18817 soname_spec='$libname${shared_ext}.$major'
18818 shlibpath_var=LD_LIBRARY_PATH
18822 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18823 version_type=freebsd-elf
18826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18827 soname_spec='${libname}${release}${shared_ext}$major'
18828 shlibpath_var=LD_LIBRARY_PATH
18829 hardcode_into_libs=yes
18830 if test "$with_gnu_ld" = yes; then
18831 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18832 shlibpath_overrides_runpath=no
18834 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18835 shlibpath_overrides_runpath=yes
18838 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18842 sys_lib_dlsearch_path_spec='/usr/lib'
18847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18848 soname_spec='${libname}${release}${shared_ext}$major'
18849 shlibpath_var=LD_LIBRARY_PATH
18856 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18857 echo "${ECHO_T}$dynamic_linker" >&6; }
18858 test "$dynamic_linker" = no && can_build_shared=no
18860 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18861 echo $ECHO_N "(cached) $ECHO_C" >&6
18863 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18866 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18867 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18868 echo $ECHO_N "(cached) $ECHO_C" >&6
18870 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18873 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18875 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18876 if test "$GCC" = yes; then
18877 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18880 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18881 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18882 hardcode_action_GCJ=
18883 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18884 test -n "$runpath_var_GCJ" || \
18885 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18887 # We can hardcode non-existant directories.
18888 if test "$hardcode_direct_GCJ" != no &&
18889 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18890 # have to relink, otherwise we might link with an installed library
18891 # when we should be linking with a yet-to-be-installed one
18892 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18893 test "$hardcode_minus_L_GCJ" != no; then
18894 # Linking always hardcodes the temporary library directory.
18895 hardcode_action_GCJ=relink
18897 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18898 hardcode_action_GCJ=immediate
18901 # We cannot hardcode anything, or else we can only hardcode existing
18903 hardcode_action_GCJ=unsupported
18905 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18906 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18908 if test "$hardcode_action_GCJ" = relink; then
18909 # Fast installation is not supported
18910 enable_fast_install=no
18911 elif test "$shlibpath_overrides_runpath" = yes ||
18912 test "$enable_shared" = no; then
18913 # Fast installation is not necessary
18914 enable_fast_install=needless
18918 # The else clause should only fire when bootstrapping the
18919 # libtool distribution, otherwise you forgot to ship ltmain.sh
18920 # with your package, and you will get complaints that there are
18921 # no rules to generate ltmain.sh.
18922 if test -f "$ltmain"; then
18923 # See if we are running on zsh, and set the options which allow our commands through
18924 # without removal of \ escapes.
18925 if test -n "${ZSH_VERSION+set}" ; then
18926 setopt NO_GLOB_SUBST
18928 # Now quote all the things that may contain metacharacters while being
18929 # careful not to overquote the AC_SUBSTed values. We take copies of the
18930 # variables and quote the copies for generation of the libtool script.
18931 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18933 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18934 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18935 deplibs_check_method reload_flag reload_cmds need_locks \
18936 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18937 lt_cv_sys_global_symbol_to_c_name_address \
18938 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18939 old_postinstall_cmds old_postuninstall_cmds \
18943 lt_prog_compiler_wl_GCJ \
18944 lt_prog_compiler_pic_GCJ \
18945 lt_prog_compiler_static_GCJ \
18946 lt_prog_compiler_no_builtin_flag_GCJ \
18947 export_dynamic_flag_spec_GCJ \
18948 thread_safe_flag_spec_GCJ \
18949 whole_archive_flag_spec_GCJ \
18950 enable_shared_with_static_runtimes_GCJ \
18951 old_archive_cmds_GCJ \
18952 old_archive_from_new_cmds_GCJ \
18953 predep_objects_GCJ \
18954 postdep_objects_GCJ \
18957 compiler_lib_search_path_GCJ \
18958 compiler_lib_search_dirs_GCJ \
18960 archive_expsym_cmds_GCJ \
18961 postinstall_cmds_GCJ \
18962 postuninstall_cmds_GCJ \
18963 old_archive_from_expsyms_cmds_GCJ \
18964 allow_undefined_flag_GCJ \
18965 no_undefined_flag_GCJ \
18966 export_symbols_cmds_GCJ \
18967 hardcode_libdir_flag_spec_GCJ \
18968 hardcode_libdir_flag_spec_ld_GCJ \
18969 hardcode_libdir_separator_GCJ \
18970 hardcode_automatic_GCJ \
18972 module_expsym_cmds_GCJ \
18973 lt_cv_prog_compiler_c_o_GCJ \
18974 fix_srcfile_path_GCJ \
18975 exclude_expsyms_GCJ \
18976 include_expsyms_GCJ; do
18979 old_archive_cmds_GCJ | \
18980 old_archive_from_new_cmds_GCJ | \
18981 archive_cmds_GCJ | \
18982 archive_expsym_cmds_GCJ | \
18983 module_cmds_GCJ | \
18984 module_expsym_cmds_GCJ | \
18985 old_archive_from_expsyms_cmds_GCJ | \
18986 export_symbols_cmds_GCJ | \
18987 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18988 postinstall_cmds | postuninstall_cmds | \
18989 old_postinstall_cmds | old_postuninstall_cmds | \
18990 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18991 # Double-quote double-evaled strings.
18992 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18995 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19001 *'\$0 --fallback-echo"')
19002 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19008 cat <<__EOF__ >> "$cfgfile"
19009 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19011 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19013 # Shell to use when invoking shell scripts.
19016 # Whether or not to build shared libraries.
19017 build_libtool_libs=$enable_shared
19019 # Whether or not to build static libraries.
19020 build_old_libs=$enable_static
19022 # Whether or not to add -lc for building shared libraries.
19023 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19025 # Whether or not to disallow shared libs when runtime libs are static
19026 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19028 # Whether or not to optimize for fast installation.
19029 fast_install=$enable_fast_install
19032 host_alias=$host_alias
19036 # The build system.
19037 build_alias=$build_alias
19041 # An echo program that does not interpret backslashes.
19046 AR_FLAGS=$lt_AR_FLAGS
19051 # LTCC compiler flags.
19052 LTCFLAGS=$lt_LTCFLAGS
19054 # A language-specific compiler.
19055 CC=$lt_compiler_GCJ
19057 # Is the compiler the GNU C compiler?
19063 # The linker used to build libraries.
19066 # Whether we need hard or soft links.
19069 # A BSD-compatible nm program.
19072 # A symbol stripping program
19075 # Used to examine libraries when file_magic_cmd begins "file"
19076 MAGIC_CMD=$MAGIC_CMD
19078 # Used on cygwin: DLL creation program.
19081 # Used on cygwin: object dumper.
19084 # Used on cygwin: assembler.
19087 # The name of the directory that contains temporary libtool files.
19090 # How to create reloadable object files.
19091 reload_flag=$lt_reload_flag
19092 reload_cmds=$lt_reload_cmds
19094 # How to pass a linker flag through the compiler.
19095 wl=$lt_lt_prog_compiler_wl_GCJ
19097 # Object file suffix (normally "o").
19098 objext="$ac_objext"
19100 # Old archive suffix (normally "a").
19103 # Shared library suffix (normally ".so").
19104 shrext_cmds='$shrext_cmds'
19106 # Executable file suffix (normally "").
19109 # Additional compiler flags for building library objects.
19110 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19113 # What is the maximum length of a command?
19114 max_cmd_len=$lt_cv_sys_max_cmd_len
19116 # Does compiler simultaneously support -c and -o options?
19117 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19119 # Must we lock files when doing compilation?
19120 need_locks=$lt_need_locks
19122 # Do we need the lib prefix for modules?
19123 need_lib_prefix=$need_lib_prefix
19125 # Do we need a version for libraries?
19126 need_version=$need_version
19128 # Whether dlopen is supported.
19129 dlopen_support=$enable_dlopen
19131 # Whether dlopen of programs is supported.
19132 dlopen_self=$enable_dlopen_self
19134 # Whether dlopen of statically linked programs is supported.
19135 dlopen_self_static=$enable_dlopen_self_static
19137 # Compiler flag to prevent dynamic linking.
19138 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19140 # Compiler flag to turn off builtin functions.
19141 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19143 # Compiler flag to allow reflexive dlopens.
19144 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19146 # Compiler flag to generate shared objects directly from archives.
19147 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19149 # Compiler flag to generate thread-safe objects.
19150 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19152 # Library versioning type.
19153 version_type=$version_type
19155 # Format of library name prefix.
19156 libname_spec=$lt_libname_spec
19158 # List of archive names. First name is the real one, the rest are links.
19159 # The last name is the one that the linker finds with -lNAME.
19160 library_names_spec=$lt_library_names_spec
19162 # The coded name of the library, if different from the real name.
19163 soname_spec=$lt_soname_spec
19165 # Commands used to build and install an old-style archive.
19167 old_archive_cmds=$lt_old_archive_cmds_GCJ
19168 old_postinstall_cmds=$lt_old_postinstall_cmds
19169 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19171 # Create an old-style archive from a shared archive.
19172 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19174 # Create a temporary old-style archive to link instead of a shared archive.
19175 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19177 # Commands used to build and install a shared archive.
19178 archive_cmds=$lt_archive_cmds_GCJ
19179 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19180 postinstall_cmds=$lt_postinstall_cmds
19181 postuninstall_cmds=$lt_postuninstall_cmds
19183 # Commands used to build a loadable module (assumed same as above if empty)
19184 module_cmds=$lt_module_cmds_GCJ
19185 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19187 # Commands to strip libraries.
19188 old_striplib=$lt_old_striplib
19189 striplib=$lt_striplib
19191 # Dependencies to place before the objects being linked to create a
19193 predep_objects=$lt_predep_objects_GCJ
19195 # Dependencies to place after the objects being linked to create a
19197 postdep_objects=$lt_postdep_objects_GCJ
19199 # Dependencies to place before the objects being linked to create a
19201 predeps=$lt_predeps_GCJ
19203 # Dependencies to place after the objects being linked to create a
19205 postdeps=$lt_postdeps_GCJ
19207 # The directories searched by this compiler when creating a shared
19209 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19211 # The library search path used internally by the compiler when linking
19212 # a shared library.
19213 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19215 # Method to check whether dependent libraries are shared objects.
19216 deplibs_check_method=$lt_deplibs_check_method
19218 # Command to use when deplibs_check_method == file_magic.
19219 file_magic_cmd=$lt_file_magic_cmd
19221 # Flag that allows shared libraries with undefined symbols to be built.
19222 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19224 # Flag that forces no undefined symbols.
19225 no_undefined_flag=$lt_no_undefined_flag_GCJ
19227 # Commands used to finish a libtool library installation in a directory.
19228 finish_cmds=$lt_finish_cmds
19230 # Same as above, but a single script fragment to be evaled but not shown.
19231 finish_eval=$lt_finish_eval
19233 # Take the output of nm and produce a listing of raw symbols and C names.
19234 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19236 # Transform the output of nm in a proper C declaration
19237 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19239 # Transform the output of nm in a C name address pair
19240 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19242 # This is the shared library runtime path variable.
19243 runpath_var=$runpath_var
19245 # This is the shared library path variable.
19246 shlibpath_var=$shlibpath_var
19248 # Is shlibpath searched before the hard-coded library search path?
19249 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19251 # How to hardcode a shared library path into an executable.
19252 hardcode_action=$hardcode_action_GCJ
19254 # Whether we should hardcode library paths into libraries.
19255 hardcode_into_libs=$hardcode_into_libs
19257 # Flag to hardcode \$libdir into a binary during linking.
19258 # This must work even if \$libdir does not exist.
19259 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19261 # If ld is used when linking, flag to hardcode \$libdir into
19262 # a binary during linking. This must work even if \$libdir does
19264 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19266 # Whether we need a single -rpath flag with a separated argument.
19267 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19269 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19270 # resulting binary.
19271 hardcode_direct=$hardcode_direct_GCJ
19273 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19274 # resulting binary.
19275 hardcode_minus_L=$hardcode_minus_L_GCJ
19277 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19278 # the resulting binary.
19279 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19281 # Set to yes if building a shared library automatically hardcodes DIR into the library
19282 # and all subsequent libraries and executables linked against it.
19283 hardcode_automatic=$hardcode_automatic_GCJ
19285 # Variables whose values should be saved in libtool wrapper scripts and
19286 # restored at relink time.
19287 variables_saved_for_relink="$variables_saved_for_relink"
19289 # Whether libtool must link a program against all its dependency libraries.
19290 link_all_deplibs=$link_all_deplibs_GCJ
19292 # Compile-time system search path for libraries
19293 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19295 # Run-time system search path for libraries
19296 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19298 # Fix the shell variable \$srcfile for the compiler.
19299 fix_srcfile_path=$lt_fix_srcfile_path
19301 # Set to yes if exported symbols are required.
19302 always_export_symbols=$always_export_symbols_GCJ
19304 # The commands to list exported symbols.
19305 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19307 # The commands to extract the exported symbol list from a shared archive.
19308 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19310 # Symbols that should not be listed in the preloaded symbols.
19311 exclude_expsyms=$lt_exclude_expsyms_GCJ
19313 # Symbols that must always be exported.
19314 include_expsyms=$lt_include_expsyms_GCJ
19316 # ### END LIBTOOL TAG CONFIG: $tagname
19322 # If there is no Makefile yet, we rely on a make rule to execute
19323 # `config.status --recheck' to rerun these tests and create the
19324 # libtool script then.
19325 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19326 if test -f "$ltmain_in"; then
19327 test -f Makefile && make "$ltmain"
19333 ac_cpp='$CPP $CPPFLAGS'
19334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19348 # Source file extension for RC test sources.
19351 # Object file extension for compiled RC test sources.
19355 # Code to be used in simple compile tests
19356 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19358 # Code to be used in simple link tests
19359 lt_simple_link_test_code="$lt_simple_compile_test_code"
19361 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19363 # If no C compiler was specified, use CC.
19366 # If no C compiler flags were specified, use CFLAGS.
19367 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19369 # Allow CC to be a program name with arguments.
19373 # save warnings/boilerplate of simple test code
19374 ac_outfile=conftest.$ac_objext
19375 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19376 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19377 _lt_compiler_boilerplate=`cat conftest.err`
19380 ac_outfile=conftest.$ac_objext
19381 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19382 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19383 _lt_linker_boilerplate=`cat conftest.err`
19387 # Allow CC to be a program name with arguments.
19392 for cc_temp in $compiler""; do
19394 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19395 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19400 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19402 lt_cv_prog_compiler_c_o_RC=yes
19404 # The else clause should only fire when bootstrapping the
19405 # libtool distribution, otherwise you forgot to ship ltmain.sh
19406 # with your package, and you will get complaints that there are
19407 # no rules to generate ltmain.sh.
19408 if test -f "$ltmain"; then
19409 # See if we are running on zsh, and set the options which allow our commands through
19410 # without removal of \ escapes.
19411 if test -n "${ZSH_VERSION+set}" ; then
19412 setopt NO_GLOB_SUBST
19414 # Now quote all the things that may contain metacharacters while being
19415 # careful not to overquote the AC_SUBSTed values. We take copies of the
19416 # variables and quote the copies for generation of the libtool script.
19417 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19419 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19420 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19421 deplibs_check_method reload_flag reload_cmds need_locks \
19422 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19423 lt_cv_sys_global_symbol_to_c_name_address \
19424 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19425 old_postinstall_cmds old_postuninstall_cmds \
19429 lt_prog_compiler_wl_RC \
19430 lt_prog_compiler_pic_RC \
19431 lt_prog_compiler_static_RC \
19432 lt_prog_compiler_no_builtin_flag_RC \
19433 export_dynamic_flag_spec_RC \
19434 thread_safe_flag_spec_RC \
19435 whole_archive_flag_spec_RC \
19436 enable_shared_with_static_runtimes_RC \
19437 old_archive_cmds_RC \
19438 old_archive_from_new_cmds_RC \
19439 predep_objects_RC \
19440 postdep_objects_RC \
19443 compiler_lib_search_path_RC \
19444 compiler_lib_search_dirs_RC \
19446 archive_expsym_cmds_RC \
19447 postinstall_cmds_RC \
19448 postuninstall_cmds_RC \
19449 old_archive_from_expsyms_cmds_RC \
19450 allow_undefined_flag_RC \
19451 no_undefined_flag_RC \
19452 export_symbols_cmds_RC \
19453 hardcode_libdir_flag_spec_RC \
19454 hardcode_libdir_flag_spec_ld_RC \
19455 hardcode_libdir_separator_RC \
19456 hardcode_automatic_RC \
19458 module_expsym_cmds_RC \
19459 lt_cv_prog_compiler_c_o_RC \
19460 fix_srcfile_path_RC \
19461 exclude_expsyms_RC \
19462 include_expsyms_RC; do
19465 old_archive_cmds_RC | \
19466 old_archive_from_new_cmds_RC | \
19467 archive_cmds_RC | \
19468 archive_expsym_cmds_RC | \
19470 module_expsym_cmds_RC | \
19471 old_archive_from_expsyms_cmds_RC | \
19472 export_symbols_cmds_RC | \
19473 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19474 postinstall_cmds | postuninstall_cmds | \
19475 old_postinstall_cmds | old_postuninstall_cmds | \
19476 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19477 # Double-quote double-evaled strings.
19478 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19481 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19487 *'\$0 --fallback-echo"')
19488 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19494 cat <<__EOF__ >> "$cfgfile"
19495 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19497 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19499 # Shell to use when invoking shell scripts.
19502 # Whether or not to build shared libraries.
19503 build_libtool_libs=$enable_shared
19505 # Whether or not to build static libraries.
19506 build_old_libs=$enable_static
19508 # Whether or not to add -lc for building shared libraries.
19509 build_libtool_need_lc=$archive_cmds_need_lc_RC
19511 # Whether or not to disallow shared libs when runtime libs are static
19512 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19514 # Whether or not to optimize for fast installation.
19515 fast_install=$enable_fast_install
19518 host_alias=$host_alias
19522 # The build system.
19523 build_alias=$build_alias
19527 # An echo program that does not interpret backslashes.
19532 AR_FLAGS=$lt_AR_FLAGS
19537 # LTCC compiler flags.
19538 LTCFLAGS=$lt_LTCFLAGS
19540 # A language-specific compiler.
19543 # Is the compiler the GNU C compiler?
19549 # The linker used to build libraries.
19552 # Whether we need hard or soft links.
19555 # A BSD-compatible nm program.
19558 # A symbol stripping program
19561 # Used to examine libraries when file_magic_cmd begins "file"
19562 MAGIC_CMD=$MAGIC_CMD
19564 # Used on cygwin: DLL creation program.
19567 # Used on cygwin: object dumper.
19570 # Used on cygwin: assembler.
19573 # The name of the directory that contains temporary libtool files.
19576 # How to create reloadable object files.
19577 reload_flag=$lt_reload_flag
19578 reload_cmds=$lt_reload_cmds
19580 # How to pass a linker flag through the compiler.
19581 wl=$lt_lt_prog_compiler_wl_RC
19583 # Object file suffix (normally "o").
19584 objext="$ac_objext"
19586 # Old archive suffix (normally "a").
19589 # Shared library suffix (normally ".so").
19590 shrext_cmds='$shrext_cmds'
19592 # Executable file suffix (normally "").
19595 # Additional compiler flags for building library objects.
19596 pic_flag=$lt_lt_prog_compiler_pic_RC
19599 # What is the maximum length of a command?
19600 max_cmd_len=$lt_cv_sys_max_cmd_len
19602 # Does compiler simultaneously support -c and -o options?
19603 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19605 # Must we lock files when doing compilation?
19606 need_locks=$lt_need_locks
19608 # Do we need the lib prefix for modules?
19609 need_lib_prefix=$need_lib_prefix
19611 # Do we need a version for libraries?
19612 need_version=$need_version
19614 # Whether dlopen is supported.
19615 dlopen_support=$enable_dlopen
19617 # Whether dlopen of programs is supported.
19618 dlopen_self=$enable_dlopen_self
19620 # Whether dlopen of statically linked programs is supported.
19621 dlopen_self_static=$enable_dlopen_self_static
19623 # Compiler flag to prevent dynamic linking.
19624 link_static_flag=$lt_lt_prog_compiler_static_RC
19626 # Compiler flag to turn off builtin functions.
19627 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19629 # Compiler flag to allow reflexive dlopens.
19630 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19632 # Compiler flag to generate shared objects directly from archives.
19633 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19635 # Compiler flag to generate thread-safe objects.
19636 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19638 # Library versioning type.
19639 version_type=$version_type
19641 # Format of library name prefix.
19642 libname_spec=$lt_libname_spec
19644 # List of archive names. First name is the real one, the rest are links.
19645 # The last name is the one that the linker finds with -lNAME.
19646 library_names_spec=$lt_library_names_spec
19648 # The coded name of the library, if different from the real name.
19649 soname_spec=$lt_soname_spec
19651 # Commands used to build and install an old-style archive.
19653 old_archive_cmds=$lt_old_archive_cmds_RC
19654 old_postinstall_cmds=$lt_old_postinstall_cmds
19655 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19657 # Create an old-style archive from a shared archive.
19658 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19660 # Create a temporary old-style archive to link instead of a shared archive.
19661 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19663 # Commands used to build and install a shared archive.
19664 archive_cmds=$lt_archive_cmds_RC
19665 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19666 postinstall_cmds=$lt_postinstall_cmds
19667 postuninstall_cmds=$lt_postuninstall_cmds
19669 # Commands used to build a loadable module (assumed same as above if empty)
19670 module_cmds=$lt_module_cmds_RC
19671 module_expsym_cmds=$lt_module_expsym_cmds_RC
19673 # Commands to strip libraries.
19674 old_striplib=$lt_old_striplib
19675 striplib=$lt_striplib
19677 # Dependencies to place before the objects being linked to create a
19679 predep_objects=$lt_predep_objects_RC
19681 # Dependencies to place after the objects being linked to create a
19683 postdep_objects=$lt_postdep_objects_RC
19685 # Dependencies to place before the objects being linked to create a
19687 predeps=$lt_predeps_RC
19689 # Dependencies to place after the objects being linked to create a
19691 postdeps=$lt_postdeps_RC
19693 # The directories searched by this compiler when creating a shared
19695 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19697 # The library search path used internally by the compiler when linking
19698 # a shared library.
19699 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19701 # Method to check whether dependent libraries are shared objects.
19702 deplibs_check_method=$lt_deplibs_check_method
19704 # Command to use when deplibs_check_method == file_magic.
19705 file_magic_cmd=$lt_file_magic_cmd
19707 # Flag that allows shared libraries with undefined symbols to be built.
19708 allow_undefined_flag=$lt_allow_undefined_flag_RC
19710 # Flag that forces no undefined symbols.
19711 no_undefined_flag=$lt_no_undefined_flag_RC
19713 # Commands used to finish a libtool library installation in a directory.
19714 finish_cmds=$lt_finish_cmds
19716 # Same as above, but a single script fragment to be evaled but not shown.
19717 finish_eval=$lt_finish_eval
19719 # Take the output of nm and produce a listing of raw symbols and C names.
19720 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19722 # Transform the output of nm in a proper C declaration
19723 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19725 # Transform the output of nm in a C name address pair
19726 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19728 # This is the shared library runtime path variable.
19729 runpath_var=$runpath_var
19731 # This is the shared library path variable.
19732 shlibpath_var=$shlibpath_var
19734 # Is shlibpath searched before the hard-coded library search path?
19735 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19737 # How to hardcode a shared library path into an executable.
19738 hardcode_action=$hardcode_action_RC
19740 # Whether we should hardcode library paths into libraries.
19741 hardcode_into_libs=$hardcode_into_libs
19743 # Flag to hardcode \$libdir into a binary during linking.
19744 # This must work even if \$libdir does not exist.
19745 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19747 # If ld is used when linking, flag to hardcode \$libdir into
19748 # a binary during linking. This must work even if \$libdir does
19750 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19752 # Whether we need a single -rpath flag with a separated argument.
19753 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19755 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19756 # resulting binary.
19757 hardcode_direct=$hardcode_direct_RC
19759 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19760 # resulting binary.
19761 hardcode_minus_L=$hardcode_minus_L_RC
19763 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19764 # the resulting binary.
19765 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19767 # Set to yes if building a shared library automatically hardcodes DIR into the library
19768 # and all subsequent libraries and executables linked against it.
19769 hardcode_automatic=$hardcode_automatic_RC
19771 # Variables whose values should be saved in libtool wrapper scripts and
19772 # restored at relink time.
19773 variables_saved_for_relink="$variables_saved_for_relink"
19775 # Whether libtool must link a program against all its dependency libraries.
19776 link_all_deplibs=$link_all_deplibs_RC
19778 # Compile-time system search path for libraries
19779 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19781 # Run-time system search path for libraries
19782 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19784 # Fix the shell variable \$srcfile for the compiler.
19785 fix_srcfile_path=$lt_fix_srcfile_path
19787 # Set to yes if exported symbols are required.
19788 always_export_symbols=$always_export_symbols_RC
19790 # The commands to list exported symbols.
19791 export_symbols_cmds=$lt_export_symbols_cmds_RC
19793 # The commands to extract the exported symbol list from a shared archive.
19794 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19796 # Symbols that should not be listed in the preloaded symbols.
19797 exclude_expsyms=$lt_exclude_expsyms_RC
19799 # Symbols that must always be exported.
19800 include_expsyms=$lt_include_expsyms_RC
19802 # ### END LIBTOOL TAG CONFIG: $tagname
19808 # If there is no Makefile yet, we rely on a make rule to execute
19809 # `config.status --recheck' to rerun these tests and create the
19810 # libtool script then.
19811 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19812 if test -f "$ltmain_in"; then
19813 test -f Makefile && make "$ltmain"
19819 ac_cpp='$CPP $CPPFLAGS'
19820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19829 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19830 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19831 { (exit 1); exit 1; }; }
19835 # Append the new tag name to the list of available tags.
19836 if test -n "$tagname" ; then
19837 available_tags="$available_tags $tagname"
19843 # Now substitute the updated list of available tags.
19844 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19845 mv "${ofile}T" "$ofile"
19849 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19850 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19851 { (exit 1); exit 1; }; }
19857 # This can be used to rebuild libtool when needed
19858 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19860 # Always use our own libtool.
19861 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19863 # Prevent multiple expansion
19886 # Check whether --with-kernel was given.
19887 if test "${with_kernel+set}" = set; then
19888 withval=$with_kernel; kbuilddir="$withval"; ksourcedir="$withval";
19892 # Check whether --with-kbuild was given.
19893 if test "${with_kbuild+set}" = set; then
19894 withval=$with_kbuild; kbuilddir="$withval"
19898 # Check whether --with-ksource was given.
19899 if test "${with_ksource+set}" = set; then
19900 withval=$with_ksource; ksourcedir="$withval"
19904 # Check whether --with-xtlibdir was given.
19905 if test "${with_xtlibdir+set}" = set; then
19906 withval=$with_xtlibdir; xtlibdir="$withval"
19908 xtlibdir="${libexecdir}/xtables"
19911 # Check whether --enable-devel was given.
19912 if test "${enable_devel+set}" = set; then
19913 enableval=$enable_devel; enable_devel="$enableval"
19918 # Check whether --enable-libipq was given.
19919 if test "${enable_libipq+set}" = set; then
19920 enableval=$enable_libipq;
19924 if test "${ac_cv_header_netinet_ip6_h+set}" = set; then
19925 { echo "$as_me:$LINENO: checking for netinet/ip6.h" >&5
19926 echo $ECHO_N "checking for netinet/ip6.h... $ECHO_C" >&6; }
19927 if test "${ac_cv_header_netinet_ip6_h+set}" = set; then
19928 echo $ECHO_N "(cached) $ECHO_C" >&6
19930 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_ip6_h" >&5
19931 echo "${ECHO_T}$ac_cv_header_netinet_ip6_h" >&6; }
19933 # Is the header compilable?
19934 { echo "$as_me:$LINENO: checking netinet/ip6.h usability" >&5
19935 echo $ECHO_N "checking netinet/ip6.h usability... $ECHO_C" >&6; }
19936 cat >conftest.$ac_ext <<_ACEOF
19939 cat confdefs.h >>conftest.$ac_ext
19940 cat >>conftest.$ac_ext <<_ACEOF
19941 /* end confdefs.h. */
19942 $ac_includes_default
19943 #include <netinet/ip6.h>
19945 rm -f conftest.$ac_objext
19946 if { (ac_try="$ac_compile"
19947 case "(($ac_try" in
19948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19949 *) ac_try_echo=$ac_try;;
19951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19952 (eval "$ac_compile") 2>conftest.er1
19954 grep -v '^ *+' conftest.er1 >conftest.err
19956 cat conftest.err >&5
19957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19958 (exit $ac_status); } && {
19959 test -z "$ac_c_werror_flag" ||
19960 test ! -s conftest.err
19961 } && test -s conftest.$ac_objext; then
19962 ac_header_compiler=yes
19964 echo "$as_me: failed program was:" >&5
19965 sed 's/^/| /' conftest.$ac_ext >&5
19967 ac_header_compiler=no
19970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19971 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19972 echo "${ECHO_T}$ac_header_compiler" >&6; }
19974 # Is the header present?
19975 { echo "$as_me:$LINENO: checking netinet/ip6.h presence" >&5
19976 echo $ECHO_N "checking netinet/ip6.h presence... $ECHO_C" >&6; }
19977 cat >conftest.$ac_ext <<_ACEOF
19980 cat confdefs.h >>conftest.$ac_ext
19981 cat >>conftest.$ac_ext <<_ACEOF
19982 /* end confdefs.h. */
19983 #include <netinet/ip6.h>
19985 if { (ac_try="$ac_cpp conftest.$ac_ext"
19986 case "(($ac_try" in
19987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19988 *) ac_try_echo=$ac_try;;
19990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19991 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19993 grep -v '^ *+' conftest.er1 >conftest.err
19995 cat conftest.err >&5
19996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19997 (exit $ac_status); } >/dev/null && {
19998 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19999 test ! -s conftest.err
20001 ac_header_preproc=yes
20003 echo "$as_me: failed program was:" >&5
20004 sed 's/^/| /' conftest.$ac_ext >&5
20006 ac_header_preproc=no
20009 rm -f conftest.err conftest.$ac_ext
20010 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20011 echo "${ECHO_T}$ac_header_preproc" >&6; }
20013 # So? What about this header?
20014 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20016 { echo "$as_me:$LINENO: WARNING: netinet/ip6.h: accepted by the compiler, rejected by the preprocessor!" >&5
20017 echo "$as_me: WARNING: netinet/ip6.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20018 { echo "$as_me:$LINENO: WARNING: netinet/ip6.h: proceeding with the compiler's result" >&5
20019 echo "$as_me: WARNING: netinet/ip6.h: proceeding with the compiler's result" >&2;}
20020 ac_header_preproc=yes
20023 { echo "$as_me:$LINENO: WARNING: netinet/ip6.h: present but cannot be compiled" >&5
20024 echo "$as_me: WARNING: netinet/ip6.h: present but cannot be compiled" >&2;}
20025 { echo "$as_me:$LINENO: WARNING: netinet/ip6.h: check for missing prerequisite headers?" >&5
20026 echo "$as_me: WARNING: netinet/ip6.h: check for missing prerequisite headers?" >&2;}
20027 { echo "$as_me:$LINENO: WARNING: netinet/ip6.h: see the Autoconf documentation" >&5
20028 echo "$as_me: WARNING: netinet/ip6.h: see the Autoconf documentation" >&2;}
20029 { echo "$as_me:$LINENO: WARNING: netinet/ip6.h: section \"Present But Cannot Be Compiled\"" >&5
20030 echo "$as_me: WARNING: netinet/ip6.h: section \"Present But Cannot Be Compiled\"" >&2;}
20031 { echo "$as_me:$LINENO: WARNING: netinet/ip6.h: proceeding with the preprocessor's result" >&5
20032 echo "$as_me: WARNING: netinet/ip6.h: proceeding with the preprocessor's result" >&2;}
20033 { echo "$as_me:$LINENO: WARNING: netinet/ip6.h: in the future, the compiler will take precedence" >&5
20034 echo "$as_me: WARNING: netinet/ip6.h: in the future, the compiler will take precedence" >&2;}
20038 { echo "$as_me:$LINENO: checking for netinet/ip6.h" >&5
20039 echo $ECHO_N "checking for netinet/ip6.h... $ECHO_C" >&6; }
20040 if test "${ac_cv_header_netinet_ip6_h+set}" = set; then
20041 echo $ECHO_N "(cached) $ECHO_C" >&6
20043 ac_cv_header_netinet_ip6_h=$ac_header_preproc
20045 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_ip6_h" >&5
20046 echo "${ECHO_T}$ac_cv_header_netinet_ip6_h" >&6; }
20049 if test $ac_cv_header_netinet_ip6_h = yes; then
20052 { { echo "$as_me:$LINENO: error: but we need that for IPv6" >&5
20053 echo "$as_me: error: but we need that for IPv6" >&2;}
20054 { (exit 1); exit 1; }; }
20058 if test "${ac_cv_header_linux_dccp_h+set}" = set; then
20059 { echo "$as_me:$LINENO: checking for linux/dccp.h" >&5
20060 echo $ECHO_N "checking for linux/dccp.h... $ECHO_C" >&6; }
20061 if test "${ac_cv_header_linux_dccp_h+set}" = set; then
20062 echo $ECHO_N "(cached) $ECHO_C" >&6
20064 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_dccp_h" >&5
20065 echo "${ECHO_T}$ac_cv_header_linux_dccp_h" >&6; }
20067 # Is the header compilable?
20068 { echo "$as_me:$LINENO: checking linux/dccp.h usability" >&5
20069 echo $ECHO_N "checking linux/dccp.h usability... $ECHO_C" >&6; }
20070 cat >conftest.$ac_ext <<_ACEOF
20073 cat confdefs.h >>conftest.$ac_ext
20074 cat >>conftest.$ac_ext <<_ACEOF
20075 /* end confdefs.h. */
20076 $ac_includes_default
20077 #include <linux/dccp.h>
20079 rm -f conftest.$ac_objext
20080 if { (ac_try="$ac_compile"
20081 case "(($ac_try" in
20082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20083 *) ac_try_echo=$ac_try;;
20085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20086 (eval "$ac_compile") 2>conftest.er1
20088 grep -v '^ *+' conftest.er1 >conftest.err
20090 cat conftest.err >&5
20091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20092 (exit $ac_status); } && {
20093 test -z "$ac_c_werror_flag" ||
20094 test ! -s conftest.err
20095 } && test -s conftest.$ac_objext; then
20096 ac_header_compiler=yes
20098 echo "$as_me: failed program was:" >&5
20099 sed 's/^/| /' conftest.$ac_ext >&5
20101 ac_header_compiler=no
20104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20105 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20106 echo "${ECHO_T}$ac_header_compiler" >&6; }
20108 # Is the header present?
20109 { echo "$as_me:$LINENO: checking linux/dccp.h presence" >&5
20110 echo $ECHO_N "checking linux/dccp.h presence... $ECHO_C" >&6; }
20111 cat >conftest.$ac_ext <<_ACEOF
20114 cat confdefs.h >>conftest.$ac_ext
20115 cat >>conftest.$ac_ext <<_ACEOF
20116 /* end confdefs.h. */
20117 #include <linux/dccp.h>
20119 if { (ac_try="$ac_cpp conftest.$ac_ext"
20120 case "(($ac_try" in
20121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20122 *) ac_try_echo=$ac_try;;
20124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20125 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20127 grep -v '^ *+' conftest.er1 >conftest.err
20129 cat conftest.err >&5
20130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20131 (exit $ac_status); } >/dev/null && {
20132 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20133 test ! -s conftest.err
20135 ac_header_preproc=yes
20137 echo "$as_me: failed program was:" >&5
20138 sed 's/^/| /' conftest.$ac_ext >&5
20140 ac_header_preproc=no
20143 rm -f conftest.err conftest.$ac_ext
20144 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20145 echo "${ECHO_T}$ac_header_preproc" >&6; }
20147 # So? What about this header?
20148 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20150 { echo "$as_me:$LINENO: WARNING: linux/dccp.h: accepted by the compiler, rejected by the preprocessor!" >&5
20151 echo "$as_me: WARNING: linux/dccp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20152 { echo "$as_me:$LINENO: WARNING: linux/dccp.h: proceeding with the compiler's result" >&5
20153 echo "$as_me: WARNING: linux/dccp.h: proceeding with the compiler's result" >&2;}
20154 ac_header_preproc=yes
20157 { echo "$as_me:$LINENO: WARNING: linux/dccp.h: present but cannot be compiled" >&5
20158 echo "$as_me: WARNING: linux/dccp.h: present but cannot be compiled" >&2;}
20159 { echo "$as_me:$LINENO: WARNING: linux/dccp.h: check for missing prerequisite headers?" >&5
20160 echo "$as_me: WARNING: linux/dccp.h: check for missing prerequisite headers?" >&2;}
20161 { echo "$as_me:$LINENO: WARNING: linux/dccp.h: see the Autoconf documentation" >&5
20162 echo "$as_me: WARNING: linux/dccp.h: see the Autoconf documentation" >&2;}
20163 { echo "$as_me:$LINENO: WARNING: linux/dccp.h: section \"Present But Cannot Be Compiled\"" >&5
20164 echo "$as_me: WARNING: linux/dccp.h: section \"Present But Cannot Be Compiled\"" >&2;}
20165 { echo "$as_me:$LINENO: WARNING: linux/dccp.h: proceeding with the preprocessor's result" >&5
20166 echo "$as_me: WARNING: linux/dccp.h: proceeding with the preprocessor's result" >&2;}
20167 { echo "$as_me:$LINENO: WARNING: linux/dccp.h: in the future, the compiler will take precedence" >&5
20168 echo "$as_me: WARNING: linux/dccp.h: in the future, the compiler will take precedence" >&2;}
20172 { echo "$as_me:$LINENO: checking for linux/dccp.h" >&5
20173 echo $ECHO_N "checking for linux/dccp.h... $ECHO_C" >&6; }
20174 if test "${ac_cv_header_linux_dccp_h+set}" = set; then
20175 echo $ECHO_N "(cached) $ECHO_C" >&6
20177 ac_cv_header_linux_dccp_h=$ac_header_preproc
20179 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_dccp_h" >&5
20180 echo "${ECHO_T}$ac_cv_header_linux_dccp_h" >&6; }
20186 blacklist_modules="";
20187 if test "$ac_cv_header_linux_dccp_h" != "yes"; then
20188 blacklist_modules="$blacklist_modules dccp";
20194 if test "$enable_static" == "yes"; then
20195 ENABLE_STATIC_TRUE=
20196 ENABLE_STATIC_FALSE='#'
20198 ENABLE_STATIC_TRUE='#'
20199 ENABLE_STATIC_FALSE=
20204 if test "$enable_shared" == "yes"; then
20205 ENABLE_SHARED_TRUE=
20206 ENABLE_SHARED_FALSE='#'
20208 ENABLE_SHARED_TRUE='#'
20209 ENABLE_SHARED_FALSE=
20214 if test "$enable_devel" == "yes"; then
20216 ENABLE_DEVEL_FALSE='#'
20218 ENABLE_DEVEL_TRUE='#'
20219 ENABLE_DEVEL_FALSE=
20224 if test "$enable_libipq" == "yes"; then
20225 ENABLE_LIBIPQ_TRUE=
20226 ENABLE_LIBIPQ_FALSE='#'
20228 ENABLE_LIBIPQ_TRUE='#'
20229 ENABLE_LIBIPQ_FALSE=
20233 regular_CFLAGS="-D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 \
20234 -D_REENTRANT -Wall -Waggregate-return -Wmissing-declarations \
20235 -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes \
20237 -DXTABLES_LIBDIR=\\\"\${xtlibdir}\\\" -DXTABLES_INTERNAL";
20238 kinclude_CFLAGS="";
20239 if [ -n "$kbuilddir" ]; then
20240 kinclude_CFLAGS="$kinclude_CFLAGS -I $kbuilddir/include";
20242 if [ -n "$ksourcedir" ]; then
20243 kinclude_CFLAGS="$kinclude_CFLAGS -I $ksourcedir/include";
20252 XTABLES_VERSION_MAJOR=1
20253 XTABLES_VERSION_MINOR=4
20254 XTABLES_VERSION_PATCH=1
20255 XTABLES_VERSION_EXTRA=.1
20261 ac_config_files="$ac_config_files Makefile extensions/GNUmakefile libipq/Makefile include/xtables.h"
20263 cat >confcache <<\_ACEOF
20264 # This file is a shell script that caches the results of configure
20265 # tests run on this system so they can be shared between configure
20266 # scripts and configure runs, see configure's option --config-cache.
20267 # It is not useful on other systems. If it contains results you don't
20268 # want to keep, you may remove or edit it.
20270 # config.status only pays attention to the cache file if you give it
20271 # the --recheck option to rerun configure.
20273 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20274 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20275 # following values.
20279 # The following way of writing the cache mishandles newlines in values,
20280 # but we know of no workaround that is simple, portable, and efficient.
20281 # So, we kill variables containing newlines.
20282 # Ultrix sh set writes to stderr and can't be redirected directly,
20283 # and sets the high bit in the cache file unless we assign to the vars.
20285 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20286 eval ac_val=\$$ac_var
20290 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20291 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20294 _ | IFS | as_nl) ;; #(
20295 *) $as_unset $ac_var ;;
20301 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20302 *${as_nl}ac_space=\ *)
20303 # `set' does not quote correctly, so add quotes (double-quote
20304 # substitution turns \\\\ into \\, and sed turns \\ into \).
20307 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20310 # `set' quotes correctly as required by POSIX, so do not add quotes.
20311 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20320 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20322 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20324 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20325 if test -w "$cache_file"; then
20326 test "x$cache_file" != "x/dev/null" &&
20327 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20328 echo "$as_me: updating cache $cache_file" >&6;}
20329 cat confcache >$cache_file
20331 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20332 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20337 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20338 # Let make expand exec_prefix.
20339 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20341 DEFS=-DHAVE_CONFIG_H
20345 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20346 # 1. Remove the extension, and $U if already installed.
20347 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20348 ac_i=`echo "$ac_i" | sed "$ac_script"`
20349 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20350 # will be set to the directory where LIBOBJS objects are built.
20351 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20352 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20354 LIBOBJS=$ac_libobjs
20356 LTLIBOBJS=$ac_ltlibobjs
20359 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20360 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20361 Usually this means the macro was only invoked conditionally." >&5
20362 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20363 Usually this means the macro was only invoked conditionally." >&2;}
20364 { (exit 1); exit 1; }; }
20366 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20367 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20368 Usually this means the macro was only invoked conditionally." >&5
20369 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20370 Usually this means the macro was only invoked conditionally." >&2;}
20371 { (exit 1); exit 1; }; }
20373 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20374 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20375 Usually this means the macro was only invoked conditionally." >&5
20376 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20377 Usually this means the macro was only invoked conditionally." >&2;}
20378 { (exit 1); exit 1; }; }
20380 if test -z "${ENABLE_STATIC_TRUE}" && test -z "${ENABLE_STATIC_FALSE}"; then
20381 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_STATIC\" was never defined.
20382 Usually this means the macro was only invoked conditionally." >&5
20383 echo "$as_me: error: conditional \"ENABLE_STATIC\" was never defined.
20384 Usually this means the macro was only invoked conditionally." >&2;}
20385 { (exit 1); exit 1; }; }
20387 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
20388 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SHARED\" was never defined.
20389 Usually this means the macro was only invoked conditionally." >&5
20390 echo "$as_me: error: conditional \"ENABLE_SHARED\" was never defined.
20391 Usually this means the macro was only invoked conditionally." >&2;}
20392 { (exit 1); exit 1; }; }
20394 if test -z "${ENABLE_DEVEL_TRUE}" && test -z "${ENABLE_DEVEL_FALSE}"; then
20395 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DEVEL\" was never defined.
20396 Usually this means the macro was only invoked conditionally." >&5
20397 echo "$as_me: error: conditional \"ENABLE_DEVEL\" was never defined.
20398 Usually this means the macro was only invoked conditionally." >&2;}
20399 { (exit 1); exit 1; }; }
20401 if test -z "${ENABLE_LIBIPQ_TRUE}" && test -z "${ENABLE_LIBIPQ_FALSE}"; then
20402 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_LIBIPQ\" was never defined.
20403 Usually this means the macro was only invoked conditionally." >&5
20404 echo "$as_me: error: conditional \"ENABLE_LIBIPQ\" was never defined.
20405 Usually this means the macro was only invoked conditionally." >&2;}
20406 { (exit 1); exit 1; }; }
20409 : ${CONFIG_STATUS=./config.status}
20410 ac_clean_files_save=$ac_clean_files
20411 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20412 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20413 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20414 cat >$CONFIG_STATUS <<_ACEOF
20416 # Generated by $as_me.
20417 # Run this file to recreate the current configuration.
20418 # Compiler output produced by configure, useful for debugging
20419 # configure, is in config.log if it exists.
20422 ac_cs_recheck=false
20424 SHELL=\${CONFIG_SHELL-$SHELL}
20427 cat >>$CONFIG_STATUS <<\_ACEOF
20428 ## --------------------- ##
20429 ## M4sh Initialization. ##
20430 ## --------------------- ##
20432 # Be more Bourne compatible
20433 DUALCASE=1; export DUALCASE # for MKS sh
20434 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20437 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20438 # is contrary to our usage. Disable this feature.
20439 alias -g '${1+"$@"}'='"$@"'
20440 setopt NO_GLOB_SUBST
20442 case `(set -o) 2>/dev/null` in
20443 *posix*) set -o posix ;;
20452 # Avoid depending upon Character Ranges.
20453 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20454 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20455 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20456 as_cr_digits='0123456789'
20457 as_cr_alnum=$as_cr_Letters$as_cr_digits
20459 # The user is always right.
20460 if test "${PATH_SEPARATOR+set}" != set; then
20461 echo "#! /bin/sh" >conf$$.sh
20462 echo "exit 0" >>conf$$.sh
20464 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20472 # Support unset when possible.
20473 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20481 # We need space, tab and new line, in precisely that order. Quoting is
20482 # there to prevent editors from complaining about space-tab.
20483 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20484 # splitting by setting IFS to empty value.)
20489 # Find who we are. Look in the path if we contain no directory separator.
20491 *[\\/]* ) as_myself=$0 ;;
20492 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20493 for as_dir in $PATH
20496 test -z "$as_dir" && as_dir=.
20497 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20503 # We did not find ourselves, most probably we were run as `sh COMMAND'
20504 # in which case we are not to be found in the path.
20505 if test "x$as_myself" = x; then
20508 if test ! -f "$as_myself"; then
20509 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20510 { (exit 1); exit 1; }
20513 # Work around bugs in pre-3.0 UWIN ksh.
20514 for as_var in ENV MAIL MAILPATH
20515 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20523 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20524 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20525 LC_TELEPHONE LC_TIME
20527 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20528 eval $as_var=C; export $as_var
20530 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20534 # Required to use basename.
20535 if expr a : '\(a\)' >/dev/null 2>&1 &&
20536 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20542 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20543 as_basename=basename
20549 # Name of the executable.
20550 as_me=`$as_basename -- "$0" ||
20551 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20552 X"$0" : 'X\(//\)$' \| \
20553 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20555 sed '/^.*\/\([^/][^/]*\)\/*$/{
20574 as_lineno_1=$LINENO
20575 as_lineno_2=$LINENO
20576 test "x$as_lineno_1" != "x$as_lineno_2" &&
20577 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20579 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20580 # uniformly replaced by the line number. The first 'sed' inserts a
20581 # line-number line after each line using $LINENO; the second 'sed'
20582 # does the real work. The second script uses 'N' to pair each
20583 # line-number line with the line containing $LINENO, and appends
20584 # trailing '-' during substitution so that $LINENO is not a special
20585 # case at line end.
20586 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20587 # scripts with optimization help from Paolo Bonzini. Blame Lee
20588 # E. McMahon (1931-1989) for sed's syntax. :-)
20600 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20603 ' >$as_me.lineno &&
20604 chmod +x "$as_me.lineno" ||
20605 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20606 { (exit 1); exit 1; }; }
20608 # Don't try to exec as it changes $[0], causing all sort of problems
20609 # (the dirname of $[0] is not the place where we might find the
20610 # original and so on. Autoconf is especially sensitive to this).
20611 . "./$as_me.lineno"
20612 # Exit status is that of the last command.
20617 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20623 ECHO_C= ECHO_N= ECHO_T=
20624 case `echo -n x` in
20626 case `echo 'x\c'` in
20627 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20634 if expr a : '\(a\)' >/dev/null 2>&1 &&
20635 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20641 rm -f conf$$ conf$$.exe conf$$.file
20642 if test -d conf$$.dir; then
20643 rm -f conf$$.dir/conf$$.file
20649 if ln -s conf$$.file conf$$ 2>/dev/null; then
20651 # ... but there are two gotchas:
20652 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20653 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20654 # In both cases, we have to default to `cp -p'.
20655 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20657 elif ln conf$$.file conf$$ 2>/dev/null; then
20662 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20663 rmdir conf$$.dir 2>/dev/null
20665 if mkdir -p . 2>/dev/null; then
20668 test -d ./-p && rmdir ./-p
20672 if test -x / >/dev/null 2>&1; then
20673 as_test_x='test -x'
20675 if ls -dL / >/dev/null 2>&1; then
20682 if test -d "$1"; then
20688 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20689 ???[sx]*):;;*)false;;esac;fi
20693 as_executable_p=$as_test_x
20695 # Sed expression to map a string onto a valid CPP name.
20696 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20698 # Sed expression to map a string onto a valid variable name.
20699 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20704 # Save the log message, to keep $[0] and so on meaningful, and to
20705 # report actual input values of CONFIG_FILES etc. instead of their
20706 # values after options handling.
20708 This file was extended by iptables $as_me 1.4.1.1, which was
20709 generated by GNU Autoconf 2.61. Invocation command line was
20711 CONFIG_FILES = $CONFIG_FILES
20712 CONFIG_HEADERS = $CONFIG_HEADERS
20713 CONFIG_LINKS = $CONFIG_LINKS
20714 CONFIG_COMMANDS = $CONFIG_COMMANDS
20717 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20722 cat >>$CONFIG_STATUS <<_ACEOF
20723 # Files that config.status was made for.
20724 config_files="$ac_config_files"
20725 config_headers="$ac_config_headers"
20726 config_commands="$ac_config_commands"
20730 cat >>$CONFIG_STATUS <<\_ACEOF
20732 \`$as_me' instantiates files from templates according to the
20733 current configuration.
20735 Usage: $0 [OPTIONS] [FILE]...
20737 -h, --help print this help, then exit
20738 -V, --version print version number and configuration settings, then exit
20739 -q, --quiet do not print progress messages
20740 -d, --debug don't remove temporary files
20741 --recheck update $as_me by reconfiguring in the same conditions
20742 --file=FILE[:TEMPLATE]
20743 instantiate the configuration file FILE
20744 --header=FILE[:TEMPLATE]
20745 instantiate the configuration header FILE
20747 Configuration files:
20750 Configuration headers:
20753 Configuration commands:
20756 Report bugs to <bug-autoconf@gnu.org>."
20759 cat >>$CONFIG_STATUS <<_ACEOF
20761 iptables config.status 1.4.1.1
20762 configured by $0, generated by GNU Autoconf 2.61,
20763 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20765 Copyright (C) 2006 Free Software Foundation, Inc.
20766 This config.status script is free software; the Free Software Foundation
20767 gives unlimited permission to copy, distribute and modify it."
20774 cat >>$CONFIG_STATUS <<\_ACEOF
20775 # If no file are specified by the user, then we need to provide default
20776 # value. By we need to know if files were specified by the user.
20782 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20783 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20794 # Handling of the options.
20795 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20797 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20798 echo "$ac_cs_version"; exit ;;
20799 --debug | --debu | --deb | --de | --d | -d )
20801 --file | --fil | --fi | --f )
20803 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20804 ac_need_defaults=false;;
20805 --header | --heade | --head | --hea )
20807 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20808 ac_need_defaults=false;;
20810 # Conflict between --help and --header
20811 { echo "$as_me: error: ambiguous option: $1
20812 Try \`$0 --help' for more information." >&2
20813 { (exit 1); exit 1; }; };;
20814 --help | --hel | -h )
20815 echo "$ac_cs_usage"; exit ;;
20816 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20817 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20820 # This is an error.
20821 -*) { echo "$as_me: error: unrecognized option: $1
20822 Try \`$0 --help' for more information." >&2
20823 { (exit 1); exit 1; }; } ;;
20825 *) ac_config_targets="$ac_config_targets $1"
20826 ac_need_defaults=false ;;
20832 ac_configure_extra_args=
20834 if $ac_cs_silent; then
20836 ac_configure_extra_args="$ac_configure_extra_args --silent"
20840 cat >>$CONFIG_STATUS <<_ACEOF
20841 if \$ac_cs_recheck; then
20842 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20843 CONFIG_SHELL=$SHELL
20844 export CONFIG_SHELL
20845 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20849 cat >>$CONFIG_STATUS <<\_ACEOF
20853 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20854 ## Running $as_me. ##
20860 cat >>$CONFIG_STATUS <<_ACEOF
20864 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20868 cat >>$CONFIG_STATUS <<\_ACEOF
20870 # Handling of arguments.
20871 for ac_config_target in $ac_config_targets
20873 case $ac_config_target in
20874 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20875 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20876 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20877 "extensions/GNUmakefile") CONFIG_FILES="$CONFIG_FILES extensions/GNUmakefile" ;;
20878 "libipq/Makefile") CONFIG_FILES="$CONFIG_FILES libipq/Makefile" ;;
20879 "include/xtables.h") CONFIG_FILES="$CONFIG_FILES include/xtables.h" ;;
20881 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20882 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20883 { (exit 1); exit 1; }; };;
20888 # If the user did not use the arguments to specify the items to instantiate,
20889 # then the envvar interface is used. Set only those that are not.
20890 # We use the long form for the default assignment because of an extremely
20891 # bizarre bug on SunOS 4.1.3.
20892 if $ac_need_defaults; then
20893 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20894 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20895 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20898 # Have a temporary directory for convenience. Make it in the build tree
20899 # simply because there is no reason against having it here, and in addition,
20900 # creating and moving files from /tmp can sometimes cause problems.
20901 # Hook for its removal unless debugging.
20902 # Note that there is a small window in which the directory will not be cleaned:
20903 # after its creation but before its name has been assigned to `$tmp'.
20907 trap 'exit_status=$?
20908 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20910 trap '{ (exit 1); exit 1; }' 1 2 13 15
20912 # Create a (secure) tmp directory for tmp files.
20915 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20916 test -n "$tmp" && test -d "$tmp"
20919 tmp=./conf$$-$RANDOM
20920 (umask 077 && mkdir "$tmp")
20923 echo "$me: cannot create a temporary directory in ." >&2
20924 { (exit 1); exit 1; }
20928 # Set up the sed scripts for CONFIG_FILES section.
20931 # No need to generate the scripts if there are no CONFIG_FILES.
20932 # This happens for instance when ./config.status config.h
20933 if test -n "$CONFIG_FILES"; then
20940 for ac_last_try in false false false false false :; do
20941 cat >conf$$subs.sed <<_ACEOF
20942 SHELL!$SHELL$ac_delim
20943 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20944 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20945 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20946 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20947 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20948 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20949 exec_prefix!$exec_prefix$ac_delim
20950 prefix!$prefix$ac_delim
20951 program_transform_name!$program_transform_name$ac_delim
20952 bindir!$bindir$ac_delim
20953 sbindir!$sbindir$ac_delim
20954 libexecdir!$libexecdir$ac_delim
20955 datarootdir!$datarootdir$ac_delim
20956 datadir!$datadir$ac_delim
20957 sysconfdir!$sysconfdir$ac_delim
20958 sharedstatedir!$sharedstatedir$ac_delim
20959 localstatedir!$localstatedir$ac_delim
20960 includedir!$includedir$ac_delim
20961 oldincludedir!$oldincludedir$ac_delim
20962 docdir!$docdir$ac_delim
20963 infodir!$infodir$ac_delim
20964 htmldir!$htmldir$ac_delim
20965 dvidir!$dvidir$ac_delim
20966 pdfdir!$pdfdir$ac_delim
20967 psdir!$psdir$ac_delim
20968 libdir!$libdir$ac_delim
20969 localedir!$localedir$ac_delim
20970 mandir!$mandir$ac_delim
20971 DEFS!$DEFS$ac_delim
20972 ECHO_C!$ECHO_C$ac_delim
20973 ECHO_N!$ECHO_N$ac_delim
20974 ECHO_T!$ECHO_T$ac_delim
20975 LIBS!$LIBS$ac_delim
20976 build_alias!$build_alias$ac_delim
20977 host_alias!$host_alias$ac_delim
20978 target_alias!$target_alias$ac_delim
20979 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20980 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20981 INSTALL_DATA!$INSTALL_DATA$ac_delim
20982 CYGPATH_W!$CYGPATH_W$ac_delim
20983 PACKAGE!$PACKAGE$ac_delim
20984 VERSION!$VERSION$ac_delim
20985 ACLOCAL!$ACLOCAL$ac_delim
20986 AUTOCONF!$AUTOCONF$ac_delim
20987 AUTOMAKE!$AUTOMAKE$ac_delim
20988 AUTOHEADER!$AUTOHEADER$ac_delim
20989 MAKEINFO!$MAKEINFO$ac_delim
20990 install_sh!$install_sh$ac_delim
20991 STRIP!$STRIP$ac_delim
20992 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
20993 mkdir_p!$mkdir_p$ac_delim
20995 SET_MAKE!$SET_MAKE$ac_delim
20996 am__leading_dot!$am__leading_dot$ac_delim
20997 AMTAR!$AMTAR$ac_delim
20998 am__tar!$am__tar$ac_delim
20999 am__untar!$am__untar$ac_delim
21001 CFLAGS!$CFLAGS$ac_delim
21002 LDFLAGS!$LDFLAGS$ac_delim
21003 CPPFLAGS!$CPPFLAGS$ac_delim
21004 ac_ct_CC!$ac_ct_CC$ac_delim
21005 EXEEXT!$EXEEXT$ac_delim
21006 OBJEXT!$OBJEXT$ac_delim
21007 DEPDIR!$DEPDIR$ac_delim
21008 am__include!$am__include$ac_delim
21009 am__quote!$am__quote$ac_delim
21010 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21011 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21012 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21013 CCDEPMODE!$CCDEPMODE$ac_delim
21014 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21015 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21016 build!$build$ac_delim
21017 build_cpu!$build_cpu$ac_delim
21018 build_vendor!$build_vendor$ac_delim
21019 build_os!$build_os$ac_delim
21020 host!$host$ac_delim
21021 host_cpu!$host_cpu$ac_delim
21022 host_vendor!$host_vendor$ac_delim
21023 host_os!$host_os$ac_delim
21025 GREP!$GREP$ac_delim
21026 EGREP!$EGREP$ac_delim
21027 LN_S!$LN_S$ac_delim
21028 ECHO!$ECHO$ac_delim
21030 RANLIB!$RANLIB$ac_delim
21031 DSYMUTIL!$DSYMUTIL$ac_delim
21032 NMEDIT!$NMEDIT$ac_delim
21035 CXXFLAGS!$CXXFLAGS$ac_delim
21036 ac_ct_CXX!$ac_ct_CXX$ac_delim
21037 CXXDEPMODE!$CXXDEPMODE$ac_delim
21038 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21041 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21043 elif $ac_last_try; then
21044 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21045 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21046 { (exit 1); exit 1; }; }
21048 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21052 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21053 if test -n "$ac_eof"; then
21054 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21055 ac_eof=`expr $ac_eof + 1`
21058 cat >>$CONFIG_STATUS <<_ACEOF
21059 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21060 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21063 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21064 s/^/s,@/; s/!/@,|#_!!_#|/
21067 s/'"$ac_delim"'$/,g/; t
21069 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21070 ' >>$CONFIG_STATUS <conf$$subs.sed
21071 rm -f conf$$subs.sed
21072 cat >>$CONFIG_STATUS <<_ACEOF
21078 for ac_last_try in false false false false false :; do
21079 cat >conf$$subs.sed <<_ACEOF
21080 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21081 CXXCPP!$CXXCPP$ac_delim
21083 FFLAGS!$FFLAGS$ac_delim
21084 ac_ct_F77!$ac_ct_F77$ac_delim
21085 LIBTOOL!$LIBTOOL$ac_delim
21086 blacklist_modules!$blacklist_modules$ac_delim
21087 ENABLE_STATIC_TRUE!$ENABLE_STATIC_TRUE$ac_delim
21088 ENABLE_STATIC_FALSE!$ENABLE_STATIC_FALSE$ac_delim
21089 ENABLE_SHARED_TRUE!$ENABLE_SHARED_TRUE$ac_delim
21090 ENABLE_SHARED_FALSE!$ENABLE_SHARED_FALSE$ac_delim
21091 ENABLE_DEVEL_TRUE!$ENABLE_DEVEL_TRUE$ac_delim
21092 ENABLE_DEVEL_FALSE!$ENABLE_DEVEL_FALSE$ac_delim
21093 ENABLE_LIBIPQ_TRUE!$ENABLE_LIBIPQ_TRUE$ac_delim
21094 ENABLE_LIBIPQ_FALSE!$ENABLE_LIBIPQ_FALSE$ac_delim
21095 regular_CFLAGS!$regular_CFLAGS$ac_delim
21096 kinclude_CFLAGS!$kinclude_CFLAGS$ac_delim
21097 kbuilddir!$kbuilddir$ac_delim
21098 ksourcedir!$ksourcedir$ac_delim
21099 xtlibdir!$xtlibdir$ac_delim
21100 XTABLES_VERSION_MAJOR!$XTABLES_VERSION_MAJOR$ac_delim
21101 XTABLES_VERSION_MINOR!$XTABLES_VERSION_MINOR$ac_delim
21102 XTABLES_VERSION_PATCH!$XTABLES_VERSION_PATCH$ac_delim
21103 XTABLES_VERSION_EXTRA!$XTABLES_VERSION_EXTRA$ac_delim
21104 LIBOBJS!$LIBOBJS$ac_delim
21105 LTLIBOBJS!$LTLIBOBJS$ac_delim
21108 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 26; then
21110 elif $ac_last_try; then
21111 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21112 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21113 { (exit 1); exit 1; }; }
21115 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21119 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21120 if test -n "$ac_eof"; then
21121 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21122 ac_eof=`expr $ac_eof + 1`
21125 cat >>$CONFIG_STATUS <<_ACEOF
21126 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21127 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21130 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21131 s/^/s,@/; s/!/@,|#_!!_#|/
21134 s/'"$ac_delim"'$/,g/; t
21136 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21137 ' >>$CONFIG_STATUS <conf$$subs.sed
21138 rm -f conf$$subs.sed
21139 cat >>$CONFIG_STATUS <<_ACEOF
21146 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21147 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21148 # trailing colons and then remove the whole line if VPATH becomes empty
21149 # (actually we leave an empty line to preserve line numbers).
21150 if test "x$srcdir" = x.; then
21151 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21152 s/:*\$(srcdir):*/:/
21153 s/:*\${srcdir}:*/:/
21155 s/^\([^=]*=[ ]*\):*/\1/
21161 cat >>$CONFIG_STATUS <<\_ACEOF
21162 fi # test -n "$CONFIG_FILES"
21165 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21168 :[FHLC]) ac_mode=$ac_tag; continue;;
21170 case $ac_mode$ac_tag in
21172 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21173 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21174 { (exit 1); exit 1; }; };;
21175 :[FH]-) ac_tag=-:-;;
21176 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21193 -) ac_f="$tmp/stdin";;
21194 *) # Look for the file first in the build tree, then in the source tree
21195 # (if the path is not absolute). The absolute path cannot be DOS-style,
21196 # because $ac_f cannot contain `:'.
21200 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21202 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21203 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21204 { (exit 1); exit 1; }; };;
21206 ac_file_inputs="$ac_file_inputs $ac_f"
21209 # Let's still pretend it is `configure' which instantiates (i.e., don't
21210 # use $as_me), people would be surprised to read:
21211 # /* config.h. Generated by config.status. */
21212 configure_input="Generated from "`IFS=:
21213 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21214 if test x"$ac_file" != x-; then
21215 configure_input="$ac_file. $configure_input"
21216 { echo "$as_me:$LINENO: creating $ac_file" >&5
21217 echo "$as_me: creating $ac_file" >&6;}
21221 *:-:* | *:-) cat >"$tmp/stdin";;
21226 ac_dir=`$as_dirname -- "$ac_file" ||
21227 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21228 X"$ac_file" : 'X\(//\)[^/]' \| \
21229 X"$ac_file" : 'X\(//\)$' \| \
21230 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21232 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21236 /^X\(\/\/\)[^/].*/{
21251 -*) as_dir=./$as_dir;;
21253 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21257 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21258 *) as_qdir=$as_dir;;
21260 as_dirs="'$as_qdir' $as_dirs"
21261 as_dir=`$as_dirname -- "$as_dir" ||
21262 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21263 X"$as_dir" : 'X\(//\)[^/]' \| \
21264 X"$as_dir" : 'X\(//\)$' \| \
21265 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21271 /^X\(\/\/\)[^/].*/{
21284 test -d "$as_dir" && break
21286 test -z "$as_dirs" || eval "mkdir $as_dirs"
21287 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21288 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21289 { (exit 1); exit 1; }; }; }
21293 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21295 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21296 # A ".." for each directory in $ac_dir_suffix.
21297 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21298 case $ac_top_builddir_sub in
21299 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21300 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21303 ac_abs_top_builddir=$ac_pwd
21304 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21305 # for backward compatibility:
21306 ac_top_builddir=$ac_top_build_prefix
21309 .) # We are building in place.
21311 ac_top_srcdir=$ac_top_builddir_sub
21312 ac_abs_top_srcdir=$ac_pwd ;;
21313 [\\/]* | ?:[\\/]* ) # Absolute name.
21314 ac_srcdir=$srcdir$ac_dir_suffix;
21315 ac_top_srcdir=$srcdir
21316 ac_abs_top_srcdir=$srcdir ;;
21317 *) # Relative name.
21318 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21319 ac_top_srcdir=$ac_top_build_prefix$srcdir
21320 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21322 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21332 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21333 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21337 cat >>$CONFIG_STATUS <<\_ACEOF
21338 # If the template does not know about datarootdir, expand it.
21339 # FIXME: This hack should be removed a few years after 2.60.
21340 ac_datarootdir_hack=; ac_datarootdir_seen=
21342 case `sed -n '/datarootdir/ {
21351 ' $ac_file_inputs` in
21352 *datarootdir*) ac_datarootdir_seen=yes;;
21353 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21354 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21355 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21357 cat >>$CONFIG_STATUS <<_ACEOF
21358 ac_datarootdir_hack='
21359 s&@datadir@&$datadir&g
21360 s&@docdir@&$docdir&g
21361 s&@infodir@&$infodir&g
21362 s&@localedir@&$localedir&g
21363 s&@mandir@&$mandir&g
21364 s&\\\${datarootdir}&$datarootdir&g' ;;
21368 # Neutralize VPATH when `$srcdir' = `.'.
21369 # Shell code in configure.ac might set extrasub.
21370 # FIXME: do we really want to maintain this feature?
21371 cat >>$CONFIG_STATUS <<_ACEOF
21375 cat >>$CONFIG_STATUS <<\_ACEOF
21377 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21378 s&@configure_input@&$configure_input&;t t
21379 s&@top_builddir@&$ac_top_builddir_sub&;t t
21380 s&@srcdir@&$ac_srcdir&;t t
21381 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21382 s&@top_srcdir@&$ac_top_srcdir&;t t
21383 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21384 s&@builddir@&$ac_builddir&;t t
21385 s&@abs_builddir@&$ac_abs_builddir&;t t
21386 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21387 s&@INSTALL@&$ac_INSTALL&;t t
21388 $ac_datarootdir_hack
21389 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21391 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21392 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21393 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21394 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21395 which seems to be undefined. Please make sure it is defined." >&5
21396 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21397 which seems to be undefined. Please make sure it is defined." >&2;}
21401 -) cat "$tmp/out"; rm -f "$tmp/out";;
21402 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21411 # Transform confdefs.h into a sed script `conftest.defines', that
21412 # substitutes the proper values into config.h.in to produce config.h.
21413 rm -f conftest.defines conftest.tail
21414 # First, append a space to every undef/define line, to ease matching.
21415 echo 's/$/ /' >conftest.defines
21416 # Then, protect against being on the right side of a sed subst, or in
21417 # an unquoted here document, in config.status. If some macros were
21418 # called several times there might be several #defines for the same
21419 # symbol, which is useless. But do not sort them, since the last
21420 # AC_DEFINE must be honored.
21421 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21422 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21423 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21424 # PARAMS is the parameter list in the macro definition--in most cases, it's
21425 # just an empty string.
21426 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21427 ac_dB='\\)[ (].*,\\1define\\2'
21435 s/^[ ]*#[ ]*define[ ][ ]*//
21440 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21441 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21442 ' >>conftest.defines
21444 # Remove the space that was appended to ease matching.
21445 # Then replace #undef with comments. This is necessary, for
21446 # example, in the case of _POSIX_SOURCE, which is predefined and required
21447 # on some systems where configure will not decide to define it.
21448 # (The regexp can be short, since the line contains either #define or #undef.)
21450 s,^[ #]*u.*,/* & */,' >>conftest.defines
21452 # Break up conftest.defines:
21453 ac_max_sed_lines=50
21455 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21456 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21457 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21459 ac_in='$ac_file_inputs'
21460 ac_out='"$tmp/out1"'
21461 ac_nxt='"$tmp/out2"'
21465 # Write a here document:
21466 cat >>$CONFIG_STATUS <<_ACEOF
21467 # First, check the format of the line:
21468 cat >"\$tmp/defines.sed" <<\\CEOF
21469 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21470 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21474 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21476 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21477 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21478 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21479 grep . conftest.tail >/dev/null || break
21480 rm -f conftest.defines
21481 mv conftest.tail conftest.defines
21483 rm -f conftest.defines conftest.tail
21485 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21486 cat >>$CONFIG_STATUS <<\_ACEOF
21487 if test x"$ac_file" != x-; then
21488 echo "/* $configure_input */" >"$tmp/config.h"
21489 cat "$ac_result" >>"$tmp/config.h"
21490 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21491 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21492 echo "$as_me: $ac_file is unchanged" >&6;}
21495 mv "$tmp/config.h" $ac_file
21498 echo "/* $configure_input */"
21502 # Compute $ac_file's index in $config_headers.
21504 for _am_header in $config_headers :; do
21505 case $_am_header in
21506 $ac_file | $ac_file:* )
21509 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21512 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
21513 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21514 X$ac_file : 'X\(//\)[^/]' \| \
21515 X$ac_file : 'X\(//\)$' \| \
21516 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
21518 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21522 /^X\(\/\/\)[^/].*/{
21534 s/.*/./; q'`/stamp-h$_am_stamp_count
21537 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21538 echo "$as_me: executing $ac_file commands" >&6;}
21543 case $ac_file$ac_mode in
21544 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21545 # Strip MF so we end up with the name of the file.
21546 mf=`echo "$mf" | sed -e 's/:.*$//'`
21547 # Check whether this is an Automake generated Makefile or not.
21548 # We used to match only the files named `Makefile.in', but
21549 # some people rename them; so instead we look at the file content.
21550 # Grep'ing the first line is not enough: some people post-process
21551 # each Makefile.in and add a new line on top of each file to say so.
21552 # So let's grep whole file.
21553 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21554 dirpart=`$as_dirname -- "$mf" ||
21555 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21556 X"$mf" : 'X\(//\)[^/]' \| \
21557 X"$mf" : 'X\(//\)$' \| \
21558 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21560 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21564 /^X\(\/\/\)[^/].*/{
21580 # Extract the definition of DEPDIR, am__include, and am__quote
21581 # from the Makefile without running `make'.
21582 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21583 test -z "$DEPDIR" && continue
21584 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21585 test -z "am__include" && continue
21586 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21587 # When using ansi2knr, U may be empty or an underscore; expand it
21588 U=`sed -n 's/^U = //p' < "$mf"`
21589 # Find all dependency output files, they are included files with
21590 # $(DEPDIR) in their names. We invoke sed twice because it is the
21591 # simplest approach to changing $(DEPDIR) to its actual value in the
21593 for file in `sed -n "
21594 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21595 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21596 # Make sure the directory exists.
21597 test -f "$dirpart/$file" && continue
21598 fdir=`$as_dirname -- "$file" ||
21599 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21600 X"$file" : 'X\(//\)[^/]' \| \
21601 X"$file" : 'X\(//\)$' \| \
21602 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21604 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21608 /^X\(\/\/\)[^/].*/{
21621 { as_dir=$dirpart/$fdir
21623 -*) as_dir=./$as_dir;;
21625 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21629 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21630 *) as_qdir=$as_dir;;
21632 as_dirs="'$as_qdir' $as_dirs"
21633 as_dir=`$as_dirname -- "$as_dir" ||
21634 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21635 X"$as_dir" : 'X\(//\)[^/]' \| \
21636 X"$as_dir" : 'X\(//\)$' \| \
21637 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21639 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21643 /^X\(\/\/\)[^/].*/{
21656 test -d "$as_dir" && break
21658 test -z "$as_dirs" || eval "mkdir $as_dirs"
21659 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21660 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21661 { (exit 1); exit 1; }; }; }
21662 # echo "creating $dirpart/$file"
21663 echo '# dummy' > "$dirpart/$file"
21672 { (exit 0); exit 0; }
21674 chmod +x $CONFIG_STATUS
21675 ac_clean_files=$ac_clean_files_save
21678 # configure is writing to config.log, and then calls config.status.
21679 # config.status does its own redirection, appending to config.log.
21680 # Unfortunately, on DOS this fails, as config.log is still kept open
21681 # by configure, so config.status won't be able to write to it; its
21682 # output is simply discarded. So we exec the FD to /dev/null,
21683 # effectively closing config.log, so it can be properly (re)opened and
21684 # appended to by config.status. When coming back to configure, we
21685 # need to make the FD available again.
21686 if test "$no_create" != yes; then
21688 ac_config_status_args=
21689 test "$silent" = yes &&
21690 ac_config_status_args="$ac_config_status_args --quiet"
21692 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21694 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21695 # would make configure fail if this is the last instruction.
21696 $ac_cs_success || { (exit 1); exit 1; }