2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for tap 1.01.
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.
728 PACKAGE_TARNAME='tap'
729 PACKAGE_VERSION='1.01'
730 PACKAGE_STRING='tap 1.01'
733 ac_unique_file="src/tap.c"
734 # Factoring default headers for most tests.
735 ac_includes_default="\
737 #ifdef HAVE_SYS_TYPES_H
738 # include <sys/types.h>
740 #ifdef HAVE_SYS_STAT_H
741 # include <sys/stat.h>
747 # ifdef HAVE_STDLIB_H
752 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
757 #ifdef HAVE_STRINGS_H
758 # include <strings.h>
760 #ifdef HAVE_INTTYPES_H
761 # include <inttypes.h>
779 program_transform_name
821 INSTALL_STRIP_PROGRAM
875 ac_precious_vars='build_alias
892 # Initialize some variables set by options.
894 ac_init_version=false
895 # The variables have the same names as the options, with
896 # dashes changed to underlines.
904 program_transform_name=s,x,x,
912 # Installation directory options.
913 # These are left unexpanded so users can "make install exec_prefix=/foo"
914 # and all the variables that are supposed to be based on exec_prefix
915 # by default will actually change.
916 # Use braces instead of parens because sh, perl, etc. also accept them.
917 # (The list follows the same order as the GNU Coding Standards.)
918 bindir='${exec_prefix}/bin'
919 sbindir='${exec_prefix}/sbin'
920 libexecdir='${exec_prefix}/libexec'
921 datarootdir='${prefix}/share'
922 datadir='${datarootdir}'
923 sysconfdir='${prefix}/etc'
924 sharedstatedir='${prefix}/com'
925 localstatedir='${prefix}/var'
926 includedir='${prefix}/include'
927 oldincludedir='/usr/include'
928 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
929 infodir='${datarootdir}/info'
934 libdir='${exec_prefix}/lib'
935 localedir='${datarootdir}/locale'
936 mandir='${datarootdir}/man'
942 # If the previous option needs an argument, assign it.
943 if test -n "$ac_prev"; then
944 eval $ac_prev=\$ac_option
950 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
954 # Accept the important Cygnus configure options, so we can diagnose typos.
956 case $ac_dashdash$ac_option in
960 -bindir | --bindir | --bindi | --bind | --bin | --bi)
962 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
965 -build | --build | --buil | --bui | --bu)
966 ac_prev=build_alias ;;
967 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
968 build_alias=$ac_optarg ;;
970 -cache-file | --cache-file | --cache-fil | --cache-fi \
971 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
972 ac_prev=cache_file ;;
973 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
974 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
975 cache_file=$ac_optarg ;;
978 cache_file=config.cache ;;
980 -datadir | --datadir | --datadi | --datad)
982 -datadir=* | --datadir=* | --datadi=* | --datad=*)
983 datadir=$ac_optarg ;;
985 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
986 | --dataroo | --dataro | --datar)
987 ac_prev=datarootdir ;;
988 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
989 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
990 datarootdir=$ac_optarg ;;
992 -disable-* | --disable-*)
993 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
994 # Reject names that are not valid shell variable names.
995 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
996 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
997 { (exit 1); exit 1; }; }
998 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
999 eval enable_$ac_feature=no ;;
1001 -docdir | --docdir | --docdi | --doc | --do)
1003 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1004 docdir=$ac_optarg ;;
1006 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1008 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1009 dvidir=$ac_optarg ;;
1011 -enable-* | --enable-*)
1012 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1013 # Reject names that are not valid shell variable names.
1014 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1015 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1016 { (exit 1); exit 1; }; }
1017 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1018 eval enable_$ac_feature=\$ac_optarg ;;
1020 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1021 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1022 | --exec | --exe | --ex)
1023 ac_prev=exec_prefix ;;
1024 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1025 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1026 | --exec=* | --exe=* | --ex=*)
1027 exec_prefix=$ac_optarg ;;
1029 -gas | --gas | --ga | --g)
1030 # Obsolete; use --with-gas.
1033 -help | --help | --hel | --he | -h)
1034 ac_init_help=long ;;
1035 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1036 ac_init_help=recursive ;;
1037 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1038 ac_init_help=short ;;
1040 -host | --host | --hos | --ho)
1041 ac_prev=host_alias ;;
1042 -host=* | --host=* | --hos=* | --ho=*)
1043 host_alias=$ac_optarg ;;
1045 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1047 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1049 htmldir=$ac_optarg ;;
1051 -includedir | --includedir | --includedi | --included | --include \
1052 | --includ | --inclu | --incl | --inc)
1053 ac_prev=includedir ;;
1054 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1055 | --includ=* | --inclu=* | --incl=* | --inc=*)
1056 includedir=$ac_optarg ;;
1058 -infodir | --infodir | --infodi | --infod | --info | --inf)
1060 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1061 infodir=$ac_optarg ;;
1063 -libdir | --libdir | --libdi | --libd)
1065 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1066 libdir=$ac_optarg ;;
1068 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1069 | --libexe | --libex | --libe)
1070 ac_prev=libexecdir ;;
1071 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1072 | --libexe=* | --libex=* | --libe=*)
1073 libexecdir=$ac_optarg ;;
1075 -localedir | --localedir | --localedi | --localed | --locale)
1076 ac_prev=localedir ;;
1077 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1078 localedir=$ac_optarg ;;
1080 -localstatedir | --localstatedir | --localstatedi | --localstated \
1081 | --localstate | --localstat | --localsta | --localst | --locals)
1082 ac_prev=localstatedir ;;
1083 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1084 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1085 localstatedir=$ac_optarg ;;
1087 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1089 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1090 mandir=$ac_optarg ;;
1092 -nfp | --nfp | --nf)
1093 # Obsolete; use --without-fp.
1096 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1097 | --no-cr | --no-c | -n)
1100 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1101 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1104 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1105 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1106 | --oldin | --oldi | --old | --ol | --o)
1107 ac_prev=oldincludedir ;;
1108 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1109 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1110 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1111 oldincludedir=$ac_optarg ;;
1113 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1115 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1116 prefix=$ac_optarg ;;
1118 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1119 | --program-pre | --program-pr | --program-p)
1120 ac_prev=program_prefix ;;
1121 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1122 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1123 program_prefix=$ac_optarg ;;
1125 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1126 | --program-suf | --program-su | --program-s)
1127 ac_prev=program_suffix ;;
1128 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1129 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1130 program_suffix=$ac_optarg ;;
1132 -program-transform-name | --program-transform-name \
1133 | --program-transform-nam | --program-transform-na \
1134 | --program-transform-n | --program-transform- \
1135 | --program-transform | --program-transfor \
1136 | --program-transfo | --program-transf \
1137 | --program-trans | --program-tran \
1138 | --progr-tra | --program-tr | --program-t)
1139 ac_prev=program_transform_name ;;
1140 -program-transform-name=* | --program-transform-name=* \
1141 | --program-transform-nam=* | --program-transform-na=* \
1142 | --program-transform-n=* | --program-transform-=* \
1143 | --program-transform=* | --program-transfor=* \
1144 | --program-transfo=* | --program-transf=* \
1145 | --program-trans=* | --program-tran=* \
1146 | --progr-tra=* | --program-tr=* | --program-t=*)
1147 program_transform_name=$ac_optarg ;;
1149 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1151 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1152 pdfdir=$ac_optarg ;;
1154 -psdir | --psdir | --psdi | --psd | --ps)
1156 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1159 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1160 | -silent | --silent | --silen | --sile | --sil)
1163 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1165 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1167 sbindir=$ac_optarg ;;
1169 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1170 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1171 | --sharedst | --shareds | --shared | --share | --shar \
1173 ac_prev=sharedstatedir ;;
1174 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1175 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1176 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1178 sharedstatedir=$ac_optarg ;;
1180 -site | --site | --sit)
1182 -site=* | --site=* | --sit=*)
1185 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1187 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1188 srcdir=$ac_optarg ;;
1190 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1191 | --syscon | --sysco | --sysc | --sys | --sy)
1192 ac_prev=sysconfdir ;;
1193 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1194 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1195 sysconfdir=$ac_optarg ;;
1197 -target | --target | --targe | --targ | --tar | --ta | --t)
1198 ac_prev=target_alias ;;
1199 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1200 target_alias=$ac_optarg ;;
1202 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1205 -version | --version | --versio | --versi | --vers | -V)
1206 ac_init_version=: ;;
1209 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1210 # Reject names that are not valid shell variable names.
1211 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1212 { echo "$as_me: error: invalid package name: $ac_package" >&2
1213 { (exit 1); exit 1; }; }
1214 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1215 eval with_$ac_package=\$ac_optarg ;;
1217 -without-* | --without-*)
1218 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1219 # Reject names that are not valid shell variable names.
1220 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1221 { echo "$as_me: error: invalid package name: $ac_package" >&2
1222 { (exit 1); exit 1; }; }
1223 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1224 eval with_$ac_package=no ;;
1227 # Obsolete; use --with-x.
1230 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1231 | --x-incl | --x-inc | --x-in | --x-i)
1232 ac_prev=x_includes ;;
1233 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1234 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1235 x_includes=$ac_optarg ;;
1237 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1238 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1239 ac_prev=x_libraries ;;
1240 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1241 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1242 x_libraries=$ac_optarg ;;
1244 -*) { echo "$as_me: error: unrecognized option: $ac_option
1245 Try \`$0 --help' for more information." >&2
1246 { (exit 1); exit 1; }; }
1250 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1251 # Reject names that are not valid shell variable names.
1252 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1253 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1254 { (exit 1); exit 1; }; }
1255 eval $ac_envvar=\$ac_optarg
1256 export $ac_envvar ;;
1259 # FIXME: should be removed in autoconf 3.0.
1260 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1261 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1262 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1263 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1269 if test -n "$ac_prev"; then
1270 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1271 { echo "$as_me: error: missing argument to $ac_option" >&2
1272 { (exit 1); exit 1; }; }
1275 # Be sure to have absolute directory names.
1276 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1277 datadir sysconfdir sharedstatedir localstatedir includedir \
1278 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1279 libdir localedir mandir
1281 eval ac_val=\$$ac_var
1283 [\\/$]* | ?:[\\/]* ) continue;;
1284 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1286 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1287 { (exit 1); exit 1; }; }
1290 # There might be people who depend on the old broken behavior: `$host'
1291 # used to hold the argument of --host etc.
1292 # FIXME: To remove some day.
1295 target=$target_alias
1297 # FIXME: To remove some day.
1298 if test "x$host_alias" != x; then
1299 if test "x$build_alias" = x; then
1300 cross_compiling=maybe
1301 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1302 If a cross compiler is detected then cross compile mode will be used." >&2
1303 elif test "x$build_alias" != "x$host_alias"; then
1309 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1311 test "$silent" = yes && exec 6>/dev/null
1314 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1315 ac_ls_di=`ls -di .` &&
1316 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1317 { echo "$as_me: error: Working directory cannot be determined" >&2
1318 { (exit 1); exit 1; }; }
1319 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1320 { echo "$as_me: error: pwd does not report name of working directory" >&2
1321 { (exit 1); exit 1; }; }
1324 # Find the source files, if location was not specified.
1325 if test -z "$srcdir"; then
1326 ac_srcdir_defaulted=yes
1327 # Try the directory containing this script, then the parent directory.
1328 ac_confdir=`$as_dirname -- "$0" ||
1329 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1330 X"$0" : 'X\(//\)[^/]' \| \
1331 X"$0" : 'X\(//\)$' \| \
1332 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1352 if test ! -r "$srcdir/$ac_unique_file"; then
1356 ac_srcdir_defaulted=no
1358 if test ! -r "$srcdir/$ac_unique_file"; then
1359 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1360 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1361 { (exit 1); exit 1; }; }
1363 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1365 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1366 { (exit 1); exit 1; }; }
1368 # When building in place, set srcdir=.
1369 if test "$ac_abs_confdir" = "$ac_pwd"; then
1372 # Remove unnecessary trailing slashes from srcdir.
1373 # Double slashes in file names in object file debugging info
1374 # mess up M-x gdb in Emacs.
1376 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1378 for ac_var in $ac_precious_vars; do
1379 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1380 eval ac_env_${ac_var}_value=\$${ac_var}
1381 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1382 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1386 # Report the --help message.
1388 if test "$ac_init_help" = "long"; then
1389 # Omit some internal or obsolete options to make the list less imposing.
1390 # This message is too long to be a string in the A/UX 3.1 sh.
1392 \`configure' configures tap 1.01 to adapt to many kinds of systems.
1394 Usage: $0 [OPTION]... [VAR=VALUE]...
1396 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1397 VAR=VALUE. See below for descriptions of some of the useful variables.
1399 Defaults for the options are specified in brackets.
1402 -h, --help display this help and exit
1403 --help=short display options specific to this package
1404 --help=recursive display the short help of all the included packages
1405 -V, --version display version information and exit
1406 -q, --quiet, --silent do not print \`checking...' messages
1407 --cache-file=FILE cache test results in FILE [disabled]
1408 -C, --config-cache alias for \`--cache-file=config.cache'
1409 -n, --no-create do not create output files
1410 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1412 Installation directories:
1413 --prefix=PREFIX install architecture-independent files in PREFIX
1414 [$ac_default_prefix]
1415 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1418 By default, \`make install' will install all the files in
1419 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1420 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1421 for instance \`--prefix=\$HOME'.
1423 For better control, use the options below.
1425 Fine tuning of the installation directories:
1426 --bindir=DIR user executables [EPREFIX/bin]
1427 --sbindir=DIR system admin executables [EPREFIX/sbin]
1428 --libexecdir=DIR program executables [EPREFIX/libexec]
1429 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1430 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1431 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1432 --libdir=DIR object code libraries [EPREFIX/lib]
1433 --includedir=DIR C header files [PREFIX/include]
1434 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1435 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1436 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1437 --infodir=DIR info documentation [DATAROOTDIR/info]
1438 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1439 --mandir=DIR man documentation [DATAROOTDIR/man]
1440 --docdir=DIR documentation root [DATAROOTDIR/doc/tap]
1441 --htmldir=DIR html documentation [DOCDIR]
1442 --dvidir=DIR dvi documentation [DOCDIR]
1443 --pdfdir=DIR pdf documentation [DOCDIR]
1444 --psdir=DIR ps documentation [DOCDIR]
1450 --program-prefix=PREFIX prepend PREFIX to installed program names
1451 --program-suffix=SUFFIX append SUFFIX to installed program names
1452 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1455 --build=BUILD configure for building on BUILD [guessed]
1456 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1460 if test -n "$ac_init_help"; then
1461 case $ac_init_help in
1462 short | recursive ) echo "Configuration of tap 1.01:";;
1467 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1468 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1469 --disable-dependency-tracking speeds up one-time build
1470 --enable-dependency-tracking do not reject slow dependency extractors
1471 --enable-shared[=PKGS] build shared libraries [default=yes]
1472 --enable-static[=PKGS] build static libraries [default=yes]
1473 --enable-fast-install[=PKGS]
1474 optimize for fast installation [default=yes]
1475 --disable-libtool-lock avoid locking (might break parallel builds)
1478 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1479 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1480 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1481 --with-pic try to use only PIC/non-PIC objects [default=use
1483 --with-tags[=TAGS] include additional configurations [automatic]
1485 Some influential environment variables:
1486 CC C compiler command
1487 CFLAGS C compiler flags
1488 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1489 nonstandard directory <lib dir>
1490 LIBS libraries to pass to the linker, e.g. -l<library>
1491 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1492 you have headers in a nonstandard directory <include dir>
1494 CXX C++ compiler command
1495 CXXFLAGS C++ compiler flags
1496 CXXCPP C++ preprocessor
1497 F77 Fortran 77 compiler command
1498 FFLAGS Fortran 77 compiler flags
1500 Use these variables to override the choices made by `configure' or to help
1501 it to find libraries and programs with nonstandard names/locations.
1507 if test "$ac_init_help" = "recursive"; then
1508 # If there are subdirs, report their specific --help.
1509 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1510 test -d "$ac_dir" || continue
1514 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1516 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1517 # A ".." for each directory in $ac_dir_suffix.
1518 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1519 case $ac_top_builddir_sub in
1520 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1521 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1524 ac_abs_top_builddir=$ac_pwd
1525 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1526 # for backward compatibility:
1527 ac_top_builddir=$ac_top_build_prefix
1530 .) # We are building in place.
1532 ac_top_srcdir=$ac_top_builddir_sub
1533 ac_abs_top_srcdir=$ac_pwd ;;
1534 [\\/]* | ?:[\\/]* ) # Absolute name.
1535 ac_srcdir=$srcdir$ac_dir_suffix;
1536 ac_top_srcdir=$srcdir
1537 ac_abs_top_srcdir=$srcdir ;;
1539 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1540 ac_top_srcdir=$ac_top_build_prefix$srcdir
1541 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1543 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1545 cd "$ac_dir" || { ac_status=$?; continue; }
1546 # Check for guested configure.
1547 if test -f "$ac_srcdir/configure.gnu"; then
1549 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1550 elif test -f "$ac_srcdir/configure"; then
1552 $SHELL "$ac_srcdir/configure" --help=recursive
1554 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1556 cd "$ac_pwd" || { ac_status=$?; break; }
1560 test -n "$ac_init_help" && exit $ac_status
1561 if $ac_init_version; then
1564 generated by GNU Autoconf 2.61
1566 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1567 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1568 This configure script is free software; the Free Software Foundation
1569 gives unlimited permission to copy, distribute and modify it.
1573 cat >config.log <<_ACEOF
1574 This file contains any messages produced by compilers while
1575 running configure, to aid debugging if configure makes a mistake.
1577 It was created by tap $as_me 1.01, which was
1578 generated by GNU Autoconf 2.61. Invocation command line was
1590 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1591 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1592 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1593 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1594 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1596 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1597 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1599 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1600 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1601 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1602 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1603 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1604 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1605 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1613 test -z "$as_dir" && as_dir=.
1614 echo "PATH: $as_dir"
1630 # Keep a trace of the command line.
1631 # Strip out --no-create and --no-recursion so they do not pile up.
1632 # Strip out --silent because we don't want to record it for future runs.
1633 # Also quote any args containing shell meta-characters.
1634 # Make two passes to allow for proper duplicate-argument suppression.
1638 ac_must_keep_next=false
1644 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1645 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1646 | -silent | --silent | --silen | --sile | --sil)
1649 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1652 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1654 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1655 if test $ac_must_keep_next = true; then
1656 ac_must_keep_next=false # Got value, back to normal.
1659 *=* | --config-cache | -C | -disable-* | --disable-* \
1660 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1661 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1662 | -with-* | --with-* | -without-* | --without-* | --x)
1663 case "$ac_configure_args0 " in
1664 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1667 -* ) ac_must_keep_next=true ;;
1670 ac_configure_args="$ac_configure_args '$ac_arg'"
1675 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1676 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1678 # When interrupted or exit'd, cleanup temporary files, and complete
1679 # config.log. We remove comments because anyway the quotes in there
1680 # would cause problems or look ugly.
1681 # WARNING: Use '\'' to represent an apostrophe within the trap.
1682 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1683 trap 'exit_status=$?
1684 # Save into config.log some information that might help in debugging.
1689 ## ---------------- ##
1690 ## Cache variables. ##
1691 ## ---------------- ##
1694 # The following way of writing the cache mishandles newlines in values,
1696 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1697 eval ac_val=\$$ac_var
1701 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1702 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1705 _ | IFS | as_nl) ;; #(
1706 *) $as_unset $ac_var ;;
1711 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1712 *${as_nl}ac_space=\ *)
1714 "s/'\''/'\''\\\\'\'''\''/g;
1715 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1718 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1726 ## ----------------- ##
1727 ## Output variables. ##
1728 ## ----------------- ##
1731 for ac_var in $ac_subst_vars
1733 eval ac_val=\$$ac_var
1735 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1737 echo "$ac_var='\''$ac_val'\''"
1741 if test -n "$ac_subst_files"; then
1743 ## ------------------- ##
1744 ## File substitutions. ##
1745 ## ------------------- ##
1748 for ac_var in $ac_subst_files
1750 eval ac_val=\$$ac_var
1752 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1754 echo "$ac_var='\''$ac_val'\''"
1759 if test -s confdefs.h; then
1769 test "$ac_signal" != 0 &&
1770 echo "$as_me: caught signal $ac_signal"
1771 echo "$as_me: exit $exit_status"
1773 rm -f core *.core core.conftest.* &&
1774 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1777 for ac_signal in 1 2 13 15; do
1778 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1782 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1783 rm -f -r conftest* confdefs.h
1785 # Predefined preprocessor variables.
1787 cat >>confdefs.h <<_ACEOF
1788 #define PACKAGE_NAME "$PACKAGE_NAME"
1792 cat >>confdefs.h <<_ACEOF
1793 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1797 cat >>confdefs.h <<_ACEOF
1798 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1802 cat >>confdefs.h <<_ACEOF
1803 #define PACKAGE_STRING "$PACKAGE_STRING"
1807 cat >>confdefs.h <<_ACEOF
1808 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1812 # Let the site file select an alternate cache file if it wants to.
1813 # Prefer explicitly selected file to automatically selected ones.
1814 if test -n "$CONFIG_SITE"; then
1815 set x "$CONFIG_SITE"
1816 elif test "x$prefix" != xNONE; then
1817 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1819 set x "$ac_default_prefix/share/config.site" \
1820 "$ac_default_prefix/etc/config.site"
1825 if test -r "$ac_site_file"; then
1826 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1827 echo "$as_me: loading site script $ac_site_file" >&6;}
1828 sed 's/^/| /' "$ac_site_file" >&5
1833 if test -r "$cache_file"; then
1834 # Some versions of bash will fail to source /dev/null (special
1835 # files actually), so we avoid doing that.
1836 if test -f "$cache_file"; then
1837 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1838 echo "$as_me: loading cache $cache_file" >&6;}
1840 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1841 *) . "./$cache_file";;
1845 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1846 echo "$as_me: creating cache $cache_file" >&6;}
1850 # Check that the precious variables saved in the cache have kept the same
1852 ac_cache_corrupted=false
1853 for ac_var in $ac_precious_vars; do
1854 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1855 eval ac_new_set=\$ac_env_${ac_var}_set
1856 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1857 eval ac_new_val=\$ac_env_${ac_var}_value
1858 case $ac_old_set,$ac_new_set in
1860 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1861 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1862 ac_cache_corrupted=: ;;
1864 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1865 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1866 ac_cache_corrupted=: ;;
1869 if test "x$ac_old_val" != "x$ac_new_val"; then
1870 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1871 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1872 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1873 echo "$as_me: former value: $ac_old_val" >&2;}
1874 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1875 echo "$as_me: current value: $ac_new_val" >&2;}
1876 ac_cache_corrupted=:
1879 # Pass precious variables to config.status.
1880 if test "$ac_new_set" = set; then
1882 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1883 *) ac_arg=$ac_var=$ac_new_val ;;
1885 case " $ac_configure_args " in
1886 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1887 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1891 if $ac_cache_corrupted; then
1892 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1893 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1894 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1895 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1896 { (exit 1); exit 1; }; }
1924 ac_cpp='$CPP $CPPFLAGS'
1925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1931 am__api_version='1.10'
1934 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1935 if test -f "$ac_dir/install-sh"; then
1937 ac_install_sh="$ac_aux_dir/install-sh -c"
1939 elif test -f "$ac_dir/install.sh"; then
1941 ac_install_sh="$ac_aux_dir/install.sh -c"
1943 elif test -f "$ac_dir/shtool"; then
1945 ac_install_sh="$ac_aux_dir/shtool install -c"
1949 if test -z "$ac_aux_dir"; then
1950 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1951 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1952 { (exit 1); exit 1; }; }
1955 # These three variables are undocumented and unsupported,
1956 # and are intended to be withdrawn in a future Autoconf release.
1957 # They can cause serious problems if a builder's source tree is in a directory
1958 # whose full name contains unusual characters.
1959 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1960 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1961 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1964 # Find a good install program. We prefer a C program (faster),
1965 # so one script is as good as another. But avoid the broken or
1966 # incompatible versions:
1967 # SysV /etc/install, /usr/sbin/install
1968 # SunOS /usr/etc/install
1969 # IRIX /sbin/install
1971 # AmigaOS /C/install, which installs bootblocks on floppy discs
1972 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1973 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1974 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1975 # OS/2's system install, which has a completely different semantic
1976 # ./install, which can be erroneously created by make from ./install.sh.
1977 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1978 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1979 if test -z "$INSTALL"; then
1980 if test "${ac_cv_path_install+set}" = set; then
1981 echo $ECHO_N "(cached) $ECHO_C" >&6
1983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1987 test -z "$as_dir" && as_dir=.
1988 # Account for people who put trailing slashes in PATH elements.
1990 ./ | .// | /cC/* | \
1991 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1992 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1995 # OSF1 and SCO ODT 3.0 have their own names for install.
1996 # Don't use installbsd from OSF since it installs stuff as root
1998 for ac_prog in ginstall scoinst install; do
1999 for ac_exec_ext in '' $ac_executable_extensions; do
2000 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2001 if test $ac_prog = install &&
2002 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2003 # AIX install. It has an incompatible calling convention.
2005 elif test $ac_prog = install &&
2006 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2007 # program-specific install script used by HP pwplus--don't use.
2010 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2023 if test "${ac_cv_path_install+set}" = set; then
2024 INSTALL=$ac_cv_path_install
2026 # As a last resort, use the slow shell script. Don't cache a
2027 # value for INSTALL within a source directory, because that will
2028 # break other packages using the cache if that directory is
2029 # removed, or if the value is a relative name.
2030 INSTALL=$ac_install_sh
2033 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2034 echo "${ECHO_T}$INSTALL" >&6; }
2036 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2037 # It thinks the first close brace ends the variable substitution.
2038 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2040 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2042 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2044 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2045 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2048 echo timestamp > conftest.file
2049 # Do `set' in a subshell so we don't clobber the current shell's
2050 # arguments. Must try -L first in case configure is actually a
2051 # symlink; some systems play weird games with the mod time of symlinks
2052 # (eg FreeBSD returns the mod time of the symlink's containing
2055 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2056 if test "$*" = "X"; then
2058 set X `ls -t $srcdir/configure conftest.file`
2061 if test "$*" != "X $srcdir/configure conftest.file" \
2062 && test "$*" != "X conftest.file $srcdir/configure"; then
2064 # If neither matched, then we have a broken ls. This can happen
2065 # if, for instance, CONFIG_SHELL is bash and it inherits a
2066 # broken ls alias from the environment. This has actually
2067 # happened. Such a system could not be considered "sane".
2068 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2069 alias in your environment" >&5
2070 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2071 alias in your environment" >&2;}
2072 { (exit 1); exit 1; }; }
2075 test "$2" = conftest.file
2081 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2082 Check your system clock" >&5
2083 echo "$as_me: error: newly created file is older than distributed files!
2084 Check your system clock" >&2;}
2085 { (exit 1); exit 1; }; }
2087 { echo "$as_me:$LINENO: result: yes" >&5
2088 echo "${ECHO_T}yes" >&6; }
2089 test "$program_prefix" != NONE &&
2090 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2091 # Use a double $ so make ignores it.
2092 test "$program_suffix" != NONE &&
2093 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2094 # Double any \ or $. echo might interpret backslashes.
2095 # By default was `s,x,x', remove it if useless.
2096 cat <<\_ACEOF >conftest.sed
2097 s/[\\$]/&&/g;s/;s,x,x,$//
2099 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2102 # expand $ac_aux_dir to an absolute path
2103 am_aux_dir=`cd $ac_aux_dir && pwd`
2105 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2106 # Use eval to expand $SHELL
2107 if eval "$MISSING --run true"; then
2108 am_missing_run="$MISSING --run "
2111 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2112 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2115 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2116 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2117 if test -z "$MKDIR_P"; then
2118 if test "${ac_cv_path_mkdir+set}" = set; then
2119 echo $ECHO_N "(cached) $ECHO_C" >&6
2121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2122 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2125 test -z "$as_dir" && as_dir=.
2126 for ac_prog in mkdir gmkdir; do
2127 for ac_exec_ext in '' $ac_executable_extensions; do
2128 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2129 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2130 'mkdir (GNU coreutils) '* | \
2131 'mkdir (coreutils) '* | \
2132 'mkdir (fileutils) '4.1*)
2133 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2143 if test "${ac_cv_path_mkdir+set}" = set; then
2144 MKDIR_P="$ac_cv_path_mkdir -p"
2146 # As a last resort, use the slow shell script. Don't cache a
2147 # value for MKDIR_P within a source directory, because that will
2148 # break other packages using the cache if that directory is
2149 # removed, or if the value is a relative name.
2150 test -d ./--version && rmdir ./--version
2151 MKDIR_P="$ac_install_sh -d"
2154 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2155 echo "${ECHO_T}$MKDIR_P" >&6; }
2159 [\\/$]* | ?:[\\/]*) ;;
2160 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2163 for ac_prog in gawk mawk nawk awk
2165 # Extract the first word of "$ac_prog", so it can be a program name with args.
2166 set dummy $ac_prog; ac_word=$2
2167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2169 if test "${ac_cv_prog_AWK+set}" = set; then
2170 echo $ECHO_N "(cached) $ECHO_C" >&6
2172 if test -n "$AWK"; then
2173 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2179 test -z "$as_dir" && as_dir=.
2180 for ac_exec_ext in '' $ac_executable_extensions; do
2181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2182 ac_cv_prog_AWK="$ac_prog"
2183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2193 if test -n "$AWK"; then
2194 { echo "$as_me:$LINENO: result: $AWK" >&5
2195 echo "${ECHO_T}$AWK" >&6; }
2197 { echo "$as_me:$LINENO: result: no" >&5
2198 echo "${ECHO_T}no" >&6; }
2202 test -n "$AWK" && break
2205 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2206 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2207 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2208 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2209 echo $ECHO_N "(cached) $ECHO_C" >&6
2211 cat >conftest.make <<\_ACEOF
2214 @echo '@@@%%%=$(MAKE)=@@@%%%'
2216 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2217 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2219 eval ac_cv_prog_make_${ac_make}_set=yes;;
2221 eval ac_cv_prog_make_${ac_make}_set=no;;
2225 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2226 { echo "$as_me:$LINENO: result: yes" >&5
2227 echo "${ECHO_T}yes" >&6; }
2230 { echo "$as_me:$LINENO: result: no" >&5
2231 echo "${ECHO_T}no" >&6; }
2232 SET_MAKE="MAKE=${MAKE-make}"
2235 rm -rf .tst 2>/dev/null
2236 mkdir .tst 2>/dev/null
2237 if test -d .tst; then
2242 rmdir .tst 2>/dev/null
2244 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2245 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2246 # is not polluted with repeated "-I."
2247 am__isrc=' -I$(srcdir)'
2248 # test to see if srcdir already configured
2249 if test -f $srcdir/config.status; then
2250 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2251 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2252 { (exit 1); exit 1; }; }
2256 # test whether we have cygpath
2257 if test -z "$CYGPATH_W"; then
2258 if (cygpath --version) >/dev/null 2>/dev/null; then
2259 CYGPATH_W='cygpath -w'
2266 # Define the identity of the package.
2271 cat >>confdefs.h <<_ACEOF
2272 #define PACKAGE "$PACKAGE"
2276 cat >>confdefs.h <<_ACEOF
2277 #define VERSION "$VERSION"
2280 # Some tools Automake needs.
2282 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2285 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2288 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2291 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2294 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2296 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2298 # Installed binaries are usually stripped using `strip' when the user
2299 # run `make install-strip'. However `strip' might not be the right
2300 # tool to use in cross-compilation environments, therefore Automake
2301 # will honor the `STRIP' environment variable to overrule this program.
2302 if test "$cross_compiling" != no; then
2303 if test -n "$ac_tool_prefix"; then
2304 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2305 set dummy ${ac_tool_prefix}strip; ac_word=$2
2306 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2308 if test "${ac_cv_prog_STRIP+set}" = set; then
2309 echo $ECHO_N "(cached) $ECHO_C" >&6
2311 if test -n "$STRIP"; then
2312 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2318 test -z "$as_dir" && as_dir=.
2319 for ac_exec_ext in '' $ac_executable_extensions; do
2320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2321 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2331 STRIP=$ac_cv_prog_STRIP
2332 if test -n "$STRIP"; then
2333 { echo "$as_me:$LINENO: result: $STRIP" >&5
2334 echo "${ECHO_T}$STRIP" >&6; }
2336 { echo "$as_me:$LINENO: result: no" >&5
2337 echo "${ECHO_T}no" >&6; }
2342 if test -z "$ac_cv_prog_STRIP"; then
2344 # Extract the first word of "strip", so it can be a program name with args.
2345 set dummy strip; ac_word=$2
2346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2348 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2349 echo $ECHO_N "(cached) $ECHO_C" >&6
2351 if test -n "$ac_ct_STRIP"; then
2352 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2358 test -z "$as_dir" && as_dir=.
2359 for ac_exec_ext in '' $ac_executable_extensions; do
2360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2361 ac_cv_prog_ac_ct_STRIP="strip"
2362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2371 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2372 if test -n "$ac_ct_STRIP"; then
2373 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2374 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2376 { echo "$as_me:$LINENO: result: no" >&5
2377 echo "${ECHO_T}no" >&6; }
2380 if test "x$ac_ct_STRIP" = x; then
2383 case $cross_compiling:$ac_tool_warned in
2385 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2386 whose name does not start with the host triplet. If you think this
2387 configuration is useful to you, please write to autoconf@gnu.org." >&5
2388 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2389 whose name does not start with the host triplet. If you think this
2390 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2391 ac_tool_warned=yes ;;
2396 STRIP="$ac_cv_prog_STRIP"
2400 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2402 # We need awk for the "check" target. The system "awk" is bad on
2404 # Always define AMTAR for backward compatibility.
2406 AMTAR=${AMTAR-"${am_missing_run}tar"}
2408 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2415 ac_cpp='$CPP $CPPFLAGS'
2416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2419 if test -n "$ac_tool_prefix"; then
2420 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2421 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2422 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2424 if test "${ac_cv_prog_CC+set}" = set; then
2425 echo $ECHO_N "(cached) $ECHO_C" >&6
2427 if test -n "$CC"; then
2428 ac_cv_prog_CC="$CC" # Let the user override the test.
2430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2434 test -z "$as_dir" && as_dir=.
2435 for ac_exec_ext in '' $ac_executable_extensions; do
2436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2437 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2448 if test -n "$CC"; then
2449 { echo "$as_me:$LINENO: result: $CC" >&5
2450 echo "${ECHO_T}$CC" >&6; }
2452 { echo "$as_me:$LINENO: result: no" >&5
2453 echo "${ECHO_T}no" >&6; }
2458 if test -z "$ac_cv_prog_CC"; then
2460 # Extract the first word of "gcc", so it can be a program name with args.
2461 set dummy gcc; ac_word=$2
2462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2464 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2465 echo $ECHO_N "(cached) $ECHO_C" >&6
2467 if test -n "$ac_ct_CC"; then
2468 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2474 test -z "$as_dir" && as_dir=.
2475 for ac_exec_ext in '' $ac_executable_extensions; do
2476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2477 ac_cv_prog_ac_ct_CC="gcc"
2478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2487 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2488 if test -n "$ac_ct_CC"; then
2489 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2490 echo "${ECHO_T}$ac_ct_CC" >&6; }
2492 { echo "$as_me:$LINENO: result: no" >&5
2493 echo "${ECHO_T}no" >&6; }
2496 if test "x$ac_ct_CC" = x; then
2499 case $cross_compiling:$ac_tool_warned in
2501 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2502 whose name does not start with the host triplet. If you think this
2503 configuration is useful to you, please write to autoconf@gnu.org." >&5
2504 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2505 whose name does not start with the host triplet. If you think this
2506 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2507 ac_tool_warned=yes ;;
2515 if test -z "$CC"; then
2516 if test -n "$ac_tool_prefix"; then
2517 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2518 set dummy ${ac_tool_prefix}cc; ac_word=$2
2519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2521 if test "${ac_cv_prog_CC+set}" = set; then
2522 echo $ECHO_N "(cached) $ECHO_C" >&6
2524 if test -n "$CC"; then
2525 ac_cv_prog_CC="$CC" # Let the user override the test.
2527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531 test -z "$as_dir" && as_dir=.
2532 for ac_exec_ext in '' $ac_executable_extensions; do
2533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2534 ac_cv_prog_CC="${ac_tool_prefix}cc"
2535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2545 if test -n "$CC"; then
2546 { echo "$as_me:$LINENO: result: $CC" >&5
2547 echo "${ECHO_T}$CC" >&6; }
2549 { echo "$as_me:$LINENO: result: no" >&5
2550 echo "${ECHO_T}no" >&6; }
2556 if test -z "$CC"; then
2557 # Extract the first word of "cc", so it can be a program name with args.
2558 set dummy cc; ac_word=$2
2559 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2561 if test "${ac_cv_prog_CC+set}" = set; then
2562 echo $ECHO_N "(cached) $ECHO_C" >&6
2564 if test -n "$CC"; then
2565 ac_cv_prog_CC="$CC" # Let the user override the test.
2568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572 test -z "$as_dir" && as_dir=.
2573 for ac_exec_ext in '' $ac_executable_extensions; do
2574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2575 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2576 ac_prog_rejected=yes
2580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2587 if test $ac_prog_rejected = yes; then
2588 # We found a bogon in the path, so make sure we never use it.
2589 set dummy $ac_cv_prog_CC
2591 if test $# != 0; then
2592 # We chose a different compiler from the bogus one.
2593 # However, it has the same basename, so the bogon will be chosen
2594 # first if we set CC to just the basename; use the full file name.
2596 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2602 if test -n "$CC"; then
2603 { echo "$as_me:$LINENO: result: $CC" >&5
2604 echo "${ECHO_T}$CC" >&6; }
2606 { echo "$as_me:$LINENO: result: no" >&5
2607 echo "${ECHO_T}no" >&6; }
2612 if test -z "$CC"; then
2613 if test -n "$ac_tool_prefix"; then
2614 for ac_prog in cl.exe
2616 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2617 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2618 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2620 if test "${ac_cv_prog_CC+set}" = set; then
2621 echo $ECHO_N "(cached) $ECHO_C" >&6
2623 if test -n "$CC"; then
2624 ac_cv_prog_CC="$CC" # Let the user override the test.
2626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630 test -z "$as_dir" && as_dir=.
2631 for ac_exec_ext in '' $ac_executable_extensions; do
2632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2633 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2644 if test -n "$CC"; then
2645 { echo "$as_me:$LINENO: result: $CC" >&5
2646 echo "${ECHO_T}$CC" >&6; }
2648 { echo "$as_me:$LINENO: result: no" >&5
2649 echo "${ECHO_T}no" >&6; }
2653 test -n "$CC" && break
2656 if test -z "$CC"; then
2658 for ac_prog in cl.exe
2660 # Extract the first word of "$ac_prog", so it can be a program name with args.
2661 set dummy $ac_prog; ac_word=$2
2662 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2664 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2665 echo $ECHO_N "(cached) $ECHO_C" >&6
2667 if test -n "$ac_ct_CC"; then
2668 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674 test -z "$as_dir" && as_dir=.
2675 for ac_exec_ext in '' $ac_executable_extensions; do
2676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2677 ac_cv_prog_ac_ct_CC="$ac_prog"
2678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2687 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2688 if test -n "$ac_ct_CC"; then
2689 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2690 echo "${ECHO_T}$ac_ct_CC" >&6; }
2692 { echo "$as_me:$LINENO: result: no" >&5
2693 echo "${ECHO_T}no" >&6; }
2697 test -n "$ac_ct_CC" && break
2700 if test "x$ac_ct_CC" = x; then
2703 case $cross_compiling:$ac_tool_warned in
2705 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2706 whose name does not start with the host triplet. If you think this
2707 configuration is useful to you, please write to autoconf@gnu.org." >&5
2708 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2709 whose name does not start with the host triplet. If you think this
2710 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2711 ac_tool_warned=yes ;;
2720 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2721 See \`config.log' for more details." >&5
2722 echo "$as_me: error: no acceptable C compiler found in \$PATH
2723 See \`config.log' for more details." >&2;}
2724 { (exit 1); exit 1; }; }
2726 # Provide some information about the compiler.
2727 echo "$as_me:$LINENO: checking for C compiler version" >&5
2728 ac_compiler=`set X $ac_compile; echo $2`
2729 { (ac_try="$ac_compiler --version >&5"
2731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2732 *) ac_try_echo=$ac_try;;
2734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2735 (eval "$ac_compiler --version >&5") 2>&5
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); }
2739 { (ac_try="$ac_compiler -v >&5"
2741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2742 *) ac_try_echo=$ac_try;;
2744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2745 (eval "$ac_compiler -v >&5") 2>&5
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); }
2749 { (ac_try="$ac_compiler -V >&5"
2751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2752 *) ac_try_echo=$ac_try;;
2754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2755 (eval "$ac_compiler -V >&5") 2>&5
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); }
2760 cat >conftest.$ac_ext <<_ACEOF
2763 cat confdefs.h >>conftest.$ac_ext
2764 cat >>conftest.$ac_ext <<_ACEOF
2765 /* end confdefs.h. */
2775 ac_clean_files_save=$ac_clean_files
2776 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2777 # Try to create an executable without -o first, disregard a.out.
2778 # It will help us diagnose broken compilers, and finding out an intuition
2780 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2781 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2782 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2784 # List of possible output files, starting from the most likely.
2785 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2786 # only as a last resort. b.out is created by i960 compilers.
2787 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2789 # The IRIX 6 linker writes into existing files which may not be
2790 # executable, retaining their permissions. Remove them first so a
2791 # subsequent execution test works.
2793 for ac_file in $ac_files
2796 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2797 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2802 if { (ac_try="$ac_link_default"
2804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2805 *) ac_try_echo=$ac_try;;
2807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2808 (eval "$ac_link_default") 2>&5
2810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811 (exit $ac_status); }; then
2812 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2813 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2814 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2815 # so that the user can short-circuit this test for compilers unknown to
2817 for ac_file in $ac_files ''
2819 test -f "$ac_file" || continue
2821 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2824 # We found the default executable, but exeext='' is most
2828 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2830 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2832 # We set ac_cv_exeext here because the later test for it is not
2833 # safe: cross compilers may not add the suffix if given an `-o'
2834 # argument, so we may need to know it at that point already.
2835 # Even if this section looks crufty: it has the advantage of
2842 test "$ac_cv_exeext" = no && ac_cv_exeext=
2848 { echo "$as_me:$LINENO: result: $ac_file" >&5
2849 echo "${ECHO_T}$ac_file" >&6; }
2850 if test -z "$ac_file"; then
2851 echo "$as_me: failed program was:" >&5
2852 sed 's/^/| /' conftest.$ac_ext >&5
2854 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2855 See \`config.log' for more details." >&5
2856 echo "$as_me: error: C compiler cannot create executables
2857 See \`config.log' for more details." >&2;}
2858 { (exit 77); exit 77; }; }
2861 ac_exeext=$ac_cv_exeext
2863 # Check that the compiler produces executables we can run. If not, either
2864 # the compiler is broken, or we cross compile.
2865 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2866 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2867 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2868 # If not cross compiling, check that we can run a simple program.
2869 if test "$cross_compiling" != yes; then
2870 if { ac_try='./$ac_file'
2871 { (case "(($ac_try" in
2872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2873 *) ac_try_echo=$ac_try;;
2875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2876 (eval "$ac_try") 2>&5
2878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879 (exit $ac_status); }; }; then
2882 if test "$cross_compiling" = maybe; then
2885 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2886 If you meant to cross compile, use \`--host'.
2887 See \`config.log' for more details." >&5
2888 echo "$as_me: error: cannot run C compiled programs.
2889 If you meant to cross compile, use \`--host'.
2890 See \`config.log' for more details." >&2;}
2891 { (exit 1); exit 1; }; }
2895 { echo "$as_me:$LINENO: result: yes" >&5
2896 echo "${ECHO_T}yes" >&6; }
2898 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2899 ac_clean_files=$ac_clean_files_save
2900 # Check that the compiler produces executables we can run. If not, either
2901 # the compiler is broken, or we cross compile.
2902 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2903 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2904 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2905 echo "${ECHO_T}$cross_compiling" >&6; }
2907 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2908 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2909 if { (ac_try="$ac_link"
2911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2912 *) ac_try_echo=$ac_try;;
2914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2915 (eval "$ac_link") 2>&5
2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); }; then
2919 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2920 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2921 # work properly (i.e., refer to `conftest.exe'), while it won't with
2923 for ac_file in conftest.exe conftest conftest.*; do
2924 test -f "$ac_file" || continue
2926 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2927 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2933 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2934 See \`config.log' for more details." >&5
2935 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2936 See \`config.log' for more details." >&2;}
2937 { (exit 1); exit 1; }; }
2940 rm -f conftest$ac_cv_exeext
2941 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2942 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2944 rm -f conftest.$ac_ext
2945 EXEEXT=$ac_cv_exeext
2947 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2948 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2949 if test "${ac_cv_objext+set}" = set; then
2950 echo $ECHO_N "(cached) $ECHO_C" >&6
2952 cat >conftest.$ac_ext <<_ACEOF
2955 cat confdefs.h >>conftest.$ac_ext
2956 cat >>conftest.$ac_ext <<_ACEOF
2957 /* end confdefs.h. */
2967 rm -f conftest.o conftest.obj
2968 if { (ac_try="$ac_compile"
2970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2971 *) ac_try_echo=$ac_try;;
2973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2974 (eval "$ac_compile") 2>&5
2976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977 (exit $ac_status); }; then
2978 for ac_file in conftest.o conftest.obj conftest.*; do
2979 test -f "$ac_file" || continue;
2981 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2982 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2987 echo "$as_me: failed program was:" >&5
2988 sed 's/^/| /' conftest.$ac_ext >&5
2990 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2991 See \`config.log' for more details." >&5
2992 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2993 See \`config.log' for more details." >&2;}
2994 { (exit 1); exit 1; }; }
2997 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2999 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3000 echo "${ECHO_T}$ac_cv_objext" >&6; }
3001 OBJEXT=$ac_cv_objext
3003 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3004 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3005 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3006 echo $ECHO_N "(cached) $ECHO_C" >&6
3008 cat >conftest.$ac_ext <<_ACEOF
3011 cat confdefs.h >>conftest.$ac_ext
3012 cat >>conftest.$ac_ext <<_ACEOF
3013 /* end confdefs.h. */
3026 rm -f conftest.$ac_objext
3027 if { (ac_try="$ac_compile"
3029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3030 *) ac_try_echo=$ac_try;;
3032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3033 (eval "$ac_compile") 2>conftest.er1
3035 grep -v '^ *+' conftest.er1 >conftest.err
3037 cat conftest.err >&5
3038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039 (exit $ac_status); } && {
3040 test -z "$ac_c_werror_flag" ||
3041 test ! -s conftest.err
3042 } && test -s conftest.$ac_objext; then
3045 echo "$as_me: failed program was:" >&5
3046 sed 's/^/| /' conftest.$ac_ext >&5
3051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3052 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3055 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3056 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3057 GCC=`test $ac_compiler_gnu = yes && echo yes`
3058 ac_test_CFLAGS=${CFLAGS+set}
3059 ac_save_CFLAGS=$CFLAGS
3060 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3061 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3062 if test "${ac_cv_prog_cc_g+set}" = set; then
3063 echo $ECHO_N "(cached) $ECHO_C" >&6
3065 ac_save_c_werror_flag=$ac_c_werror_flag
3066 ac_c_werror_flag=yes
3069 cat >conftest.$ac_ext <<_ACEOF
3072 cat confdefs.h >>conftest.$ac_ext
3073 cat >>conftest.$ac_ext <<_ACEOF
3074 /* end confdefs.h. */
3084 rm -f conftest.$ac_objext
3085 if { (ac_try="$ac_compile"
3087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3088 *) ac_try_echo=$ac_try;;
3090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3091 (eval "$ac_compile") 2>conftest.er1
3093 grep -v '^ *+' conftest.er1 >conftest.err
3095 cat conftest.err >&5
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); } && {
3098 test -z "$ac_c_werror_flag" ||
3099 test ! -s conftest.err
3100 } && test -s conftest.$ac_objext; then
3103 echo "$as_me: failed program was:" >&5
3104 sed 's/^/| /' conftest.$ac_ext >&5
3107 cat >conftest.$ac_ext <<_ACEOF
3110 cat confdefs.h >>conftest.$ac_ext
3111 cat >>conftest.$ac_ext <<_ACEOF
3112 /* end confdefs.h. */
3122 rm -f conftest.$ac_objext
3123 if { (ac_try="$ac_compile"
3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129 (eval "$ac_compile") 2>conftest.er1
3131 grep -v '^ *+' conftest.er1 >conftest.err
3133 cat conftest.err >&5
3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); } && {
3136 test -z "$ac_c_werror_flag" ||
3137 test ! -s conftest.err
3138 } && test -s conftest.$ac_objext; then
3141 echo "$as_me: failed program was:" >&5
3142 sed 's/^/| /' conftest.$ac_ext >&5
3144 ac_c_werror_flag=$ac_save_c_werror_flag
3146 cat >conftest.$ac_ext <<_ACEOF
3149 cat confdefs.h >>conftest.$ac_ext
3150 cat >>conftest.$ac_ext <<_ACEOF
3151 /* end confdefs.h. */
3161 rm -f conftest.$ac_objext
3162 if { (ac_try="$ac_compile"
3164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3165 *) ac_try_echo=$ac_try;;
3167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3168 (eval "$ac_compile") 2>conftest.er1
3170 grep -v '^ *+' conftest.er1 >conftest.err
3172 cat conftest.err >&5
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); } && {
3175 test -z "$ac_c_werror_flag" ||
3176 test ! -s conftest.err
3177 } && test -s conftest.$ac_objext; then
3180 echo "$as_me: failed program was:" >&5
3181 sed 's/^/| /' conftest.$ac_ext >&5
3186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3193 ac_c_werror_flag=$ac_save_c_werror_flag
3195 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3196 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3197 if test "$ac_test_CFLAGS" = set; then
3198 CFLAGS=$ac_save_CFLAGS
3199 elif test $ac_cv_prog_cc_g = yes; then
3200 if test "$GCC" = yes; then
3206 if test "$GCC" = yes; then
3212 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3213 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3214 if test "${ac_cv_prog_cc_c89+set}" = set; then
3215 echo $ECHO_N "(cached) $ECHO_C" >&6
3217 ac_cv_prog_cc_c89=no
3219 cat >conftest.$ac_ext <<_ACEOF
3222 cat confdefs.h >>conftest.$ac_ext
3223 cat >>conftest.$ac_ext <<_ACEOF
3224 /* end confdefs.h. */
3227 #include <sys/types.h>
3228 #include <sys/stat.h>
3229 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3230 struct buf { int x; };
3231 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3232 static char *e (p, i)
3238 static char *f (char * (*g) (char **, int), char **p, ...)
3243 s = g (p, va_arg (v,int));
3248 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3249 function prototypes and stuff, but not '\xHH' hex character constants.
3250 These don't provoke an error unfortunately, instead are silently treated
3251 as 'x'. The following induces an error, until -std is added to get
3252 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3253 array size at least. It's necessary to write '\x00'==0 to get something
3254 that's true only with -std. */
3255 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3257 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3258 inside strings and character constants. */
3260 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3262 int test (int i, double x);
3263 struct s1 {int (*f) (int a);};
3264 struct s2 {int (*f) (double a);};
3265 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3271 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3276 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3277 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3279 CC="$ac_save_CC $ac_arg"
3280 rm -f conftest.$ac_objext
3281 if { (ac_try="$ac_compile"
3283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3284 *) ac_try_echo=$ac_try;;
3286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3287 (eval "$ac_compile") 2>conftest.er1
3289 grep -v '^ *+' conftest.er1 >conftest.err
3291 cat conftest.err >&5
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); } && {
3294 test -z "$ac_c_werror_flag" ||
3295 test ! -s conftest.err
3296 } && test -s conftest.$ac_objext; then
3297 ac_cv_prog_cc_c89=$ac_arg
3299 echo "$as_me: failed program was:" >&5
3300 sed 's/^/| /' conftest.$ac_ext >&5
3305 rm -f core conftest.err conftest.$ac_objext
3306 test "x$ac_cv_prog_cc_c89" != "xno" && break
3308 rm -f conftest.$ac_ext
3313 case "x$ac_cv_prog_cc_c89" in
3315 { echo "$as_me:$LINENO: result: none needed" >&5
3316 echo "${ECHO_T}none needed" >&6; } ;;
3318 { echo "$as_me:$LINENO: result: unsupported" >&5
3319 echo "${ECHO_T}unsupported" >&6; } ;;
3321 CC="$CC $ac_cv_prog_cc_c89"
3322 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3323 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3328 ac_cpp='$CPP $CPPFLAGS'
3329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3332 DEPDIR="${am__leading_dot}deps"
3334 ac_config_commands="$ac_config_commands depfiles"
3337 am_make=${MAKE-make}
3338 cat > confinc << 'END'
3343 # If we don't find an include directive, just comment out the code.
3344 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3345 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3349 # First try GNU make style include.
3350 echo "include confinc" > confmf
3351 # We grep out `Entering directory' and `Leaving directory'
3352 # messages which can occur if `w' ends up in MAKEFLAGS.
3353 # In particular we don't look at `^make:' because GNU make might
3354 # be invoked under some other name (usually "gmake"), in which
3355 # case it prints its new name instead of `make'.
3356 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3361 # Now try BSD make style include.
3362 if test "$am__include" = "#"; then
3363 echo '.include "confinc"' > confmf
3364 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3365 am__include=.include
3372 { echo "$as_me:$LINENO: result: $_am_result" >&5
3373 echo "${ECHO_T}$_am_result" >&6; }
3374 rm -f confinc confmf
3376 # Check whether --enable-dependency-tracking was given.
3377 if test "${enable_dependency_tracking+set}" = set; then
3378 enableval=$enable_dependency_tracking;
3381 if test "x$enable_dependency_tracking" != xno; then
3382 am_depcomp="$ac_aux_dir/depcomp"
3385 if test "x$enable_dependency_tracking" != xno; then
3395 depcc="$CC" am_compiler_list=
3397 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3398 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3399 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3400 echo $ECHO_N "(cached) $ECHO_C" >&6
3402 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3403 # We make a subdir and do the tests there. Otherwise we can end up
3404 # making bogus files that we don't know about and never remove. For
3405 # instance it was reported that on HP-UX the gcc test will end up
3406 # making a dummy file named `D' -- because `-MD' means `put the output
3409 # Copy depcomp to subdir because otherwise we won't find it if we're
3410 # using a relative directory.
3411 cp "$am_depcomp" conftest.dir
3413 # We will build objects and dependencies in a subdirectory because
3414 # it helps to detect inapplicable dependency modes. For instance
3415 # both Tru64's cc and ICC support -MD to output dependencies as a
3416 # side effect of compilation, but ICC will put the dependencies in
3417 # the current directory while Tru64 will put them in the object
3421 am_cv_CC_dependencies_compiler_type=none
3422 if test "$am_compiler_list" = ""; then
3423 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3425 for depmode in $am_compiler_list; do
3426 # Setup a source with many dependencies, because some compilers
3427 # like to wrap large dependency lists on column 80 (with \), and
3428 # we should not choose a depcomp mode which is confused by this.
3430 # We need to recreate these files for each test, as the compiler may
3431 # overwrite some of them when testing with obscure command lines.
3432 # This happens at least with the AIX C compiler.
3434 for i in 1 2 3 4 5 6; do
3435 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3436 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3437 # Solaris 8's {/usr,}/bin/sh.
3438 touch sub/conftst$i.h
3440 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3444 # after this tag, mechanisms are not by side-effect, so they'll
3445 # only be used when explicitly requested
3446 if test "x$enable_dependency_tracking" = xyes; then
3454 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3455 # mode. It turns out that the SunPro C++ compiler does not properly
3456 # handle `-M -o', and we need to detect this.
3457 if depmode=$depmode \
3458 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3459 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3460 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3461 >/dev/null 2>conftest.err &&
3462 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3463 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3464 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3465 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3466 # icc doesn't choke on unknown options, it will just issue warnings
3467 # or remarks (even with -Werror). So we grep stderr for any message
3468 # that says an option was ignored or not supported.
3469 # When given -MP, icc 7.0 and 7.1 complain thusly:
3470 # icc: Command line warning: ignoring option '-M'; no argument required
3471 # The diagnosis changed in icc 8.0:
3472 # icc: Command line remark: option '-MP' not supported
3473 if (grep 'ignoring option' conftest.err ||
3474 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3475 am_cv_CC_dependencies_compiler_type=$depmode
3484 am_cv_CC_dependencies_compiler_type=none
3488 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3489 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3490 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3493 test "x$enable_dependency_tracking" != xno \
3494 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3496 am__fastdepCC_FALSE='#'
3498 am__fastdepCC_TRUE='#'
3499 am__fastdepCC_FALSE=
3503 # Check whether --enable-shared was given.
3504 if test "${enable_shared+set}" = set; then
3505 enableval=$enable_shared; p=${PACKAGE-default}
3507 yes) enable_shared=yes ;;
3508 no) enable_shared=no ;;
3511 # Look at the argument we got. We use all the common list separators.
3512 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3513 for pkg in $enableval; do
3515 if test "X$pkg" = "X$p"; then
3527 # Check whether --enable-static was given.
3528 if test "${enable_static+set}" = set; then
3529 enableval=$enable_static; p=${PACKAGE-default}
3531 yes) enable_static=yes ;;
3532 no) enable_static=no ;;
3535 # Look at the argument we got. We use all the common list separators.
3536 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3537 for pkg in $enableval; do
3539 if test "X$pkg" = "X$p"; then
3551 # Check whether --enable-fast-install was given.
3552 if test "${enable_fast_install+set}" = set; then
3553 enableval=$enable_fast_install; p=${PACKAGE-default}
3555 yes) enable_fast_install=yes ;;
3556 no) enable_fast_install=no ;;
3558 enable_fast_install=no
3559 # Look at the argument we got. We use all the common list separators.
3560 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3561 for pkg in $enableval; do
3563 if test "X$pkg" = "X$p"; then
3564 enable_fast_install=yes
3571 enable_fast_install=yes
3575 # Make sure we can run config.sub.
3576 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3577 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3578 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3579 { (exit 1); exit 1; }; }
3581 { echo "$as_me:$LINENO: checking build system type" >&5
3582 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3583 if test "${ac_cv_build+set}" = set; then
3584 echo $ECHO_N "(cached) $ECHO_C" >&6
3586 ac_build_alias=$build_alias
3587 test "x$ac_build_alias" = x &&
3588 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3589 test "x$ac_build_alias" = x &&
3590 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3591 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3592 { (exit 1); exit 1; }; }
3593 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3594 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3595 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3596 { (exit 1); exit 1; }; }
3599 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3600 echo "${ECHO_T}$ac_cv_build" >&6; }
3601 case $ac_cv_build in
3603 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3604 echo "$as_me: error: invalid value of canonical build" >&2;}
3605 { (exit 1); exit 1; }; };;
3608 ac_save_IFS=$IFS; IFS='-'
3614 # Remember, the first character of IFS is used to create $*,
3615 # except with old shells:
3618 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3621 { echo "$as_me:$LINENO: checking host system type" >&5
3622 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3623 if test "${ac_cv_host+set}" = set; then
3624 echo $ECHO_N "(cached) $ECHO_C" >&6
3626 if test "x$host_alias" = x; then
3627 ac_cv_host=$ac_cv_build
3629 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3630 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3631 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3632 { (exit 1); exit 1; }; }
3636 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3637 echo "${ECHO_T}$ac_cv_host" >&6; }
3640 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3641 echo "$as_me: error: invalid value of canonical host" >&2;}
3642 { (exit 1); exit 1; }; };;
3645 ac_save_IFS=$IFS; IFS='-'
3651 # Remember, the first character of IFS is used to create $*,
3652 # except with old shells:
3655 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3658 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3659 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3660 if test "${lt_cv_path_SED+set}" = set; then
3661 echo $ECHO_N "(cached) $ECHO_C" >&6
3663 # Loop through the user's path and test for sed and gsed.
3664 # Then use that list of sed's as ones to test for truncation.
3665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3669 test -z "$as_dir" && as_dir=.
3670 for lt_ac_prog in sed gsed; do
3671 for ac_exec_ext in '' $ac_executable_extensions; do
3672 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3673 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3681 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3682 # along with /bin/sed that truncates output.
3683 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3684 test ! -f $lt_ac_sed && continue
3685 cat /dev/null > conftest.in
3687 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3688 # Check for GNU sed and select it if it is found.
3689 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3690 lt_cv_path_SED=$lt_ac_sed
3694 cat conftest.in conftest.in >conftest.tmp
3695 mv conftest.tmp conftest.in
3696 cp conftest.in conftest.nl
3698 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3699 cmp -s conftest.out conftest.nl || break
3700 # 10000 chars as input seems more than enough
3701 test $lt_ac_count -gt 10 && break
3702 lt_ac_count=`expr $lt_ac_count + 1`
3703 if test $lt_ac_count -gt $lt_ac_max; then
3704 lt_ac_max=$lt_ac_count
3705 lt_cv_path_SED=$lt_ac_sed
3714 { echo "$as_me:$LINENO: result: $SED" >&5
3715 echo "${ECHO_T}$SED" >&6; }
3717 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3718 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3719 if test "${ac_cv_path_GREP+set}" = set; then
3720 echo $ECHO_N "(cached) $ECHO_C" >&6
3722 # Extract the first word of "grep ggrep" to use in msg output
3723 if test -z "$GREP"; then
3724 set dummy grep ggrep; ac_prog_name=$2
3725 if test "${ac_cv_path_GREP+set}" = set; then
3726 echo $ECHO_N "(cached) $ECHO_C" >&6
3728 ac_path_GREP_found=false
3729 # Loop through the user's path and test for each of PROGNAME-LIST
3730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3731 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3734 test -z "$as_dir" && as_dir=.
3735 for ac_prog in grep ggrep; do
3736 for ac_exec_ext in '' $ac_executable_extensions; do
3737 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3738 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3739 # Check for GNU ac_path_GREP and select it if it is found.
3740 # Check for GNU $ac_path_GREP
3741 case `"$ac_path_GREP" --version 2>&1` in
3743 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3746 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3749 cat "conftest.in" "conftest.in" >"conftest.tmp"
3750 mv "conftest.tmp" "conftest.in"
3751 cp "conftest.in" "conftest.nl"
3752 echo 'GREP' >> "conftest.nl"
3753 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3754 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3755 ac_count=`expr $ac_count + 1`
3756 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3757 # Best one so far, save it but keep looking for a better one
3758 ac_cv_path_GREP="$ac_path_GREP"
3759 ac_path_GREP_max=$ac_count
3761 # 10*(2^10) chars as input seems more than enough
3762 test $ac_count -gt 10 && break
3764 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3768 $ac_path_GREP_found && break 3
3778 GREP="$ac_cv_path_GREP"
3779 if test -z "$GREP"; then
3780 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3781 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3782 { (exit 1); exit 1; }; }
3786 ac_cv_path_GREP=$GREP
3791 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3792 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3793 GREP="$ac_cv_path_GREP"
3796 { echo "$as_me:$LINENO: checking for egrep" >&5
3797 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3798 if test "${ac_cv_path_EGREP+set}" = set; then
3799 echo $ECHO_N "(cached) $ECHO_C" >&6
3801 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3802 then ac_cv_path_EGREP="$GREP -E"
3804 # Extract the first word of "egrep" to use in msg output
3805 if test -z "$EGREP"; then
3806 set dummy egrep; ac_prog_name=$2
3807 if test "${ac_cv_path_EGREP+set}" = set; then
3808 echo $ECHO_N "(cached) $ECHO_C" >&6
3810 ac_path_EGREP_found=false
3811 # Loop through the user's path and test for each of PROGNAME-LIST
3812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3813 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3816 test -z "$as_dir" && as_dir=.
3817 for ac_prog in egrep; do
3818 for ac_exec_ext in '' $ac_executable_extensions; do
3819 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3820 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3821 # Check for GNU ac_path_EGREP and select it if it is found.
3822 # Check for GNU $ac_path_EGREP
3823 case `"$ac_path_EGREP" --version 2>&1` in
3825 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3828 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3831 cat "conftest.in" "conftest.in" >"conftest.tmp"
3832 mv "conftest.tmp" "conftest.in"
3833 cp "conftest.in" "conftest.nl"
3834 echo 'EGREP' >> "conftest.nl"
3835 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3836 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3837 ac_count=`expr $ac_count + 1`
3838 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3839 # Best one so far, save it but keep looking for a better one
3840 ac_cv_path_EGREP="$ac_path_EGREP"
3841 ac_path_EGREP_max=$ac_count
3843 # 10*(2^10) chars as input seems more than enough
3844 test $ac_count -gt 10 && break
3846 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3850 $ac_path_EGREP_found && break 3
3860 EGREP="$ac_cv_path_EGREP"
3861 if test -z "$EGREP"; then
3862 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3863 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3864 { (exit 1); exit 1; }; }
3868 ac_cv_path_EGREP=$EGREP
3874 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3875 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3876 EGREP="$ac_cv_path_EGREP"
3880 # Check whether --with-gnu-ld was given.
3881 if test "${with_gnu_ld+set}" = set; then
3882 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3888 if test "$GCC" = yes; then
3889 # Check if gcc -print-prog-name=ld gives a path.
3890 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3891 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3894 # gcc leaves a trailing carriage return which upsets mingw
3895 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3897 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3900 # Accept absolute paths.
3902 re_direlt='/[^/][^/]*/\.\./'
3903 # Canonicalize the pathname of ld
3904 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3905 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3906 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3908 test -z "$LD" && LD="$ac_prog"
3911 # If it fails, then pretend we aren't using GCC.
3915 # If it is relative, then search for the first ld in PATH.
3919 elif test "$with_gnu_ld" = yes; then
3920 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3921 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3923 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3924 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3926 if test "${lt_cv_path_LD+set}" = set; then
3927 echo $ECHO_N "(cached) $ECHO_C" >&6
3929 if test -z "$LD"; then
3930 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3931 for ac_dir in $PATH; do
3933 test -z "$ac_dir" && ac_dir=.
3934 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3935 lt_cv_path_LD="$ac_dir/$ac_prog"
3936 # Check to see if the program is GNU ld. I'd rather use --version,
3937 # but apparently some variants of GNU ld only accept -v.
3938 # Break only if it was the GNU/non-GNU ld that we prefer.
3939 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3940 *GNU* | *'with BFD'*)
3941 test "$with_gnu_ld" != no && break
3944 test "$with_gnu_ld" != yes && break
3951 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3956 if test -n "$LD"; then
3957 { echo "$as_me:$LINENO: result: $LD" >&5
3958 echo "${ECHO_T}$LD" >&6; }
3960 { echo "$as_me:$LINENO: result: no" >&5
3961 echo "${ECHO_T}no" >&6; }
3963 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3964 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3965 { (exit 1); exit 1; }; }
3966 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3967 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3968 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3969 echo $ECHO_N "(cached) $ECHO_C" >&6
3971 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3972 case `$LD -v 2>&1 </dev/null` in
3973 *GNU* | *'with BFD'*)
3974 lt_cv_prog_gnu_ld=yes
3977 lt_cv_prog_gnu_ld=no
3981 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3982 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
3983 with_gnu_ld=$lt_cv_prog_gnu_ld
3986 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3987 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
3988 if test "${lt_cv_ld_reload_flag+set}" = set; then
3989 echo $ECHO_N "(cached) $ECHO_C" >&6
3991 lt_cv_ld_reload_flag='-r'
3993 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3994 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
3995 reload_flag=$lt_cv_ld_reload_flag
3996 case $reload_flag in
3998 *) reload_flag=" $reload_flag" ;;
4000 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4003 if test "$GCC" = yes; then
4004 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4006 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4011 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4012 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4013 if test "${lt_cv_path_NM+set}" = set; then
4014 echo $ECHO_N "(cached) $ECHO_C" >&6
4016 if test -n "$NM"; then
4017 # Let the user override the test.
4020 lt_nm_to_check="${ac_tool_prefix}nm"
4021 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4022 lt_nm_to_check="$lt_nm_to_check nm"
4024 for lt_tmp_nm in $lt_nm_to_check; do
4025 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4026 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4028 test -z "$ac_dir" && ac_dir=.
4029 tmp_nm="$ac_dir/$lt_tmp_nm"
4030 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4031 # Check to see if the nm accepts a BSD-compat flag.
4032 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4033 # nm: unknown option "B" ignored
4034 # Tru64's nm complains that /dev/null is an invalid object file
4035 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4036 */dev/null* | *'Invalid file or object type'*)
4037 lt_cv_path_NM="$tmp_nm -B"
4041 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4043 lt_cv_path_NM="$tmp_nm -p"
4047 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4048 continue # so that we can try to find one that supports BSD flags
4057 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4060 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4061 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4064 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4065 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4067 if test "$LN_S" = "ln -s"; then
4068 { echo "$as_me:$LINENO: result: yes" >&5
4069 echo "${ECHO_T}yes" >&6; }
4071 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4072 echo "${ECHO_T}no, using $LN_S" >&6; }
4075 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4076 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4077 if test "${lt_cv_deplibs_check_method+set}" = set; then
4078 echo $ECHO_N "(cached) $ECHO_C" >&6
4080 lt_cv_file_magic_cmd='$MAGIC_CMD'
4081 lt_cv_file_magic_test_file=
4082 lt_cv_deplibs_check_method='unknown'
4083 # Need to set the preceding variable on all platforms that support
4084 # interlibrary dependencies.
4085 # 'none' -- dependencies not supported.
4086 # `unknown' -- same as none, but documents that we really don't know.
4087 # 'pass_all' -- all dependencies passed with no checks.
4088 # 'test_compile' -- check by making test program.
4089 # 'file_magic [[regex]]' -- check by looking for files in library path
4090 # which responds to the $file_magic_cmd with a given extended regex.
4091 # If you have `file' or equivalent on your system and you're not sure
4092 # whether `pass_all' will *always* work, you probably want this one.
4096 lt_cv_deplibs_check_method=pass_all
4100 lt_cv_deplibs_check_method=pass_all
4104 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4105 lt_cv_file_magic_cmd='/usr/bin/file -L'
4106 lt_cv_file_magic_test_file=/shlib/libc.so
4110 # func_win32_libid is a shell function defined in ltmain.sh
4111 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4112 lt_cv_file_magic_cmd='func_win32_libid'
4116 # Base MSYS/MinGW do not provide the 'file' command needed by
4117 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4118 # unless we find 'file', for example because we are cross-compiling.
4119 if ( file / ) >/dev/null 2>&1; then
4120 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4121 lt_cv_file_magic_cmd='func_win32_libid'
4123 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4124 lt_cv_file_magic_cmd='$OBJDUMP -f'
4128 darwin* | rhapsody*)
4129 lt_cv_deplibs_check_method=pass_all
4132 freebsd* | dragonfly*)
4133 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4136 # Not sure whether the presence of OpenBSD here was a mistake.
4137 # Let's accept both of them until this is cleared up.
4138 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4139 lt_cv_file_magic_cmd=/usr/bin/file
4140 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4144 lt_cv_deplibs_check_method=pass_all
4149 lt_cv_deplibs_check_method=pass_all
4152 hpux10.20* | hpux11*)
4153 lt_cv_file_magic_cmd=/usr/bin/file
4156 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4157 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4160 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]'
4161 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4164 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4165 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4171 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4172 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4175 irix5* | irix6* | nonstopux*)
4177 *-32|*"-32 ") libmagic=32-bit;;
4178 *-n32|*"-n32 ") libmagic=N32;;
4179 *-64|*"-64 ") libmagic=64-bit;;
4180 *) libmagic=never-match;;
4182 lt_cv_deplibs_check_method=pass_all
4185 # This must be Linux ELF.
4186 linux* | k*bsd*-gnu)
4187 lt_cv_deplibs_check_method=pass_all
4190 netbsd* | netbsdelf*-gnu)
4191 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4192 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4194 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4199 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4200 lt_cv_file_magic_cmd=/usr/bin/file
4201 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4205 lt_cv_deplibs_check_method=unknown
4209 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4210 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4212 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4216 osf3* | osf4* | osf5*)
4217 lt_cv_deplibs_check_method=pass_all
4221 lt_cv_deplibs_check_method=pass_all
4225 lt_cv_deplibs_check_method=pass_all
4229 case $host_vendor in
4231 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]'
4232 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4235 lt_cv_deplibs_check_method=pass_all
4238 lt_cv_file_magic_cmd='/bin/file'
4239 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4242 lt_cv_file_magic_cmd='/bin/file'
4243 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4244 lt_cv_file_magic_test_file=/lib/libc.so
4247 lt_cv_deplibs_check_method=pass_all
4250 lt_cv_deplibs_check_method=pass_all
4255 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4256 lt_cv_deplibs_check_method=pass_all
4261 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4262 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4263 file_magic_cmd=$lt_cv_file_magic_cmd
4264 deplibs_check_method=$lt_cv_deplibs_check_method
4265 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4270 # If no C compiler was specified, use CC.
4273 # If no C compiler flags were specified, use CFLAGS.
4274 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4276 # Allow CC to be a program name with arguments.
4280 # Check whether --enable-libtool-lock was given.
4281 if test "${enable_libtool_lock+set}" = set; then
4282 enableval=$enable_libtool_lock;
4285 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4287 # Some flags need to be propagated to the compiler or linker for good
4291 # Find out which ABI we are using.
4292 echo 'int i;' > conftest.$ac_ext
4293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4294 (eval $ac_compile) 2>&5
4296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297 (exit $ac_status); }; then
4298 case `/usr/bin/file conftest.$ac_objext` in
4310 # Find out which ABI we are using.
4311 echo '#line 4311 "configure"' > conftest.$ac_ext
4312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4313 (eval $ac_compile) 2>&5
4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316 (exit $ac_status); }; then
4317 if test "$lt_cv_prog_gnu_ld" = yes; then
4318 case `/usr/bin/file conftest.$ac_objext` in
4320 LD="${LD-ld} -melf32bsmip"
4323 LD="${LD-ld} -melf32bmipn32"
4326 LD="${LD-ld} -melf64bmip"
4330 case `/usr/bin/file conftest.$ac_objext` in
4346 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4347 s390*-*linux*|sparc*-*linux*)
4348 # Find out which ABI we are using.
4349 echo 'int i;' > conftest.$ac_ext
4350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4351 (eval $ac_compile) 2>&5
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); }; then
4355 case `/usr/bin/file conftest.o` in
4358 x86_64-*kfreebsd*-gnu)
4359 LD="${LD-ld} -m elf_i386_fbsd"
4362 LD="${LD-ld} -m elf_i386"
4364 ppc64-*linux*|powerpc64-*linux*)
4365 LD="${LD-ld} -m elf32ppclinux"
4368 LD="${LD-ld} -m elf_s390"
4371 LD="${LD-ld} -m elf32_sparc"
4377 x86_64-*kfreebsd*-gnu)
4378 LD="${LD-ld} -m elf_x86_64_fbsd"
4381 LD="${LD-ld} -m elf_x86_64"
4383 ppc*-*linux*|powerpc*-*linux*)
4384 LD="${LD-ld} -m elf64ppc"
4387 LD="${LD-ld} -m elf64_s390"
4390 LD="${LD-ld} -m elf64_sparc"
4400 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4401 SAVE_CFLAGS="$CFLAGS"
4402 CFLAGS="$CFLAGS -belf"
4403 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4404 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4405 if test "${lt_cv_cc_needs_belf+set}" = set; then
4406 echo $ECHO_N "(cached) $ECHO_C" >&6
4409 ac_cpp='$CPP $CPPFLAGS'
4410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4414 cat >conftest.$ac_ext <<_ACEOF
4417 cat confdefs.h >>conftest.$ac_ext
4418 cat >>conftest.$ac_ext <<_ACEOF
4419 /* end confdefs.h. */
4429 rm -f conftest.$ac_objext conftest$ac_exeext
4430 if { (ac_try="$ac_link"
4432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4433 *) ac_try_echo=$ac_try;;
4435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4436 (eval "$ac_link") 2>conftest.er1
4438 grep -v '^ *+' conftest.er1 >conftest.err
4440 cat conftest.err >&5
4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442 (exit $ac_status); } && {
4443 test -z "$ac_c_werror_flag" ||
4444 test ! -s conftest.err
4445 } && test -s conftest$ac_exeext &&
4446 $as_test_x conftest$ac_exeext; then
4447 lt_cv_cc_needs_belf=yes
4449 echo "$as_me: failed program was:" >&5
4450 sed 's/^/| /' conftest.$ac_ext >&5
4452 lt_cv_cc_needs_belf=no
4455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4456 conftest$ac_exeext conftest.$ac_ext
4458 ac_cpp='$CPP $CPPFLAGS'
4459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4464 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4465 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4466 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4467 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4468 CFLAGS="$SAVE_CFLAGS"
4472 # Find out which ABI we are using.
4473 echo 'int i;' > conftest.$ac_ext
4474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4475 (eval $ac_compile) 2>&5
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); }; then
4479 case `/usr/bin/file conftest.o` in
4481 case $lt_cv_prog_gnu_ld in
4482 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4483 *) LD="${LD-ld} -64" ;;
4494 need_locks="$enable_libtool_lock"
4498 ac_cpp='$CPP $CPPFLAGS'
4499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4502 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4503 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4504 # On Suns, sometimes $CPP names a directory.
4505 if test -n "$CPP" && test -d "$CPP"; then
4508 if test -z "$CPP"; then
4509 if test "${ac_cv_prog_CPP+set}" = set; then
4510 echo $ECHO_N "(cached) $ECHO_C" >&6
4512 # Double quotes because CPP needs to be expanded
4513 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4516 for ac_c_preproc_warn_flag in '' yes
4518 # Use a header file that comes with gcc, so configuring glibc
4519 # with a fresh cross-compiler works.
4520 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4521 # <limits.h> exists even on freestanding compilers.
4522 # On the NeXT, cc -E runs the code through the compiler's parser,
4523 # not just through cpp. "Syntax error" is here to catch this case.
4524 cat >conftest.$ac_ext <<_ACEOF
4527 cat confdefs.h >>conftest.$ac_ext
4528 cat >>conftest.$ac_ext <<_ACEOF
4529 /* end confdefs.h. */
4531 # include <limits.h>
4533 # include <assert.h>
4537 if { (ac_try="$ac_cpp conftest.$ac_ext"
4539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4540 *) ac_try_echo=$ac_try;;
4542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4543 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4545 grep -v '^ *+' conftest.er1 >conftest.err
4547 cat conftest.err >&5
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); } >/dev/null && {
4550 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4551 test ! -s conftest.err
4555 echo "$as_me: failed program was:" >&5
4556 sed 's/^/| /' conftest.$ac_ext >&5
4558 # Broken: fails on valid input.
4562 rm -f conftest.err conftest.$ac_ext
4564 # OK, works on sane cases. Now check whether nonexistent headers
4565 # can be detected and how.
4566 cat >conftest.$ac_ext <<_ACEOF
4569 cat confdefs.h >>conftest.$ac_ext
4570 cat >>conftest.$ac_ext <<_ACEOF
4571 /* end confdefs.h. */
4572 #include <ac_nonexistent.h>
4574 if { (ac_try="$ac_cpp conftest.$ac_ext"
4576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4577 *) ac_try_echo=$ac_try;;
4579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4580 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4582 grep -v '^ *+' conftest.er1 >conftest.err
4584 cat conftest.err >&5
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); } >/dev/null && {
4587 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4588 test ! -s conftest.err
4590 # Broken: success on invalid input.
4593 echo "$as_me: failed program was:" >&5
4594 sed 's/^/| /' conftest.$ac_ext >&5
4596 # Passes both tests.
4601 rm -f conftest.err conftest.$ac_ext
4604 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4605 rm -f conftest.err conftest.$ac_ext
4606 if $ac_preproc_ok; then
4618 { echo "$as_me:$LINENO: result: $CPP" >&5
4619 echo "${ECHO_T}$CPP" >&6; }
4621 for ac_c_preproc_warn_flag in '' yes
4623 # Use a header file that comes with gcc, so configuring glibc
4624 # with a fresh cross-compiler works.
4625 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4626 # <limits.h> exists even on freestanding compilers.
4627 # On the NeXT, cc -E runs the code through the compiler's parser,
4628 # not just through cpp. "Syntax error" is here to catch this case.
4629 cat >conftest.$ac_ext <<_ACEOF
4632 cat confdefs.h >>conftest.$ac_ext
4633 cat >>conftest.$ac_ext <<_ACEOF
4634 /* end confdefs.h. */
4636 # include <limits.h>
4638 # include <assert.h>
4642 if { (ac_try="$ac_cpp conftest.$ac_ext"
4644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4645 *) ac_try_echo=$ac_try;;
4647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4648 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4650 grep -v '^ *+' conftest.er1 >conftest.err
4652 cat conftest.err >&5
4653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654 (exit $ac_status); } >/dev/null && {
4655 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4656 test ! -s conftest.err
4660 echo "$as_me: failed program was:" >&5
4661 sed 's/^/| /' conftest.$ac_ext >&5
4663 # Broken: fails on valid input.
4667 rm -f conftest.err conftest.$ac_ext
4669 # OK, works on sane cases. Now check whether nonexistent headers
4670 # can be detected and how.
4671 cat >conftest.$ac_ext <<_ACEOF
4674 cat confdefs.h >>conftest.$ac_ext
4675 cat >>conftest.$ac_ext <<_ACEOF
4676 /* end confdefs.h. */
4677 #include <ac_nonexistent.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
4695 # Broken: success on invalid input.
4698 echo "$as_me: failed program was:" >&5
4699 sed 's/^/| /' conftest.$ac_ext >&5
4701 # Passes both tests.
4706 rm -f conftest.err conftest.$ac_ext
4709 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4710 rm -f conftest.err conftest.$ac_ext
4711 if $ac_preproc_ok; then
4714 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4715 See \`config.log' for more details." >&5
4716 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4717 See \`config.log' for more details." >&2;}
4718 { (exit 1); exit 1; }; }
4722 ac_cpp='$CPP $CPPFLAGS'
4723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4728 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4729 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4730 if test "${ac_cv_header_stdc+set}" = set; then
4731 echo $ECHO_N "(cached) $ECHO_C" >&6
4733 cat >conftest.$ac_ext <<_ACEOF
4736 cat confdefs.h >>conftest.$ac_ext
4737 cat >>conftest.$ac_ext <<_ACEOF
4738 /* end confdefs.h. */
4752 rm -f conftest.$ac_objext
4753 if { (ac_try="$ac_compile"
4755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4756 *) ac_try_echo=$ac_try;;
4758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4759 (eval "$ac_compile") 2>conftest.er1
4761 grep -v '^ *+' conftest.er1 >conftest.err
4763 cat conftest.err >&5
4764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765 (exit $ac_status); } && {
4766 test -z "$ac_c_werror_flag" ||
4767 test ! -s conftest.err
4768 } && test -s conftest.$ac_objext; then
4769 ac_cv_header_stdc=yes
4771 echo "$as_me: failed program was:" >&5
4772 sed 's/^/| /' conftest.$ac_ext >&5
4774 ac_cv_header_stdc=no
4777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4779 if test $ac_cv_header_stdc = yes; then
4780 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4781 cat >conftest.$ac_ext <<_ACEOF
4784 cat confdefs.h >>conftest.$ac_ext
4785 cat >>conftest.$ac_ext <<_ACEOF
4786 /* end confdefs.h. */
4790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4791 $EGREP "memchr" >/dev/null 2>&1; then
4794 ac_cv_header_stdc=no
4800 if test $ac_cv_header_stdc = yes; then
4801 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4802 cat >conftest.$ac_ext <<_ACEOF
4805 cat confdefs.h >>conftest.$ac_ext
4806 cat >>conftest.$ac_ext <<_ACEOF
4807 /* end confdefs.h. */
4811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4812 $EGREP "free" >/dev/null 2>&1; then
4815 ac_cv_header_stdc=no
4821 if test $ac_cv_header_stdc = yes; then
4822 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4823 if test "$cross_compiling" = yes; then
4826 cat >conftest.$ac_ext <<_ACEOF
4829 cat confdefs.h >>conftest.$ac_ext
4830 cat >>conftest.$ac_ext <<_ACEOF
4831 /* end confdefs.h. */
4834 #if ((' ' & 0x0FF) == 0x020)
4835 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4836 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4838 # define ISLOWER(c) \
4839 (('a' <= (c) && (c) <= 'i') \
4840 || ('j' <= (c) && (c) <= 'r') \
4841 || ('s' <= (c) && (c) <= 'z'))
4842 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4845 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4850 for (i = 0; i < 256; i++)
4851 if (XOR (islower (i), ISLOWER (i))
4852 || toupper (i) != TOUPPER (i))
4857 rm -f conftest$ac_exeext
4858 if { (ac_try="$ac_link"
4860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4861 *) ac_try_echo=$ac_try;;
4863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4864 (eval "$ac_link") 2>&5
4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4868 { (case "(($ac_try" in
4869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4870 *) ac_try_echo=$ac_try;;
4872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4873 (eval "$ac_try") 2>&5
4875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876 (exit $ac_status); }; }; then
4879 echo "$as_me: program exited with status $ac_status" >&5
4880 echo "$as_me: failed program was:" >&5
4881 sed 's/^/| /' conftest.$ac_ext >&5
4884 ac_cv_header_stdc=no
4886 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4892 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4893 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4894 if test $ac_cv_header_stdc = yes; then
4896 cat >>confdefs.h <<\_ACEOF
4897 #define STDC_HEADERS 1
4902 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4912 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4913 inttypes.h stdint.h unistd.h
4915 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4916 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4919 echo $ECHO_N "(cached) $ECHO_C" >&6
4921 cat >conftest.$ac_ext <<_ACEOF
4924 cat confdefs.h >>conftest.$ac_ext
4925 cat >>conftest.$ac_ext <<_ACEOF
4926 /* end confdefs.h. */
4927 $ac_includes_default
4929 #include <$ac_header>
4931 rm -f conftest.$ac_objext
4932 if { (ac_try="$ac_compile"
4934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4935 *) ac_try_echo=$ac_try;;
4937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4938 (eval "$ac_compile") 2>conftest.er1
4940 grep -v '^ *+' conftest.er1 >conftest.err
4942 cat conftest.err >&5
4943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944 (exit $ac_status); } && {
4945 test -z "$ac_c_werror_flag" ||
4946 test ! -s conftest.err
4947 } && test -s conftest.$ac_objext; then
4948 eval "$as_ac_Header=yes"
4950 echo "$as_me: failed program was:" >&5
4951 sed 's/^/| /' conftest.$ac_ext >&5
4953 eval "$as_ac_Header=no"
4956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4958 ac_res=`eval echo '${'$as_ac_Header'}'`
4959 { echo "$as_me:$LINENO: result: $ac_res" >&5
4960 echo "${ECHO_T}$ac_res" >&6; }
4961 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4962 cat >>confdefs.h <<_ACEOF
4963 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4972 for ac_header in dlfcn.h
4974 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4975 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4976 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4978 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4979 echo $ECHO_N "(cached) $ECHO_C" >&6
4981 ac_res=`eval echo '${'$as_ac_Header'}'`
4982 { echo "$as_me:$LINENO: result: $ac_res" >&5
4983 echo "${ECHO_T}$ac_res" >&6; }
4985 # Is the header compilable?
4986 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4987 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4988 cat >conftest.$ac_ext <<_ACEOF
4991 cat confdefs.h >>conftest.$ac_ext
4992 cat >>conftest.$ac_ext <<_ACEOF
4993 /* end confdefs.h. */
4994 $ac_includes_default
4995 #include <$ac_header>
4997 rm -f conftest.$ac_objext
4998 if { (ac_try="$ac_compile"
5000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5001 *) ac_try_echo=$ac_try;;
5003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5004 (eval "$ac_compile") 2>conftest.er1
5006 grep -v '^ *+' conftest.er1 >conftest.err
5008 cat conftest.err >&5
5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); } && {
5011 test -z "$ac_c_werror_flag" ||
5012 test ! -s conftest.err
5013 } && test -s conftest.$ac_objext; then
5014 ac_header_compiler=yes
5016 echo "$as_me: failed program was:" >&5
5017 sed 's/^/| /' conftest.$ac_ext >&5
5019 ac_header_compiler=no
5022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5023 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5024 echo "${ECHO_T}$ac_header_compiler" >&6; }
5026 # Is the header present?
5027 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5028 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5029 cat >conftest.$ac_ext <<_ACEOF
5032 cat confdefs.h >>conftest.$ac_ext
5033 cat >>conftest.$ac_ext <<_ACEOF
5034 /* end confdefs.h. */
5035 #include <$ac_header>
5037 if { (ac_try="$ac_cpp conftest.$ac_ext"
5039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5040 *) ac_try_echo=$ac_try;;
5042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5043 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5045 grep -v '^ *+' conftest.er1 >conftest.err
5047 cat conftest.err >&5
5048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049 (exit $ac_status); } >/dev/null && {
5050 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5051 test ! -s conftest.err
5053 ac_header_preproc=yes
5055 echo "$as_me: failed program was:" >&5
5056 sed 's/^/| /' conftest.$ac_ext >&5
5058 ac_header_preproc=no
5061 rm -f conftest.err conftest.$ac_ext
5062 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5063 echo "${ECHO_T}$ac_header_preproc" >&6; }
5065 # So? What about this header?
5066 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5068 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5069 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5070 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5071 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5072 ac_header_preproc=yes
5075 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5076 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5077 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5078 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5079 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5080 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5081 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5082 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5083 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5084 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5085 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5086 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5090 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5092 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5093 echo $ECHO_N "(cached) $ECHO_C" >&6
5095 eval "$as_ac_Header=\$ac_header_preproc"
5097 ac_res=`eval echo '${'$as_ac_Header'}'`
5098 { echo "$as_me:$LINENO: result: $ac_res" >&5
5099 echo "${ECHO_T}$ac_res" >&6; }
5102 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5103 cat >>confdefs.h <<_ACEOF
5104 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5112 ac_cpp='$CXXCPP $CPPFLAGS'
5113 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5114 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5115 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5116 if test -z "$CXX"; then
5117 if test -n "$CCC"; then
5120 if test -n "$ac_tool_prefix"; then
5121 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5123 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5124 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5125 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5127 if test "${ac_cv_prog_CXX+set}" = set; then
5128 echo $ECHO_N "(cached) $ECHO_C" >&6
5130 if test -n "$CXX"; then
5131 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5137 test -z "$as_dir" && as_dir=.
5138 for ac_exec_ext in '' $ac_executable_extensions; do
5139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5140 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5151 if test -n "$CXX"; then
5152 { echo "$as_me:$LINENO: result: $CXX" >&5
5153 echo "${ECHO_T}$CXX" >&6; }
5155 { echo "$as_me:$LINENO: result: no" >&5
5156 echo "${ECHO_T}no" >&6; }
5160 test -n "$CXX" && break
5163 if test -z "$CXX"; then
5165 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5167 # Extract the first word of "$ac_prog", so it can be a program name with args.
5168 set dummy $ac_prog; ac_word=$2
5169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5171 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5172 echo $ECHO_N "(cached) $ECHO_C" >&6
5174 if test -n "$ac_ct_CXX"; then
5175 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181 test -z "$as_dir" && as_dir=.
5182 for ac_exec_ext in '' $ac_executable_extensions; do
5183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5184 ac_cv_prog_ac_ct_CXX="$ac_prog"
5185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5194 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5195 if test -n "$ac_ct_CXX"; then
5196 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5197 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5199 { echo "$as_me:$LINENO: result: no" >&5
5200 echo "${ECHO_T}no" >&6; }
5204 test -n "$ac_ct_CXX" && break
5207 if test "x$ac_ct_CXX" = x; then
5210 case $cross_compiling:$ac_tool_warned in
5212 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5213 whose name does not start with the host triplet. If you think this
5214 configuration is useful to you, please write to autoconf@gnu.org." >&5
5215 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5216 whose name does not start with the host triplet. If you think this
5217 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5218 ac_tool_warned=yes ;;
5226 # Provide some information about the compiler.
5227 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5228 ac_compiler=`set X $ac_compile; echo $2`
5229 { (ac_try="$ac_compiler --version >&5"
5231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5232 *) ac_try_echo=$ac_try;;
5234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5235 (eval "$ac_compiler --version >&5") 2>&5
5237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238 (exit $ac_status); }
5239 { (ac_try="$ac_compiler -v >&5"
5241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5242 *) ac_try_echo=$ac_try;;
5244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5245 (eval "$ac_compiler -v >&5") 2>&5
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); }
5249 { (ac_try="$ac_compiler -V >&5"
5251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5252 *) ac_try_echo=$ac_try;;
5254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5255 (eval "$ac_compiler -V >&5") 2>&5
5257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258 (exit $ac_status); }
5260 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5261 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5262 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5263 echo $ECHO_N "(cached) $ECHO_C" >&6
5265 cat >conftest.$ac_ext <<_ACEOF
5268 cat confdefs.h >>conftest.$ac_ext
5269 cat >>conftest.$ac_ext <<_ACEOF
5270 /* end confdefs.h. */
5283 rm -f conftest.$ac_objext
5284 if { (ac_try="$ac_compile"
5286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5287 *) ac_try_echo=$ac_try;;
5289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5290 (eval "$ac_compile") 2>conftest.er1
5292 grep -v '^ *+' conftest.er1 >conftest.err
5294 cat conftest.err >&5
5295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296 (exit $ac_status); } && {
5297 test -z "$ac_cxx_werror_flag" ||
5298 test ! -s conftest.err
5299 } && test -s conftest.$ac_objext; then
5302 echo "$as_me: failed program was:" >&5
5303 sed 's/^/| /' conftest.$ac_ext >&5
5308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5309 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5312 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5313 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5314 GXX=`test $ac_compiler_gnu = yes && echo yes`
5315 ac_test_CXXFLAGS=${CXXFLAGS+set}
5316 ac_save_CXXFLAGS=$CXXFLAGS
5317 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5318 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5319 if test "${ac_cv_prog_cxx_g+set}" = set; then
5320 echo $ECHO_N "(cached) $ECHO_C" >&6
5322 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5323 ac_cxx_werror_flag=yes
5326 cat >conftest.$ac_ext <<_ACEOF
5329 cat confdefs.h >>conftest.$ac_ext
5330 cat >>conftest.$ac_ext <<_ACEOF
5331 /* end confdefs.h. */
5341 rm -f conftest.$ac_objext
5342 if { (ac_try="$ac_compile"
5344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5345 *) ac_try_echo=$ac_try;;
5347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5348 (eval "$ac_compile") 2>conftest.er1
5350 grep -v '^ *+' conftest.er1 >conftest.err
5352 cat conftest.err >&5
5353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354 (exit $ac_status); } && {
5355 test -z "$ac_cxx_werror_flag" ||
5356 test ! -s conftest.err
5357 } && test -s conftest.$ac_objext; then
5358 ac_cv_prog_cxx_g=yes
5360 echo "$as_me: failed program was:" >&5
5361 sed 's/^/| /' conftest.$ac_ext >&5
5364 cat >conftest.$ac_ext <<_ACEOF
5367 cat confdefs.h >>conftest.$ac_ext
5368 cat >>conftest.$ac_ext <<_ACEOF
5369 /* end confdefs.h. */
5379 rm -f conftest.$ac_objext
5380 if { (ac_try="$ac_compile"
5382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5383 *) ac_try_echo=$ac_try;;
5385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5386 (eval "$ac_compile") 2>conftest.er1
5388 grep -v '^ *+' conftest.er1 >conftest.err
5390 cat conftest.err >&5
5391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392 (exit $ac_status); } && {
5393 test -z "$ac_cxx_werror_flag" ||
5394 test ! -s conftest.err
5395 } && test -s conftest.$ac_objext; then
5398 echo "$as_me: failed program was:" >&5
5399 sed 's/^/| /' conftest.$ac_ext >&5
5401 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5403 cat >conftest.$ac_ext <<_ACEOF
5406 cat confdefs.h >>conftest.$ac_ext
5407 cat >>conftest.$ac_ext <<_ACEOF
5408 /* end confdefs.h. */
5418 rm -f conftest.$ac_objext
5419 if { (ac_try="$ac_compile"
5421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5422 *) ac_try_echo=$ac_try;;
5424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5425 (eval "$ac_compile") 2>conftest.er1
5427 grep -v '^ *+' conftest.er1 >conftest.err
5429 cat conftest.err >&5
5430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431 (exit $ac_status); } && {
5432 test -z "$ac_cxx_werror_flag" ||
5433 test ! -s conftest.err
5434 } && test -s conftest.$ac_objext; then
5435 ac_cv_prog_cxx_g=yes
5437 echo "$as_me: failed program was:" >&5
5438 sed 's/^/| /' conftest.$ac_ext >&5
5443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5450 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5452 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5453 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5454 if test "$ac_test_CXXFLAGS" = set; then
5455 CXXFLAGS=$ac_save_CXXFLAGS
5456 elif test $ac_cv_prog_cxx_g = yes; then
5457 if test "$GXX" = yes; then
5463 if test "$GXX" = yes; then
5470 ac_cpp='$CXXCPP $CPPFLAGS'
5471 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5472 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5473 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5475 depcc="$CXX" am_compiler_list=
5477 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5478 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5479 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5480 echo $ECHO_N "(cached) $ECHO_C" >&6
5482 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5483 # We make a subdir and do the tests there. Otherwise we can end up
5484 # making bogus files that we don't know about and never remove. For
5485 # instance it was reported that on HP-UX the gcc test will end up
5486 # making a dummy file named `D' -- because `-MD' means `put the output
5489 # Copy depcomp to subdir because otherwise we won't find it if we're
5490 # using a relative directory.
5491 cp "$am_depcomp" conftest.dir
5493 # We will build objects and dependencies in a subdirectory because
5494 # it helps to detect inapplicable dependency modes. For instance
5495 # both Tru64's cc and ICC support -MD to output dependencies as a
5496 # side effect of compilation, but ICC will put the dependencies in
5497 # the current directory while Tru64 will put them in the object
5501 am_cv_CXX_dependencies_compiler_type=none
5502 if test "$am_compiler_list" = ""; then
5503 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5505 for depmode in $am_compiler_list; do
5506 # Setup a source with many dependencies, because some compilers
5507 # like to wrap large dependency lists on column 80 (with \), and
5508 # we should not choose a depcomp mode which is confused by this.
5510 # We need to recreate these files for each test, as the compiler may
5511 # overwrite some of them when testing with obscure command lines.
5512 # This happens at least with the AIX C compiler.
5514 for i in 1 2 3 4 5 6; do
5515 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5516 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5517 # Solaris 8's {/usr,}/bin/sh.
5518 touch sub/conftst$i.h
5520 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5524 # after this tag, mechanisms are not by side-effect, so they'll
5525 # only be used when explicitly requested
5526 if test "x$enable_dependency_tracking" = xyes; then
5534 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5535 # mode. It turns out that the SunPro C++ compiler does not properly
5536 # handle `-M -o', and we need to detect this.
5537 if depmode=$depmode \
5538 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5539 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5540 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5541 >/dev/null 2>conftest.err &&
5542 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5543 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5544 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5545 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5546 # icc doesn't choke on unknown options, it will just issue warnings
5547 # or remarks (even with -Werror). So we grep stderr for any message
5548 # that says an option was ignored or not supported.
5549 # When given -MP, icc 7.0 and 7.1 complain thusly:
5550 # icc: Command line warning: ignoring option '-M'; no argument required
5551 # The diagnosis changed in icc 8.0:
5552 # icc: Command line remark: option '-MP' not supported
5553 if (grep 'ignoring option' conftest.err ||
5554 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5555 am_cv_CXX_dependencies_compiler_type=$depmode
5564 am_cv_CXX_dependencies_compiler_type=none
5568 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5569 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5570 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5573 test "x$enable_dependency_tracking" != xno \
5574 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5575 am__fastdepCXX_TRUE=
5576 am__fastdepCXX_FALSE='#'
5578 am__fastdepCXX_TRUE='#'
5579 am__fastdepCXX_FALSE=
5585 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5586 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5587 (test "X$CXX" != "Xg++"))) ; then
5589 ac_cpp='$CXXCPP $CPPFLAGS'
5590 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5591 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5592 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5593 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5594 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5595 if test -z "$CXXCPP"; then
5596 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5597 echo $ECHO_N "(cached) $ECHO_C" >&6
5599 # Double quotes because CXXCPP needs to be expanded
5600 for CXXCPP in "$CXX -E" "/lib/cpp"
5603 for ac_cxx_preproc_warn_flag in '' yes
5605 # Use a header file that comes with gcc, so configuring glibc
5606 # with a fresh cross-compiler works.
5607 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5608 # <limits.h> exists even on freestanding compilers.
5609 # On the NeXT, cc -E runs the code through the compiler's parser,
5610 # not just through cpp. "Syntax error" is here to catch this case.
5611 cat >conftest.$ac_ext <<_ACEOF
5614 cat confdefs.h >>conftest.$ac_ext
5615 cat >>conftest.$ac_ext <<_ACEOF
5616 /* end confdefs.h. */
5618 # include <limits.h>
5620 # include <assert.h>
5624 if { (ac_try="$ac_cpp conftest.$ac_ext"
5626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5627 *) ac_try_echo=$ac_try;;
5629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5630 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5632 grep -v '^ *+' conftest.er1 >conftest.err
5634 cat conftest.err >&5
5635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636 (exit $ac_status); } >/dev/null && {
5637 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5638 test ! -s conftest.err
5642 echo "$as_me: failed program was:" >&5
5643 sed 's/^/| /' conftest.$ac_ext >&5
5645 # Broken: fails on valid input.
5649 rm -f conftest.err conftest.$ac_ext
5651 # OK, works on sane cases. Now check whether nonexistent headers
5652 # can be detected and how.
5653 cat >conftest.$ac_ext <<_ACEOF
5656 cat confdefs.h >>conftest.$ac_ext
5657 cat >>conftest.$ac_ext <<_ACEOF
5658 /* end confdefs.h. */
5659 #include <ac_nonexistent.h>
5661 if { (ac_try="$ac_cpp conftest.$ac_ext"
5663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5664 *) ac_try_echo=$ac_try;;
5666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5667 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5669 grep -v '^ *+' conftest.er1 >conftest.err
5671 cat conftest.err >&5
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); } >/dev/null && {
5674 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5675 test ! -s conftest.err
5677 # Broken: success on invalid input.
5680 echo "$as_me: failed program was:" >&5
5681 sed 's/^/| /' conftest.$ac_ext >&5
5683 # Passes both tests.
5688 rm -f conftest.err conftest.$ac_ext
5691 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5692 rm -f conftest.err conftest.$ac_ext
5693 if $ac_preproc_ok; then
5698 ac_cv_prog_CXXCPP=$CXXCPP
5701 CXXCPP=$ac_cv_prog_CXXCPP
5703 ac_cv_prog_CXXCPP=$CXXCPP
5705 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5706 echo "${ECHO_T}$CXXCPP" >&6; }
5708 for ac_cxx_preproc_warn_flag in '' yes
5710 # Use a header file that comes with gcc, so configuring glibc
5711 # with a fresh cross-compiler works.
5712 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5713 # <limits.h> exists even on freestanding compilers.
5714 # On the NeXT, cc -E runs the code through the compiler's parser,
5715 # not just through cpp. "Syntax error" is here to catch this case.
5716 cat >conftest.$ac_ext <<_ACEOF
5719 cat confdefs.h >>conftest.$ac_ext
5720 cat >>conftest.$ac_ext <<_ACEOF
5721 /* end confdefs.h. */
5723 # include <limits.h>
5725 # include <assert.h>
5729 if { (ac_try="$ac_cpp conftest.$ac_ext"
5731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5732 *) ac_try_echo=$ac_try;;
5734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5735 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5737 grep -v '^ *+' conftest.er1 >conftest.err
5739 cat conftest.err >&5
5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741 (exit $ac_status); } >/dev/null && {
5742 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5743 test ! -s conftest.err
5747 echo "$as_me: failed program was:" >&5
5748 sed 's/^/| /' conftest.$ac_ext >&5
5750 # Broken: fails on valid input.
5754 rm -f conftest.err conftest.$ac_ext
5756 # OK, works on sane cases. Now check whether nonexistent headers
5757 # can be detected and how.
5758 cat >conftest.$ac_ext <<_ACEOF
5761 cat confdefs.h >>conftest.$ac_ext
5762 cat >>conftest.$ac_ext <<_ACEOF
5763 /* end confdefs.h. */
5764 #include <ac_nonexistent.h>
5766 if { (ac_try="$ac_cpp conftest.$ac_ext"
5768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5769 *) ac_try_echo=$ac_try;;
5771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5772 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5774 grep -v '^ *+' conftest.er1 >conftest.err
5776 cat conftest.err >&5
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); } >/dev/null && {
5779 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5780 test ! -s conftest.err
5782 # Broken: success on invalid input.
5785 echo "$as_me: failed program was:" >&5
5786 sed 's/^/| /' conftest.$ac_ext >&5
5788 # Passes both tests.
5793 rm -f conftest.err conftest.$ac_ext
5796 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5797 rm -f conftest.err conftest.$ac_ext
5798 if $ac_preproc_ok; then
5801 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5802 See \`config.log' for more details." >&5
5803 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5804 See \`config.log' for more details." >&2;}
5805 { (exit 1); exit 1; }; }
5809 ac_cpp='$CXXCPP $CPPFLAGS'
5810 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5811 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5812 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5818 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5819 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5820 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5821 if test -n "$ac_tool_prefix"; then
5822 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
5824 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5825 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5826 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5828 if test "${ac_cv_prog_F77+set}" = set; then
5829 echo $ECHO_N "(cached) $ECHO_C" >&6
5831 if test -n "$F77"; then
5832 ac_cv_prog_F77="$F77" # Let the user override the test.
5834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5838 test -z "$as_dir" && as_dir=.
5839 for ac_exec_ext in '' $ac_executable_extensions; do
5840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5841 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5852 if test -n "$F77"; then
5853 { echo "$as_me:$LINENO: result: $F77" >&5
5854 echo "${ECHO_T}$F77" >&6; }
5856 { echo "$as_me:$LINENO: result: no" >&5
5857 echo "${ECHO_T}no" >&6; }
5861 test -n "$F77" && break
5864 if test -z "$F77"; then
5866 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
5868 # Extract the first word of "$ac_prog", so it can be a program name with args.
5869 set dummy $ac_prog; ac_word=$2
5870 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5872 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5873 echo $ECHO_N "(cached) $ECHO_C" >&6
5875 if test -n "$ac_ct_F77"; then
5876 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5882 test -z "$as_dir" && as_dir=.
5883 for ac_exec_ext in '' $ac_executable_extensions; do
5884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5885 ac_cv_prog_ac_ct_F77="$ac_prog"
5886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5895 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5896 if test -n "$ac_ct_F77"; then
5897 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5898 echo "${ECHO_T}$ac_ct_F77" >&6; }
5900 { echo "$as_me:$LINENO: result: no" >&5
5901 echo "${ECHO_T}no" >&6; }
5905 test -n "$ac_ct_F77" && break
5908 if test "x$ac_ct_F77" = x; then
5911 case $cross_compiling:$ac_tool_warned in
5913 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5914 whose name does not start with the host triplet. If you think this
5915 configuration is useful to you, please write to autoconf@gnu.org." >&5
5916 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5917 whose name does not start with the host triplet. If you think this
5918 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5919 ac_tool_warned=yes ;;
5926 # Provide some information about the compiler.
5927 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5928 ac_compiler=`set X $ac_compile; echo $2`
5929 { (ac_try="$ac_compiler --version >&5"
5931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5932 *) ac_try_echo=$ac_try;;
5934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5935 (eval "$ac_compiler --version >&5") 2>&5
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); }
5939 { (ac_try="$ac_compiler -v >&5"
5941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5942 *) ac_try_echo=$ac_try;;
5944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5945 (eval "$ac_compiler -v >&5") 2>&5
5947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); }
5949 { (ac_try="$ac_compiler -V >&5"
5951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5952 *) ac_try_echo=$ac_try;;
5954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5955 (eval "$ac_compiler -V >&5") 2>&5
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); }
5961 # If we don't use `.F' as extension, the preprocessor is not run on the
5962 # input file. (Note that this only needs to work for GNU compilers.)
5965 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5966 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5967 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5968 echo $ECHO_N "(cached) $ECHO_C" >&6
5970 cat >conftest.$ac_ext <<_ACEOF
5978 rm -f conftest.$ac_objext
5979 if { (ac_try="$ac_compile"
5981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5982 *) ac_try_echo=$ac_try;;
5984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5985 (eval "$ac_compile") 2>conftest.er1
5987 grep -v '^ *+' conftest.er1 >conftest.err
5989 cat conftest.err >&5
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); } && {
5992 test -z "$ac_f77_werror_flag" ||
5993 test ! -s conftest.err
5994 } && test -s conftest.$ac_objext; then
5997 echo "$as_me: failed program was:" >&5
5998 sed 's/^/| /' conftest.$ac_ext >&5
6003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6004 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6007 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6008 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6010 ac_test_FFLAGS=${FFLAGS+set}
6011 ac_save_FFLAGS=$FFLAGS
6013 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6014 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6015 if test "${ac_cv_prog_f77_g+set}" = set; then
6016 echo $ECHO_N "(cached) $ECHO_C" >&6
6019 cat >conftest.$ac_ext <<_ACEOF
6024 rm -f conftest.$ac_objext
6025 if { (ac_try="$ac_compile"
6027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6028 *) ac_try_echo=$ac_try;;
6030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6031 (eval "$ac_compile") 2>conftest.er1
6033 grep -v '^ *+' conftest.er1 >conftest.err
6035 cat conftest.err >&5
6036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037 (exit $ac_status); } && {
6038 test -z "$ac_f77_werror_flag" ||
6039 test ! -s conftest.err
6040 } && test -s conftest.$ac_objext; then
6041 ac_cv_prog_f77_g=yes
6043 echo "$as_me: failed program was:" >&5
6044 sed 's/^/| /' conftest.$ac_ext >&5
6049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6052 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6053 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6054 if test "$ac_test_FFLAGS" = set; then
6055 FFLAGS=$ac_save_FFLAGS
6056 elif test $ac_cv_prog_f77_g = yes; then
6057 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6063 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6070 G77=`test $ac_compiler_gnu = yes && echo yes`
6072 ac_cpp='$CPP $CPPFLAGS'
6073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6079 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6081 # find the maximum length of command line arguments
6082 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6083 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6084 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6085 echo $ECHO_N "(cached) $ECHO_C" >&6
6092 # On DJGPP, this test can blow up pretty badly due to problems in libc
6093 # (any single argument exceeding 2000 bytes causes a buffer overrun
6094 # during glob expansion). Even if it were fixed, the result of this
6095 # check would be larger than it should be.
6096 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6100 # Under GNU Hurd, this test is not required because there is
6101 # no limit to the length of command line arguments.
6102 # Libtool will interpret -1 as no limit whatsoever
6103 lt_cv_sys_max_cmd_len=-1;
6107 # On Win9x/ME, this test blows up -- it succeeds, but takes
6108 # about 5 minutes as the teststring grows exponentially.
6109 # Worse, since 9x/ME are not pre-emptively multitasking,
6110 # you end up with a "frozen" computer, even though with patience
6111 # the test eventually succeeds (with a max line length of 256k).
6112 # Instead, let's just punt: use the minimum linelength reported by
6113 # all of the supported platforms: 8192 (on NT/2K/XP).
6114 lt_cv_sys_max_cmd_len=8192;
6118 # On AmigaOS with pdksh, this test takes hours, literally.
6119 # So we just punt and use a minimum line length of 8192.
6120 lt_cv_sys_max_cmd_len=8192;
6123 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6124 # This has been around since 386BSD, at least. Likely further.
6125 if test -x /sbin/sysctl; then
6126 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6127 elif test -x /usr/sbin/sysctl; then
6128 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6130 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6132 # And add a safety zone
6133 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6134 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6138 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6139 lt_cv_sys_max_cmd_len=196608
6143 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6144 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6145 # nice to cause kernel panics so lets avoid the loop below.
6146 # First set a reasonable default.
6147 lt_cv_sys_max_cmd_len=16384
6149 if test -x /sbin/sysconfig; then
6150 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6151 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6156 lt_cv_sys_max_cmd_len=102400
6158 sysv5* | sco5v6* | sysv4.2uw2*)
6159 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6160 if test -n "$kargmax"; then
6161 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6163 lt_cv_sys_max_cmd_len=32768
6167 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6168 if test -n "$lt_cv_sys_max_cmd_len"; then
6169 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6170 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6172 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6173 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6174 = "XX$teststring") >/dev/null 2>&1 &&
6175 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6176 lt_cv_sys_max_cmd_len=$new_result &&
6177 test $i != 17 # 1/2 MB should be enough
6180 teststring=$teststring$teststring
6183 # Add a significant safety factor because C++ compilers can tack on massive
6184 # amounts of additional arguments before passing them to the linker.
6185 # It appears as though 1/2 is a usable value.
6186 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6193 if test -n $lt_cv_sys_max_cmd_len ; then
6194 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6195 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6197 { echo "$as_me:$LINENO: result: none" >&5
6198 echo "${ECHO_T}none" >&6; }
6205 # Check for command to grab the raw symbol name followed by C symbol from nm.
6206 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6207 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6208 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6209 echo $ECHO_N "(cached) $ECHO_C" >&6
6212 # These are sane defaults that work on at least a few old systems.
6213 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6215 # Character class describing NM global symbol codes.
6216 symcode='[BCDEGRST]'
6218 # Regexp to match symbols that can be accessed directly from C.
6219 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6221 # Transform an extracted symbol line into a proper C declaration
6222 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6224 # Transform an extracted symbol line into symbol name and symbol address
6225 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'"
6227 # Define system-specific variables.
6232 cygwin* | mingw* | pw32*)
6233 symcode='[ABCDGISTW]'
6235 hpux*) # Its linker distinguishes data from code symbols
6236 if test "$host_cpu" = ia64; then
6237 symcode='[ABCDEGRST]'
6239 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6240 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'"
6242 linux* | k*bsd*-gnu)
6243 if test "$host_cpu" = ia64; then
6244 symcode='[ABCDGIRSTW]'
6245 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6246 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'"
6250 symcode='[BCDEGRST]'
6253 symcode='[BCDEGQRST]'
6264 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6272 # Handle CRLF in mingw tool chain
6276 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6280 # If we're using GNU nm, then use its standard symbol codes.
6281 case `$NM -V 2>&1` in
6282 *GNU* | *'with BFD'*)
6283 symcode='[ABCDGIRSTW]' ;;
6286 # Try without a prefix undercore, then with it.
6287 for ac_symprfx in "" "_"; do
6289 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6290 symxfrm="\\1 $ac_symprfx\\2 \\2"
6292 # Write the raw and C identifiers.
6293 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6295 # Check to see that the pipe works correctly.
6299 cat > conftest.$ac_ext <<EOF
6304 void nm_test_func(){}
6308 int main(){nm_test_var='a';nm_test_func();return(0);}
6311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6312 (eval $ac_compile) 2>&5
6314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315 (exit $ac_status); }; then
6316 # Now try to grab the symbols.
6318 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6319 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322 (exit $ac_status); } && test -s "$nlist"; then
6323 # Try sorting and uniquifying the output.
6324 if sort "$nlist" | uniq > "$nlist"T; then
6325 mv -f "$nlist"T "$nlist"
6330 # Make sure that we snagged all the symbols we need.
6331 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6332 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6333 cat <<EOF > conftest.$ac_ext
6339 # Now generate the symbol file.
6340 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6342 cat <<EOF >> conftest.$ac_ext
6343 #if defined (__STDC__) && __STDC__
6344 # define lt_ptr_t void *
6346 # define lt_ptr_t char *
6350 /* The mapping between symbol names and symbols. */
6355 lt_preloaded_symbols[] =
6358 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6359 cat <<\EOF >> conftest.$ac_ext
6367 # Now try linking the two files.
6368 mv conftest.$ac_objext conftstm.$ac_objext
6369 lt_save_LIBS="$LIBS"
6370 lt_save_CFLAGS="$CFLAGS"
6371 LIBS="conftstm.$ac_objext"
6372 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6374 (eval $ac_link) 2>&5
6376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6380 LIBS="$lt_save_LIBS"
6381 CFLAGS="$lt_save_CFLAGS"
6383 echo "cannot find nm_test_func in $nlist" >&5
6386 echo "cannot find nm_test_var in $nlist" >&5
6389 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6392 echo "$progname: failed program was:" >&5
6393 cat conftest.$ac_ext >&5
6395 rm -f conftest* conftst*
6397 # Do not use the global_symbol_pipe unless it works.
6398 if test "$pipe_works" = yes; then
6401 lt_cv_sys_global_symbol_pipe=
6407 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6408 lt_cv_sys_global_symbol_to_cdecl=
6410 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6411 { echo "$as_me:$LINENO: result: failed" >&5
6412 echo "${ECHO_T}failed" >&6; }
6414 { echo "$as_me:$LINENO: result: ok" >&5
6415 echo "${ECHO_T}ok" >&6; }
6418 { echo "$as_me:$LINENO: checking for objdir" >&5
6419 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6420 if test "${lt_cv_objdir+set}" = set; then
6421 echo $ECHO_N "(cached) $ECHO_C" >&6
6423 rm -f .libs 2>/dev/null
6424 mkdir .libs 2>/dev/null
6425 if test -d .libs; then
6428 # MS-DOS does not allow filenames that begin with a dot.
6431 rmdir .libs 2>/dev/null
6433 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6434 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6435 objdir=$lt_cv_objdir
6443 # AIX sometimes has problems with the GCC collect2 program. For some
6444 # reason, if we set the COLLECT_NAMES environment variable, the problems
6445 # vanish in a puff of smoke.
6446 if test "X${COLLECT_NAMES+set}" != Xset; then
6448 export COLLECT_NAMES
6453 # Sed substitution that helps us do robust quoting. It backslashifies
6454 # metacharacters that are still active within double-quoted strings.
6455 Xsed='sed -e 1s/^X//'
6456 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6458 # Same as above, but do not quote variable references.
6459 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6461 # Sed substitution to delay expansion of an escaped shell variable in a
6462 # double_quote_subst'ed string.
6463 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6465 # Sed substitution to avoid accidental globbing in evaled expressions
6466 no_glob_subst='s/\*/\\\*/g'
6472 default_ofile=libtool
6473 can_build_shared=yes
6475 # All known linkers require a `.a' archive for static linking (except MSVC,
6476 # which needs '.lib').
6478 ltmain="$ac_aux_dir/ltmain.sh"
6479 ofile="$default_ofile"
6480 with_gnu_ld="$lt_cv_prog_gnu_ld"
6482 if test -n "$ac_tool_prefix"; then
6483 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6484 set dummy ${ac_tool_prefix}ar; ac_word=$2
6485 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6487 if test "${ac_cv_prog_AR+set}" = set; then
6488 echo $ECHO_N "(cached) $ECHO_C" >&6
6490 if test -n "$AR"; then
6491 ac_cv_prog_AR="$AR" # Let the user override the test.
6493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6497 test -z "$as_dir" && as_dir=.
6498 for ac_exec_ext in '' $ac_executable_extensions; do
6499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6500 ac_cv_prog_AR="${ac_tool_prefix}ar"
6501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6511 if test -n "$AR"; then
6512 { echo "$as_me:$LINENO: result: $AR" >&5
6513 echo "${ECHO_T}$AR" >&6; }
6515 { echo "$as_me:$LINENO: result: no" >&5
6516 echo "${ECHO_T}no" >&6; }
6521 if test -z "$ac_cv_prog_AR"; then
6523 # Extract the first word of "ar", so it can be a program name with args.
6524 set dummy ar; ac_word=$2
6525 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6527 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6528 echo $ECHO_N "(cached) $ECHO_C" >&6
6530 if test -n "$ac_ct_AR"; then
6531 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6537 test -z "$as_dir" && as_dir=.
6538 for ac_exec_ext in '' $ac_executable_extensions; do
6539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6540 ac_cv_prog_ac_ct_AR="ar"
6541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6550 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6551 if test -n "$ac_ct_AR"; then
6552 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6553 echo "${ECHO_T}$ac_ct_AR" >&6; }
6555 { echo "$as_me:$LINENO: result: no" >&5
6556 echo "${ECHO_T}no" >&6; }
6559 if test "x$ac_ct_AR" = x; then
6562 case $cross_compiling:$ac_tool_warned in
6564 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6565 whose name does not start with the host triplet. If you think this
6566 configuration is useful to you, please write to autoconf@gnu.org." >&5
6567 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6568 whose name does not start with the host triplet. If you think this
6569 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6570 ac_tool_warned=yes ;;
6578 if test -n "$ac_tool_prefix"; then
6579 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6580 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6581 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6583 if test "${ac_cv_prog_RANLIB+set}" = set; then
6584 echo $ECHO_N "(cached) $ECHO_C" >&6
6586 if test -n "$RANLIB"; then
6587 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6593 test -z "$as_dir" && as_dir=.
6594 for ac_exec_ext in '' $ac_executable_extensions; do
6595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6596 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6606 RANLIB=$ac_cv_prog_RANLIB
6607 if test -n "$RANLIB"; then
6608 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6609 echo "${ECHO_T}$RANLIB" >&6; }
6611 { echo "$as_me:$LINENO: result: no" >&5
6612 echo "${ECHO_T}no" >&6; }
6617 if test -z "$ac_cv_prog_RANLIB"; then
6618 ac_ct_RANLIB=$RANLIB
6619 # Extract the first word of "ranlib", so it can be a program name with args.
6620 set dummy ranlib; ac_word=$2
6621 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6623 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6624 echo $ECHO_N "(cached) $ECHO_C" >&6
6626 if test -n "$ac_ct_RANLIB"; then
6627 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6633 test -z "$as_dir" && as_dir=.
6634 for ac_exec_ext in '' $ac_executable_extensions; do
6635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6636 ac_cv_prog_ac_ct_RANLIB="ranlib"
6637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6646 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6647 if test -n "$ac_ct_RANLIB"; then
6648 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6649 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6651 { echo "$as_me:$LINENO: result: no" >&5
6652 echo "${ECHO_T}no" >&6; }
6655 if test "x$ac_ct_RANLIB" = x; then
6658 case $cross_compiling:$ac_tool_warned in
6660 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6661 whose name does not start with the host triplet. If you think this
6662 configuration is useful to you, please write to autoconf@gnu.org." >&5
6663 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6664 whose name does not start with the host triplet. If you think this
6665 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6666 ac_tool_warned=yes ;;
6668 RANLIB=$ac_ct_RANLIB
6671 RANLIB="$ac_cv_prog_RANLIB"
6674 if test -n "$ac_tool_prefix"; then
6675 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6676 set dummy ${ac_tool_prefix}strip; ac_word=$2
6677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6679 if test "${ac_cv_prog_STRIP+set}" = set; then
6680 echo $ECHO_N "(cached) $ECHO_C" >&6
6682 if test -n "$STRIP"; then
6683 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6689 test -z "$as_dir" && as_dir=.
6690 for ac_exec_ext in '' $ac_executable_extensions; do
6691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6692 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6702 STRIP=$ac_cv_prog_STRIP
6703 if test -n "$STRIP"; then
6704 { echo "$as_me:$LINENO: result: $STRIP" >&5
6705 echo "${ECHO_T}$STRIP" >&6; }
6707 { echo "$as_me:$LINENO: result: no" >&5
6708 echo "${ECHO_T}no" >&6; }
6713 if test -z "$ac_cv_prog_STRIP"; then
6715 # Extract the first word of "strip", so it can be a program name with args.
6716 set dummy strip; ac_word=$2
6717 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6719 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6720 echo $ECHO_N "(cached) $ECHO_C" >&6
6722 if test -n "$ac_ct_STRIP"; then
6723 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6729 test -z "$as_dir" && as_dir=.
6730 for ac_exec_ext in '' $ac_executable_extensions; do
6731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6732 ac_cv_prog_ac_ct_STRIP="strip"
6733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6742 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6743 if test -n "$ac_ct_STRIP"; then
6744 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6745 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6747 { echo "$as_me:$LINENO: result: no" >&5
6748 echo "${ECHO_T}no" >&6; }
6751 if test "x$ac_ct_STRIP" = x; then
6754 case $cross_compiling:$ac_tool_warned in
6756 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6757 whose name does not start with the host triplet. If you think this
6758 configuration is useful to you, please write to autoconf@gnu.org." >&5
6759 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6760 whose name does not start with the host triplet. If you think this
6761 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6762 ac_tool_warned=yes ;;
6767 STRIP="$ac_cv_prog_STRIP"
6772 old_CFLAGS="$CFLAGS"
6774 # Set sane defaults for various variables
6775 test -z "$AR" && AR=ar
6776 test -z "$AR_FLAGS" && AR_FLAGS=cru
6777 test -z "$AS" && AS=as
6778 test -z "$CC" && CC=cc
6779 test -z "$LTCC" && LTCC=$CC
6780 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6781 test -z "$DLLTOOL" && DLLTOOL=dlltool
6782 test -z "$LD" && LD=ld
6783 test -z "$LN_S" && LN_S="ln -s"
6784 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6785 test -z "$NM" && NM=nm
6786 test -z "$SED" && SED=sed
6787 test -z "$OBJDUMP" && OBJDUMP=objdump
6788 test -z "$RANLIB" && RANLIB=:
6789 test -z "$STRIP" && STRIP=:
6790 test -z "$ac_objext" && ac_objext=o
6792 # Determine commands to create old-style static archives.
6793 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6794 old_postinstall_cmds='chmod 644 $oldlib'
6795 old_postuninstall_cmds=
6797 if test -n "$RANLIB"; then
6800 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6803 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6806 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6809 for cc_temp in $compiler""; do
6811 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6812 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6817 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6820 # Only perform the check for file, if the check method requires it
6821 case $deplibs_check_method in
6823 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6824 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6825 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6826 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6827 echo $ECHO_N "(cached) $ECHO_C" >&6
6831 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6834 lt_save_MAGIC_CMD="$MAGIC_CMD"
6835 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6836 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6837 for ac_dir in $ac_dummy; do
6839 test -z "$ac_dir" && ac_dir=.
6840 if test -f $ac_dir/${ac_tool_prefix}file; then
6841 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6842 if test -n "$file_magic_test_file"; then
6843 case $deplibs_check_method in
6845 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6846 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6847 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6848 $EGREP "$file_magic_regex" > /dev/null; then
6853 *** Warning: the command libtool uses to detect shared libraries,
6854 *** $file_magic_cmd, produces output that libtool cannot recognize.
6855 *** The result is that libtool may fail to recognize shared libraries
6856 *** as such. This will affect the creation of libtool libraries that
6857 *** depend on shared libraries, but programs linked with such libtool
6858 *** libraries will work regardless of this problem. Nevertheless, you
6859 *** may want to report the problem to your system manager and/or to
6860 *** bug-libtool@gnu.org
6870 MAGIC_CMD="$lt_save_MAGIC_CMD"
6875 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6876 if test -n "$MAGIC_CMD"; then
6877 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6878 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6880 { echo "$as_me:$LINENO: result: no" >&5
6881 echo "${ECHO_T}no" >&6; }
6884 if test -z "$lt_cv_path_MAGIC_CMD"; then
6885 if test -n "$ac_tool_prefix"; then
6886 { echo "$as_me:$LINENO: checking for file" >&5
6887 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6888 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6889 echo $ECHO_N "(cached) $ECHO_C" >&6
6893 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6896 lt_save_MAGIC_CMD="$MAGIC_CMD"
6897 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6898 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6899 for ac_dir in $ac_dummy; do
6901 test -z "$ac_dir" && ac_dir=.
6902 if test -f $ac_dir/file; then
6903 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6904 if test -n "$file_magic_test_file"; then
6905 case $deplibs_check_method in
6907 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6908 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6909 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6910 $EGREP "$file_magic_regex" > /dev/null; then
6915 *** Warning: the command libtool uses to detect shared libraries,
6916 *** $file_magic_cmd, produces output that libtool cannot recognize.
6917 *** The result is that libtool may fail to recognize shared libraries
6918 *** as such. This will affect the creation of libtool libraries that
6919 *** depend on shared libraries, but programs linked with such libtool
6920 *** libraries will work regardless of this problem. Nevertheless, you
6921 *** may want to report the problem to your system manager and/or to
6922 *** bug-libtool@gnu.org
6932 MAGIC_CMD="$lt_save_MAGIC_CMD"
6937 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6938 if test -n "$MAGIC_CMD"; then
6939 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6940 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6942 { echo "$as_me:$LINENO: result: no" >&5
6943 echo "${ECHO_T}no" >&6; }
6958 # Check whether --enable-libtool-lock was given.
6959 if test "${enable_libtool_lock+set}" = set; then
6960 enableval=$enable_libtool_lock;
6963 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6966 # Check whether --with-pic was given.
6967 if test "${with_pic+set}" = set; then
6968 withval=$with_pic; pic_mode="$withval"
6973 test -z "$pic_mode" && pic_mode=default
6975 # Use C for the default configuration in the libtool script
6979 ac_cpp='$CPP $CPPFLAGS'
6980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6985 # Source file extension for C test sources.
6988 # Object file extension for compiled C test sources.
6992 # Code to be used in simple compile tests
6993 lt_simple_compile_test_code="int some_variable = 0;"
6995 # Code to be used in simple link tests
6996 lt_simple_link_test_code='int main(){return(0);}'
6999 # If no C compiler was specified, use CC.
7002 # If no C compiler flags were specified, use CFLAGS.
7003 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7005 # Allow CC to be a program name with arguments.
7009 # save warnings/boilerplate of simple test code
7010 ac_outfile=conftest.$ac_objext
7011 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7012 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7013 _lt_compiler_boilerplate=`cat conftest.err`
7016 ac_outfile=conftest.$ac_objext
7017 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7018 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7019 _lt_linker_boilerplate=`cat conftest.err`
7024 lt_prog_compiler_no_builtin_flag=
7026 if test "$GCC" = yes; then
7027 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7030 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7031 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7032 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7033 echo $ECHO_N "(cached) $ECHO_C" >&6
7035 lt_cv_prog_compiler_rtti_exceptions=no
7036 ac_outfile=conftest.$ac_objext
7037 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7038 lt_compiler_flag="-fno-rtti -fno-exceptions"
7039 # Insert the option either (1) after the last *FLAGS variable, or
7040 # (2) before a word containing "conftest.", or (3) at the end.
7041 # Note that $ac_compile itself does not contain backslashes and begins
7042 # with a dollar sign (not a hyphen), so the echo should work correctly.
7043 # The option is referenced via a variable to avoid confusing sed.
7044 lt_compile=`echo "$ac_compile" | $SED \
7045 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7046 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7047 -e 's:$: $lt_compiler_flag:'`
7048 (eval echo "\"\$as_me:7048: $lt_compile\"" >&5)
7049 (eval "$lt_compile" 2>conftest.err)
7051 cat conftest.err >&5
7052 echo "$as_me:7052: \$? = $ac_status" >&5
7053 if (exit $ac_status) && test -s "$ac_outfile"; then
7054 # The compiler can only warn and ignore the option if not recognized
7055 # So say no if there are warnings other than the usual output.
7056 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7057 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7058 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7059 lt_cv_prog_compiler_rtti_exceptions=yes
7065 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7066 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7068 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7069 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7076 lt_prog_compiler_wl=
7077 lt_prog_compiler_pic=
7078 lt_prog_compiler_static=
7080 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7081 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7083 if test "$GCC" = yes; then
7084 lt_prog_compiler_wl='-Wl,'
7085 lt_prog_compiler_static='-static'
7089 # All AIX code is PIC.
7090 if test "$host_cpu" = ia64; then
7091 # AIX 5 now supports IA64 processor
7092 lt_prog_compiler_static='-Bstatic'
7097 # FIXME: we need at least 68020 code to build shared libraries, but
7098 # adding the `-m68020' flag to GCC prevents building anything better,
7100 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7103 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7104 # PIC is the default for these OSes.
7107 mingw* | cygwin* | pw32* | os2*)
7108 # This hack is so that the source file can tell whether it is being
7109 # built for inclusion in a dll (and should export symbols for example).
7110 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7111 # (--disable-auto-import) libraries
7112 lt_prog_compiler_pic='-DDLL_EXPORT'
7115 darwin* | rhapsody*)
7116 # PIC is the default on this platform
7117 # Common symbols not allowed in MH_DYLIB files
7118 lt_prog_compiler_pic='-fno-common'
7122 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7123 # Instead, we relocate shared libraries at runtime.
7127 # Just because we use GCC doesn't mean we suddenly get shared libraries
7128 # on systems that don't support them.
7129 lt_prog_compiler_can_build_shared=no
7134 if test -d /usr/nec; then
7135 lt_prog_compiler_pic=-Kconform_pic
7140 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7147 lt_prog_compiler_pic='-fPIC'
7153 lt_prog_compiler_pic='-fPIC'
7157 # PORTME Check for flag to pass linker flags through the system compiler.
7160 lt_prog_compiler_wl='-Wl,'
7161 if test "$host_cpu" = ia64; then
7162 # AIX 5 now supports IA64 processor
7163 lt_prog_compiler_static='-Bstatic'
7165 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7169 # PIC is the default on this platform
7170 # Common symbols not allowed in MH_DYLIB files
7171 case $cc_basename in
7173 lt_prog_compiler_pic='-qnocommon'
7174 lt_prog_compiler_wl='-Wl,'
7179 mingw* | cygwin* | pw32* | os2*)
7180 # This hack is so that the source file can tell whether it is being
7181 # built for inclusion in a dll (and should export symbols for example).
7182 lt_prog_compiler_pic='-DDLL_EXPORT'
7185 hpux9* | hpux10* | hpux11*)
7186 lt_prog_compiler_wl='-Wl,'
7187 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7194 lt_prog_compiler_pic='+Z'
7197 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7198 lt_prog_compiler_static='${wl}-a ${wl}archive'
7201 irix5* | irix6* | nonstopux*)
7202 lt_prog_compiler_wl='-Wl,'
7203 # PIC (with -KPIC) is the default.
7204 lt_prog_compiler_static='-non_shared'
7208 lt_prog_compiler_pic='-KPIC'
7209 lt_prog_compiler_static='-Bstatic'
7212 linux* | k*bsd*-gnu)
7213 case $cc_basename in
7215 lt_prog_compiler_wl='-Wl,'
7216 lt_prog_compiler_pic='-KPIC'
7217 lt_prog_compiler_static='-static'
7219 pgcc* | pgf77* | pgf90* | pgf95*)
7220 # Portland Group compilers (*not* the Pentium gcc compiler,
7221 # which looks to be a dead project)
7222 lt_prog_compiler_wl='-Wl,'
7223 lt_prog_compiler_pic='-fpic'
7224 lt_prog_compiler_static='-Bstatic'
7227 lt_prog_compiler_wl='-Wl,'
7228 # All Alpha code is PIC.
7229 lt_prog_compiler_static='-non_shared'
7232 case `$CC -V 2>&1 | sed 5q` in
7235 lt_prog_compiler_pic='-KPIC'
7236 lt_prog_compiler_static='-Bstatic'
7237 lt_prog_compiler_wl='-Wl,'
7240 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7241 lt_prog_compiler_pic='-KPIC'
7242 lt_prog_compiler_static='-Bstatic'
7243 lt_prog_compiler_wl=''
7250 osf3* | osf4* | osf5*)
7251 lt_prog_compiler_wl='-Wl,'
7252 # All OSF/1 code is PIC.
7253 lt_prog_compiler_static='-non_shared'
7257 lt_prog_compiler_static='-non_shared'
7261 lt_prog_compiler_pic='-KPIC'
7262 lt_prog_compiler_static='-Bstatic'
7263 case $cc_basename in
7265 lt_prog_compiler_wl='-Qoption ld ';;
7267 lt_prog_compiler_wl='-Wl,';;
7272 lt_prog_compiler_wl='-Qoption ld '
7273 lt_prog_compiler_pic='-PIC'
7274 lt_prog_compiler_static='-Bstatic'
7277 sysv4 | sysv4.2uw2* | sysv4.3*)
7278 lt_prog_compiler_wl='-Wl,'
7279 lt_prog_compiler_pic='-KPIC'
7280 lt_prog_compiler_static='-Bstatic'
7284 if test -d /usr/nec ;then
7285 lt_prog_compiler_pic='-Kconform_pic'
7286 lt_prog_compiler_static='-Bstatic'
7290 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7291 lt_prog_compiler_wl='-Wl,'
7292 lt_prog_compiler_pic='-KPIC'
7293 lt_prog_compiler_static='-Bstatic'
7297 lt_prog_compiler_wl='-Wl,'
7298 lt_prog_compiler_can_build_shared=no
7302 lt_prog_compiler_pic='-pic'
7303 lt_prog_compiler_static='-Bstatic'
7307 lt_prog_compiler_can_build_shared=no
7312 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7313 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7316 # Check to make sure the PIC flag actually works.
7318 if test -n "$lt_prog_compiler_pic"; then
7320 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7321 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7322 if test "${lt_prog_compiler_pic_works+set}" = set; then
7323 echo $ECHO_N "(cached) $ECHO_C" >&6
7325 lt_prog_compiler_pic_works=no
7326 ac_outfile=conftest.$ac_objext
7327 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7328 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7329 # Insert the option either (1) after the last *FLAGS variable, or
7330 # (2) before a word containing "conftest.", or (3) at the end.
7331 # Note that $ac_compile itself does not contain backslashes and begins
7332 # with a dollar sign (not a hyphen), so the echo should work correctly.
7333 # The option is referenced via a variable to avoid confusing sed.
7334 lt_compile=`echo "$ac_compile" | $SED \
7335 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7336 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7337 -e 's:$: $lt_compiler_flag:'`
7338 (eval echo "\"\$as_me:7338: $lt_compile\"" >&5)
7339 (eval "$lt_compile" 2>conftest.err)
7341 cat conftest.err >&5
7342 echo "$as_me:7342: \$? = $ac_status" >&5
7343 if (exit $ac_status) && test -s "$ac_outfile"; then
7344 # The compiler can only warn and ignore the option if not recognized
7345 # So say no if there are warnings other than the usual output.
7346 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7347 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7348 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7349 lt_prog_compiler_pic_works=yes
7355 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7356 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7358 if test x"$lt_prog_compiler_pic_works" = xyes; then
7359 case $lt_prog_compiler_pic in
7361 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7364 lt_prog_compiler_pic=
7365 lt_prog_compiler_can_build_shared=no
7370 # For platforms which do not support PIC, -DPIC is meaningless:
7372 lt_prog_compiler_pic=
7375 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7380 # Check to make sure the static flag actually works.
7382 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7383 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7384 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7385 if test "${lt_prog_compiler_static_works+set}" = set; then
7386 echo $ECHO_N "(cached) $ECHO_C" >&6
7388 lt_prog_compiler_static_works=no
7389 save_LDFLAGS="$LDFLAGS"
7390 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7391 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7392 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7393 # The linker can only warn and ignore the option if not recognized
7394 # So say no if there are warnings
7395 if test -s conftest.err; then
7396 # Append any errors to the config.log.
7397 cat conftest.err 1>&5
7398 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7399 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7400 if diff conftest.exp conftest.er2 >/dev/null; then
7401 lt_prog_compiler_static_works=yes
7404 lt_prog_compiler_static_works=yes
7408 LDFLAGS="$save_LDFLAGS"
7411 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7412 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7414 if test x"$lt_prog_compiler_static_works" = xyes; then
7417 lt_prog_compiler_static=
7421 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7422 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7423 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7424 echo $ECHO_N "(cached) $ECHO_C" >&6
7426 lt_cv_prog_compiler_c_o=no
7427 $rm -r conftest 2>/dev/null
7431 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7433 lt_compiler_flag="-o out/conftest2.$ac_objext"
7434 # Insert the option either (1) after the last *FLAGS variable, or
7435 # (2) before a word containing "conftest.", or (3) at the end.
7436 # Note that $ac_compile itself does not contain backslashes and begins
7437 # with a dollar sign (not a hyphen), so the echo should work correctly.
7438 lt_compile=`echo "$ac_compile" | $SED \
7439 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7440 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7441 -e 's:$: $lt_compiler_flag:'`
7442 (eval echo "\"\$as_me:7442: $lt_compile\"" >&5)
7443 (eval "$lt_compile" 2>out/conftest.err)
7445 cat out/conftest.err >&5
7446 echo "$as_me:7446: \$? = $ac_status" >&5
7447 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7449 # The compiler can only warn and ignore the option if not recognized
7450 # So say no if there are warnings
7451 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7452 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7453 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7454 lt_cv_prog_compiler_c_o=yes
7459 # SGI C++ compiler will create directory out/ii_files/ for
7460 # template instantiation
7461 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7462 $rm out/* && rmdir out
7468 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7469 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7472 hard_links="nottested"
7473 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7474 # do not overwrite the value of need_locks provided by the user
7475 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7476 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7479 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7481 ln conftest.a conftest.b 2>&5 || hard_links=no
7482 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7483 { echo "$as_me:$LINENO: result: $hard_links" >&5
7484 echo "${ECHO_T}$hard_links" >&6; }
7485 if test "$hard_links" = no; then
7486 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7487 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7494 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7495 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7498 allow_undefined_flag=
7499 enable_shared_with_static_runtimes=no
7501 archive_expsym_cmds=
7502 old_archive_From_new_cmds=
7503 old_archive_from_expsyms_cmds=
7504 export_dynamic_flag_spec=
7505 whole_archive_flag_spec=
7506 thread_safe_flag_spec=
7507 hardcode_libdir_flag_spec=
7508 hardcode_libdir_flag_spec_ld=
7509 hardcode_libdir_separator=
7512 hardcode_shlibpath_var=unsupported
7513 link_all_deplibs=unknown
7514 hardcode_automatic=no
7517 always_export_symbols=no
7518 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7519 # include_expsyms should be a list of space-separated symbols to be *always*
7520 # included in the symbol list
7522 # exclude_expsyms can be an extended regexp of symbols to exclude
7523 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7524 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7525 # as well as any symbol that contains `d'.
7526 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7527 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7528 # platforms (ab)use it in PIC code, but their linkers get confused if
7529 # the symbol is explicitly referenced. Since portable code cannot
7530 # rely on this symbol name, it's probably fine to never include it in
7531 # preloaded symbol tables.
7532 extract_expsyms_cmds=
7533 # Just being paranoid about ensuring that cc_basename is set.
7534 for cc_temp in $compiler""; do
7536 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7537 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7542 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7545 cygwin* | mingw* | pw32*)
7546 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7547 # When not using gcc, we currently assume that we are using
7548 # Microsoft Visual C++.
7549 if test "$GCC" != yes; then
7554 # we just hope/assume this is gcc and not c89 (= MSVC++)
7563 if test "$with_gnu_ld" = yes; then
7564 # If archive_cmds runs LD, not CC, wlarc should be empty
7567 # Set some defaults for GNU ld with shared library support. These
7568 # are reset later if shared libraries are not supported. Putting them
7569 # here allows them to be overridden if necessary.
7570 runpath_var=LD_RUN_PATH
7571 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7572 export_dynamic_flag_spec='${wl}--export-dynamic'
7573 # ancient GNU ld didn't support --whole-archive et. al.
7574 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7575 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7577 whole_archive_flag_spec=
7579 supports_anon_versioning=no
7580 case `$LD -v 2>/dev/null` in
7581 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7582 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7583 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7584 *\ 2.11.*) ;; # other 2.11 versions
7585 *) supports_anon_versioning=yes ;;
7588 # See if GNU ld supports shared libraries.
7590 aix3* | aix4* | aix5*)
7591 # On AIX/PPC, the GNU linker is very broken
7592 if test "$host_cpu" != ia64; then
7596 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7597 *** to be unable to reliably create shared libraries on AIX.
7598 *** Therefore, libtool is disabling shared libraries support. If you
7599 *** really care for shared libraries, you may want to modify your PATH
7600 *** so that a non-GNU linker is found, and then restart.
7607 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)'
7608 hardcode_libdir_flag_spec='-L$libdir'
7609 hardcode_minus_L=yes
7611 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7612 # that the semantics of dynamic libraries on AmigaOS, at least up
7613 # to version 4, is to share data among multiple programs linked
7614 # with the same dynamic library. Since this doesn't match the
7615 # behavior of shared libraries on other platforms, we can't use
7621 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7622 allow_undefined_flag=unsupported
7623 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7624 # support --undefined. This deserves some investigation. FIXME
7625 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7631 cygwin* | mingw* | pw32*)
7632 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7633 # as there is no search path for DLLs.
7634 hardcode_libdir_flag_spec='-L$libdir'
7635 allow_undefined_flag=unsupported
7636 always_export_symbols=no
7637 enable_shared_with_static_runtimes=yes
7638 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7640 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7641 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7642 # If the export-symbols file already is a .def file (1st line
7643 # is EXPORTS), use it as is; otherwise, prepend...
7644 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7645 cp $export_symbols $output_objdir/$soname.def;
7647 echo EXPORTS > $output_objdir/$soname.def;
7648 cat $export_symbols >> $output_objdir/$soname.def;
7650 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7658 hardcode_shlibpath_var=no
7659 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7660 export_dynamic_flag_spec='${wl}-E'
7661 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7662 # Instead, shared libraries are loaded at an image base (0x10000000 by
7663 # default) and relocated if they conflict, which is a slow very memory
7664 # consuming and fragmenting process. To avoid this, we pick a random,
7665 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7666 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7667 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7668 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'
7671 gnu* | linux* | k*bsd*-gnu)
7672 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7674 case $cc_basename,$host_cpu in
7675 pgcc*) # Portland Group C compiler
7676 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'
7677 tmp_addflag=' $pic_flag'
7679 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7680 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'
7681 tmp_addflag=' $pic_flag -Mnomain' ;;
7682 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7683 tmp_addflag=' -i_dynamic' ;;
7684 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7685 tmp_addflag=' -i_dynamic -nofor_main' ;;
7686 ifc* | ifort*) # Intel Fortran compiler
7687 tmp_addflag=' -nofor_main' ;;
7689 case `$CC -V 2>&1 | sed 5q` in
7690 *Sun\ C*) # Sun C 5.9
7691 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'
7692 tmp_sharedflag='-G' ;;
7693 *Sun\ F*) # Sun Fortran 8.3
7694 tmp_sharedflag='-G' ;;
7696 tmp_sharedflag='-shared' ;;
7698 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7700 if test $supports_anon_versioning = yes; then
7701 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7702 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7703 $echo "local: *; };" >> $output_objdir/$libname.ver~
7704 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7712 netbsd* | netbsdelf*-gnu)
7713 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7714 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7717 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7718 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7723 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7727 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7728 *** create shared libraries on Solaris systems. Therefore, libtool
7729 *** is disabling shared libraries support. We urge you to upgrade GNU
7730 *** binutils to release 2.9.1 or newer. Another option is to modify
7731 *** your PATH or compiler configuration so that the native linker is
7732 *** used, and then restart.
7735 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7736 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7737 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7743 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7744 case `$LD -v 2>&1` in
7745 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7749 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7750 *** reliably create shared libraries on SCO systems. Therefore, libtool
7751 *** is disabling shared libraries support. We urge you to upgrade GNU
7752 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7753 *** your PATH or compiler configuration so that the native linker is
7754 *** used, and then restart.
7759 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7760 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7761 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7762 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7771 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7774 hardcode_shlibpath_var=no
7778 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7779 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7780 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7787 if test "$ld_shlibs" = no; then
7789 hardcode_libdir_flag_spec=
7790 export_dynamic_flag_spec=
7791 whole_archive_flag_spec=
7794 # PORTME fill in a description of your system's linker (not GNU ld)
7797 allow_undefined_flag=unsupported
7798 always_export_symbols=yes
7799 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'
7800 # Note: this linker hardcodes the directories in LIBPATH if there
7801 # are no directories specified by -L.
7802 hardcode_minus_L=yes
7803 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7804 # Neither direct hardcoding nor static linking is supported with a
7806 hardcode_direct=unsupported
7811 if test "$host_cpu" = ia64; then
7812 # On IA64, the linker does run time linking by default, so we don't
7813 # have to do anything special.
7814 aix_use_runtimelinking=no
7815 exp_sym_flag='-Bexport'
7818 # If we're using GNU nm, then we don't want the "-C" option.
7819 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7820 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7821 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'
7823 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'
7825 aix_use_runtimelinking=no
7827 # Test if we are trying to use run time linking or normal
7828 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7829 # need to do runtime linking.
7830 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7831 for ld_flag in $LDFLAGS; do
7832 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7833 aix_use_runtimelinking=yes
7840 exp_sym_flag='-bexport'
7841 no_entry_flag='-bnoentry'
7844 # When large executables or shared objects are built, AIX ld can
7845 # have problems creating the table of contents. If linking a library
7846 # or program results in "error TOC overflow" add -mminimal-toc to
7847 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7848 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7852 hardcode_libdir_separator=':'
7853 link_all_deplibs=yes
7855 if test "$GCC" = yes; then
7856 case $host_os in aix4.[012]|aix4.[012].*)
7857 # We only want to do this on AIX 4.2 and lower, the check
7858 # below for broken collect2 doesn't work under 4.3+
7859 collect2name=`${CC} -print-prog-name=collect2`
7860 if test -f "$collect2name" && \
7861 strings "$collect2name" | grep resolve_lib_name >/dev/null
7863 # We have reworked collect2
7866 # We have old collect2
7867 hardcode_direct=unsupported
7868 # It fails to find uninstalled libraries when the uninstalled
7869 # path is not listed in the libpath. Setting hardcode_minus_L
7870 # to unsupported forces relinking
7871 hardcode_minus_L=yes
7872 hardcode_libdir_flag_spec='-L$libdir'
7873 hardcode_libdir_separator=
7877 shared_flag='-shared'
7878 if test "$aix_use_runtimelinking" = yes; then
7879 shared_flag="$shared_flag "'${wl}-G'
7883 if test "$host_cpu" = ia64; then
7884 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7885 # chokes on -Wl,-G. The following line is correct:
7888 if test "$aix_use_runtimelinking" = yes; then
7889 shared_flag='${wl}-G'
7891 shared_flag='${wl}-bM:SRE'
7896 # It seems that -bexpall does not export symbols beginning with
7897 # underscore (_), so it is better to generate a list of symbols to export.
7898 always_export_symbols=yes
7899 if test "$aix_use_runtimelinking" = yes; then
7900 # Warning - without using the other runtime loading flags (-brtl),
7901 # -berok will link without error, but may produce a broken library.
7902 allow_undefined_flag='-berok'
7903 # Determine the default libpath from the value encoded in an empty executable.
7904 cat >conftest.$ac_ext <<_ACEOF
7907 cat confdefs.h >>conftest.$ac_ext
7908 cat >>conftest.$ac_ext <<_ACEOF
7909 /* end confdefs.h. */
7919 rm -f conftest.$ac_objext conftest$ac_exeext
7920 if { (ac_try="$ac_link"
7922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7923 *) ac_try_echo=$ac_try;;
7925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7926 (eval "$ac_link") 2>conftest.er1
7928 grep -v '^ *+' conftest.er1 >conftest.err
7930 cat conftest.err >&5
7931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); } && {
7933 test -z "$ac_c_werror_flag" ||
7934 test ! -s conftest.err
7935 } && test -s conftest$ac_exeext &&
7936 $as_test_x conftest$ac_exeext; then
7938 lt_aix_libpath_sed='
7939 /Import File Strings/,/^$/ {
7945 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7946 # Check for a 64-bit object if we didn't find anything.
7947 if test -z "$aix_libpath"; then
7948 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7951 echo "$as_me: failed program was:" >&5
7952 sed 's/^/| /' conftest.$ac_ext >&5
7957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7958 conftest$ac_exeext conftest.$ac_ext
7959 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7961 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7962 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"
7964 if test "$host_cpu" = ia64; then
7965 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7966 allow_undefined_flag="-z nodefs"
7967 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"
7969 # Determine the default libpath from the value encoded in an empty executable.
7970 cat >conftest.$ac_ext <<_ACEOF
7973 cat confdefs.h >>conftest.$ac_ext
7974 cat >>conftest.$ac_ext <<_ACEOF
7975 /* end confdefs.h. */
7985 rm -f conftest.$ac_objext conftest$ac_exeext
7986 if { (ac_try="$ac_link"
7988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7989 *) ac_try_echo=$ac_try;;
7991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7992 (eval "$ac_link") 2>conftest.er1
7994 grep -v '^ *+' conftest.er1 >conftest.err
7996 cat conftest.err >&5
7997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998 (exit $ac_status); } && {
7999 test -z "$ac_c_werror_flag" ||
8000 test ! -s conftest.err
8001 } && test -s conftest$ac_exeext &&
8002 $as_test_x conftest$ac_exeext; then
8004 lt_aix_libpath_sed='
8005 /Import File Strings/,/^$/ {
8011 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8012 # Check for a 64-bit object if we didn't find anything.
8013 if test -z "$aix_libpath"; then
8014 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8017 echo "$as_me: failed program was:" >&5
8018 sed 's/^/| /' conftest.$ac_ext >&5
8023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8024 conftest$ac_exeext conftest.$ac_ext
8025 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8027 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8028 # Warning - without using the other run time loading flags,
8029 # -berok will link without error, but may produce a broken library.
8030 no_undefined_flag=' ${wl}-bernotok'
8031 allow_undefined_flag=' ${wl}-berok'
8032 # Exported symbols can be pulled into shared objects from archives
8033 whole_archive_flag_spec='$convenience'
8034 archive_cmds_need_lc=yes
8035 # This is similar to how AIX traditionally builds its shared libraries.
8036 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'
8042 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)'
8043 hardcode_libdir_flag_spec='-L$libdir'
8044 hardcode_minus_L=yes
8045 # see comment about different semantics on the GNU ld section
8050 export_dynamic_flag_spec=-rdynamic
8053 cygwin* | mingw* | pw32*)
8054 # When not using gcc, we currently assume that we are using
8055 # Microsoft Visual C++.
8056 # hardcode_libdir_flag_spec is actually meaningless, as there is
8057 # no search path for DLLs.
8058 hardcode_libdir_flag_spec=' '
8059 allow_undefined_flag=unsupported
8060 # Tell ltmain to make .lib files, not .a files.
8062 # Tell ltmain to make .dll files, not .so files.
8064 # FIXME: Setting linknames here is a bad hack.
8065 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8066 # The linker will automatically build a .lib file if we build a DLL.
8067 old_archive_From_new_cmds='true'
8068 # FIXME: Should let the user specify the lib program.
8069 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8070 fix_srcfile_path='`cygpath -w "$srcfile"`'
8071 enable_shared_with_static_runtimes=yes
8074 darwin* | rhapsody*)
8076 rhapsody* | darwin1.[012])
8077 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8080 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8081 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8083 case ${MACOSX_DEPLOYMENT_TARGET} in
8085 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8088 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8094 archive_cmds_need_lc=no
8096 hardcode_automatic=yes
8097 hardcode_shlibpath_var=unsupported
8098 whole_archive_flag_spec=''
8099 link_all_deplibs=yes
8100 if test "$GCC" = yes ; then
8101 output_verbose_link_cmd='echo'
8102 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8103 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8104 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8105 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8106 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}'
8108 case $cc_basename in
8110 output_verbose_link_cmd='echo'
8111 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8112 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8113 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8114 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}'
8115 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}'
8125 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8126 hardcode_libdir_flag_spec='-L$libdir'
8127 hardcode_shlibpath_var=no
8134 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8135 # support. Future versions do this automatically, but an explicit c++rt0.o
8136 # does not break anything, and helps significantly (at the cost of a little
8139 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8140 hardcode_libdir_flag_spec='-R$libdir'
8142 hardcode_shlibpath_var=no
8145 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8147 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8149 hardcode_minus_L=yes
8150 hardcode_shlibpath_var=no
8153 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8154 freebsd* | dragonfly*)
8155 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8156 hardcode_libdir_flag_spec='-R$libdir'
8158 hardcode_shlibpath_var=no
8162 if test "$GCC" = yes; then
8163 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'
8165 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'
8167 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8168 hardcode_libdir_separator=:
8171 # hardcode_minus_L: Not really in the search PATH,
8172 # but as the default location of the library.
8173 hardcode_minus_L=yes
8174 export_dynamic_flag_spec='${wl}-E'
8178 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8179 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8181 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8183 if test "$with_gnu_ld" = no; then
8184 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8185 hardcode_libdir_separator=:
8188 export_dynamic_flag_spec='${wl}-E'
8190 # hardcode_minus_L: Not really in the search PATH,
8191 # but as the default location of the library.
8192 hardcode_minus_L=yes
8197 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8200 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8203 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8206 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8212 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8215 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8218 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8222 if test "$with_gnu_ld" = no; then
8223 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8224 hardcode_libdir_separator=:
8228 hardcode_libdir_flag_spec_ld='+b $libdir'
8230 hardcode_shlibpath_var=no
8234 export_dynamic_flag_spec='${wl}-E'
8236 # hardcode_minus_L: Not really in the search PATH,
8237 # but as the default location of the library.
8238 hardcode_minus_L=yes
8244 irix5* | irix6* | nonstopux*)
8245 if test "$GCC" = yes; then
8246 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'
8248 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'
8249 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8251 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8252 hardcode_libdir_separator=:
8253 link_all_deplibs=yes
8256 netbsd* | netbsdelf*-gnu)
8257 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8258 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8260 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8262 hardcode_libdir_flag_spec='-R$libdir'
8264 hardcode_shlibpath_var=no
8268 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8270 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8271 hardcode_libdir_separator=:
8272 hardcode_shlibpath_var=no
8276 if test -f /usr/libexec/ld.so; then
8278 hardcode_shlibpath_var=no
8279 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8280 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8281 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8282 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8283 export_dynamic_flag_spec='${wl}-E'
8286 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8287 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8288 hardcode_libdir_flag_spec='-R$libdir'
8291 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8292 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8302 hardcode_libdir_flag_spec='-L$libdir'
8303 hardcode_minus_L=yes
8304 allow_undefined_flag=unsupported
8305 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'
8306 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8310 if test "$GCC" = yes; then
8311 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8312 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'
8314 allow_undefined_flag=' -expect_unresolved \*'
8315 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'
8317 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8318 hardcode_libdir_separator=:
8321 osf4* | osf5*) # as osf3* with the addition of -msym flag
8322 if test "$GCC" = yes; then
8323 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8324 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'
8325 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8327 allow_undefined_flag=' -expect_unresolved \*'
8328 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'
8329 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8330 $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'
8332 # Both c and cxx compiler support -rpath directly
8333 hardcode_libdir_flag_spec='-rpath $libdir'
8335 hardcode_libdir_separator=:
8339 no_undefined_flag=' -z text'
8340 if test "$GCC" = yes; then
8342 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8343 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8344 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8347 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8348 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8349 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8351 hardcode_libdir_flag_spec='-R$libdir'
8352 hardcode_shlibpath_var=no
8354 solaris2.[0-5] | solaris2.[0-5].*) ;;
8356 # The compiler driver will combine and reorder linker options,
8357 # but understands `-z linker_flag'. GCC discards it without `$wl',
8358 # but is careful enough not to reorder.
8359 # Supported since Solaris 2.6 (maybe 2.5.1?)
8360 if test "$GCC" = yes; then
8361 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8363 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8367 link_all_deplibs=yes
8371 if test "x$host_vendor" = xsequent; then
8372 # Use $CC to link under sequent, because it throws in some extra .o
8373 # files that make .init and .fini sections work.
8374 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8376 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8378 hardcode_libdir_flag_spec='-L$libdir'
8380 hardcode_minus_L=yes
8381 hardcode_shlibpath_var=no
8385 case $host_vendor in
8387 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8388 hardcode_direct=yes # is this really true???
8391 ## LD is ld it makes a PLAMLIB
8392 ## CC just makes a GrossModule.
8393 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8394 reload_cmds='$CC -r -o $output$reload_objs'
8398 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8399 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8402 runpath_var='LD_RUN_PATH'
8403 hardcode_shlibpath_var=no
8407 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8408 hardcode_shlibpath_var=no
8409 export_dynamic_flag_spec='-Bexport'
8413 if test -d /usr/nec; then
8414 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8415 hardcode_shlibpath_var=no
8416 runpath_var=LD_RUN_PATH
8417 hardcode_runpath_var=yes
8422 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8423 no_undefined_flag='${wl}-z,text'
8424 archive_cmds_need_lc=no
8425 hardcode_shlibpath_var=no
8426 runpath_var='LD_RUN_PATH'
8428 if test "$GCC" = yes; then
8429 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8430 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8432 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8433 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8437 sysv5* | sco3.2v5* | sco5v6*)
8438 # Note: We can NOT use -z defs as we might desire, because we do not
8439 # link with -lc, and that would cause any symbols used from libc to
8440 # always be unresolved, which means just about no library would
8441 # ever link correctly. If we're not using GNU ld we use -z text
8442 # though, which does catch some bad symbols but isn't as heavy-handed
8444 no_undefined_flag='${wl}-z,text'
8445 allow_undefined_flag='${wl}-z,nodefs'
8446 archive_cmds_need_lc=no
8447 hardcode_shlibpath_var=no
8448 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8449 hardcode_libdir_separator=':'
8450 link_all_deplibs=yes
8451 export_dynamic_flag_spec='${wl}-Bexport'
8452 runpath_var='LD_RUN_PATH'
8454 if test "$GCC" = yes; then
8455 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8456 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8458 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8459 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8464 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8465 hardcode_libdir_flag_spec='-L$libdir'
8466 hardcode_shlibpath_var=no
8475 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8476 echo "${ECHO_T}$ld_shlibs" >&6; }
8477 test "$ld_shlibs" = no && can_build_shared=no
8480 # Do we need to explicitly link libc?
8482 case "x$archive_cmds_need_lc" in
8484 # Assume -lc should be added
8485 archive_cmds_need_lc=yes
8487 if test "$enable_shared" = yes && test "$GCC" = yes; then
8488 case $archive_cmds in
8490 # FIXME: we may have to deal with multi-command sequences.
8493 # Test whether the compiler implicitly links with -lc since on some
8494 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8495 # to ld, don't add -lc before -lgcc.
8496 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8497 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8499 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8502 (eval $ac_compile) 2>&5
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 (exit $ac_status); } 2>conftest.err; then
8508 libobjs=conftest.$ac_objext
8510 wl=$lt_prog_compiler_wl
8511 pic_flag=$lt_prog_compiler_pic
8517 lt_save_allow_undefined_flag=$allow_undefined_flag
8518 allow_undefined_flag=
8519 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8520 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); }
8525 archive_cmds_need_lc=no
8527 archive_cmds_need_lc=yes
8529 allow_undefined_flag=$lt_save_allow_undefined_flag
8531 cat conftest.err 1>&5
8534 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8535 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8542 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8543 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8545 libname_spec='lib$name'
8553 shlibpath_overrides_runpath=unknown
8555 dynamic_linker="$host_os ld.so"
8556 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8558 if test "$GCC" = yes; then
8560 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8561 *) lt_awk_arg="/^libraries:/" ;;
8563 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8564 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8565 # if the path contains ";" then we assume it to be the separator
8566 # otherwise default to the standard path separator (i.e. ":") - it is
8567 # assumed that no part of a normal pathname contains ";" but that should
8568 # okay in the real world where ";" in dirpaths is itself problematic.
8569 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8571 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8573 # Ok, now we have the path, separated by spaces, we can step through it
8574 # and add multilib dir if necessary.
8575 lt_tmp_lt_search_path_spec=
8576 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8577 for lt_sys_path in $lt_search_path_spec; do
8578 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8579 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8581 test -d "$lt_sys_path" && \
8582 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8585 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8586 BEGIN {RS=" "; FS="/|\n";} {
8589 for (lt_i = NF; lt_i > 0; lt_i--) {
8590 if ($lt_i != "" && $lt_i != ".") {
8591 if ($lt_i == "..") {
8594 if (lt_count == 0) {
8595 lt_foo="/" $lt_i lt_foo;
8602 if (lt_foo != "") { lt_freq[lt_foo]++; }
8603 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8605 sys_lib_search_path_spec=`echo $lt_search_path_spec`
8607 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8609 need_lib_prefix=unknown
8610 hardcode_into_libs=no
8612 # when you set need_version to no, make sure it does not cause -set_version
8613 # flags to be left without arguments
8614 need_version=unknown
8619 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8620 shlibpath_var=LIBPATH
8622 # AIX 3 has no versioning support, so we append a major version to the name.
8623 soname_spec='${libname}${release}${shared_ext}$major'
8630 hardcode_into_libs=yes
8631 if test "$host_cpu" = ia64; then
8632 # AIX 5 supports IA64
8633 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8634 shlibpath_var=LD_LIBRARY_PATH
8636 # With GCC up to 2.95.x, collect2 would create an import file
8637 # for dependence libraries. The import file would start with
8638 # the line `#! .'. This would cause the generated library to
8639 # depend on `.', always an invalid library. This was fixed in
8640 # development snapshots of GCC prior to 3.0.
8642 aix4 | aix4.[01] | aix4.[01].*)
8643 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8645 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8652 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8653 # soname into executable. Probably we can add versioning support to
8654 # collect2, so additional links can be useful in future.
8655 if test "$aix_use_runtimelinking" = yes; then
8656 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8657 # instead of lib<name>.a to let people know that these are not
8658 # typical AIX shared libraries.
8659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8661 # We preserve .a as extension for shared libraries through AIX4.2
8662 # and later when we are not doing run time linking.
8663 library_names_spec='${libname}${release}.a $libname.a'
8664 soname_spec='${libname}${release}${shared_ext}$major'
8666 shlibpath_var=LIBPATH
8671 library_names_spec='$libname.ixlibrary $libname.a'
8672 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8673 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'
8677 library_names_spec='${libname}${shared_ext}'
8678 dynamic_linker="$host_os ld.so"
8679 shlibpath_var=LIBRARY_PATH
8685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8686 soname_spec='${libname}${release}${shared_ext}$major'
8687 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8688 shlibpath_var=LD_LIBRARY_PATH
8689 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8690 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8691 # the default ld.so.conf also contains /usr/contrib/lib and
8692 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8693 # libtool to hard-code these into programs
8696 cygwin* | mingw* | pw32*)
8697 version_type=windows
8702 case $GCC,$host_os in
8703 yes,cygwin* | yes,mingw* | yes,pw32*)
8704 library_names_spec='$libname.dll.a'
8705 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8706 postinstall_cmds='base_file=`basename \${file}`~
8707 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8708 dldir=$destdir/`dirname \$dlpath`~
8709 test -d \$dldir || mkdir -p \$dldir~
8710 $install_prog $dir/$dlname \$dldir/$dlname~
8711 chmod a+x \$dldir/$dlname'
8712 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8713 dlpath=$dir/\$dldll~
8715 shlibpath_overrides_runpath=yes
8719 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8720 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8721 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8724 # MinGW DLLs use traditional 'lib' prefix
8725 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8726 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8727 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8728 # It is most probably a Windows format PATH printed by
8729 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8730 # path with ; separators, and with drive letters. We can handle the
8731 # drive letters (cygwin fileutils understands them), so leave them,
8732 # especially as we might pass files found there to a mingw objdump,
8733 # which wouldn't understand a cygwinified path. Ahh.
8734 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8736 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8740 # pw32 DLLs use 'pw' prefix rather than 'lib'
8741 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8747 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8750 dynamic_linker='Win32 ld.exe'
8751 # FIXME: first we should search . and the directory the executable is in
8755 darwin* | rhapsody*)
8756 dynamic_linker="$host_os dyld"
8760 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8761 soname_spec='${libname}${release}${major}$shared_ext'
8762 shlibpath_overrides_runpath=yes
8763 shlibpath_var=DYLD_LIBRARY_PATH
8764 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8766 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8767 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8775 soname_spec='${libname}${release}${shared_ext}$major'
8776 shlibpath_var=LD_LIBRARY_PATH
8783 freebsd* | dragonfly*)
8784 # DragonFly does not have aout. When/if they implement a new
8785 # versioning mechanism, adjust this.
8786 if test -x /usr/bin/objformat; then
8787 objformat=`/usr/bin/objformat`
8790 freebsd[123]*) objformat=aout ;;
8794 version_type=freebsd-$objformat
8795 case $version_type in
8797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8802 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8806 shlibpath_var=LD_LIBRARY_PATH
8809 shlibpath_overrides_runpath=yes
8811 freebsd3.[01]* | freebsdelf3.[01]*)
8812 shlibpath_overrides_runpath=yes
8813 hardcode_into_libs=yes
8815 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8816 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8817 shlibpath_overrides_runpath=no
8818 hardcode_into_libs=yes
8820 *) # from 4.6 on, and DragonFly
8821 shlibpath_overrides_runpath=yes
8822 hardcode_into_libs=yes
8831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8832 soname_spec='${libname}${release}${shared_ext}$major'
8833 shlibpath_var=LD_LIBRARY_PATH
8834 hardcode_into_libs=yes
8837 hpux9* | hpux10* | hpux11*)
8838 # Give a soname corresponding to the major version so that dld.sl refuses to
8839 # link against other versions.
8846 hardcode_into_libs=yes
8847 dynamic_linker="$host_os dld.so"
8848 shlibpath_var=LD_LIBRARY_PATH
8849 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8851 soname_spec='${libname}${release}${shared_ext}$major'
8852 if test "X$HPUX_IA64_MODE" = X32; then
8853 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8855 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8857 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8861 hardcode_into_libs=yes
8862 dynamic_linker="$host_os dld.sl"
8863 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8864 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8866 soname_spec='${libname}${release}${shared_ext}$major'
8867 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8868 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8872 dynamic_linker="$host_os dld.sl"
8873 shlibpath_var=SHLIB_PATH
8874 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8876 soname_spec='${libname}${release}${shared_ext}$major'
8879 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8880 postinstall_cmds='chmod 555 $lib'
8887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8888 soname_spec='${libname}${release}${shared_ext}$major'
8889 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8890 shlibpath_var=LD_LIBRARY_PATH
8891 shlibpath_overrides_runpath=no
8892 hardcode_into_libs=yes
8895 irix5* | irix6* | nonstopux*)
8897 nonstopux*) version_type=nonstopux ;;
8899 if test "$lt_cv_prog_gnu_ld" = yes; then
8907 soname_spec='${libname}${release}${shared_ext}$major'
8908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8910 irix5* | nonstopux*)
8914 case $LD in # libtool.m4 will add one of these switches to LD
8915 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8916 libsuff= shlibsuff= libmagic=32-bit;;
8917 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8918 libsuff=32 shlibsuff=N32 libmagic=N32;;
8919 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8920 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8921 *) libsuff= shlibsuff= libmagic=never-match;;
8925 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8926 shlibpath_overrides_runpath=no
8927 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8928 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8929 hardcode_into_libs=yes
8932 # No shared lib support for Linux oldld, aout, or coff.
8933 linux*oldld* | linux*aout* | linux*coff*)
8937 # This must be Linux ELF.
8938 linux* | k*bsd*-gnu)
8942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8943 soname_spec='${libname}${release}${shared_ext}$major'
8944 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8945 shlibpath_var=LD_LIBRARY_PATH
8946 shlibpath_overrides_runpath=no
8947 # This implies no fast_install, which is unacceptable.
8948 # Some rework will be needed to allow for fast_install
8949 # before this can be enabled.
8950 hardcode_into_libs=yes
8952 # Append ld.so.conf contents to the search path
8953 if test -f /etc/ld.so.conf; then
8954 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' ' '`
8955 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8958 # We used to test for /lib/ld.so.1 and disable shared libraries on
8959 # powerpc, because MkLinux only supported shared libraries with the
8960 # GNU dynamic linker. Since this was broken with cross compilers,
8961 # most powerpc-linux boxes support dynamic linking these days and
8962 # people can always --disable-shared, the test was removed, and we
8963 # assume the GNU/Linux dynamic linker is in use.
8964 dynamic_linker='GNU/Linux ld.so'
8971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8972 soname_spec='${libname}${release}${shared_ext}$major'
8973 shlibpath_var=LD_LIBRARY_PATH
8974 shlibpath_overrides_runpath=no
8975 hardcode_into_libs=yes
8976 dynamic_linker='NetBSD ld.elf_so'
8983 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8985 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8986 dynamic_linker='NetBSD (a.out) ld.so'
8988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8989 soname_spec='${libname}${release}${shared_ext}$major'
8990 dynamic_linker='NetBSD ld.elf_so'
8992 shlibpath_var=LD_LIBRARY_PATH
8993 shlibpath_overrides_runpath=yes
8994 hardcode_into_libs=yes
8999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9000 shlibpath_var=LD_LIBRARY_PATH
9001 shlibpath_overrides_runpath=yes
9008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9009 soname_spec='${libname}${release}${shared_ext}$major'
9010 shlibpath_var=LD_LIBRARY_PATH
9011 shlibpath_overrides_runpath=yes
9016 sys_lib_dlsearch_path_spec="/usr/lib"
9018 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9020 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9021 *) need_version=no ;;
9023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9024 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9025 shlibpath_var=LD_LIBRARY_PATH
9026 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9028 openbsd2.[89] | openbsd2.[89].*)
9029 shlibpath_overrides_runpath=no
9032 shlibpath_overrides_runpath=yes
9036 shlibpath_overrides_runpath=yes
9041 libname_spec='$name'
9044 library_names_spec='$libname${shared_ext} $libname.a'
9045 dynamic_linker='OS/2 ld.exe'
9046 shlibpath_var=LIBPATH
9049 osf3* | osf4* | osf5*)
9053 soname_spec='${libname}${release}${shared_ext}$major'
9054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9055 shlibpath_var=LD_LIBRARY_PATH
9056 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9057 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9069 soname_spec='${libname}${release}${shared_ext}$major'
9070 shlibpath_var=LD_LIBRARY_PATH
9071 shlibpath_overrides_runpath=yes
9072 hardcode_into_libs=yes
9073 # ldd complains unless libraries are executable
9074 postinstall_cmds='chmod +x $lib'
9079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9080 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9081 shlibpath_var=LD_LIBRARY_PATH
9082 shlibpath_overrides_runpath=yes
9083 if test "$with_gnu_ld" = yes; then
9091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9092 soname_spec='${libname}${release}${shared_ext}$major'
9093 shlibpath_var=LD_LIBRARY_PATH
9094 case $host_vendor in
9096 shlibpath_overrides_runpath=no
9098 export_dynamic_flag_spec='${wl}-Blargedynsym'
9099 runpath_var=LD_RUN_PATH
9107 shlibpath_overrides_runpath=no
9108 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9114 if test -d /usr/nec ;then
9116 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9117 soname_spec='$libname${shared_ext}.$major'
9118 shlibpath_var=LD_LIBRARY_PATH
9122 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9123 version_type=freebsd-elf
9126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9127 soname_spec='${libname}${release}${shared_ext}$major'
9128 shlibpath_var=LD_LIBRARY_PATH
9129 hardcode_into_libs=yes
9130 if test "$with_gnu_ld" = yes; then
9131 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9132 shlibpath_overrides_runpath=no
9134 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9135 shlibpath_overrides_runpath=yes
9138 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9142 sys_lib_dlsearch_path_spec='/usr/lib'
9147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9148 soname_spec='${libname}${release}${shared_ext}$major'
9149 shlibpath_var=LD_LIBRARY_PATH
9156 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9157 echo "${ECHO_T}$dynamic_linker" >&6; }
9158 test "$dynamic_linker" = no && can_build_shared=no
9160 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9161 if test "$GCC" = yes; then
9162 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9165 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9166 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9168 if test -n "$hardcode_libdir_flag_spec" || \
9169 test -n "$runpath_var" || \
9170 test "X$hardcode_automatic" = "Xyes" ; then
9172 # We can hardcode non-existant directories.
9173 if test "$hardcode_direct" != no &&
9174 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9175 # have to relink, otherwise we might link with an installed library
9176 # when we should be linking with a yet-to-be-installed one
9177 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9178 test "$hardcode_minus_L" != no; then
9179 # Linking always hardcodes the temporary library directory.
9180 hardcode_action=relink
9182 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9183 hardcode_action=immediate
9186 # We cannot hardcode anything, or else we can only hardcode existing
9188 hardcode_action=unsupported
9190 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9191 echo "${ECHO_T}$hardcode_action" >&6; }
9193 if test "$hardcode_action" = relink; then
9194 # Fast installation is not supported
9195 enable_fast_install=no
9196 elif test "$shlibpath_overrides_runpath" = yes ||
9197 test "$enable_shared" = no; then
9198 # Fast installation is not necessary
9199 enable_fast_install=needless
9204 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9205 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9206 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9207 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9208 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9209 { echo "$as_me:$LINENO: result: yes" >&5
9210 echo "${ECHO_T}yes" >&6; }
9212 # FIXME - insert some real tests, host_os isn't really good enough
9215 if test -n "$STRIP" ; then
9216 striplib="$STRIP -x"
9217 old_striplib="$STRIP -S"
9218 { echo "$as_me:$LINENO: result: yes" >&5
9219 echo "${ECHO_T}yes" >&6; }
9221 { echo "$as_me:$LINENO: result: no" >&5
9222 echo "${ECHO_T}no" >&6; }
9226 { echo "$as_me:$LINENO: result: no" >&5
9227 echo "${ECHO_T}no" >&6; }
9232 if test "x$enable_dlopen" != xyes; then
9233 enable_dlopen=unknown
9234 enable_dlopen_self=unknown
9235 enable_dlopen_self_static=unknown
9242 lt_cv_dlopen="load_add_on"
9244 lt_cv_dlopen_self=yes
9248 lt_cv_dlopen="LoadLibrary"
9253 lt_cv_dlopen="dlopen"
9258 # if libdl is installed we need to link against it
9259 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9260 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9261 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9262 echo $ECHO_N "(cached) $ECHO_C" >&6
9264 ac_check_lib_save_LIBS=$LIBS
9266 cat >conftest.$ac_ext <<_ACEOF
9269 cat confdefs.h >>conftest.$ac_ext
9270 cat >>conftest.$ac_ext <<_ACEOF
9271 /* end confdefs.h. */
9273 /* Override any GCC internal prototype to avoid an error.
9274 Use char because int might match the return type of a GCC
9275 builtin and then its argument prototype would still apply. */
9288 rm -f conftest.$ac_objext conftest$ac_exeext
9289 if { (ac_try="$ac_link"
9291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9292 *) ac_try_echo=$ac_try;;
9294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9295 (eval "$ac_link") 2>conftest.er1
9297 grep -v '^ *+' conftest.er1 >conftest.err
9299 cat conftest.err >&5
9300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301 (exit $ac_status); } && {
9302 test -z "$ac_c_werror_flag" ||
9303 test ! -s conftest.err
9304 } && test -s conftest$ac_exeext &&
9305 $as_test_x conftest$ac_exeext; then
9306 ac_cv_lib_dl_dlopen=yes
9308 echo "$as_me: failed program was:" >&5
9309 sed 's/^/| /' conftest.$ac_ext >&5
9311 ac_cv_lib_dl_dlopen=no
9314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9315 conftest$ac_exeext conftest.$ac_ext
9316 LIBS=$ac_check_lib_save_LIBS
9318 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9319 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9320 if test $ac_cv_lib_dl_dlopen = yes; then
9321 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9326 lt_cv_dlopen_self=yes
9333 { echo "$as_me:$LINENO: checking for shl_load" >&5
9334 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9335 if test "${ac_cv_func_shl_load+set}" = set; then
9336 echo $ECHO_N "(cached) $ECHO_C" >&6
9338 cat >conftest.$ac_ext <<_ACEOF
9341 cat confdefs.h >>conftest.$ac_ext
9342 cat >>conftest.$ac_ext <<_ACEOF
9343 /* end confdefs.h. */
9344 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9345 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9346 #define shl_load innocuous_shl_load
9348 /* System header to define __stub macros and hopefully few prototypes,
9349 which can conflict with char shl_load (); below.
9350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9351 <limits.h> exists even on freestanding compilers. */
9354 # include <limits.h>
9356 # include <assert.h>
9361 /* Override any GCC internal prototype to avoid an error.
9362 Use char because int might match the return type of a GCC
9363 builtin and then its argument prototype would still apply. */
9368 /* The GNU C library defines this for functions which it implements
9369 to always fail with ENOSYS. Some functions are actually named
9370 something starting with __ and the normal name is an alias. */
9371 #if defined __stub_shl_load || defined __stub___shl_load
9383 rm -f conftest.$ac_objext conftest$ac_exeext
9384 if { (ac_try="$ac_link"
9386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9387 *) ac_try_echo=$ac_try;;
9389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9390 (eval "$ac_link") 2>conftest.er1
9392 grep -v '^ *+' conftest.er1 >conftest.err
9394 cat conftest.err >&5
9395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396 (exit $ac_status); } && {
9397 test -z "$ac_c_werror_flag" ||
9398 test ! -s conftest.err
9399 } && test -s conftest$ac_exeext &&
9400 $as_test_x conftest$ac_exeext; then
9401 ac_cv_func_shl_load=yes
9403 echo "$as_me: failed program was:" >&5
9404 sed 's/^/| /' conftest.$ac_ext >&5
9406 ac_cv_func_shl_load=no
9409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9410 conftest$ac_exeext conftest.$ac_ext
9412 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9413 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9414 if test $ac_cv_func_shl_load = yes; then
9415 lt_cv_dlopen="shl_load"
9417 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9418 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9419 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9420 echo $ECHO_N "(cached) $ECHO_C" >&6
9422 ac_check_lib_save_LIBS=$LIBS
9424 cat >conftest.$ac_ext <<_ACEOF
9427 cat confdefs.h >>conftest.$ac_ext
9428 cat >>conftest.$ac_ext <<_ACEOF
9429 /* end confdefs.h. */
9431 /* Override any GCC internal prototype to avoid an error.
9432 Use char because int might match the return type of a GCC
9433 builtin and then its argument prototype would still apply. */
9446 rm -f conftest.$ac_objext conftest$ac_exeext
9447 if { (ac_try="$ac_link"
9449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9450 *) ac_try_echo=$ac_try;;
9452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9453 (eval "$ac_link") 2>conftest.er1
9455 grep -v '^ *+' conftest.er1 >conftest.err
9457 cat conftest.err >&5
9458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459 (exit $ac_status); } && {
9460 test -z "$ac_c_werror_flag" ||
9461 test ! -s conftest.err
9462 } && test -s conftest$ac_exeext &&
9463 $as_test_x conftest$ac_exeext; then
9464 ac_cv_lib_dld_shl_load=yes
9466 echo "$as_me: failed program was:" >&5
9467 sed 's/^/| /' conftest.$ac_ext >&5
9469 ac_cv_lib_dld_shl_load=no
9472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9473 conftest$ac_exeext conftest.$ac_ext
9474 LIBS=$ac_check_lib_save_LIBS
9476 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9477 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9478 if test $ac_cv_lib_dld_shl_load = yes; then
9479 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9481 { echo "$as_me:$LINENO: checking for dlopen" >&5
9482 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9483 if test "${ac_cv_func_dlopen+set}" = set; then
9484 echo $ECHO_N "(cached) $ECHO_C" >&6
9486 cat >conftest.$ac_ext <<_ACEOF
9489 cat confdefs.h >>conftest.$ac_ext
9490 cat >>conftest.$ac_ext <<_ACEOF
9491 /* end confdefs.h. */
9492 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9493 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9494 #define dlopen innocuous_dlopen
9496 /* System header to define __stub macros and hopefully few prototypes,
9497 which can conflict with char dlopen (); below.
9498 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9499 <limits.h> exists even on freestanding compilers. */
9502 # include <limits.h>
9504 # include <assert.h>
9509 /* Override any GCC internal prototype to avoid an error.
9510 Use char because int might match the return type of a GCC
9511 builtin and then its argument prototype would still apply. */
9516 /* The GNU C library defines this for functions which it implements
9517 to always fail with ENOSYS. Some functions are actually named
9518 something starting with __ and the normal name is an alias. */
9519 #if defined __stub_dlopen || defined __stub___dlopen
9531 rm -f conftest.$ac_objext conftest$ac_exeext
9532 if { (ac_try="$ac_link"
9534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9535 *) ac_try_echo=$ac_try;;
9537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9538 (eval "$ac_link") 2>conftest.er1
9540 grep -v '^ *+' conftest.er1 >conftest.err
9542 cat conftest.err >&5
9543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544 (exit $ac_status); } && {
9545 test -z "$ac_c_werror_flag" ||
9546 test ! -s conftest.err
9547 } && test -s conftest$ac_exeext &&
9548 $as_test_x conftest$ac_exeext; then
9549 ac_cv_func_dlopen=yes
9551 echo "$as_me: failed program was:" >&5
9552 sed 's/^/| /' conftest.$ac_ext >&5
9554 ac_cv_func_dlopen=no
9557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9558 conftest$ac_exeext conftest.$ac_ext
9560 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9561 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9562 if test $ac_cv_func_dlopen = yes; then
9563 lt_cv_dlopen="dlopen"
9565 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9566 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9567 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9568 echo $ECHO_N "(cached) $ECHO_C" >&6
9570 ac_check_lib_save_LIBS=$LIBS
9572 cat >conftest.$ac_ext <<_ACEOF
9575 cat confdefs.h >>conftest.$ac_ext
9576 cat >>conftest.$ac_ext <<_ACEOF
9577 /* end confdefs.h. */
9579 /* Override any GCC internal prototype to avoid an error.
9580 Use char because int might match the return type of a GCC
9581 builtin and then its argument prototype would still apply. */
9594 rm -f conftest.$ac_objext conftest$ac_exeext
9595 if { (ac_try="$ac_link"
9597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9598 *) ac_try_echo=$ac_try;;
9600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9601 (eval "$ac_link") 2>conftest.er1
9603 grep -v '^ *+' conftest.er1 >conftest.err
9605 cat conftest.err >&5
9606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607 (exit $ac_status); } && {
9608 test -z "$ac_c_werror_flag" ||
9609 test ! -s conftest.err
9610 } && test -s conftest$ac_exeext &&
9611 $as_test_x conftest$ac_exeext; then
9612 ac_cv_lib_dl_dlopen=yes
9614 echo "$as_me: failed program was:" >&5
9615 sed 's/^/| /' conftest.$ac_ext >&5
9617 ac_cv_lib_dl_dlopen=no
9620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9621 conftest$ac_exeext conftest.$ac_ext
9622 LIBS=$ac_check_lib_save_LIBS
9624 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9625 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9626 if test $ac_cv_lib_dl_dlopen = yes; then
9627 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9629 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9630 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9631 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9632 echo $ECHO_N "(cached) $ECHO_C" >&6
9634 ac_check_lib_save_LIBS=$LIBS
9636 cat >conftest.$ac_ext <<_ACEOF
9639 cat confdefs.h >>conftest.$ac_ext
9640 cat >>conftest.$ac_ext <<_ACEOF
9641 /* end confdefs.h. */
9643 /* Override any GCC internal prototype to avoid an error.
9644 Use char because int might match the return type of a GCC
9645 builtin and then its argument prototype would still apply. */
9658 rm -f conftest.$ac_objext conftest$ac_exeext
9659 if { (ac_try="$ac_link"
9661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9662 *) ac_try_echo=$ac_try;;
9664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9665 (eval "$ac_link") 2>conftest.er1
9667 grep -v '^ *+' conftest.er1 >conftest.err
9669 cat conftest.err >&5
9670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671 (exit $ac_status); } && {
9672 test -z "$ac_c_werror_flag" ||
9673 test ! -s conftest.err
9674 } && test -s conftest$ac_exeext &&
9675 $as_test_x conftest$ac_exeext; then
9676 ac_cv_lib_svld_dlopen=yes
9678 echo "$as_me: failed program was:" >&5
9679 sed 's/^/| /' conftest.$ac_ext >&5
9681 ac_cv_lib_svld_dlopen=no
9684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9685 conftest$ac_exeext conftest.$ac_ext
9686 LIBS=$ac_check_lib_save_LIBS
9688 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9689 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9690 if test $ac_cv_lib_svld_dlopen = yes; then
9691 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9693 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9694 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9695 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9696 echo $ECHO_N "(cached) $ECHO_C" >&6
9698 ac_check_lib_save_LIBS=$LIBS
9700 cat >conftest.$ac_ext <<_ACEOF
9703 cat confdefs.h >>conftest.$ac_ext
9704 cat >>conftest.$ac_ext <<_ACEOF
9705 /* end confdefs.h. */
9707 /* Override any GCC internal prototype to avoid an error.
9708 Use char because int might match the return type of a GCC
9709 builtin and then its argument prototype would still apply. */
9722 rm -f conftest.$ac_objext conftest$ac_exeext
9723 if { (ac_try="$ac_link"
9725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9726 *) ac_try_echo=$ac_try;;
9728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9729 (eval "$ac_link") 2>conftest.er1
9731 grep -v '^ *+' conftest.er1 >conftest.err
9733 cat conftest.err >&5
9734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9735 (exit $ac_status); } && {
9736 test -z "$ac_c_werror_flag" ||
9737 test ! -s conftest.err
9738 } && test -s conftest$ac_exeext &&
9739 $as_test_x conftest$ac_exeext; then
9740 ac_cv_lib_dld_dld_link=yes
9742 echo "$as_me: failed program was:" >&5
9743 sed 's/^/| /' conftest.$ac_ext >&5
9745 ac_cv_lib_dld_dld_link=no
9748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9749 conftest$ac_exeext conftest.$ac_ext
9750 LIBS=$ac_check_lib_save_LIBS
9752 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9753 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9754 if test $ac_cv_lib_dld_dld_link = yes; then
9755 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9776 if test "x$lt_cv_dlopen" != xno; then
9782 case $lt_cv_dlopen in
9784 save_CPPFLAGS="$CPPFLAGS"
9785 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9787 save_LDFLAGS="$LDFLAGS"
9788 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9791 LIBS="$lt_cv_dlopen_libs $LIBS"
9793 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9794 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9795 if test "${lt_cv_dlopen_self+set}" = set; then
9796 echo $ECHO_N "(cached) $ECHO_C" >&6
9798 if test "$cross_compiling" = yes; then :
9799 lt_cv_dlopen_self=cross
9801 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9802 lt_status=$lt_dlunknown
9803 cat > conftest.$ac_ext <<EOF
9804 #line 9804 "configure"
9805 #include "confdefs.h"
9814 # define LT_DLGLOBAL RTLD_GLOBAL
9817 # define LT_DLGLOBAL DL_GLOBAL
9819 # define LT_DLGLOBAL 0
9823 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9824 find out it does not work in some platform. */
9825 #ifndef LT_DLLAZY_OR_NOW
9827 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9830 # define LT_DLLAZY_OR_NOW DL_LAZY
9833 # define LT_DLLAZY_OR_NOW RTLD_NOW
9836 # define LT_DLLAZY_OR_NOW DL_NOW
9838 # define LT_DLLAZY_OR_NOW 0
9846 extern "C" void exit (int);
9849 void fnord() { int i=42;}
9852 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9853 int status = $lt_dlunknown;
9857 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9858 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9859 /* dlclose (self); */
9867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9868 (eval $ac_link) 2>&5
9870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9872 (./conftest; exit; ) >&5 2>/dev/null
9875 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9876 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9877 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9880 # compilation failed
9881 lt_cv_dlopen_self=no
9888 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9889 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9891 if test "x$lt_cv_dlopen_self" = xyes; then
9892 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9893 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9894 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9895 if test "${lt_cv_dlopen_self_static+set}" = set; then
9896 echo $ECHO_N "(cached) $ECHO_C" >&6
9898 if test "$cross_compiling" = yes; then :
9899 lt_cv_dlopen_self_static=cross
9901 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9902 lt_status=$lt_dlunknown
9903 cat > conftest.$ac_ext <<EOF
9904 #line 9904 "configure"
9905 #include "confdefs.h"
9914 # define LT_DLGLOBAL RTLD_GLOBAL
9917 # define LT_DLGLOBAL DL_GLOBAL
9919 # define LT_DLGLOBAL 0
9923 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9924 find out it does not work in some platform. */
9925 #ifndef LT_DLLAZY_OR_NOW
9927 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9930 # define LT_DLLAZY_OR_NOW DL_LAZY
9933 # define LT_DLLAZY_OR_NOW RTLD_NOW
9936 # define LT_DLLAZY_OR_NOW DL_NOW
9938 # define LT_DLLAZY_OR_NOW 0
9946 extern "C" void exit (int);
9949 void fnord() { int i=42;}
9952 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9953 int status = $lt_dlunknown;
9957 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9958 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9959 /* dlclose (self); */
9967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9968 (eval $ac_link) 2>&5
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9972 (./conftest; exit; ) >&5 2>/dev/null
9975 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9976 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9977 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9980 # compilation failed
9981 lt_cv_dlopen_self_static=no
9988 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9989 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9992 CPPFLAGS="$save_CPPFLAGS"
9993 LDFLAGS="$save_LDFLAGS"
9998 case $lt_cv_dlopen_self in
9999 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10000 *) enable_dlopen_self=unknown ;;
10003 case $lt_cv_dlopen_self_static in
10004 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10005 *) enable_dlopen_self_static=unknown ;;
10010 # Report which library types will actually be built
10011 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10012 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10013 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10014 echo "${ECHO_T}$can_build_shared" >&6; }
10016 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10017 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10018 test "$can_build_shared" = "no" && enable_shared=no
10020 # On AIX, shared libraries and static libraries use the same namespace, and
10021 # are all built from PIC.
10024 test "$enable_shared" = yes && enable_static=no
10025 if test -n "$RANLIB"; then
10026 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10027 postinstall_cmds='$RANLIB $lib'
10032 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10033 test "$enable_shared" = yes && enable_static=no
10037 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10038 echo "${ECHO_T}$enable_shared" >&6; }
10040 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10041 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10042 # Make sure either enable_shared or enable_static is yes.
10043 test "$enable_shared" = yes || enable_static=yes
10044 { echo "$as_me:$LINENO: result: $enable_static" >&5
10045 echo "${ECHO_T}$enable_static" >&6; }
10047 # The else clause should only fire when bootstrapping the
10048 # libtool distribution, otherwise you forgot to ship ltmain.sh
10049 # with your package, and you will get complaints that there are
10050 # no rules to generate ltmain.sh.
10051 if test -f "$ltmain"; then
10052 # See if we are running on zsh, and set the options which allow our commands through
10053 # without removal of \ escapes.
10054 if test -n "${ZSH_VERSION+set}" ; then
10055 setopt NO_GLOB_SUBST
10057 # Now quote all the things that may contain metacharacters while being
10058 # careful not to overquote the AC_SUBSTed values. We take copies of the
10059 # variables and quote the copies for generation of the libtool script.
10060 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10062 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10063 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10064 deplibs_check_method reload_flag reload_cmds need_locks \
10065 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10066 lt_cv_sys_global_symbol_to_c_name_address \
10067 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10068 old_postinstall_cmds old_postuninstall_cmds \
10072 lt_prog_compiler_wl \
10073 lt_prog_compiler_pic \
10074 lt_prog_compiler_static \
10075 lt_prog_compiler_no_builtin_flag \
10076 export_dynamic_flag_spec \
10077 thread_safe_flag_spec \
10078 whole_archive_flag_spec \
10079 enable_shared_with_static_runtimes \
10081 old_archive_from_new_cmds \
10086 compiler_lib_search_path \
10088 archive_expsym_cmds \
10090 postuninstall_cmds \
10091 old_archive_from_expsyms_cmds \
10092 allow_undefined_flag \
10093 no_undefined_flag \
10094 export_symbols_cmds \
10095 hardcode_libdir_flag_spec \
10096 hardcode_libdir_flag_spec_ld \
10097 hardcode_libdir_separator \
10098 hardcode_automatic \
10100 module_expsym_cmds \
10101 lt_cv_prog_compiler_c_o \
10104 include_expsyms; do
10107 old_archive_cmds | \
10108 old_archive_from_new_cmds | \
10110 archive_expsym_cmds | \
10112 module_expsym_cmds | \
10113 old_archive_from_expsyms_cmds | \
10114 export_symbols_cmds | \
10115 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10116 postinstall_cmds | postuninstall_cmds | \
10117 old_postinstall_cmds | old_postuninstall_cmds | \
10118 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10119 # Double-quote double-evaled strings.
10120 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10123 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10129 *'\$0 --fallback-echo"')
10130 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10134 cfgfile="${ofile}T"
10135 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10137 { echo "$as_me:$LINENO: creating $ofile" >&5
10138 echo "$as_me: creating $ofile" >&6;}
10140 cat <<__EOF__ >> "$cfgfile"
10143 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10144 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10145 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10147 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10148 # Free Software Foundation, Inc.
10150 # This file is part of GNU Libtool:
10151 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10153 # This program is free software; you can redistribute it and/or modify
10154 # it under the terms of the GNU General Public License as published by
10155 # the Free Software Foundation; either version 2 of the License, or
10156 # (at your option) any later version.
10158 # This program is distributed in the hope that it will be useful, but
10159 # WITHOUT ANY WARRANTY; without even the implied warranty of
10160 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10161 # General Public License for more details.
10163 # You should have received a copy of the GNU General Public License
10164 # along with this program; if not, write to the Free Software
10165 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10167 # As a special exception to the GNU General Public License, if you
10168 # distribute this file as part of a program that contains a
10169 # configuration script generated by Autoconf, you may include it under
10170 # the same distribution terms that you use for the rest of that program.
10172 # A sed program that does not truncate output.
10175 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10176 Xsed="$SED -e 1s/^X//"
10178 # The HP-UX ksh and POSIX shell print the target directory to stdout
10179 # if CDPATH is set.
10180 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10182 # The names of the tagged configurations supported by this script.
10185 # ### BEGIN LIBTOOL CONFIG
10187 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10189 # Shell to use when invoking shell scripts.
10192 # Whether or not to build shared libraries.
10193 build_libtool_libs=$enable_shared
10195 # Whether or not to build static libraries.
10196 build_old_libs=$enable_static
10198 # Whether or not to add -lc for building shared libraries.
10199 build_libtool_need_lc=$archive_cmds_need_lc
10201 # Whether or not to disallow shared libs when runtime libs are static
10202 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10204 # Whether or not to optimize for fast installation.
10205 fast_install=$enable_fast_install
10208 host_alias=$host_alias
10212 # The build system.
10213 build_alias=$build_alias
10217 # An echo program that does not interpret backslashes.
10222 AR_FLAGS=$lt_AR_FLAGS
10227 # LTCC compiler flags.
10228 LTCFLAGS=$lt_LTCFLAGS
10230 # A language-specific compiler.
10233 # Is the compiler the GNU C compiler?
10239 # The linker used to build libraries.
10242 # Whether we need hard or soft links.
10245 # A BSD-compatible nm program.
10248 # A symbol stripping program
10251 # Used to examine libraries when file_magic_cmd begins "file"
10252 MAGIC_CMD=$MAGIC_CMD
10254 # Used on cygwin: DLL creation program.
10257 # Used on cygwin: object dumper.
10260 # Used on cygwin: assembler.
10263 # The name of the directory that contains temporary libtool files.
10266 # How to create reloadable object files.
10267 reload_flag=$lt_reload_flag
10268 reload_cmds=$lt_reload_cmds
10270 # How to pass a linker flag through the compiler.
10271 wl=$lt_lt_prog_compiler_wl
10273 # Object file suffix (normally "o").
10274 objext="$ac_objext"
10276 # Old archive suffix (normally "a").
10279 # Shared library suffix (normally ".so").
10280 shrext_cmds='$shrext_cmds'
10282 # Executable file suffix (normally "").
10285 # Additional compiler flags for building library objects.
10286 pic_flag=$lt_lt_prog_compiler_pic
10289 # What is the maximum length of a command?
10290 max_cmd_len=$lt_cv_sys_max_cmd_len
10292 # Does compiler simultaneously support -c and -o options?
10293 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10295 # Must we lock files when doing compilation?
10296 need_locks=$lt_need_locks
10298 # Do we need the lib prefix for modules?
10299 need_lib_prefix=$need_lib_prefix
10301 # Do we need a version for libraries?
10302 need_version=$need_version
10304 # Whether dlopen is supported.
10305 dlopen_support=$enable_dlopen
10307 # Whether dlopen of programs is supported.
10308 dlopen_self=$enable_dlopen_self
10310 # Whether dlopen of statically linked programs is supported.
10311 dlopen_self_static=$enable_dlopen_self_static
10313 # Compiler flag to prevent dynamic linking.
10314 link_static_flag=$lt_lt_prog_compiler_static
10316 # Compiler flag to turn off builtin functions.
10317 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10319 # Compiler flag to allow reflexive dlopens.
10320 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10322 # Compiler flag to generate shared objects directly from archives.
10323 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10325 # Compiler flag to generate thread-safe objects.
10326 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10328 # Library versioning type.
10329 version_type=$version_type
10331 # Format of library name prefix.
10332 libname_spec=$lt_libname_spec
10334 # List of archive names. First name is the real one, the rest are links.
10335 # The last name is the one that the linker finds with -lNAME.
10336 library_names_spec=$lt_library_names_spec
10338 # The coded name of the library, if different from the real name.
10339 soname_spec=$lt_soname_spec
10341 # Commands used to build and install an old-style archive.
10343 old_archive_cmds=$lt_old_archive_cmds
10344 old_postinstall_cmds=$lt_old_postinstall_cmds
10345 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10347 # Create an old-style archive from a shared archive.
10348 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10350 # Create a temporary old-style archive to link instead of a shared archive.
10351 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10353 # Commands used to build and install a shared archive.
10354 archive_cmds=$lt_archive_cmds
10355 archive_expsym_cmds=$lt_archive_expsym_cmds
10356 postinstall_cmds=$lt_postinstall_cmds
10357 postuninstall_cmds=$lt_postuninstall_cmds
10359 # Commands used to build a loadable module (assumed same as above if empty)
10360 module_cmds=$lt_module_cmds
10361 module_expsym_cmds=$lt_module_expsym_cmds
10363 # Commands to strip libraries.
10364 old_striplib=$lt_old_striplib
10365 striplib=$lt_striplib
10367 # Dependencies to place before the objects being linked to create a
10369 predep_objects=$lt_predep_objects
10371 # Dependencies to place after the objects being linked to create a
10373 postdep_objects=$lt_postdep_objects
10375 # Dependencies to place before the objects being linked to create a
10377 predeps=$lt_predeps
10379 # Dependencies to place after the objects being linked to create a
10381 postdeps=$lt_postdeps
10383 # The library search path used internally by the compiler when linking
10384 # a shared library.
10385 compiler_lib_search_path=$lt_compiler_lib_search_path
10387 # Method to check whether dependent libraries are shared objects.
10388 deplibs_check_method=$lt_deplibs_check_method
10390 # Command to use when deplibs_check_method == file_magic.
10391 file_magic_cmd=$lt_file_magic_cmd
10393 # Flag that allows shared libraries with undefined symbols to be built.
10394 allow_undefined_flag=$lt_allow_undefined_flag
10396 # Flag that forces no undefined symbols.
10397 no_undefined_flag=$lt_no_undefined_flag
10399 # Commands used to finish a libtool library installation in a directory.
10400 finish_cmds=$lt_finish_cmds
10402 # Same as above, but a single script fragment to be evaled but not shown.
10403 finish_eval=$lt_finish_eval
10405 # Take the output of nm and produce a listing of raw symbols and C names.
10406 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10408 # Transform the output of nm in a proper C declaration
10409 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10411 # Transform the output of nm in a C name address pair
10412 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10414 # This is the shared library runtime path variable.
10415 runpath_var=$runpath_var
10417 # This is the shared library path variable.
10418 shlibpath_var=$shlibpath_var
10420 # Is shlibpath searched before the hard-coded library search path?
10421 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10423 # How to hardcode a shared library path into an executable.
10424 hardcode_action=$hardcode_action
10426 # Whether we should hardcode library paths into libraries.
10427 hardcode_into_libs=$hardcode_into_libs
10429 # Flag to hardcode \$libdir into a binary during linking.
10430 # This must work even if \$libdir does not exist.
10431 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10433 # If ld is used when linking, flag to hardcode \$libdir into
10434 # a binary during linking. This must work even if \$libdir does
10436 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10438 # Whether we need a single -rpath flag with a separated argument.
10439 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10441 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10442 # resulting binary.
10443 hardcode_direct=$hardcode_direct
10445 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10446 # resulting binary.
10447 hardcode_minus_L=$hardcode_minus_L
10449 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10450 # the resulting binary.
10451 hardcode_shlibpath_var=$hardcode_shlibpath_var
10453 # Set to yes if building a shared library automatically hardcodes DIR into the library
10454 # and all subsequent libraries and executables linked against it.
10455 hardcode_automatic=$hardcode_automatic
10457 # Variables whose values should be saved in libtool wrapper scripts and
10458 # restored at relink time.
10459 variables_saved_for_relink="$variables_saved_for_relink"
10461 # Whether libtool must link a program against all its dependency libraries.
10462 link_all_deplibs=$link_all_deplibs
10464 # Compile-time system search path for libraries
10465 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10467 # Run-time system search path for libraries
10468 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10470 # Fix the shell variable \$srcfile for the compiler.
10471 fix_srcfile_path=$lt_fix_srcfile_path
10473 # Set to yes if exported symbols are required.
10474 always_export_symbols=$always_export_symbols
10476 # The commands to list exported symbols.
10477 export_symbols_cmds=$lt_export_symbols_cmds
10479 # The commands to extract the exported symbol list from a shared archive.
10480 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10482 # Symbols that should not be listed in the preloaded symbols.
10483 exclude_expsyms=$lt_exclude_expsyms
10485 # Symbols that must always be exported.
10486 include_expsyms=$lt_include_expsyms
10488 # ### END LIBTOOL CONFIG
10495 cat <<\EOF >> "$cfgfile"
10497 # AIX sometimes has problems with the GCC collect2 program. For some
10498 # reason, if we set the COLLECT_NAMES environment variable, the problems
10499 # vanish in a puff of smoke.
10500 if test "X${COLLECT_NAMES+set}" != Xset; then
10502 export COLLECT_NAMES
10508 # We use sed instead of cat because bash on DJGPP gets confused if
10509 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10510 # text mode, it properly converts lines to CR/LF. This bash problem
10511 # is reportedly fixed, but why not run on old versions too?
10512 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10514 mv -f "$cfgfile" "$ofile" || \
10515 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10519 # If there is no Makefile yet, we rely on a make rule to execute
10520 # `config.status --recheck' to rerun these tests and create the
10521 # libtool script then.
10522 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10523 if test -f "$ltmain_in"; then
10524 test -f Makefile && make "$ltmain"
10530 ac_cpp='$CPP $CPPFLAGS'
10531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10538 # Check whether --with-tags was given.
10539 if test "${with_tags+set}" = set; then
10540 withval=$with_tags; tagnames="$withval"
10544 if test -f "$ltmain" && test -n "$tagnames"; then
10545 if test ! -f "${ofile}"; then
10546 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10547 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10550 if test -z "$LTCC"; then
10551 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10552 if test -z "$LTCC"; then
10553 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10554 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10556 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10557 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10560 if test -z "$LTCFLAGS"; then
10561 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10564 # Extract list of available tagged configurations in $ofile.
10565 # Note that this assumes the entire list is on one line.
10566 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10568 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10569 for tagname in $tagnames; do
10571 # Check whether tagname contains only valid characters
10572 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10574 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10575 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10576 { (exit 1); exit 1; }; }
10580 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10582 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10583 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10584 { (exit 1); exit 1; }; }
10587 # Update the list of available tags.
10588 if test -n "$tagname"; then
10589 echo appending configuration tag \"$tagname\" to $ofile
10593 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10594 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10595 (test "X$CXX" != "Xg++"))) ; then
10597 ac_cpp='$CXXCPP $CPPFLAGS'
10598 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10599 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10600 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10605 archive_cmds_need_lc_CXX=no
10606 allow_undefined_flag_CXX=
10607 always_export_symbols_CXX=no
10608 archive_expsym_cmds_CXX=
10609 export_dynamic_flag_spec_CXX=
10610 hardcode_direct_CXX=no
10611 hardcode_libdir_flag_spec_CXX=
10612 hardcode_libdir_flag_spec_ld_CXX=
10613 hardcode_libdir_separator_CXX=
10614 hardcode_minus_L_CXX=no
10615 hardcode_shlibpath_var_CXX=unsupported
10616 hardcode_automatic_CXX=no
10618 module_expsym_cmds_CXX=
10619 link_all_deplibs_CXX=unknown
10620 old_archive_cmds_CXX=$old_archive_cmds
10621 no_undefined_flag_CXX=
10622 whole_archive_flag_spec_CXX=
10623 enable_shared_with_static_runtimes_CXX=no
10625 # Dependencies to place before and after the object being linked:
10626 predep_objects_CXX=
10627 postdep_objects_CXX=
10630 compiler_lib_search_path_CXX=
10632 # Source file extension for C++ test sources.
10635 # Object file extension for compiled C++ test sources.
10639 # Code to be used in simple compile tests
10640 lt_simple_compile_test_code="int some_variable = 0;"
10642 # Code to be used in simple link tests
10643 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10645 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10647 # If no C compiler was specified, use CC.
10650 # If no C compiler flags were specified, use CFLAGS.
10651 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10653 # Allow CC to be a program name with arguments.
10657 # save warnings/boilerplate of simple test code
10658 ac_outfile=conftest.$ac_objext
10659 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10660 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10661 _lt_compiler_boilerplate=`cat conftest.err`
10664 ac_outfile=conftest.$ac_objext
10665 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10666 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10667 _lt_linker_boilerplate=`cat conftest.err`
10671 # Allow CC to be a program name with arguments.
10676 lt_save_with_gnu_ld=$with_gnu_ld
10677 lt_save_path_LD=$lt_cv_path_LD
10678 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10679 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10681 $as_unset lt_cv_prog_gnu_ld
10683 if test -n "${lt_cv_path_LDCXX+set}"; then
10684 lt_cv_path_LD=$lt_cv_path_LDCXX
10686 $as_unset lt_cv_path_LD
10688 test -z "${LDCXX+set}" || LD=$LDCXX
10692 for cc_temp in $compiler""; do
10694 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10695 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10700 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10703 # We don't want -fno-exception wen compiling C++ code, so set the
10704 # no_builtin_flag separately
10705 if test "$GXX" = yes; then
10706 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10708 lt_prog_compiler_no_builtin_flag_CXX=
10711 if test "$GXX" = yes; then
10712 # Set up default GNU C++ configuration
10715 # Check whether --with-gnu-ld was given.
10716 if test "${with_gnu_ld+set}" = set; then
10717 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10723 if test "$GCC" = yes; then
10724 # Check if gcc -print-prog-name=ld gives a path.
10725 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10726 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10729 # gcc leaves a trailing carriage return which upsets mingw
10730 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10732 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10735 # Accept absolute paths.
10737 re_direlt='/[^/][^/]*/\.\./'
10738 # Canonicalize the pathname of ld
10739 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10740 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10741 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10743 test -z "$LD" && LD="$ac_prog"
10746 # If it fails, then pretend we aren't using GCC.
10750 # If it is relative, then search for the first ld in PATH.
10751 with_gnu_ld=unknown
10754 elif test "$with_gnu_ld" = yes; then
10755 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10756 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10758 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10759 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10761 if test "${lt_cv_path_LD+set}" = set; then
10762 echo $ECHO_N "(cached) $ECHO_C" >&6
10764 if test -z "$LD"; then
10765 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10766 for ac_dir in $PATH; do
10768 test -z "$ac_dir" && ac_dir=.
10769 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10770 lt_cv_path_LD="$ac_dir/$ac_prog"
10771 # Check to see if the program is GNU ld. I'd rather use --version,
10772 # but apparently some variants of GNU ld only accept -v.
10773 # Break only if it was the GNU/non-GNU ld that we prefer.
10774 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10775 *GNU* | *'with BFD'*)
10776 test "$with_gnu_ld" != no && break
10779 test "$with_gnu_ld" != yes && break
10786 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10790 LD="$lt_cv_path_LD"
10791 if test -n "$LD"; then
10792 { echo "$as_me:$LINENO: result: $LD" >&5
10793 echo "${ECHO_T}$LD" >&6; }
10795 { echo "$as_me:$LINENO: result: no" >&5
10796 echo "${ECHO_T}no" >&6; }
10798 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10799 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10800 { (exit 1); exit 1; }; }
10801 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10802 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10803 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10804 echo $ECHO_N "(cached) $ECHO_C" >&6
10806 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10807 case `$LD -v 2>&1 </dev/null` in
10808 *GNU* | *'with BFD'*)
10809 lt_cv_prog_gnu_ld=yes
10812 lt_cv_prog_gnu_ld=no
10816 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10817 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10818 with_gnu_ld=$lt_cv_prog_gnu_ld
10822 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10823 # archiving commands below assume that GNU ld is being used.
10824 if test "$with_gnu_ld" = yes; then
10825 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10826 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'
10828 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10829 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10831 # If archive_cmds runs LD, not CC, wlarc should be empty
10832 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10833 # investigate it a little bit more. (MM)
10836 # ancient GNU ld didn't support --whole-archive et. al.
10837 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10838 grep 'no-whole-archive' > /dev/null; then
10839 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10841 whole_archive_flag_spec_CXX=
10847 # A generic and very simple default shared library creation
10848 # command for GNU C++ for the case where it uses the native
10849 # linker, instead of GNU ld. If possible, this setting should
10850 # overridden to take advantage of the native linker features on
10851 # the platform it is being used on.
10852 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10855 # Commands to make compiler produce verbose output that lists
10856 # what "hidden" libraries, object files and flags are used when
10857 # linking a shared library.
10858 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10866 # PORTME: fill in a description of your system's C++ link characteristics
10867 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10868 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10872 # FIXME: insert proper C++ library support
10876 if test "$host_cpu" = ia64; then
10877 # On IA64, the linker does run time linking by default, so we don't
10878 # have to do anything special.
10879 aix_use_runtimelinking=no
10880 exp_sym_flag='-Bexport'
10883 aix_use_runtimelinking=no
10885 # Test if we are trying to use run time linking or normal
10886 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10887 # need to do runtime linking.
10888 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10889 for ld_flag in $LDFLAGS; do
10892 aix_use_runtimelinking=yes
10900 exp_sym_flag='-bexport'
10901 no_entry_flag='-bnoentry'
10904 # When large executables or shared objects are built, AIX ld can
10905 # have problems creating the table of contents. If linking a library
10906 # or program results in "error TOC overflow" add -mminimal-toc to
10907 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10908 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10910 archive_cmds_CXX=''
10911 hardcode_direct_CXX=yes
10912 hardcode_libdir_separator_CXX=':'
10913 link_all_deplibs_CXX=yes
10915 if test "$GXX" = yes; then
10916 case $host_os in aix4.[012]|aix4.[012].*)
10917 # We only want to do this on AIX 4.2 and lower, the check
10918 # below for broken collect2 doesn't work under 4.3+
10919 collect2name=`${CC} -print-prog-name=collect2`
10920 if test -f "$collect2name" && \
10921 strings "$collect2name" | grep resolve_lib_name >/dev/null
10923 # We have reworked collect2
10926 # We have old collect2
10927 hardcode_direct_CXX=unsupported
10928 # It fails to find uninstalled libraries when the uninstalled
10929 # path is not listed in the libpath. Setting hardcode_minus_L
10930 # to unsupported forces relinking
10931 hardcode_minus_L_CXX=yes
10932 hardcode_libdir_flag_spec_CXX='-L$libdir'
10933 hardcode_libdir_separator_CXX=
10937 shared_flag='-shared'
10938 if test "$aix_use_runtimelinking" = yes; then
10939 shared_flag="$shared_flag "'${wl}-G'
10943 if test "$host_cpu" = ia64; then
10944 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10945 # chokes on -Wl,-G. The following line is correct:
10948 if test "$aix_use_runtimelinking" = yes; then
10949 shared_flag='${wl}-G'
10951 shared_flag='${wl}-bM:SRE'
10956 # It seems that -bexpall does not export symbols beginning with
10957 # underscore (_), so it is better to generate a list of symbols to export.
10958 always_export_symbols_CXX=yes
10959 if test "$aix_use_runtimelinking" = yes; then
10960 # Warning - without using the other runtime loading flags (-brtl),
10961 # -berok will link without error, but may produce a broken library.
10962 allow_undefined_flag_CXX='-berok'
10963 # Determine the default libpath from the value encoded in an empty executable.
10964 cat >conftest.$ac_ext <<_ACEOF
10967 cat confdefs.h >>conftest.$ac_ext
10968 cat >>conftest.$ac_ext <<_ACEOF
10969 /* end confdefs.h. */
10979 rm -f conftest.$ac_objext conftest$ac_exeext
10980 if { (ac_try="$ac_link"
10981 case "(($ac_try" in
10982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10983 *) ac_try_echo=$ac_try;;
10985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10986 (eval "$ac_link") 2>conftest.er1
10988 grep -v '^ *+' conftest.er1 >conftest.err
10990 cat conftest.err >&5
10991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992 (exit $ac_status); } && {
10993 test -z "$ac_cxx_werror_flag" ||
10994 test ! -s conftest.err
10995 } && test -s conftest$ac_exeext &&
10996 $as_test_x conftest$ac_exeext; then
10998 lt_aix_libpath_sed='
10999 /Import File Strings/,/^$/ {
11005 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11006 # Check for a 64-bit object if we didn't find anything.
11007 if test -z "$aix_libpath"; then
11008 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11011 echo "$as_me: failed program was:" >&5
11012 sed 's/^/| /' conftest.$ac_ext >&5
11017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11018 conftest$ac_exeext conftest.$ac_ext
11019 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11021 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11023 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"
11025 if test "$host_cpu" = ia64; then
11026 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11027 allow_undefined_flag_CXX="-z nodefs"
11028 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"
11030 # Determine the default libpath from the value encoded in an empty executable.
11031 cat >conftest.$ac_ext <<_ACEOF
11034 cat confdefs.h >>conftest.$ac_ext
11035 cat >>conftest.$ac_ext <<_ACEOF
11036 /* end confdefs.h. */
11046 rm -f conftest.$ac_objext conftest$ac_exeext
11047 if { (ac_try="$ac_link"
11048 case "(($ac_try" in
11049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11050 *) ac_try_echo=$ac_try;;
11052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11053 (eval "$ac_link") 2>conftest.er1
11055 grep -v '^ *+' conftest.er1 >conftest.err
11057 cat conftest.err >&5
11058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059 (exit $ac_status); } && {
11060 test -z "$ac_cxx_werror_flag" ||
11061 test ! -s conftest.err
11062 } && test -s conftest$ac_exeext &&
11063 $as_test_x conftest$ac_exeext; then
11065 lt_aix_libpath_sed='
11066 /Import File Strings/,/^$/ {
11072 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11073 # Check for a 64-bit object if we didn't find anything.
11074 if test -z "$aix_libpath"; then
11075 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11078 echo "$as_me: failed program was:" >&5
11079 sed 's/^/| /' conftest.$ac_ext >&5
11084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11085 conftest$ac_exeext conftest.$ac_ext
11086 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11088 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11089 # Warning - without using the other run time loading flags,
11090 # -berok will link without error, but may produce a broken library.
11091 no_undefined_flag_CXX=' ${wl}-bernotok'
11092 allow_undefined_flag_CXX=' ${wl}-berok'
11093 # Exported symbols can be pulled into shared objects from archives
11094 whole_archive_flag_spec_CXX='$convenience'
11095 archive_cmds_need_lc_CXX=yes
11096 # This is similar to how AIX traditionally builds its shared libraries.
11097 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'
11103 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11104 allow_undefined_flag_CXX=unsupported
11105 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11106 # support --undefined. This deserves some investigation. FIXME
11107 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11114 case $cc_basename in
11116 # FIXME: insert proper C++ library support
11122 cygwin* | mingw* | pw32*)
11123 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11124 # as there is no search path for DLLs.
11125 hardcode_libdir_flag_spec_CXX='-L$libdir'
11126 allow_undefined_flag_CXX=unsupported
11127 always_export_symbols_CXX=no
11128 enable_shared_with_static_runtimes_CXX=yes
11130 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11131 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'
11132 # If the export-symbols file already is a .def file (1st line
11133 # is EXPORTS), use it as is; otherwise, prepend...
11134 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11135 cp $export_symbols $output_objdir/$soname.def;
11137 echo EXPORTS > $output_objdir/$soname.def;
11138 cat $export_symbols >> $output_objdir/$soname.def;
11140 $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'
11145 darwin* | rhapsody*)
11147 rhapsody* | darwin1.[012])
11148 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11151 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11152 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11154 case ${MACOSX_DEPLOYMENT_TARGET} in
11156 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11159 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11165 archive_cmds_need_lc_CXX=no
11166 hardcode_direct_CXX=no
11167 hardcode_automatic_CXX=yes
11168 hardcode_shlibpath_var_CXX=unsupported
11169 whole_archive_flag_spec_CXX=''
11170 link_all_deplibs_CXX=yes
11172 if test "$GXX" = yes ; then
11173 lt_int_apple_cc_single_mod=no
11174 output_verbose_link_cmd='echo'
11175 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11176 lt_int_apple_cc_single_mod=yes
11178 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11179 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11181 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'
11183 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11184 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11185 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11186 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11188 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11190 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}'
11192 case $cc_basename in
11194 output_verbose_link_cmd='echo'
11195 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'
11196 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11197 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11198 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}'
11199 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}'
11209 case $cc_basename in
11211 # FIXME: insert proper C++ library support
11215 # Green Hills C++ Compiler
11216 # FIXME: insert proper C++ library support
11220 # FIXME: insert proper C++ library support
11226 # C++ shared libraries reported to be fairly broken before switch to ELF
11230 archive_cmds_need_lc_CXX=no
11232 freebsd* | dragonfly*)
11233 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11240 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11241 hardcode_libdir_separator_CXX=:
11242 export_dynamic_flag_spec_CXX='${wl}-E'
11243 hardcode_direct_CXX=yes
11244 hardcode_minus_L_CXX=yes # Not in the search PATH,
11245 # but as the default
11246 # location of the library.
11248 case $cc_basename in
11250 # FIXME: insert proper C++ library support
11254 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'
11255 # Commands to make compiler produce verbose output that lists
11256 # what "hidden" libraries, object files and flags are used when
11257 # linking a shared library.
11259 # There doesn't appear to be a way to prevent this compiler from
11260 # explicitly linking system object files so we need to strip them
11261 # from the output so that they don't get included in the library
11263 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'
11266 if test "$GXX" = yes; then
11267 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'
11269 # FIXME: insert proper C++ library support
11276 if test $with_gnu_ld = no; then
11277 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11278 hardcode_libdir_separator_CXX=:
11283 export_dynamic_flag_spec_CXX='${wl}-E'
11289 hardcode_direct_CXX=no
11290 hardcode_shlibpath_var_CXX=no
11293 hardcode_direct_CXX=yes
11294 hardcode_minus_L_CXX=yes # Not in the search PATH,
11295 # but as the default
11296 # location of the library.
11300 case $cc_basename in
11302 # FIXME: insert proper C++ library support
11308 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11311 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11314 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11317 # Commands to make compiler produce verbose output that lists
11318 # what "hidden" libraries, object files and flags are used when
11319 # linking a shared library.
11321 # There doesn't appear to be a way to prevent this compiler from
11322 # explicitly linking system object files so we need to strip them
11323 # from the output so that they don't get included in the library
11325 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'
11328 if test "$GXX" = yes; then
11329 if test $with_gnu_ld = no; then
11332 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11335 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11338 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'
11343 # FIXME: insert proper C++ library support
11350 hardcode_direct_CXX=no
11351 hardcode_shlibpath_var_CXX=no
11352 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11353 export_dynamic_flag_spec_CXX='${wl}-E'
11354 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11355 # Instead, shared libraries are loaded at an image base (0x10000000 by
11356 # default) and relocated if they conflict, which is a slow very memory
11357 # consuming and fragmenting process. To avoid this, we pick a random,
11358 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11359 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11360 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'
11361 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'
11364 case $cc_basename in
11367 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'
11369 # Archives containing C++ object files must be created using
11370 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11371 # necessary to make sure instantiated templates are included
11373 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11376 if test "$GXX" = yes; then
11377 if test "$with_gnu_ld" = no; then
11378 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'
11380 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'
11383 link_all_deplibs_CXX=yes
11386 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11387 hardcode_libdir_separator_CXX=:
11389 linux* | k*bsd*-gnu)
11390 case $cc_basename in
11392 # Kuck and Associates, Inc. (KAI) C++ Compiler
11394 # KCC will only create a shared library if the output file
11395 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11396 # to its proper name (with version) after linking.
11397 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'
11398 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'
11399 # Commands to make compiler produce verbose output that lists
11400 # what "hidden" libraries, object files and flags are used when
11401 # linking a shared library.
11403 # There doesn't appear to be a way to prevent this compiler from
11404 # explicitly linking system object files so we need to strip them
11405 # from the output so that they don't get included in the library
11407 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'
11409 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11410 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11412 # Archives containing C++ object files must be created using
11413 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11414 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11419 # version 8.0 and above of icpc choke on multiply defined symbols
11420 # if we add $predep_objects and $postdep_objects, however 7.1 and
11421 # earlier do not add the objects themselves.
11422 case `$CC -V 2>&1` in
11424 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11425 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'
11427 *) # Version 8.0 or newer
11430 ia64*) tmp_idyn=' -i_dynamic';;
11432 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11433 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'
11436 archive_cmds_need_lc_CXX=no
11437 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11438 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11439 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11442 # Portland Group C++ compiler
11443 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11444 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'
11446 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11447 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11448 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'
11452 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11453 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'
11455 runpath_var=LD_RUN_PATH
11456 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11457 hardcode_libdir_separator_CXX=:
11459 # Commands to make compiler produce verbose output that lists
11460 # what "hidden" libraries, object files and flags are used when
11461 # linking a shared library.
11463 # There doesn't appear to be a way to prevent this compiler from
11464 # explicitly linking system object files so we need to strip them
11465 # from the output so that they don't get included in the library
11467 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'
11470 case `$CC -V 2>&1 | sed 5q` in
11473 no_undefined_flag_CXX=' -zdefs'
11474 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11475 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'
11476 hardcode_libdir_flag_spec_CXX='-R$libdir'
11477 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'
11479 # Not sure whether something based on
11480 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11482 output_verbose_link_cmd='echo'
11484 # Archives containing C++ object files must be created using
11485 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11486 # necessary to make sure instantiated templates are included
11488 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11495 # FIXME: insert proper C++ library support
11499 # FIXME: insert proper C++ library support
11503 case $cc_basename in
11505 # FIXME: insert proper C++ library support
11509 # FIXME: insert proper C++ library support
11514 netbsd* | netbsdelf*-gnu)
11515 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11516 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11518 hardcode_libdir_flag_spec_CXX='-R$libdir'
11519 hardcode_direct_CXX=yes
11520 hardcode_shlibpath_var_CXX=no
11522 # Workaround some broken pre-1.5 toolchains
11523 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11526 # C++ shared libraries are fairly broken
11530 if test -f /usr/libexec/ld.so; then
11531 hardcode_direct_CXX=yes
11532 hardcode_shlibpath_var_CXX=no
11533 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11534 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11535 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11536 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11537 export_dynamic_flag_spec_CXX='${wl}-E'
11538 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11540 output_verbose_link_cmd='echo'
11546 case $cc_basename in
11548 # Kuck and Associates, Inc. (KAI) C++ Compiler
11550 # KCC will only create a shared library if the output file
11551 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11552 # to its proper name (with version) after linking.
11553 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'
11555 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11556 hardcode_libdir_separator_CXX=:
11558 # Archives containing C++ object files must be created using
11559 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11560 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11564 # Rational C++ 2.4.1
11565 # FIXME: insert proper C++ library support
11569 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11570 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'
11572 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11573 hardcode_libdir_separator_CXX=:
11575 # Commands to make compiler produce verbose output that lists
11576 # what "hidden" libraries, object files and flags are used when
11577 # linking a shared library.
11579 # There doesn't appear to be a way to prevent this compiler from
11580 # explicitly linking system object files so we need to strip them
11581 # from the output so that they don't get included in the library
11583 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'
11586 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11587 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11588 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'
11590 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11591 hardcode_libdir_separator_CXX=:
11593 # Commands to make compiler produce verbose output that lists
11594 # what "hidden" libraries, object files and flags are used when
11595 # linking a shared library.
11596 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11599 # FIXME: insert proper C++ library support
11606 case $cc_basename in
11608 # Kuck and Associates, Inc. (KAI) C++ Compiler
11610 # KCC will only create a shared library if the output file
11611 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11612 # to its proper name (with version) after linking.
11613 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'
11615 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11616 hardcode_libdir_separator_CXX=:
11618 # Archives containing C++ object files must be created using
11619 # the KAI C++ compiler.
11620 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11623 # Rational C++ 2.4.1
11624 # FIXME: insert proper C++ library support
11628 allow_undefined_flag_CXX=' -expect_unresolved \*'
11629 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'
11630 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11631 echo "-hidden">> $lib.exp~
11632 $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~
11635 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11636 hardcode_libdir_separator_CXX=:
11638 # Commands to make compiler produce verbose output that lists
11639 # what "hidden" libraries, object files and flags are used when
11640 # linking a shared library.
11642 # There doesn't appear to be a way to prevent this compiler from
11643 # explicitly linking system object files so we need to strip them
11644 # from the output so that they don't get included in the library
11646 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'
11649 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11650 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11651 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'
11653 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11654 hardcode_libdir_separator_CXX=:
11656 # Commands to make compiler produce verbose output that lists
11657 # what "hidden" libraries, object files and flags are used when
11658 # linking a shared library.
11659 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11662 # FIXME: insert proper C++ library support
11669 # FIXME: insert proper C++ library support
11673 case $cc_basename in
11676 # FIXME: insert proper C++ library support
11681 # FIXME: insert proper C++ library support
11685 # FIXME: insert proper C++ library support
11691 case $cc_basename in
11693 # Sun C++ 4.2, 5.x and Centerline C++
11694 archive_cmds_need_lc_CXX=yes
11695 no_undefined_flag_CXX=' -zdefs'
11696 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11697 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11698 $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'
11700 hardcode_libdir_flag_spec_CXX='-R$libdir'
11701 hardcode_shlibpath_var_CXX=no
11703 solaris2.[0-5] | solaris2.[0-5].*) ;;
11705 # The compiler driver will combine and reorder linker options,
11706 # but understands `-z linker_flag'.
11707 # Supported since Solaris 2.6 (maybe 2.5.1?)
11708 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11711 link_all_deplibs_CXX=yes
11713 output_verbose_link_cmd='echo'
11715 # Archives containing C++ object files must be created using
11716 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11717 # necessary to make sure instantiated templates are included
11719 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11722 # Green Hills C++ Compiler
11723 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11725 # The C++ compiler must be used to create the archive.
11726 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11729 # GNU C++ compiler with Solaris linker
11730 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11731 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11732 if $CC --version | grep -v '^2\.7' > /dev/null; then
11733 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11734 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11735 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11737 # Commands to make compiler produce verbose output that lists
11738 # what "hidden" libraries, object files and flags are used when
11739 # linking a shared library.
11740 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11742 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11744 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11745 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11746 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11748 # Commands to make compiler produce verbose output that lists
11749 # what "hidden" libraries, object files and flags are used when
11750 # linking a shared library.
11751 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11754 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11756 solaris2.[0-5] | solaris2.[0-5].*) ;;
11758 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11765 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11766 no_undefined_flag_CXX='${wl}-z,text'
11767 archive_cmds_need_lc_CXX=no
11768 hardcode_shlibpath_var_CXX=no
11769 runpath_var='LD_RUN_PATH'
11771 case $cc_basename in
11773 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11774 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11777 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11778 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11782 sysv5* | sco3.2v5* | sco5v6*)
11783 # Note: We can NOT use -z defs as we might desire, because we do not
11784 # link with -lc, and that would cause any symbols used from libc to
11785 # always be unresolved, which means just about no library would
11786 # ever link correctly. If we're not using GNU ld we use -z text
11787 # though, which does catch some bad symbols but isn't as heavy-handed
11789 # For security reasons, it is highly recommended that you always
11790 # use absolute paths for naming shared libraries, and exclude the
11791 # DT_RUNPATH tag from executables and libraries. But doing so
11792 # requires that you compile everything twice, which is a pain.
11793 # So that behaviour is only enabled if SCOABSPATH is set to a
11794 # non-empty value in the environment. Most likely only useful for
11795 # creating official distributions of packages.
11796 # This is a hack until libtool officially supports absolute path
11797 # names for shared libraries.
11798 no_undefined_flag_CXX='${wl}-z,text'
11799 allow_undefined_flag_CXX='${wl}-z,nodefs'
11800 archive_cmds_need_lc_CXX=no
11801 hardcode_shlibpath_var_CXX=no
11802 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11803 hardcode_libdir_separator_CXX=':'
11804 link_all_deplibs_CXX=yes
11805 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11806 runpath_var='LD_RUN_PATH'
11808 case $cc_basename in
11810 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11811 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11814 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11815 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11820 case $cc_basename in
11822 # NonStop-UX NCC 3.20
11823 # FIXME: insert proper C++ library support
11827 # FIXME: insert proper C++ library support
11833 # FIXME: insert proper C++ library support
11837 # FIXME: insert proper C++ library support
11841 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11842 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11843 test "$ld_shlibs_CXX" = no && can_build_shared=no
11849 cat > conftest.$ac_ext <<EOF
11853 Foo (void) { a = 0; }
11859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11860 (eval $ac_compile) 2>&5
11862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863 (exit $ac_status); }; then
11864 # Parse the compiler output and extract the necessary
11865 # objects, libraries and library flags.
11867 # Sentinel used to keep track of whether or not we are before
11868 # the conftest object file.
11869 pre_test_object_deps_done=no
11871 # The `*' in the case matches for architectures that use `case' in
11872 # $output_verbose_cmd can trigger glob expansion during the loop
11873 # eval without this substitution.
11874 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11876 for p in `eval $output_verbose_link_cmd`; do
11880 # Some compilers place space between "-{L,R}" and the path.
11881 # Remove the space.
11882 if test $p = "-L" \
11883 || test $p = "-R"; then
11890 if test "$pre_test_object_deps_done" = no; then
11893 # Internal compiler library paths should come after those
11894 # provided the user. The postdeps already come after the
11895 # user supplied libs so there is no need to process them.
11896 if test -z "$compiler_lib_search_path_CXX"; then
11897 compiler_lib_search_path_CXX="${prev}${p}"
11899 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11902 # The "-l" case would never come before the object being
11903 # linked, so don't bother handling this case.
11906 if test -z "$postdeps_CXX"; then
11907 postdeps_CXX="${prev}${p}"
11909 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11915 # This assumes that the test object file only shows up
11916 # once in the compiler output.
11917 if test "$p" = "conftest.$objext"; then
11918 pre_test_object_deps_done=yes
11922 if test "$pre_test_object_deps_done" = no; then
11923 if test -z "$predep_objects_CXX"; then
11924 predep_objects_CXX="$p"
11926 predep_objects_CXX="$predep_objects_CXX $p"
11929 if test -z "$postdep_objects_CXX"; then
11930 postdep_objects_CXX="$p"
11932 postdep_objects_CXX="$postdep_objects_CXX $p"
11937 *) ;; # Ignore the rest.
11945 echo "libtool.m4: error: problem compiling CXX test program"
11948 $rm -f confest.$objext
11950 # PORTME: override above test on systems where it is broken
11953 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11954 # hack all around it, let's just trust "g++" to DTRT.
11955 predep_objects_CXX=
11956 postdep_objects_CXX=
11961 case `$CC -V 2>&1 | sed 5q` in
11965 # The more standards-conforming stlport4 library is
11966 # incompatible with the Cstd library. Avoid specifying
11967 # it if it's in CXXFLAGS. Ignore libCrun as
11968 # -library=stlport4 depends on it.
11969 case " $CXX $CXXFLAGS " in
11970 *" -library=stlport4 "*)
11971 solaris_use_stlport4=yes
11974 if test "$solaris_use_stlport4" != yes; then
11975 postdeps_CXX='-library=Cstd -library=Crun'
11982 case $cc_basename in
11984 # The more standards-conforming stlport4 library is
11985 # incompatible with the Cstd library. Avoid specifying
11986 # it if it's in CXXFLAGS. Ignore libCrun as
11987 # -library=stlport4 depends on it.
11988 case " $CXX $CXXFLAGS " in
11989 *" -library=stlport4 "*)
11990 solaris_use_stlport4=yes
11994 # Adding this requires a known-good setup of shared libraries for
11995 # Sun compiler versions before 5.6, else PIC objects from an old
11996 # archive will be linked into the output, leading to subtle bugs.
11997 if test "$solaris_use_stlport4" != yes; then
11998 postdeps_CXX='-library=Cstd -library=Crun'
12006 case " $postdeps_CXX " in
12007 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12010 lt_prog_compiler_wl_CXX=
12011 lt_prog_compiler_pic_CXX=
12012 lt_prog_compiler_static_CXX=
12014 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12015 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12017 # C++ specific cases for pic, static, wl, etc.
12018 if test "$GXX" = yes; then
12019 lt_prog_compiler_wl_CXX='-Wl,'
12020 lt_prog_compiler_static_CXX='-static'
12024 # All AIX code is PIC.
12025 if test "$host_cpu" = ia64; then
12026 # AIX 5 now supports IA64 processor
12027 lt_prog_compiler_static_CXX='-Bstatic'
12031 # FIXME: we need at least 68020 code to build shared libraries, but
12032 # adding the `-m68020' flag to GCC prevents building anything better,
12034 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12036 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12037 # PIC is the default for these OSes.
12039 mingw* | cygwin* | os2* | pw32*)
12040 # This hack is so that the source file can tell whether it is being
12041 # built for inclusion in a dll (and should export symbols for example).
12042 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12043 # (--disable-auto-import) libraries
12044 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12046 darwin* | rhapsody*)
12047 # PIC is the default on this platform
12048 # Common symbols not allowed in MH_DYLIB files
12049 lt_prog_compiler_pic_CXX='-fno-common'
12052 # DJGPP does not support shared libraries at all
12053 lt_prog_compiler_pic_CXX=
12056 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12057 # Instead, we relocate shared libraries at runtime.
12060 if test -d /usr/nec; then
12061 lt_prog_compiler_pic_CXX=-Kconform_pic
12065 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12066 # not for PA HP-UX.
12071 lt_prog_compiler_pic_CXX='-fPIC'
12076 lt_prog_compiler_pic_CXX='-fPIC'
12082 # All AIX code is PIC.
12083 if test "$host_cpu" = ia64; then
12084 # AIX 5 now supports IA64 processor
12085 lt_prog_compiler_static_CXX='-Bstatic'
12087 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12091 case $cc_basename in
12093 # Green Hills C++ Compiler
12094 # _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"
12099 # PIC is the default on this platform
12100 # Common symbols not allowed in MH_DYLIB files
12101 case $cc_basename in
12103 lt_prog_compiler_pic_CXX='-qnocommon'
12104 lt_prog_compiler_wl_CXX='-Wl,'
12109 case $cc_basename in
12111 lt_prog_compiler_pic_CXX='-KPIC'
12114 # Green Hills C++ Compiler
12115 lt_prog_compiler_pic_CXX='-pic'
12121 freebsd* | dragonfly*)
12122 # FreeBSD uses GNU C++
12124 hpux9* | hpux10* | hpux11*)
12125 case $cc_basename in
12127 lt_prog_compiler_wl_CXX='-Wl,'
12128 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12129 if test "$host_cpu" != ia64; then
12130 lt_prog_compiler_pic_CXX='+Z'
12134 lt_prog_compiler_wl_CXX='-Wl,'
12135 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12141 lt_prog_compiler_pic_CXX='+Z'
12150 # This is c89, which is MS Visual C++ (no shared libs)
12151 # Anyone wants to do a port?
12153 irix5* | irix6* | nonstopux*)
12154 case $cc_basename in
12156 lt_prog_compiler_wl_CXX='-Wl,'
12157 lt_prog_compiler_static_CXX='-non_shared'
12158 # CC pic flag -KPIC is the default.
12164 linux* | k*bsd*-gnu)
12165 case $cc_basename in
12168 lt_prog_compiler_wl_CXX='--backend -Wl,'
12169 lt_prog_compiler_pic_CXX='-fPIC'
12173 lt_prog_compiler_wl_CXX='-Wl,'
12174 lt_prog_compiler_pic_CXX='-KPIC'
12175 lt_prog_compiler_static_CXX='-static'
12178 # Portland Group C++ compiler.
12179 lt_prog_compiler_wl_CXX='-Wl,'
12180 lt_prog_compiler_pic_CXX='-fpic'
12181 lt_prog_compiler_static_CXX='-Bstatic'
12185 # Make sure the PIC flag is empty. It appears that all Alpha
12186 # Linux and Compaq Tru64 Unix objects are PIC.
12187 lt_prog_compiler_pic_CXX=
12188 lt_prog_compiler_static_CXX='-non_shared'
12191 case `$CC -V 2>&1 | sed 5q` in
12194 lt_prog_compiler_pic_CXX='-KPIC'
12195 lt_prog_compiler_static_CXX='-Bstatic'
12196 lt_prog_compiler_wl_CXX='-Qoption ld '
12207 case $cc_basename in
12209 lt_prog_compiler_pic_CXX='-W c,exportall'
12215 netbsd* | netbsdelf*-gnu)
12217 osf3* | osf4* | osf5*)
12218 case $cc_basename in
12220 lt_prog_compiler_wl_CXX='--backend -Wl,'
12223 # Rational C++ 2.4.1
12224 lt_prog_compiler_pic_CXX='-pic'
12227 # Digital/Compaq C++
12228 lt_prog_compiler_wl_CXX='-Wl,'
12229 # Make sure the PIC flag is empty. It appears that all Alpha
12230 # Linux and Compaq Tru64 Unix objects are PIC.
12231 lt_prog_compiler_pic_CXX=
12232 lt_prog_compiler_static_CXX='-non_shared'
12241 case $cc_basename in
12243 # Sun C++ 4.2, 5.x and Centerline C++
12244 lt_prog_compiler_pic_CXX='-KPIC'
12245 lt_prog_compiler_static_CXX='-Bstatic'
12246 lt_prog_compiler_wl_CXX='-Qoption ld '
12249 # Green Hills C++ Compiler
12250 lt_prog_compiler_pic_CXX='-PIC'
12257 case $cc_basename in
12260 lt_prog_compiler_pic_CXX='-pic'
12261 lt_prog_compiler_static_CXX='-Bstatic'
12265 lt_prog_compiler_pic_CXX='-pic'
12272 case $cc_basename in
12274 # NonStop-UX NCC 3.20
12275 lt_prog_compiler_pic_CXX='-KPIC'
12281 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12282 case $cc_basename in
12284 lt_prog_compiler_wl_CXX='-Wl,'
12285 lt_prog_compiler_pic_CXX='-KPIC'
12286 lt_prog_compiler_static_CXX='-Bstatic'
12293 lt_prog_compiler_can_build_shared_CXX=no
12298 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12299 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12302 # Check to make sure the PIC flag actually works.
12304 if test -n "$lt_prog_compiler_pic_CXX"; then
12306 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12307 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12308 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12309 echo $ECHO_N "(cached) $ECHO_C" >&6
12311 lt_prog_compiler_pic_works_CXX=no
12312 ac_outfile=conftest.$ac_objext
12313 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12314 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12315 # Insert the option either (1) after the last *FLAGS variable, or
12316 # (2) before a word containing "conftest.", or (3) at the end.
12317 # Note that $ac_compile itself does not contain backslashes and begins
12318 # with a dollar sign (not a hyphen), so the echo should work correctly.
12319 # The option is referenced via a variable to avoid confusing sed.
12320 lt_compile=`echo "$ac_compile" | $SED \
12321 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12322 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12323 -e 's:$: $lt_compiler_flag:'`
12324 (eval echo "\"\$as_me:12324: $lt_compile\"" >&5)
12325 (eval "$lt_compile" 2>conftest.err)
12327 cat conftest.err >&5
12328 echo "$as_me:12328: \$? = $ac_status" >&5
12329 if (exit $ac_status) && test -s "$ac_outfile"; then
12330 # The compiler can only warn and ignore the option if not recognized
12331 # So say no if there are warnings other than the usual output.
12332 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12333 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12334 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12335 lt_prog_compiler_pic_works_CXX=yes
12341 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12342 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12344 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12345 case $lt_prog_compiler_pic_CXX in
12347 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12350 lt_prog_compiler_pic_CXX=
12351 lt_prog_compiler_can_build_shared_CXX=no
12356 # For platforms which do not support PIC, -DPIC is meaningless:
12358 lt_prog_compiler_pic_CXX=
12361 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12366 # Check to make sure the static flag actually works.
12368 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12369 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12370 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12371 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12372 echo $ECHO_N "(cached) $ECHO_C" >&6
12374 lt_prog_compiler_static_works_CXX=no
12375 save_LDFLAGS="$LDFLAGS"
12376 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12377 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12378 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12379 # The linker can only warn and ignore the option if not recognized
12380 # So say no if there are warnings
12381 if test -s conftest.err; then
12382 # Append any errors to the config.log.
12383 cat conftest.err 1>&5
12384 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12385 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12386 if diff conftest.exp conftest.er2 >/dev/null; then
12387 lt_prog_compiler_static_works_CXX=yes
12390 lt_prog_compiler_static_works_CXX=yes
12394 LDFLAGS="$save_LDFLAGS"
12397 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12398 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12400 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12403 lt_prog_compiler_static_CXX=
12407 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12408 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12409 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12410 echo $ECHO_N "(cached) $ECHO_C" >&6
12412 lt_cv_prog_compiler_c_o_CXX=no
12413 $rm -r conftest 2>/dev/null
12417 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12419 lt_compiler_flag="-o out/conftest2.$ac_objext"
12420 # Insert the option either (1) after the last *FLAGS variable, or
12421 # (2) before a word containing "conftest.", or (3) at the end.
12422 # Note that $ac_compile itself does not contain backslashes and begins
12423 # with a dollar sign (not a hyphen), so the echo should work correctly.
12424 lt_compile=`echo "$ac_compile" | $SED \
12425 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12426 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12427 -e 's:$: $lt_compiler_flag:'`
12428 (eval echo "\"\$as_me:12428: $lt_compile\"" >&5)
12429 (eval "$lt_compile" 2>out/conftest.err)
12431 cat out/conftest.err >&5
12432 echo "$as_me:12432: \$? = $ac_status" >&5
12433 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12435 # The compiler can only warn and ignore the option if not recognized
12436 # So say no if there are warnings
12437 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12438 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12439 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12440 lt_cv_prog_compiler_c_o_CXX=yes
12445 # SGI C++ compiler will create directory out/ii_files/ for
12446 # template instantiation
12447 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12448 $rm out/* && rmdir out
12454 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12455 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12458 hard_links="nottested"
12459 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12460 # do not overwrite the value of need_locks provided by the user
12461 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12462 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12465 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12467 ln conftest.a conftest.b 2>&5 || hard_links=no
12468 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12469 { echo "$as_me:$LINENO: result: $hard_links" >&5
12470 echo "${ECHO_T}$hard_links" >&6; }
12471 if test "$hard_links" = no; then
12472 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12473 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12480 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12481 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12483 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12486 # If we're using GNU nm, then we don't want the "-C" option.
12487 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12488 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12489 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'
12491 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'
12495 export_symbols_cmds_CXX="$ltdll_cmds"
12498 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'
12500 linux* | k*bsd*-gnu)
12501 link_all_deplibs_CXX=no
12504 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12508 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12509 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12510 test "$ld_shlibs_CXX" = no && can_build_shared=no
12513 # Do we need to explicitly link libc?
12515 case "x$archive_cmds_need_lc_CXX" in
12517 # Assume -lc should be added
12518 archive_cmds_need_lc_CXX=yes
12520 if test "$enable_shared" = yes && test "$GCC" = yes; then
12521 case $archive_cmds_CXX in
12523 # FIXME: we may have to deal with multi-command sequences.
12526 # Test whether the compiler implicitly links with -lc since on some
12527 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12528 # to ld, don't add -lc before -lgcc.
12529 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12530 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12532 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12535 (eval $ac_compile) 2>&5
12537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538 (exit $ac_status); } 2>conftest.err; then
12541 libobjs=conftest.$ac_objext
12543 wl=$lt_prog_compiler_wl_CXX
12544 pic_flag=$lt_prog_compiler_pic_CXX
12550 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12551 allow_undefined_flag_CXX=
12552 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12553 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); }
12558 archive_cmds_need_lc_CXX=no
12560 archive_cmds_need_lc_CXX=yes
12562 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12564 cat conftest.err 1>&5
12567 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12568 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12575 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12576 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12577 library_names_spec=
12578 libname_spec='lib$name'
12582 postuninstall_cmds=
12586 shlibpath_overrides_runpath=unknown
12588 dynamic_linker="$host_os ld.so"
12589 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12591 need_lib_prefix=unknown
12592 hardcode_into_libs=no
12594 # when you set need_version to no, make sure it does not cause -set_version
12595 # flags to be left without arguments
12596 need_version=unknown
12601 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12602 shlibpath_var=LIBPATH
12604 # AIX 3 has no versioning support, so we append a major version to the name.
12605 soname_spec='${libname}${release}${shared_ext}$major'
12612 hardcode_into_libs=yes
12613 if test "$host_cpu" = ia64; then
12614 # AIX 5 supports IA64
12615 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12616 shlibpath_var=LD_LIBRARY_PATH
12618 # With GCC up to 2.95.x, collect2 would create an import file
12619 # for dependence libraries. The import file would start with
12620 # the line `#! .'. This would cause the generated library to
12621 # depend on `.', always an invalid library. This was fixed in
12622 # development snapshots of GCC prior to 3.0.
12624 aix4 | aix4.[01] | aix4.[01].*)
12625 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12627 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12630 can_build_shared=no
12634 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12635 # soname into executable. Probably we can add versioning support to
12636 # collect2, so additional links can be useful in future.
12637 if test "$aix_use_runtimelinking" = yes; then
12638 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12639 # instead of lib<name>.a to let people know that these are not
12640 # typical AIX shared libraries.
12641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12643 # We preserve .a as extension for shared libraries through AIX4.2
12644 # and later when we are not doing run time linking.
12645 library_names_spec='${libname}${release}.a $libname.a'
12646 soname_spec='${libname}${release}${shared_ext}$major'
12648 shlibpath_var=LIBPATH
12653 library_names_spec='$libname.ixlibrary $libname.a'
12654 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12655 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'
12659 library_names_spec='${libname}${shared_ext}'
12660 dynamic_linker="$host_os ld.so"
12661 shlibpath_var=LIBRARY_PATH
12667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12668 soname_spec='${libname}${release}${shared_ext}$major'
12669 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12670 shlibpath_var=LD_LIBRARY_PATH
12671 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12672 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12673 # the default ld.so.conf also contains /usr/contrib/lib and
12674 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12675 # libtool to hard-code these into programs
12678 cygwin* | mingw* | pw32*)
12679 version_type=windows
12684 case $GCC,$host_os in
12685 yes,cygwin* | yes,mingw* | yes,pw32*)
12686 library_names_spec='$libname.dll.a'
12687 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12688 postinstall_cmds='base_file=`basename \${file}`~
12689 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12690 dldir=$destdir/`dirname \$dlpath`~
12691 test -d \$dldir || mkdir -p \$dldir~
12692 $install_prog $dir/$dlname \$dldir/$dlname~
12693 chmod a+x \$dldir/$dlname'
12694 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12695 dlpath=$dir/\$dldll~
12697 shlibpath_overrides_runpath=yes
12701 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12702 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12703 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12706 # MinGW DLLs use traditional 'lib' prefix
12707 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12708 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12709 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12710 # It is most probably a Windows format PATH printed by
12711 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12712 # path with ; separators, and with drive letters. We can handle the
12713 # drive letters (cygwin fileutils understands them), so leave them,
12714 # especially as we might pass files found there to a mingw objdump,
12715 # which wouldn't understand a cygwinified path. Ahh.
12716 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12718 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12722 # pw32 DLLs use 'pw' prefix rather than 'lib'
12723 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12729 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12732 dynamic_linker='Win32 ld.exe'
12733 # FIXME: first we should search . and the directory the executable is in
12737 darwin* | rhapsody*)
12738 dynamic_linker="$host_os dyld"
12739 version_type=darwin
12742 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12743 soname_spec='${libname}${release}${major}$shared_ext'
12744 shlibpath_overrides_runpath=yes
12745 shlibpath_var=DYLD_LIBRARY_PATH
12746 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12748 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12756 soname_spec='${libname}${release}${shared_ext}$major'
12757 shlibpath_var=LD_LIBRARY_PATH
12764 freebsd* | dragonfly*)
12765 # DragonFly does not have aout. When/if they implement a new
12766 # versioning mechanism, adjust this.
12767 if test -x /usr/bin/objformat; then
12768 objformat=`/usr/bin/objformat`
12771 freebsd[123]*) objformat=aout ;;
12772 *) objformat=elf ;;
12775 version_type=freebsd-$objformat
12776 case $version_type in
12778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12783 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12787 shlibpath_var=LD_LIBRARY_PATH
12790 shlibpath_overrides_runpath=yes
12792 freebsd3.[01]* | freebsdelf3.[01]*)
12793 shlibpath_overrides_runpath=yes
12794 hardcode_into_libs=yes
12796 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12797 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12798 shlibpath_overrides_runpath=no
12799 hardcode_into_libs=yes
12801 *) # from 4.6 on, and DragonFly
12802 shlibpath_overrides_runpath=yes
12803 hardcode_into_libs=yes
12812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12813 soname_spec='${libname}${release}${shared_ext}$major'
12814 shlibpath_var=LD_LIBRARY_PATH
12815 hardcode_into_libs=yes
12818 hpux9* | hpux10* | hpux11*)
12819 # Give a soname corresponding to the major version so that dld.sl refuses to
12820 # link against other versions.
12827 hardcode_into_libs=yes
12828 dynamic_linker="$host_os dld.so"
12829 shlibpath_var=LD_LIBRARY_PATH
12830 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12832 soname_spec='${libname}${release}${shared_ext}$major'
12833 if test "X$HPUX_IA64_MODE" = X32; then
12834 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12836 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12838 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12842 hardcode_into_libs=yes
12843 dynamic_linker="$host_os dld.sl"
12844 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12845 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12847 soname_spec='${libname}${release}${shared_ext}$major'
12848 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12849 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12853 dynamic_linker="$host_os dld.sl"
12854 shlibpath_var=SHLIB_PATH
12855 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12857 soname_spec='${libname}${release}${shared_ext}$major'
12860 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12861 postinstall_cmds='chmod 555 $lib'
12868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12869 soname_spec='${libname}${release}${shared_ext}$major'
12870 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12871 shlibpath_var=LD_LIBRARY_PATH
12872 shlibpath_overrides_runpath=no
12873 hardcode_into_libs=yes
12876 irix5* | irix6* | nonstopux*)
12878 nonstopux*) version_type=nonstopux ;;
12880 if test "$lt_cv_prog_gnu_ld" = yes; then
12888 soname_spec='${libname}${release}${shared_ext}$major'
12889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12891 irix5* | nonstopux*)
12892 libsuff= shlibsuff=
12895 case $LD in # libtool.m4 will add one of these switches to LD
12896 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12897 libsuff= shlibsuff= libmagic=32-bit;;
12898 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12899 libsuff=32 shlibsuff=N32 libmagic=N32;;
12900 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12901 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12902 *) libsuff= shlibsuff= libmagic=never-match;;
12906 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12907 shlibpath_overrides_runpath=no
12908 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12909 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12910 hardcode_into_libs=yes
12913 # No shared lib support for Linux oldld, aout, or coff.
12914 linux*oldld* | linux*aout* | linux*coff*)
12918 # This must be Linux ELF.
12919 linux* | k*bsd*-gnu)
12923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12924 soname_spec='${libname}${release}${shared_ext}$major'
12925 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12926 shlibpath_var=LD_LIBRARY_PATH
12927 shlibpath_overrides_runpath=no
12928 # This implies no fast_install, which is unacceptable.
12929 # Some rework will be needed to allow for fast_install
12930 # before this can be enabled.
12931 hardcode_into_libs=yes
12933 # Append ld.so.conf contents to the search path
12934 if test -f /etc/ld.so.conf; then
12935 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' ' '`
12936 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12939 # We used to test for /lib/ld.so.1 and disable shared libraries on
12940 # powerpc, because MkLinux only supported shared libraries with the
12941 # GNU dynamic linker. Since this was broken with cross compilers,
12942 # most powerpc-linux boxes support dynamic linking these days and
12943 # people can always --disable-shared, the test was removed, and we
12944 # assume the GNU/Linux dynamic linker is in use.
12945 dynamic_linker='GNU/Linux ld.so'
12952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12953 soname_spec='${libname}${release}${shared_ext}$major'
12954 shlibpath_var=LD_LIBRARY_PATH
12955 shlibpath_overrides_runpath=no
12956 hardcode_into_libs=yes
12957 dynamic_linker='NetBSD ld.elf_so'
12964 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12966 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12967 dynamic_linker='NetBSD (a.out) ld.so'
12969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12970 soname_spec='${libname}${release}${shared_ext}$major'
12971 dynamic_linker='NetBSD ld.elf_so'
12973 shlibpath_var=LD_LIBRARY_PATH
12974 shlibpath_overrides_runpath=yes
12975 hardcode_into_libs=yes
12980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12981 shlibpath_var=LD_LIBRARY_PATH
12982 shlibpath_overrides_runpath=yes
12989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12990 soname_spec='${libname}${release}${shared_ext}$major'
12991 shlibpath_var=LD_LIBRARY_PATH
12992 shlibpath_overrides_runpath=yes
12997 sys_lib_dlsearch_path_spec="/usr/lib"
12999 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13001 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13002 *) need_version=no ;;
13004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13005 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13006 shlibpath_var=LD_LIBRARY_PATH
13007 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13009 openbsd2.[89] | openbsd2.[89].*)
13010 shlibpath_overrides_runpath=no
13013 shlibpath_overrides_runpath=yes
13017 shlibpath_overrides_runpath=yes
13022 libname_spec='$name'
13025 library_names_spec='$libname${shared_ext} $libname.a'
13026 dynamic_linker='OS/2 ld.exe'
13027 shlibpath_var=LIBPATH
13030 osf3* | osf4* | osf5*)
13034 soname_spec='${libname}${release}${shared_ext}$major'
13035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13036 shlibpath_var=LD_LIBRARY_PATH
13037 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13038 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13050 soname_spec='${libname}${release}${shared_ext}$major'
13051 shlibpath_var=LD_LIBRARY_PATH
13052 shlibpath_overrides_runpath=yes
13053 hardcode_into_libs=yes
13054 # ldd complains unless libraries are executable
13055 postinstall_cmds='chmod +x $lib'
13060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13061 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13062 shlibpath_var=LD_LIBRARY_PATH
13063 shlibpath_overrides_runpath=yes
13064 if test "$with_gnu_ld" = yes; then
13072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13073 soname_spec='${libname}${release}${shared_ext}$major'
13074 shlibpath_var=LD_LIBRARY_PATH
13075 case $host_vendor in
13077 shlibpath_overrides_runpath=no
13079 export_dynamic_flag_spec='${wl}-Blargedynsym'
13080 runpath_var=LD_RUN_PATH
13088 shlibpath_overrides_runpath=no
13089 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13095 if test -d /usr/nec ;then
13097 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13098 soname_spec='$libname${shared_ext}.$major'
13099 shlibpath_var=LD_LIBRARY_PATH
13103 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13104 version_type=freebsd-elf
13107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13108 soname_spec='${libname}${release}${shared_ext}$major'
13109 shlibpath_var=LD_LIBRARY_PATH
13110 hardcode_into_libs=yes
13111 if test "$with_gnu_ld" = yes; then
13112 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13113 shlibpath_overrides_runpath=no
13115 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13116 shlibpath_overrides_runpath=yes
13119 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13123 sys_lib_dlsearch_path_spec='/usr/lib'
13128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13129 soname_spec='${libname}${release}${shared_ext}$major'
13130 shlibpath_var=LD_LIBRARY_PATH
13137 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13138 echo "${ECHO_T}$dynamic_linker" >&6; }
13139 test "$dynamic_linker" = no && can_build_shared=no
13141 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13142 if test "$GCC" = yes; then
13143 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13146 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13147 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13148 hardcode_action_CXX=
13149 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13150 test -n "$runpath_var_CXX" || \
13151 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13153 # We can hardcode non-existant directories.
13154 if test "$hardcode_direct_CXX" != no &&
13155 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13156 # have to relink, otherwise we might link with an installed library
13157 # when we should be linking with a yet-to-be-installed one
13158 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13159 test "$hardcode_minus_L_CXX" != no; then
13160 # Linking always hardcodes the temporary library directory.
13161 hardcode_action_CXX=relink
13163 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13164 hardcode_action_CXX=immediate
13167 # We cannot hardcode anything, or else we can only hardcode existing
13169 hardcode_action_CXX=unsupported
13171 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13172 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13174 if test "$hardcode_action_CXX" = relink; then
13175 # Fast installation is not supported
13176 enable_fast_install=no
13177 elif test "$shlibpath_overrides_runpath" = yes ||
13178 test "$enable_shared" = no; then
13179 # Fast installation is not necessary
13180 enable_fast_install=needless
13184 # The else clause should only fire when bootstrapping the
13185 # libtool distribution, otherwise you forgot to ship ltmain.sh
13186 # with your package, and you will get complaints that there are
13187 # no rules to generate ltmain.sh.
13188 if test -f "$ltmain"; then
13189 # See if we are running on zsh, and set the options which allow our commands through
13190 # without removal of \ escapes.
13191 if test -n "${ZSH_VERSION+set}" ; then
13192 setopt NO_GLOB_SUBST
13194 # Now quote all the things that may contain metacharacters while being
13195 # careful not to overquote the AC_SUBSTed values. We take copies of the
13196 # variables and quote the copies for generation of the libtool script.
13197 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13199 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13200 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13201 deplibs_check_method reload_flag reload_cmds need_locks \
13202 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13203 lt_cv_sys_global_symbol_to_c_name_address \
13204 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13205 old_postinstall_cmds old_postuninstall_cmds \
13209 lt_prog_compiler_wl_CXX \
13210 lt_prog_compiler_pic_CXX \
13211 lt_prog_compiler_static_CXX \
13212 lt_prog_compiler_no_builtin_flag_CXX \
13213 export_dynamic_flag_spec_CXX \
13214 thread_safe_flag_spec_CXX \
13215 whole_archive_flag_spec_CXX \
13216 enable_shared_with_static_runtimes_CXX \
13217 old_archive_cmds_CXX \
13218 old_archive_from_new_cmds_CXX \
13219 predep_objects_CXX \
13220 postdep_objects_CXX \
13223 compiler_lib_search_path_CXX \
13225 archive_expsym_cmds_CXX \
13226 postinstall_cmds_CXX \
13227 postuninstall_cmds_CXX \
13228 old_archive_from_expsyms_cmds_CXX \
13229 allow_undefined_flag_CXX \
13230 no_undefined_flag_CXX \
13231 export_symbols_cmds_CXX \
13232 hardcode_libdir_flag_spec_CXX \
13233 hardcode_libdir_flag_spec_ld_CXX \
13234 hardcode_libdir_separator_CXX \
13235 hardcode_automatic_CXX \
13237 module_expsym_cmds_CXX \
13238 lt_cv_prog_compiler_c_o_CXX \
13239 fix_srcfile_path_CXX \
13240 exclude_expsyms_CXX \
13241 include_expsyms_CXX; do
13244 old_archive_cmds_CXX | \
13245 old_archive_from_new_cmds_CXX | \
13246 archive_cmds_CXX | \
13247 archive_expsym_cmds_CXX | \
13248 module_cmds_CXX | \
13249 module_expsym_cmds_CXX | \
13250 old_archive_from_expsyms_cmds_CXX | \
13251 export_symbols_cmds_CXX | \
13252 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13253 postinstall_cmds | postuninstall_cmds | \
13254 old_postinstall_cmds | old_postuninstall_cmds | \
13255 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13256 # Double-quote double-evaled strings.
13257 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13260 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13266 *'\$0 --fallback-echo"')
13267 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13273 cat <<__EOF__ >> "$cfgfile"
13274 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13276 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13278 # Shell to use when invoking shell scripts.
13281 # Whether or not to build shared libraries.
13282 build_libtool_libs=$enable_shared
13284 # Whether or not to build static libraries.
13285 build_old_libs=$enable_static
13287 # Whether or not to add -lc for building shared libraries.
13288 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13290 # Whether or not to disallow shared libs when runtime libs are static
13291 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13293 # Whether or not to optimize for fast installation.
13294 fast_install=$enable_fast_install
13297 host_alias=$host_alias
13301 # The build system.
13302 build_alias=$build_alias
13306 # An echo program that does not interpret backslashes.
13311 AR_FLAGS=$lt_AR_FLAGS
13316 # LTCC compiler flags.
13317 LTCFLAGS=$lt_LTCFLAGS
13319 # A language-specific compiler.
13320 CC=$lt_compiler_CXX
13322 # Is the compiler the GNU C compiler?
13328 # The linker used to build libraries.
13331 # Whether we need hard or soft links.
13334 # A BSD-compatible nm program.
13337 # A symbol stripping program
13340 # Used to examine libraries when file_magic_cmd begins "file"
13341 MAGIC_CMD=$MAGIC_CMD
13343 # Used on cygwin: DLL creation program.
13346 # Used on cygwin: object dumper.
13349 # Used on cygwin: assembler.
13352 # The name of the directory that contains temporary libtool files.
13355 # How to create reloadable object files.
13356 reload_flag=$lt_reload_flag
13357 reload_cmds=$lt_reload_cmds
13359 # How to pass a linker flag through the compiler.
13360 wl=$lt_lt_prog_compiler_wl_CXX
13362 # Object file suffix (normally "o").
13363 objext="$ac_objext"
13365 # Old archive suffix (normally "a").
13368 # Shared library suffix (normally ".so").
13369 shrext_cmds='$shrext_cmds'
13371 # Executable file suffix (normally "").
13374 # Additional compiler flags for building library objects.
13375 pic_flag=$lt_lt_prog_compiler_pic_CXX
13378 # What is the maximum length of a command?
13379 max_cmd_len=$lt_cv_sys_max_cmd_len
13381 # Does compiler simultaneously support -c and -o options?
13382 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13384 # Must we lock files when doing compilation?
13385 need_locks=$lt_need_locks
13387 # Do we need the lib prefix for modules?
13388 need_lib_prefix=$need_lib_prefix
13390 # Do we need a version for libraries?
13391 need_version=$need_version
13393 # Whether dlopen is supported.
13394 dlopen_support=$enable_dlopen
13396 # Whether dlopen of programs is supported.
13397 dlopen_self=$enable_dlopen_self
13399 # Whether dlopen of statically linked programs is supported.
13400 dlopen_self_static=$enable_dlopen_self_static
13402 # Compiler flag to prevent dynamic linking.
13403 link_static_flag=$lt_lt_prog_compiler_static_CXX
13405 # Compiler flag to turn off builtin functions.
13406 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13408 # Compiler flag to allow reflexive dlopens.
13409 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13411 # Compiler flag to generate shared objects directly from archives.
13412 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13414 # Compiler flag to generate thread-safe objects.
13415 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13417 # Library versioning type.
13418 version_type=$version_type
13420 # Format of library name prefix.
13421 libname_spec=$lt_libname_spec
13423 # List of archive names. First name is the real one, the rest are links.
13424 # The last name is the one that the linker finds with -lNAME.
13425 library_names_spec=$lt_library_names_spec
13427 # The coded name of the library, if different from the real name.
13428 soname_spec=$lt_soname_spec
13430 # Commands used to build and install an old-style archive.
13432 old_archive_cmds=$lt_old_archive_cmds_CXX
13433 old_postinstall_cmds=$lt_old_postinstall_cmds
13434 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13436 # Create an old-style archive from a shared archive.
13437 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13439 # Create a temporary old-style archive to link instead of a shared archive.
13440 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13442 # Commands used to build and install a shared archive.
13443 archive_cmds=$lt_archive_cmds_CXX
13444 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13445 postinstall_cmds=$lt_postinstall_cmds
13446 postuninstall_cmds=$lt_postuninstall_cmds
13448 # Commands used to build a loadable module (assumed same as above if empty)
13449 module_cmds=$lt_module_cmds_CXX
13450 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13452 # Commands to strip libraries.
13453 old_striplib=$lt_old_striplib
13454 striplib=$lt_striplib
13456 # Dependencies to place before the objects being linked to create a
13458 predep_objects=$lt_predep_objects_CXX
13460 # Dependencies to place after the objects being linked to create a
13462 postdep_objects=$lt_postdep_objects_CXX
13464 # Dependencies to place before the objects being linked to create a
13466 predeps=$lt_predeps_CXX
13468 # Dependencies to place after the objects being linked to create a
13470 postdeps=$lt_postdeps_CXX
13472 # The library search path used internally by the compiler when linking
13473 # a shared library.
13474 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13476 # Method to check whether dependent libraries are shared objects.
13477 deplibs_check_method=$lt_deplibs_check_method
13479 # Command to use when deplibs_check_method == file_magic.
13480 file_magic_cmd=$lt_file_magic_cmd
13482 # Flag that allows shared libraries with undefined symbols to be built.
13483 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13485 # Flag that forces no undefined symbols.
13486 no_undefined_flag=$lt_no_undefined_flag_CXX
13488 # Commands used to finish a libtool library installation in a directory.
13489 finish_cmds=$lt_finish_cmds
13491 # Same as above, but a single script fragment to be evaled but not shown.
13492 finish_eval=$lt_finish_eval
13494 # Take the output of nm and produce a listing of raw symbols and C names.
13495 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13497 # Transform the output of nm in a proper C declaration
13498 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13500 # Transform the output of nm in a C name address pair
13501 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13503 # This is the shared library runtime path variable.
13504 runpath_var=$runpath_var
13506 # This is the shared library path variable.
13507 shlibpath_var=$shlibpath_var
13509 # Is shlibpath searched before the hard-coded library search path?
13510 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13512 # How to hardcode a shared library path into an executable.
13513 hardcode_action=$hardcode_action_CXX
13515 # Whether we should hardcode library paths into libraries.
13516 hardcode_into_libs=$hardcode_into_libs
13518 # Flag to hardcode \$libdir into a binary during linking.
13519 # This must work even if \$libdir does not exist.
13520 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13522 # If ld is used when linking, flag to hardcode \$libdir into
13523 # a binary during linking. This must work even if \$libdir does
13525 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13527 # Whether we need a single -rpath flag with a separated argument.
13528 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13530 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13531 # resulting binary.
13532 hardcode_direct=$hardcode_direct_CXX
13534 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13535 # resulting binary.
13536 hardcode_minus_L=$hardcode_minus_L_CXX
13538 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13539 # the resulting binary.
13540 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13542 # Set to yes if building a shared library automatically hardcodes DIR into the library
13543 # and all subsequent libraries and executables linked against it.
13544 hardcode_automatic=$hardcode_automatic_CXX
13546 # Variables whose values should be saved in libtool wrapper scripts and
13547 # restored at relink time.
13548 variables_saved_for_relink="$variables_saved_for_relink"
13550 # Whether libtool must link a program against all its dependency libraries.
13551 link_all_deplibs=$link_all_deplibs_CXX
13553 # Compile-time system search path for libraries
13554 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13556 # Run-time system search path for libraries
13557 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13559 # Fix the shell variable \$srcfile for the compiler.
13560 fix_srcfile_path=$lt_fix_srcfile_path
13562 # Set to yes if exported symbols are required.
13563 always_export_symbols=$always_export_symbols_CXX
13565 # The commands to list exported symbols.
13566 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13568 # The commands to extract the exported symbol list from a shared archive.
13569 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13571 # Symbols that should not be listed in the preloaded symbols.
13572 exclude_expsyms=$lt_exclude_expsyms_CXX
13574 # Symbols that must always be exported.
13575 include_expsyms=$lt_include_expsyms_CXX
13577 # ### END LIBTOOL TAG CONFIG: $tagname
13583 # If there is no Makefile yet, we rely on a make rule to execute
13584 # `config.status --recheck' to rerun these tests and create the
13585 # libtool script then.
13586 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13587 if test -f "$ltmain_in"; then
13588 test -f Makefile && make "$ltmain"
13594 ac_cpp='$CPP $CPPFLAGS'
13595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13603 with_gnu_ldcxx=$with_gnu_ld
13604 with_gnu_ld=$lt_save_with_gnu_ld
13605 lt_cv_path_LDCXX=$lt_cv_path_LD
13606 lt_cv_path_LD=$lt_save_path_LD
13607 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13608 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13616 if test -n "$F77" && test "X$F77" != "Xno"; then
13619 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13620 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13621 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13624 archive_cmds_need_lc_F77=no
13625 allow_undefined_flag_F77=
13626 always_export_symbols_F77=no
13627 archive_expsym_cmds_F77=
13628 export_dynamic_flag_spec_F77=
13629 hardcode_direct_F77=no
13630 hardcode_libdir_flag_spec_F77=
13631 hardcode_libdir_flag_spec_ld_F77=
13632 hardcode_libdir_separator_F77=
13633 hardcode_minus_L_F77=no
13634 hardcode_automatic_F77=no
13636 module_expsym_cmds_F77=
13637 link_all_deplibs_F77=unknown
13638 old_archive_cmds_F77=$old_archive_cmds
13639 no_undefined_flag_F77=
13640 whole_archive_flag_spec_F77=
13641 enable_shared_with_static_runtimes_F77=no
13643 # Source file extension for f77 test sources.
13646 # Object file extension for compiled f77 test sources.
13650 # Code to be used in simple compile tests
13651 lt_simple_compile_test_code="\
13657 # Code to be used in simple link tests
13658 lt_simple_link_test_code="\
13663 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13665 # If no C compiler was specified, use CC.
13668 # If no C compiler flags were specified, use CFLAGS.
13669 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13671 # Allow CC to be a program name with arguments.
13675 # save warnings/boilerplate of simple test code
13676 ac_outfile=conftest.$ac_objext
13677 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13678 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13679 _lt_compiler_boilerplate=`cat conftest.err`
13682 ac_outfile=conftest.$ac_objext
13683 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13684 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13685 _lt_linker_boilerplate=`cat conftest.err`
13689 # Allow CC to be a program name with arguments.
13694 for cc_temp in $compiler""; do
13696 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13697 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13702 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13705 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13706 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13707 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13708 echo "${ECHO_T}$can_build_shared" >&6; }
13710 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13711 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13712 test "$can_build_shared" = "no" && enable_shared=no
13714 # On AIX, shared libraries and static libraries use the same namespace, and
13715 # are all built from PIC.
13718 test "$enable_shared" = yes && enable_static=no
13719 if test -n "$RANLIB"; then
13720 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13721 postinstall_cmds='$RANLIB $lib'
13725 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13726 test "$enable_shared" = yes && enable_static=no
13730 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13731 echo "${ECHO_T}$enable_shared" >&6; }
13733 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13734 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13735 # Make sure either enable_shared or enable_static is yes.
13736 test "$enable_shared" = yes || enable_static=yes
13737 { echo "$as_me:$LINENO: result: $enable_static" >&5
13738 echo "${ECHO_T}$enable_static" >&6; }
13743 lt_prog_compiler_wl_F77=
13744 lt_prog_compiler_pic_F77=
13745 lt_prog_compiler_static_F77=
13747 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13748 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13750 if test "$GCC" = yes; then
13751 lt_prog_compiler_wl_F77='-Wl,'
13752 lt_prog_compiler_static_F77='-static'
13756 # All AIX code is PIC.
13757 if test "$host_cpu" = ia64; then
13758 # AIX 5 now supports IA64 processor
13759 lt_prog_compiler_static_F77='-Bstatic'
13764 # FIXME: we need at least 68020 code to build shared libraries, but
13765 # adding the `-m68020' flag to GCC prevents building anything better,
13767 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13770 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13771 # PIC is the default for these OSes.
13774 mingw* | cygwin* | pw32* | os2*)
13775 # This hack is so that the source file can tell whether it is being
13776 # built for inclusion in a dll (and should export symbols for example).
13777 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13778 # (--disable-auto-import) libraries
13779 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13782 darwin* | rhapsody*)
13783 # PIC is the default on this platform
13784 # Common symbols not allowed in MH_DYLIB files
13785 lt_prog_compiler_pic_F77='-fno-common'
13789 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13790 # Instead, we relocate shared libraries at runtime.
13794 # Just because we use GCC doesn't mean we suddenly get shared libraries
13795 # on systems that don't support them.
13796 lt_prog_compiler_can_build_shared_F77=no
13801 if test -d /usr/nec; then
13802 lt_prog_compiler_pic_F77=-Kconform_pic
13807 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13808 # not for PA HP-UX.
13814 lt_prog_compiler_pic_F77='-fPIC'
13820 lt_prog_compiler_pic_F77='-fPIC'
13824 # PORTME Check for flag to pass linker flags through the system compiler.
13827 lt_prog_compiler_wl_F77='-Wl,'
13828 if test "$host_cpu" = ia64; then
13829 # AIX 5 now supports IA64 processor
13830 lt_prog_compiler_static_F77='-Bstatic'
13832 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13836 # PIC is the default on this platform
13837 # Common symbols not allowed in MH_DYLIB files
13838 case $cc_basename in
13840 lt_prog_compiler_pic_F77='-qnocommon'
13841 lt_prog_compiler_wl_F77='-Wl,'
13846 mingw* | cygwin* | pw32* | os2*)
13847 # This hack is so that the source file can tell whether it is being
13848 # built for inclusion in a dll (and should export symbols for example).
13849 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13852 hpux9* | hpux10* | hpux11*)
13853 lt_prog_compiler_wl_F77='-Wl,'
13854 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13855 # not for PA HP-UX.
13861 lt_prog_compiler_pic_F77='+Z'
13864 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13865 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13868 irix5* | irix6* | nonstopux*)
13869 lt_prog_compiler_wl_F77='-Wl,'
13870 # PIC (with -KPIC) is the default.
13871 lt_prog_compiler_static_F77='-non_shared'
13875 lt_prog_compiler_pic_F77='-KPIC'
13876 lt_prog_compiler_static_F77='-Bstatic'
13879 linux* | k*bsd*-gnu)
13880 case $cc_basename in
13882 lt_prog_compiler_wl_F77='-Wl,'
13883 lt_prog_compiler_pic_F77='-KPIC'
13884 lt_prog_compiler_static_F77='-static'
13886 pgcc* | pgf77* | pgf90* | pgf95*)
13887 # Portland Group compilers (*not* the Pentium gcc compiler,
13888 # which looks to be a dead project)
13889 lt_prog_compiler_wl_F77='-Wl,'
13890 lt_prog_compiler_pic_F77='-fpic'
13891 lt_prog_compiler_static_F77='-Bstatic'
13894 lt_prog_compiler_wl_F77='-Wl,'
13895 # All Alpha code is PIC.
13896 lt_prog_compiler_static_F77='-non_shared'
13899 case `$CC -V 2>&1 | sed 5q` in
13902 lt_prog_compiler_pic_F77='-KPIC'
13903 lt_prog_compiler_static_F77='-Bstatic'
13904 lt_prog_compiler_wl_F77='-Wl,'
13907 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13908 lt_prog_compiler_pic_F77='-KPIC'
13909 lt_prog_compiler_static_F77='-Bstatic'
13910 lt_prog_compiler_wl_F77=''
13917 osf3* | osf4* | osf5*)
13918 lt_prog_compiler_wl_F77='-Wl,'
13919 # All OSF/1 code is PIC.
13920 lt_prog_compiler_static_F77='-non_shared'
13924 lt_prog_compiler_static_F77='-non_shared'
13928 lt_prog_compiler_pic_F77='-KPIC'
13929 lt_prog_compiler_static_F77='-Bstatic'
13930 case $cc_basename in
13931 f77* | f90* | f95*)
13932 lt_prog_compiler_wl_F77='-Qoption ld ';;
13934 lt_prog_compiler_wl_F77='-Wl,';;
13939 lt_prog_compiler_wl_F77='-Qoption ld '
13940 lt_prog_compiler_pic_F77='-PIC'
13941 lt_prog_compiler_static_F77='-Bstatic'
13944 sysv4 | sysv4.2uw2* | sysv4.3*)
13945 lt_prog_compiler_wl_F77='-Wl,'
13946 lt_prog_compiler_pic_F77='-KPIC'
13947 lt_prog_compiler_static_F77='-Bstatic'
13951 if test -d /usr/nec ;then
13952 lt_prog_compiler_pic_F77='-Kconform_pic'
13953 lt_prog_compiler_static_F77='-Bstatic'
13957 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13958 lt_prog_compiler_wl_F77='-Wl,'
13959 lt_prog_compiler_pic_F77='-KPIC'
13960 lt_prog_compiler_static_F77='-Bstatic'
13964 lt_prog_compiler_wl_F77='-Wl,'
13965 lt_prog_compiler_can_build_shared_F77=no
13969 lt_prog_compiler_pic_F77='-pic'
13970 lt_prog_compiler_static_F77='-Bstatic'
13974 lt_prog_compiler_can_build_shared_F77=no
13979 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13980 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13983 # Check to make sure the PIC flag actually works.
13985 if test -n "$lt_prog_compiler_pic_F77"; then
13987 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13988 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13989 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13990 echo $ECHO_N "(cached) $ECHO_C" >&6
13992 lt_prog_compiler_pic_works_F77=no
13993 ac_outfile=conftest.$ac_objext
13994 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13995 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13996 # Insert the option either (1) after the last *FLAGS variable, or
13997 # (2) before a word containing "conftest.", or (3) at the end.
13998 # Note that $ac_compile itself does not contain backslashes and begins
13999 # with a dollar sign (not a hyphen), so the echo should work correctly.
14000 # The option is referenced via a variable to avoid confusing sed.
14001 lt_compile=`echo "$ac_compile" | $SED \
14002 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14003 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14004 -e 's:$: $lt_compiler_flag:'`
14005 (eval echo "\"\$as_me:14005: $lt_compile\"" >&5)
14006 (eval "$lt_compile" 2>conftest.err)
14008 cat conftest.err >&5
14009 echo "$as_me:14009: \$? = $ac_status" >&5
14010 if (exit $ac_status) && test -s "$ac_outfile"; then
14011 # The compiler can only warn and ignore the option if not recognized
14012 # So say no if there are warnings other than the usual output.
14013 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14014 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14015 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14016 lt_prog_compiler_pic_works_F77=yes
14022 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14023 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14025 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14026 case $lt_prog_compiler_pic_F77 in
14028 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14031 lt_prog_compiler_pic_F77=
14032 lt_prog_compiler_can_build_shared_F77=no
14037 # For platforms which do not support PIC, -DPIC is meaningless:
14039 lt_prog_compiler_pic_F77=
14042 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14047 # Check to make sure the static flag actually works.
14049 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14050 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14051 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14052 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14053 echo $ECHO_N "(cached) $ECHO_C" >&6
14055 lt_prog_compiler_static_works_F77=no
14056 save_LDFLAGS="$LDFLAGS"
14057 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14058 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14059 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14060 # The linker can only warn and ignore the option if not recognized
14061 # So say no if there are warnings
14062 if test -s conftest.err; then
14063 # Append any errors to the config.log.
14064 cat conftest.err 1>&5
14065 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14066 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14067 if diff conftest.exp conftest.er2 >/dev/null; then
14068 lt_prog_compiler_static_works_F77=yes
14071 lt_prog_compiler_static_works_F77=yes
14075 LDFLAGS="$save_LDFLAGS"
14078 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14079 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14081 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14084 lt_prog_compiler_static_F77=
14088 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14089 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14090 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14091 echo $ECHO_N "(cached) $ECHO_C" >&6
14093 lt_cv_prog_compiler_c_o_F77=no
14094 $rm -r conftest 2>/dev/null
14098 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14100 lt_compiler_flag="-o out/conftest2.$ac_objext"
14101 # Insert the option either (1) after the last *FLAGS variable, or
14102 # (2) before a word containing "conftest.", or (3) at the end.
14103 # Note that $ac_compile itself does not contain backslashes and begins
14104 # with a dollar sign (not a hyphen), so the echo should work correctly.
14105 lt_compile=`echo "$ac_compile" | $SED \
14106 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14107 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14108 -e 's:$: $lt_compiler_flag:'`
14109 (eval echo "\"\$as_me:14109: $lt_compile\"" >&5)
14110 (eval "$lt_compile" 2>out/conftest.err)
14112 cat out/conftest.err >&5
14113 echo "$as_me:14113: \$? = $ac_status" >&5
14114 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14116 # The compiler can only warn and ignore the option if not recognized
14117 # So say no if there are warnings
14118 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14119 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14120 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14121 lt_cv_prog_compiler_c_o_F77=yes
14126 # SGI C++ compiler will create directory out/ii_files/ for
14127 # template instantiation
14128 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14129 $rm out/* && rmdir out
14135 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14136 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14139 hard_links="nottested"
14140 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14141 # do not overwrite the value of need_locks provided by the user
14142 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14143 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14146 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14148 ln conftest.a conftest.b 2>&5 || hard_links=no
14149 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14150 { echo "$as_me:$LINENO: result: $hard_links" >&5
14151 echo "${ECHO_T}$hard_links" >&6; }
14152 if test "$hard_links" = no; then
14153 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14154 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14161 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14162 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14165 allow_undefined_flag_F77=
14166 enable_shared_with_static_runtimes_F77=no
14168 archive_expsym_cmds_F77=
14169 old_archive_From_new_cmds_F77=
14170 old_archive_from_expsyms_cmds_F77=
14171 export_dynamic_flag_spec_F77=
14172 whole_archive_flag_spec_F77=
14173 thread_safe_flag_spec_F77=
14174 hardcode_libdir_flag_spec_F77=
14175 hardcode_libdir_flag_spec_ld_F77=
14176 hardcode_libdir_separator_F77=
14177 hardcode_direct_F77=no
14178 hardcode_minus_L_F77=no
14179 hardcode_shlibpath_var_F77=unsupported
14180 link_all_deplibs_F77=unknown
14181 hardcode_automatic_F77=no
14183 module_expsym_cmds_F77=
14184 always_export_symbols_F77=no
14185 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14186 # include_expsyms should be a list of space-separated symbols to be *always*
14187 # included in the symbol list
14188 include_expsyms_F77=
14189 # exclude_expsyms can be an extended regexp of symbols to exclude
14190 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14191 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14192 # as well as any symbol that contains `d'.
14193 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14194 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14195 # platforms (ab)use it in PIC code, but their linkers get confused if
14196 # the symbol is explicitly referenced. Since portable code cannot
14197 # rely on this symbol name, it's probably fine to never include it in
14198 # preloaded symbol tables.
14199 extract_expsyms_cmds=
14200 # Just being paranoid about ensuring that cc_basename is set.
14201 for cc_temp in $compiler""; do
14203 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14204 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14209 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14212 cygwin* | mingw* | pw32*)
14213 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14214 # When not using gcc, we currently assume that we are using
14215 # Microsoft Visual C++.
14216 if test "$GCC" != yes; then
14221 # we just hope/assume this is gcc and not c89 (= MSVC++)
14230 if test "$with_gnu_ld" = yes; then
14231 # If archive_cmds runs LD, not CC, wlarc should be empty
14234 # Set some defaults for GNU ld with shared library support. These
14235 # are reset later if shared libraries are not supported. Putting them
14236 # here allows them to be overridden if necessary.
14237 runpath_var=LD_RUN_PATH
14238 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14239 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14240 # ancient GNU ld didn't support --whole-archive et. al.
14241 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14242 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14244 whole_archive_flag_spec_F77=
14246 supports_anon_versioning=no
14247 case `$LD -v 2>/dev/null` in
14248 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14249 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14250 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14251 *\ 2.11.*) ;; # other 2.11 versions
14252 *) supports_anon_versioning=yes ;;
14255 # See if GNU ld supports shared libraries.
14257 aix3* | aix4* | aix5*)
14258 # On AIX/PPC, the GNU linker is very broken
14259 if test "$host_cpu" != ia64; then
14263 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14264 *** to be unable to reliably create shared libraries on AIX.
14265 *** Therefore, libtool is disabling shared libraries support. If you
14266 *** really care for shared libraries, you may want to modify your PATH
14267 *** so that a non-GNU linker is found, and then restart.
14274 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)'
14275 hardcode_libdir_flag_spec_F77='-L$libdir'
14276 hardcode_minus_L_F77=yes
14278 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14279 # that the semantics of dynamic libraries on AmigaOS, at least up
14280 # to version 4, is to share data among multiple programs linked
14281 # with the same dynamic library. Since this doesn't match the
14282 # behavior of shared libraries on other platforms, we can't use
14288 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14289 allow_undefined_flag_F77=unsupported
14290 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14291 # support --undefined. This deserves some investigation. FIXME
14292 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14298 cygwin* | mingw* | pw32*)
14299 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14300 # as there is no search path for DLLs.
14301 hardcode_libdir_flag_spec_F77='-L$libdir'
14302 allow_undefined_flag_F77=unsupported
14303 always_export_symbols_F77=no
14304 enable_shared_with_static_runtimes_F77=yes
14305 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14307 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14308 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14309 # If the export-symbols file already is a .def file (1st line
14310 # is EXPORTS), use it as is; otherwise, prepend...
14311 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14312 cp $export_symbols $output_objdir/$soname.def;
14314 echo EXPORTS > $output_objdir/$soname.def;
14315 cat $export_symbols >> $output_objdir/$soname.def;
14317 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14324 hardcode_direct_F77=no
14325 hardcode_shlibpath_var_F77=no
14326 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14327 export_dynamic_flag_spec_F77='${wl}-E'
14328 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14329 # Instead, shared libraries are loaded at an image base (0x10000000 by
14330 # default) and relocated if they conflict, which is a slow very memory
14331 # consuming and fragmenting process. To avoid this, we pick a random,
14332 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14333 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14334 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'
14335 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'
14338 gnu* | linux* | k*bsd*-gnu)
14339 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14341 case $cc_basename,$host_cpu in
14342 pgcc*) # Portland Group C compiler
14343 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'
14344 tmp_addflag=' $pic_flag'
14346 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14347 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'
14348 tmp_addflag=' $pic_flag -Mnomain' ;;
14349 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14350 tmp_addflag=' -i_dynamic' ;;
14351 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14352 tmp_addflag=' -i_dynamic -nofor_main' ;;
14353 ifc* | ifort*) # Intel Fortran compiler
14354 tmp_addflag=' -nofor_main' ;;
14356 case `$CC -V 2>&1 | sed 5q` in
14357 *Sun\ C*) # Sun C 5.9
14358 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'
14359 tmp_sharedflag='-G' ;;
14360 *Sun\ F*) # Sun Fortran 8.3
14361 tmp_sharedflag='-G' ;;
14363 tmp_sharedflag='-shared' ;;
14365 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14367 if test $supports_anon_versioning = yes; then
14368 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14369 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14370 $echo "local: *; };" >> $output_objdir/$libname.ver~
14371 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14373 link_all_deplibs_F77=no
14379 netbsd* | netbsdelf*-gnu)
14380 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14381 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14384 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14385 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14390 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14394 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14395 *** create shared libraries on Solaris systems. Therefore, libtool
14396 *** is disabling shared libraries support. We urge you to upgrade GNU
14397 *** binutils to release 2.9.1 or newer. Another option is to modify
14398 *** your PATH or compiler configuration so that the native linker is
14399 *** used, and then restart.
14402 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14403 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14404 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14410 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14411 case `$LD -v 2>&1` in
14412 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14416 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14417 *** reliably create shared libraries on SCO systems. Therefore, libtool
14418 *** is disabling shared libraries support. We urge you to upgrade GNU
14419 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14420 *** your PATH or compiler configuration so that the native linker is
14421 *** used, and then restart.
14426 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14427 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14428 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14429 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14438 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14440 hardcode_direct_F77=yes
14441 hardcode_shlibpath_var_F77=no
14445 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14446 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14447 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14454 if test "$ld_shlibs_F77" = no; then
14456 hardcode_libdir_flag_spec_F77=
14457 export_dynamic_flag_spec_F77=
14458 whole_archive_flag_spec_F77=
14461 # PORTME fill in a description of your system's linker (not GNU ld)
14464 allow_undefined_flag_F77=unsupported
14465 always_export_symbols_F77=yes
14466 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'
14467 # Note: this linker hardcodes the directories in LIBPATH if there
14468 # are no directories specified by -L.
14469 hardcode_minus_L_F77=yes
14470 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14471 # Neither direct hardcoding nor static linking is supported with a
14473 hardcode_direct_F77=unsupported
14478 if test "$host_cpu" = ia64; then
14479 # On IA64, the linker does run time linking by default, so we don't
14480 # have to do anything special.
14481 aix_use_runtimelinking=no
14482 exp_sym_flag='-Bexport'
14485 # If we're using GNU nm, then we don't want the "-C" option.
14486 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14487 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14488 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'
14490 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'
14492 aix_use_runtimelinking=no
14494 # Test if we are trying to use run time linking or normal
14495 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14496 # need to do runtime linking.
14497 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14498 for ld_flag in $LDFLAGS; do
14499 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14500 aix_use_runtimelinking=yes
14507 exp_sym_flag='-bexport'
14508 no_entry_flag='-bnoentry'
14511 # When large executables or shared objects are built, AIX ld can
14512 # have problems creating the table of contents. If linking a library
14513 # or program results in "error TOC overflow" add -mminimal-toc to
14514 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14515 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14517 archive_cmds_F77=''
14518 hardcode_direct_F77=yes
14519 hardcode_libdir_separator_F77=':'
14520 link_all_deplibs_F77=yes
14522 if test "$GCC" = yes; then
14523 case $host_os in aix4.[012]|aix4.[012].*)
14524 # We only want to do this on AIX 4.2 and lower, the check
14525 # below for broken collect2 doesn't work under 4.3+
14526 collect2name=`${CC} -print-prog-name=collect2`
14527 if test -f "$collect2name" && \
14528 strings "$collect2name" | grep resolve_lib_name >/dev/null
14530 # We have reworked collect2
14533 # We have old collect2
14534 hardcode_direct_F77=unsupported
14535 # It fails to find uninstalled libraries when the uninstalled
14536 # path is not listed in the libpath. Setting hardcode_minus_L
14537 # to unsupported forces relinking
14538 hardcode_minus_L_F77=yes
14539 hardcode_libdir_flag_spec_F77='-L$libdir'
14540 hardcode_libdir_separator_F77=
14544 shared_flag='-shared'
14545 if test "$aix_use_runtimelinking" = yes; then
14546 shared_flag="$shared_flag "'${wl}-G'
14550 if test "$host_cpu" = ia64; then
14551 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14552 # chokes on -Wl,-G. The following line is correct:
14555 if test "$aix_use_runtimelinking" = yes; then
14556 shared_flag='${wl}-G'
14558 shared_flag='${wl}-bM:SRE'
14563 # It seems that -bexpall does not export symbols beginning with
14564 # underscore (_), so it is better to generate a list of symbols to export.
14565 always_export_symbols_F77=yes
14566 if test "$aix_use_runtimelinking" = yes; then
14567 # Warning - without using the other runtime loading flags (-brtl),
14568 # -berok will link without error, but may produce a broken library.
14569 allow_undefined_flag_F77='-berok'
14570 # Determine the default libpath from the value encoded in an empty executable.
14571 cat >conftest.$ac_ext <<_ACEOF
14576 rm -f conftest.$ac_objext conftest$ac_exeext
14577 if { (ac_try="$ac_link"
14578 case "(($ac_try" in
14579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14580 *) ac_try_echo=$ac_try;;
14582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14583 (eval "$ac_link") 2>conftest.er1
14585 grep -v '^ *+' conftest.er1 >conftest.err
14587 cat conftest.err >&5
14588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589 (exit $ac_status); } && {
14590 test -z "$ac_f77_werror_flag" ||
14591 test ! -s conftest.err
14592 } && test -s conftest$ac_exeext &&
14593 $as_test_x conftest$ac_exeext; then
14595 lt_aix_libpath_sed='
14596 /Import File Strings/,/^$/ {
14602 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14603 # Check for a 64-bit object if we didn't find anything.
14604 if test -z "$aix_libpath"; then
14605 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14608 echo "$as_me: failed program was:" >&5
14609 sed 's/^/| /' conftest.$ac_ext >&5
14614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14615 conftest$ac_exeext conftest.$ac_ext
14616 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14618 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14619 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"
14621 if test "$host_cpu" = ia64; then
14622 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14623 allow_undefined_flag_F77="-z nodefs"
14624 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"
14626 # Determine the default libpath from the value encoded in an empty executable.
14627 cat >conftest.$ac_ext <<_ACEOF
14632 rm -f conftest.$ac_objext conftest$ac_exeext
14633 if { (ac_try="$ac_link"
14634 case "(($ac_try" in
14635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14636 *) ac_try_echo=$ac_try;;
14638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14639 (eval "$ac_link") 2>conftest.er1
14641 grep -v '^ *+' conftest.er1 >conftest.err
14643 cat conftest.err >&5
14644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14645 (exit $ac_status); } && {
14646 test -z "$ac_f77_werror_flag" ||
14647 test ! -s conftest.err
14648 } && test -s conftest$ac_exeext &&
14649 $as_test_x conftest$ac_exeext; then
14651 lt_aix_libpath_sed='
14652 /Import File Strings/,/^$/ {
14658 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14659 # Check for a 64-bit object if we didn't find anything.
14660 if test -z "$aix_libpath"; then
14661 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14664 echo "$as_me: failed program was:" >&5
14665 sed 's/^/| /' conftest.$ac_ext >&5
14670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14671 conftest$ac_exeext conftest.$ac_ext
14672 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14674 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14675 # Warning - without using the other run time loading flags,
14676 # -berok will link without error, but may produce a broken library.
14677 no_undefined_flag_F77=' ${wl}-bernotok'
14678 allow_undefined_flag_F77=' ${wl}-berok'
14679 # Exported symbols can be pulled into shared objects from archives
14680 whole_archive_flag_spec_F77='$convenience'
14681 archive_cmds_need_lc_F77=yes
14682 # This is similar to how AIX traditionally builds its shared libraries.
14683 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'
14689 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)'
14690 hardcode_libdir_flag_spec_F77='-L$libdir'
14691 hardcode_minus_L_F77=yes
14692 # see comment about different semantics on the GNU ld section
14697 export_dynamic_flag_spec_F77=-rdynamic
14700 cygwin* | mingw* | pw32*)
14701 # When not using gcc, we currently assume that we are using
14702 # Microsoft Visual C++.
14703 # hardcode_libdir_flag_spec is actually meaningless, as there is
14704 # no search path for DLLs.
14705 hardcode_libdir_flag_spec_F77=' '
14706 allow_undefined_flag_F77=unsupported
14707 # Tell ltmain to make .lib files, not .a files.
14709 # Tell ltmain to make .dll files, not .so files.
14711 # FIXME: Setting linknames here is a bad hack.
14712 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14713 # The linker will automatically build a .lib file if we build a DLL.
14714 old_archive_From_new_cmds_F77='true'
14715 # FIXME: Should let the user specify the lib program.
14716 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14717 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14718 enable_shared_with_static_runtimes_F77=yes
14721 darwin* | rhapsody*)
14723 rhapsody* | darwin1.[012])
14724 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14727 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14728 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14730 case ${MACOSX_DEPLOYMENT_TARGET} in
14732 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14735 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14741 archive_cmds_need_lc_F77=no
14742 hardcode_direct_F77=no
14743 hardcode_automatic_F77=yes
14744 hardcode_shlibpath_var_F77=unsupported
14745 whole_archive_flag_spec_F77=''
14746 link_all_deplibs_F77=yes
14747 if test "$GCC" = yes ; then
14748 output_verbose_link_cmd='echo'
14749 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14750 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14751 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14752 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14753 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}'
14755 case $cc_basename in
14757 output_verbose_link_cmd='echo'
14758 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14759 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14760 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14761 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}'
14762 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}'
14772 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14773 hardcode_libdir_flag_spec_F77='-L$libdir'
14774 hardcode_shlibpath_var_F77=no
14781 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14782 # support. Future versions do this automatically, but an explicit c++rt0.o
14783 # does not break anything, and helps significantly (at the cost of a little
14786 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14787 hardcode_libdir_flag_spec_F77='-R$libdir'
14788 hardcode_direct_F77=yes
14789 hardcode_shlibpath_var_F77=no
14792 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14794 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14795 hardcode_direct_F77=yes
14796 hardcode_minus_L_F77=yes
14797 hardcode_shlibpath_var_F77=no
14800 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14801 freebsd* | dragonfly*)
14802 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14803 hardcode_libdir_flag_spec_F77='-R$libdir'
14804 hardcode_direct_F77=yes
14805 hardcode_shlibpath_var_F77=no
14809 if test "$GCC" = yes; then
14810 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'
14812 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'
14814 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14815 hardcode_libdir_separator_F77=:
14816 hardcode_direct_F77=yes
14818 # hardcode_minus_L: Not really in the search PATH,
14819 # but as the default location of the library.
14820 hardcode_minus_L_F77=yes
14821 export_dynamic_flag_spec_F77='${wl}-E'
14825 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14826 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14828 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14830 if test "$with_gnu_ld" = no; then
14831 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14832 hardcode_libdir_separator_F77=:
14834 hardcode_direct_F77=yes
14835 export_dynamic_flag_spec_F77='${wl}-E'
14837 # hardcode_minus_L: Not really in the search PATH,
14838 # but as the default location of the library.
14839 hardcode_minus_L_F77=yes
14844 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14847 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14850 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14853 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14859 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14862 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14865 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14869 if test "$with_gnu_ld" = no; then
14870 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14871 hardcode_libdir_separator_F77=:
14875 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14876 hardcode_direct_F77=no
14877 hardcode_shlibpath_var_F77=no
14880 hardcode_direct_F77=yes
14881 export_dynamic_flag_spec_F77='${wl}-E'
14883 # hardcode_minus_L: Not really in the search PATH,
14884 # but as the default location of the library.
14885 hardcode_minus_L_F77=yes
14891 irix5* | irix6* | nonstopux*)
14892 if test "$GCC" = yes; then
14893 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'
14895 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'
14896 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14898 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14899 hardcode_libdir_separator_F77=:
14900 link_all_deplibs_F77=yes
14903 netbsd* | netbsdelf*-gnu)
14904 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14905 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14907 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14909 hardcode_libdir_flag_spec_F77='-R$libdir'
14910 hardcode_direct_F77=yes
14911 hardcode_shlibpath_var_F77=no
14915 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14916 hardcode_direct_F77=yes
14917 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14918 hardcode_libdir_separator_F77=:
14919 hardcode_shlibpath_var_F77=no
14923 if test -f /usr/libexec/ld.so; then
14924 hardcode_direct_F77=yes
14925 hardcode_shlibpath_var_F77=no
14926 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14927 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14928 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14929 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14930 export_dynamic_flag_spec_F77='${wl}-E'
14933 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14934 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14935 hardcode_libdir_flag_spec_F77='-R$libdir'
14938 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14939 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14949 hardcode_libdir_flag_spec_F77='-L$libdir'
14950 hardcode_minus_L_F77=yes
14951 allow_undefined_flag_F77=unsupported
14952 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'
14953 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14957 if test "$GCC" = yes; then
14958 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14959 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'
14961 allow_undefined_flag_F77=' -expect_unresolved \*'
14962 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'
14964 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14965 hardcode_libdir_separator_F77=:
14968 osf4* | osf5*) # as osf3* with the addition of -msym flag
14969 if test "$GCC" = yes; then
14970 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14971 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'
14972 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14974 allow_undefined_flag_F77=' -expect_unresolved \*'
14975 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'
14976 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~
14977 $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'
14979 # Both c and cxx compiler support -rpath directly
14980 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14982 hardcode_libdir_separator_F77=:
14986 no_undefined_flag_F77=' -z text'
14987 if test "$GCC" = yes; then
14989 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14990 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14991 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14994 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14995 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14996 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14998 hardcode_libdir_flag_spec_F77='-R$libdir'
14999 hardcode_shlibpath_var_F77=no
15001 solaris2.[0-5] | solaris2.[0-5].*) ;;
15003 # The compiler driver will combine and reorder linker options,
15004 # but understands `-z linker_flag'. GCC discards it without `$wl',
15005 # but is careful enough not to reorder.
15006 # Supported since Solaris 2.6 (maybe 2.5.1?)
15007 if test "$GCC" = yes; then
15008 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15010 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15014 link_all_deplibs_F77=yes
15018 if test "x$host_vendor" = xsequent; then
15019 # Use $CC to link under sequent, because it throws in some extra .o
15020 # files that make .init and .fini sections work.
15021 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15023 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15025 hardcode_libdir_flag_spec_F77='-L$libdir'
15026 hardcode_direct_F77=yes
15027 hardcode_minus_L_F77=yes
15028 hardcode_shlibpath_var_F77=no
15032 case $host_vendor in
15034 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15035 hardcode_direct_F77=yes # is this really true???
15038 ## LD is ld it makes a PLAMLIB
15039 ## CC just makes a GrossModule.
15040 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15041 reload_cmds_F77='$CC -r -o $output$reload_objs'
15042 hardcode_direct_F77=no
15045 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15046 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15049 runpath_var='LD_RUN_PATH'
15050 hardcode_shlibpath_var_F77=no
15054 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15055 hardcode_shlibpath_var_F77=no
15056 export_dynamic_flag_spec_F77='-Bexport'
15060 if test -d /usr/nec; then
15061 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15062 hardcode_shlibpath_var_F77=no
15063 runpath_var=LD_RUN_PATH
15064 hardcode_runpath_var=yes
15069 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15070 no_undefined_flag_F77='${wl}-z,text'
15071 archive_cmds_need_lc_F77=no
15072 hardcode_shlibpath_var_F77=no
15073 runpath_var='LD_RUN_PATH'
15075 if test "$GCC" = yes; then
15076 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15077 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15079 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15080 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15084 sysv5* | sco3.2v5* | sco5v6*)
15085 # Note: We can NOT use -z defs as we might desire, because we do not
15086 # link with -lc, and that would cause any symbols used from libc to
15087 # always be unresolved, which means just about no library would
15088 # ever link correctly. If we're not using GNU ld we use -z text
15089 # though, which does catch some bad symbols but isn't as heavy-handed
15091 no_undefined_flag_F77='${wl}-z,text'
15092 allow_undefined_flag_F77='${wl}-z,nodefs'
15093 archive_cmds_need_lc_F77=no
15094 hardcode_shlibpath_var_F77=no
15095 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15096 hardcode_libdir_separator_F77=':'
15097 link_all_deplibs_F77=yes
15098 export_dynamic_flag_spec_F77='${wl}-Bexport'
15099 runpath_var='LD_RUN_PATH'
15101 if test "$GCC" = yes; then
15102 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15103 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15105 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15106 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15111 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15112 hardcode_libdir_flag_spec_F77='-L$libdir'
15113 hardcode_shlibpath_var_F77=no
15122 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15123 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15124 test "$ld_shlibs_F77" = no && can_build_shared=no
15127 # Do we need to explicitly link libc?
15129 case "x$archive_cmds_need_lc_F77" in
15131 # Assume -lc should be added
15132 archive_cmds_need_lc_F77=yes
15134 if test "$enable_shared" = yes && test "$GCC" = yes; then
15135 case $archive_cmds_F77 in
15137 # FIXME: we may have to deal with multi-command sequences.
15140 # Test whether the compiler implicitly links with -lc since on some
15141 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15142 # to ld, don't add -lc before -lgcc.
15143 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15144 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15146 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15149 (eval $ac_compile) 2>&5
15151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152 (exit $ac_status); } 2>conftest.err; then
15155 libobjs=conftest.$ac_objext
15157 wl=$lt_prog_compiler_wl_F77
15158 pic_flag=$lt_prog_compiler_pic_F77
15164 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15165 allow_undefined_flag_F77=
15166 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15167 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170 (exit $ac_status); }
15172 archive_cmds_need_lc_F77=no
15174 archive_cmds_need_lc_F77=yes
15176 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15178 cat conftest.err 1>&5
15181 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15182 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15189 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15190 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15191 library_names_spec=
15192 libname_spec='lib$name'
15196 postuninstall_cmds=
15200 shlibpath_overrides_runpath=unknown
15202 dynamic_linker="$host_os ld.so"
15203 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15205 need_lib_prefix=unknown
15206 hardcode_into_libs=no
15208 # when you set need_version to no, make sure it does not cause -set_version
15209 # flags to be left without arguments
15210 need_version=unknown
15215 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15216 shlibpath_var=LIBPATH
15218 # AIX 3 has no versioning support, so we append a major version to the name.
15219 soname_spec='${libname}${release}${shared_ext}$major'
15226 hardcode_into_libs=yes
15227 if test "$host_cpu" = ia64; then
15228 # AIX 5 supports IA64
15229 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15230 shlibpath_var=LD_LIBRARY_PATH
15232 # With GCC up to 2.95.x, collect2 would create an import file
15233 # for dependence libraries. The import file would start with
15234 # the line `#! .'. This would cause the generated library to
15235 # depend on `.', always an invalid library. This was fixed in
15236 # development snapshots of GCC prior to 3.0.
15238 aix4 | aix4.[01] | aix4.[01].*)
15239 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15241 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15244 can_build_shared=no
15248 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15249 # soname into executable. Probably we can add versioning support to
15250 # collect2, so additional links can be useful in future.
15251 if test "$aix_use_runtimelinking" = yes; then
15252 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15253 # instead of lib<name>.a to let people know that these are not
15254 # typical AIX shared libraries.
15255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15257 # We preserve .a as extension for shared libraries through AIX4.2
15258 # and later when we are not doing run time linking.
15259 library_names_spec='${libname}${release}.a $libname.a'
15260 soname_spec='${libname}${release}${shared_ext}$major'
15262 shlibpath_var=LIBPATH
15267 library_names_spec='$libname.ixlibrary $libname.a'
15268 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15269 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'
15273 library_names_spec='${libname}${shared_ext}'
15274 dynamic_linker="$host_os ld.so"
15275 shlibpath_var=LIBRARY_PATH
15281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15282 soname_spec='${libname}${release}${shared_ext}$major'
15283 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15284 shlibpath_var=LD_LIBRARY_PATH
15285 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15286 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15287 # the default ld.so.conf also contains /usr/contrib/lib and
15288 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15289 # libtool to hard-code these into programs
15292 cygwin* | mingw* | pw32*)
15293 version_type=windows
15298 case $GCC,$host_os in
15299 yes,cygwin* | yes,mingw* | yes,pw32*)
15300 library_names_spec='$libname.dll.a'
15301 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15302 postinstall_cmds='base_file=`basename \${file}`~
15303 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15304 dldir=$destdir/`dirname \$dlpath`~
15305 test -d \$dldir || mkdir -p \$dldir~
15306 $install_prog $dir/$dlname \$dldir/$dlname~
15307 chmod a+x \$dldir/$dlname'
15308 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15309 dlpath=$dir/\$dldll~
15311 shlibpath_overrides_runpath=yes
15315 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15316 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15317 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15320 # MinGW DLLs use traditional 'lib' prefix
15321 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15322 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15323 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15324 # It is most probably a Windows format PATH printed by
15325 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15326 # path with ; separators, and with drive letters. We can handle the
15327 # drive letters (cygwin fileutils understands them), so leave them,
15328 # especially as we might pass files found there to a mingw objdump,
15329 # which wouldn't understand a cygwinified path. Ahh.
15330 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15332 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15336 # pw32 DLLs use 'pw' prefix rather than 'lib'
15337 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15343 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15346 dynamic_linker='Win32 ld.exe'
15347 # FIXME: first we should search . and the directory the executable is in
15351 darwin* | rhapsody*)
15352 dynamic_linker="$host_os dyld"
15353 version_type=darwin
15356 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15357 soname_spec='${libname}${release}${major}$shared_ext'
15358 shlibpath_overrides_runpath=yes
15359 shlibpath_var=DYLD_LIBRARY_PATH
15360 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15362 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15370 soname_spec='${libname}${release}${shared_ext}$major'
15371 shlibpath_var=LD_LIBRARY_PATH
15378 freebsd* | dragonfly*)
15379 # DragonFly does not have aout. When/if they implement a new
15380 # versioning mechanism, adjust this.
15381 if test -x /usr/bin/objformat; then
15382 objformat=`/usr/bin/objformat`
15385 freebsd[123]*) objformat=aout ;;
15386 *) objformat=elf ;;
15389 version_type=freebsd-$objformat
15390 case $version_type in
15392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15397 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15401 shlibpath_var=LD_LIBRARY_PATH
15404 shlibpath_overrides_runpath=yes
15406 freebsd3.[01]* | freebsdelf3.[01]*)
15407 shlibpath_overrides_runpath=yes
15408 hardcode_into_libs=yes
15410 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15411 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15412 shlibpath_overrides_runpath=no
15413 hardcode_into_libs=yes
15415 *) # from 4.6 on, and DragonFly
15416 shlibpath_overrides_runpath=yes
15417 hardcode_into_libs=yes
15426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15427 soname_spec='${libname}${release}${shared_ext}$major'
15428 shlibpath_var=LD_LIBRARY_PATH
15429 hardcode_into_libs=yes
15432 hpux9* | hpux10* | hpux11*)
15433 # Give a soname corresponding to the major version so that dld.sl refuses to
15434 # link against other versions.
15441 hardcode_into_libs=yes
15442 dynamic_linker="$host_os dld.so"
15443 shlibpath_var=LD_LIBRARY_PATH
15444 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15446 soname_spec='${libname}${release}${shared_ext}$major'
15447 if test "X$HPUX_IA64_MODE" = X32; then
15448 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15450 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15452 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15456 hardcode_into_libs=yes
15457 dynamic_linker="$host_os dld.sl"
15458 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15459 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15461 soname_spec='${libname}${release}${shared_ext}$major'
15462 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15463 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15467 dynamic_linker="$host_os dld.sl"
15468 shlibpath_var=SHLIB_PATH
15469 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15471 soname_spec='${libname}${release}${shared_ext}$major'
15474 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15475 postinstall_cmds='chmod 555 $lib'
15482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15483 soname_spec='${libname}${release}${shared_ext}$major'
15484 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15485 shlibpath_var=LD_LIBRARY_PATH
15486 shlibpath_overrides_runpath=no
15487 hardcode_into_libs=yes
15490 irix5* | irix6* | nonstopux*)
15492 nonstopux*) version_type=nonstopux ;;
15494 if test "$lt_cv_prog_gnu_ld" = yes; then
15502 soname_spec='${libname}${release}${shared_ext}$major'
15503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15505 irix5* | nonstopux*)
15506 libsuff= shlibsuff=
15509 case $LD in # libtool.m4 will add one of these switches to LD
15510 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15511 libsuff= shlibsuff= libmagic=32-bit;;
15512 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15513 libsuff=32 shlibsuff=N32 libmagic=N32;;
15514 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15515 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15516 *) libsuff= shlibsuff= libmagic=never-match;;
15520 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15521 shlibpath_overrides_runpath=no
15522 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15523 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15524 hardcode_into_libs=yes
15527 # No shared lib support for Linux oldld, aout, or coff.
15528 linux*oldld* | linux*aout* | linux*coff*)
15532 # This must be Linux ELF.
15533 linux* | k*bsd*-gnu)
15537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15538 soname_spec='${libname}${release}${shared_ext}$major'
15539 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15540 shlibpath_var=LD_LIBRARY_PATH
15541 shlibpath_overrides_runpath=no
15542 # This implies no fast_install, which is unacceptable.
15543 # Some rework will be needed to allow for fast_install
15544 # before this can be enabled.
15545 hardcode_into_libs=yes
15547 # Append ld.so.conf contents to the search path
15548 if test -f /etc/ld.so.conf; then
15549 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' ' '`
15550 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15553 # We used to test for /lib/ld.so.1 and disable shared libraries on
15554 # powerpc, because MkLinux only supported shared libraries with the
15555 # GNU dynamic linker. Since this was broken with cross compilers,
15556 # most powerpc-linux boxes support dynamic linking these days and
15557 # people can always --disable-shared, the test was removed, and we
15558 # assume the GNU/Linux dynamic linker is in use.
15559 dynamic_linker='GNU/Linux ld.so'
15566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15567 soname_spec='${libname}${release}${shared_ext}$major'
15568 shlibpath_var=LD_LIBRARY_PATH
15569 shlibpath_overrides_runpath=no
15570 hardcode_into_libs=yes
15571 dynamic_linker='NetBSD ld.elf_so'
15578 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15580 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15581 dynamic_linker='NetBSD (a.out) ld.so'
15583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15584 soname_spec='${libname}${release}${shared_ext}$major'
15585 dynamic_linker='NetBSD ld.elf_so'
15587 shlibpath_var=LD_LIBRARY_PATH
15588 shlibpath_overrides_runpath=yes
15589 hardcode_into_libs=yes
15594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15595 shlibpath_var=LD_LIBRARY_PATH
15596 shlibpath_overrides_runpath=yes
15603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15604 soname_spec='${libname}${release}${shared_ext}$major'
15605 shlibpath_var=LD_LIBRARY_PATH
15606 shlibpath_overrides_runpath=yes
15611 sys_lib_dlsearch_path_spec="/usr/lib"
15613 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15615 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15616 *) need_version=no ;;
15618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15619 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15620 shlibpath_var=LD_LIBRARY_PATH
15621 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15623 openbsd2.[89] | openbsd2.[89].*)
15624 shlibpath_overrides_runpath=no
15627 shlibpath_overrides_runpath=yes
15631 shlibpath_overrides_runpath=yes
15636 libname_spec='$name'
15639 library_names_spec='$libname${shared_ext} $libname.a'
15640 dynamic_linker='OS/2 ld.exe'
15641 shlibpath_var=LIBPATH
15644 osf3* | osf4* | osf5*)
15648 soname_spec='${libname}${release}${shared_ext}$major'
15649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15650 shlibpath_var=LD_LIBRARY_PATH
15651 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15652 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15664 soname_spec='${libname}${release}${shared_ext}$major'
15665 shlibpath_var=LD_LIBRARY_PATH
15666 shlibpath_overrides_runpath=yes
15667 hardcode_into_libs=yes
15668 # ldd complains unless libraries are executable
15669 postinstall_cmds='chmod +x $lib'
15674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15675 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15676 shlibpath_var=LD_LIBRARY_PATH
15677 shlibpath_overrides_runpath=yes
15678 if test "$with_gnu_ld" = yes; then
15686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15687 soname_spec='${libname}${release}${shared_ext}$major'
15688 shlibpath_var=LD_LIBRARY_PATH
15689 case $host_vendor in
15691 shlibpath_overrides_runpath=no
15693 export_dynamic_flag_spec='${wl}-Blargedynsym'
15694 runpath_var=LD_RUN_PATH
15702 shlibpath_overrides_runpath=no
15703 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15709 if test -d /usr/nec ;then
15711 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15712 soname_spec='$libname${shared_ext}.$major'
15713 shlibpath_var=LD_LIBRARY_PATH
15717 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15718 version_type=freebsd-elf
15721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15722 soname_spec='${libname}${release}${shared_ext}$major'
15723 shlibpath_var=LD_LIBRARY_PATH
15724 hardcode_into_libs=yes
15725 if test "$with_gnu_ld" = yes; then
15726 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15727 shlibpath_overrides_runpath=no
15729 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15730 shlibpath_overrides_runpath=yes
15733 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15737 sys_lib_dlsearch_path_spec='/usr/lib'
15742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15743 soname_spec='${libname}${release}${shared_ext}$major'
15744 shlibpath_var=LD_LIBRARY_PATH
15751 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15752 echo "${ECHO_T}$dynamic_linker" >&6; }
15753 test "$dynamic_linker" = no && can_build_shared=no
15755 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15756 if test "$GCC" = yes; then
15757 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15760 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15761 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15762 hardcode_action_F77=
15763 if test -n "$hardcode_libdir_flag_spec_F77" || \
15764 test -n "$runpath_var_F77" || \
15765 test "X$hardcode_automatic_F77" = "Xyes" ; then
15767 # We can hardcode non-existant directories.
15768 if test "$hardcode_direct_F77" != no &&
15769 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15770 # have to relink, otherwise we might link with an installed library
15771 # when we should be linking with a yet-to-be-installed one
15772 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15773 test "$hardcode_minus_L_F77" != no; then
15774 # Linking always hardcodes the temporary library directory.
15775 hardcode_action_F77=relink
15777 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15778 hardcode_action_F77=immediate
15781 # We cannot hardcode anything, or else we can only hardcode existing
15783 hardcode_action_F77=unsupported
15785 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15786 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15788 if test "$hardcode_action_F77" = relink; then
15789 # Fast installation is not supported
15790 enable_fast_install=no
15791 elif test "$shlibpath_overrides_runpath" = yes ||
15792 test "$enable_shared" = no; then
15793 # Fast installation is not necessary
15794 enable_fast_install=needless
15798 # The else clause should only fire when bootstrapping the
15799 # libtool distribution, otherwise you forgot to ship ltmain.sh
15800 # with your package, and you will get complaints that there are
15801 # no rules to generate ltmain.sh.
15802 if test -f "$ltmain"; then
15803 # See if we are running on zsh, and set the options which allow our commands through
15804 # without removal of \ escapes.
15805 if test -n "${ZSH_VERSION+set}" ; then
15806 setopt NO_GLOB_SUBST
15808 # Now quote all the things that may contain metacharacters while being
15809 # careful not to overquote the AC_SUBSTed values. We take copies of the
15810 # variables and quote the copies for generation of the libtool script.
15811 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15813 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15814 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15815 deplibs_check_method reload_flag reload_cmds need_locks \
15816 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15817 lt_cv_sys_global_symbol_to_c_name_address \
15818 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15819 old_postinstall_cmds old_postuninstall_cmds \
15823 lt_prog_compiler_wl_F77 \
15824 lt_prog_compiler_pic_F77 \
15825 lt_prog_compiler_static_F77 \
15826 lt_prog_compiler_no_builtin_flag_F77 \
15827 export_dynamic_flag_spec_F77 \
15828 thread_safe_flag_spec_F77 \
15829 whole_archive_flag_spec_F77 \
15830 enable_shared_with_static_runtimes_F77 \
15831 old_archive_cmds_F77 \
15832 old_archive_from_new_cmds_F77 \
15833 predep_objects_F77 \
15834 postdep_objects_F77 \
15837 compiler_lib_search_path_F77 \
15839 archive_expsym_cmds_F77 \
15840 postinstall_cmds_F77 \
15841 postuninstall_cmds_F77 \
15842 old_archive_from_expsyms_cmds_F77 \
15843 allow_undefined_flag_F77 \
15844 no_undefined_flag_F77 \
15845 export_symbols_cmds_F77 \
15846 hardcode_libdir_flag_spec_F77 \
15847 hardcode_libdir_flag_spec_ld_F77 \
15848 hardcode_libdir_separator_F77 \
15849 hardcode_automatic_F77 \
15851 module_expsym_cmds_F77 \
15852 lt_cv_prog_compiler_c_o_F77 \
15853 fix_srcfile_path_F77 \
15854 exclude_expsyms_F77 \
15855 include_expsyms_F77; do
15858 old_archive_cmds_F77 | \
15859 old_archive_from_new_cmds_F77 | \
15860 archive_cmds_F77 | \
15861 archive_expsym_cmds_F77 | \
15862 module_cmds_F77 | \
15863 module_expsym_cmds_F77 | \
15864 old_archive_from_expsyms_cmds_F77 | \
15865 export_symbols_cmds_F77 | \
15866 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15867 postinstall_cmds | postuninstall_cmds | \
15868 old_postinstall_cmds | old_postuninstall_cmds | \
15869 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15870 # Double-quote double-evaled strings.
15871 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15874 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15880 *'\$0 --fallback-echo"')
15881 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15887 cat <<__EOF__ >> "$cfgfile"
15888 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15890 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15892 # Shell to use when invoking shell scripts.
15895 # Whether or not to build shared libraries.
15896 build_libtool_libs=$enable_shared
15898 # Whether or not to build static libraries.
15899 build_old_libs=$enable_static
15901 # Whether or not to add -lc for building shared libraries.
15902 build_libtool_need_lc=$archive_cmds_need_lc_F77
15904 # Whether or not to disallow shared libs when runtime libs are static
15905 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15907 # Whether or not to optimize for fast installation.
15908 fast_install=$enable_fast_install
15911 host_alias=$host_alias
15915 # The build system.
15916 build_alias=$build_alias
15920 # An echo program that does not interpret backslashes.
15925 AR_FLAGS=$lt_AR_FLAGS
15930 # LTCC compiler flags.
15931 LTCFLAGS=$lt_LTCFLAGS
15933 # A language-specific compiler.
15934 CC=$lt_compiler_F77
15936 # Is the compiler the GNU C compiler?
15942 # The linker used to build libraries.
15945 # Whether we need hard or soft links.
15948 # A BSD-compatible nm program.
15951 # A symbol stripping program
15954 # Used to examine libraries when file_magic_cmd begins "file"
15955 MAGIC_CMD=$MAGIC_CMD
15957 # Used on cygwin: DLL creation program.
15960 # Used on cygwin: object dumper.
15963 # Used on cygwin: assembler.
15966 # The name of the directory that contains temporary libtool files.
15969 # How to create reloadable object files.
15970 reload_flag=$lt_reload_flag
15971 reload_cmds=$lt_reload_cmds
15973 # How to pass a linker flag through the compiler.
15974 wl=$lt_lt_prog_compiler_wl_F77
15976 # Object file suffix (normally "o").
15977 objext="$ac_objext"
15979 # Old archive suffix (normally "a").
15982 # Shared library suffix (normally ".so").
15983 shrext_cmds='$shrext_cmds'
15985 # Executable file suffix (normally "").
15988 # Additional compiler flags for building library objects.
15989 pic_flag=$lt_lt_prog_compiler_pic_F77
15992 # What is the maximum length of a command?
15993 max_cmd_len=$lt_cv_sys_max_cmd_len
15995 # Does compiler simultaneously support -c and -o options?
15996 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15998 # Must we lock files when doing compilation?
15999 need_locks=$lt_need_locks
16001 # Do we need the lib prefix for modules?
16002 need_lib_prefix=$need_lib_prefix
16004 # Do we need a version for libraries?
16005 need_version=$need_version
16007 # Whether dlopen is supported.
16008 dlopen_support=$enable_dlopen
16010 # Whether dlopen of programs is supported.
16011 dlopen_self=$enable_dlopen_self
16013 # Whether dlopen of statically linked programs is supported.
16014 dlopen_self_static=$enable_dlopen_self_static
16016 # Compiler flag to prevent dynamic linking.
16017 link_static_flag=$lt_lt_prog_compiler_static_F77
16019 # Compiler flag to turn off builtin functions.
16020 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16022 # Compiler flag to allow reflexive dlopens.
16023 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16025 # Compiler flag to generate shared objects directly from archives.
16026 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16028 # Compiler flag to generate thread-safe objects.
16029 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16031 # Library versioning type.
16032 version_type=$version_type
16034 # Format of library name prefix.
16035 libname_spec=$lt_libname_spec
16037 # List of archive names. First name is the real one, the rest are links.
16038 # The last name is the one that the linker finds with -lNAME.
16039 library_names_spec=$lt_library_names_spec
16041 # The coded name of the library, if different from the real name.
16042 soname_spec=$lt_soname_spec
16044 # Commands used to build and install an old-style archive.
16046 old_archive_cmds=$lt_old_archive_cmds_F77
16047 old_postinstall_cmds=$lt_old_postinstall_cmds
16048 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16050 # Create an old-style archive from a shared archive.
16051 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16053 # Create a temporary old-style archive to link instead of a shared archive.
16054 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16056 # Commands used to build and install a shared archive.
16057 archive_cmds=$lt_archive_cmds_F77
16058 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16059 postinstall_cmds=$lt_postinstall_cmds
16060 postuninstall_cmds=$lt_postuninstall_cmds
16062 # Commands used to build a loadable module (assumed same as above if empty)
16063 module_cmds=$lt_module_cmds_F77
16064 module_expsym_cmds=$lt_module_expsym_cmds_F77
16066 # Commands to strip libraries.
16067 old_striplib=$lt_old_striplib
16068 striplib=$lt_striplib
16070 # Dependencies to place before the objects being linked to create a
16072 predep_objects=$lt_predep_objects_F77
16074 # Dependencies to place after the objects being linked to create a
16076 postdep_objects=$lt_postdep_objects_F77
16078 # Dependencies to place before the objects being linked to create a
16080 predeps=$lt_predeps_F77
16082 # Dependencies to place after the objects being linked to create a
16084 postdeps=$lt_postdeps_F77
16086 # The library search path used internally by the compiler when linking
16087 # a shared library.
16088 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16090 # Method to check whether dependent libraries are shared objects.
16091 deplibs_check_method=$lt_deplibs_check_method
16093 # Command to use when deplibs_check_method == file_magic.
16094 file_magic_cmd=$lt_file_magic_cmd
16096 # Flag that allows shared libraries with undefined symbols to be built.
16097 allow_undefined_flag=$lt_allow_undefined_flag_F77
16099 # Flag that forces no undefined symbols.
16100 no_undefined_flag=$lt_no_undefined_flag_F77
16102 # Commands used to finish a libtool library installation in a directory.
16103 finish_cmds=$lt_finish_cmds
16105 # Same as above, but a single script fragment to be evaled but not shown.
16106 finish_eval=$lt_finish_eval
16108 # Take the output of nm and produce a listing of raw symbols and C names.
16109 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16111 # Transform the output of nm in a proper C declaration
16112 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16114 # Transform the output of nm in a C name address pair
16115 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16117 # This is the shared library runtime path variable.
16118 runpath_var=$runpath_var
16120 # This is the shared library path variable.
16121 shlibpath_var=$shlibpath_var
16123 # Is shlibpath searched before the hard-coded library search path?
16124 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16126 # How to hardcode a shared library path into an executable.
16127 hardcode_action=$hardcode_action_F77
16129 # Whether we should hardcode library paths into libraries.
16130 hardcode_into_libs=$hardcode_into_libs
16132 # Flag to hardcode \$libdir into a binary during linking.
16133 # This must work even if \$libdir does not exist.
16134 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16136 # If ld is used when linking, flag to hardcode \$libdir into
16137 # a binary during linking. This must work even if \$libdir does
16139 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16141 # Whether we need a single -rpath flag with a separated argument.
16142 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16144 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16145 # resulting binary.
16146 hardcode_direct=$hardcode_direct_F77
16148 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16149 # resulting binary.
16150 hardcode_minus_L=$hardcode_minus_L_F77
16152 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16153 # the resulting binary.
16154 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16156 # Set to yes if building a shared library automatically hardcodes DIR into the library
16157 # and all subsequent libraries and executables linked against it.
16158 hardcode_automatic=$hardcode_automatic_F77
16160 # Variables whose values should be saved in libtool wrapper scripts and
16161 # restored at relink time.
16162 variables_saved_for_relink="$variables_saved_for_relink"
16164 # Whether libtool must link a program against all its dependency libraries.
16165 link_all_deplibs=$link_all_deplibs_F77
16167 # Compile-time system search path for libraries
16168 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16170 # Run-time system search path for libraries
16171 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16173 # Fix the shell variable \$srcfile for the compiler.
16174 fix_srcfile_path=$lt_fix_srcfile_path
16176 # Set to yes if exported symbols are required.
16177 always_export_symbols=$always_export_symbols_F77
16179 # The commands to list exported symbols.
16180 export_symbols_cmds=$lt_export_symbols_cmds_F77
16182 # The commands to extract the exported symbol list from a shared archive.
16183 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16185 # Symbols that should not be listed in the preloaded symbols.
16186 exclude_expsyms=$lt_exclude_expsyms_F77
16188 # Symbols that must always be exported.
16189 include_expsyms=$lt_include_expsyms_F77
16191 # ### END LIBTOOL TAG CONFIG: $tagname
16197 # If there is no Makefile yet, we rely on a make rule to execute
16198 # `config.status --recheck' to rerun these tests and create the
16199 # libtool script then.
16200 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16201 if test -f "$ltmain_in"; then
16202 test -f Makefile && make "$ltmain"
16208 ac_cpp='$CPP $CPPFLAGS'
16209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16221 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16224 # Source file extension for Java test sources.
16227 # Object file extension for compiled Java test sources.
16231 # Code to be used in simple compile tests
16232 lt_simple_compile_test_code="class foo {}"
16234 # Code to be used in simple link tests
16235 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16237 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16239 # If no C compiler was specified, use CC.
16242 # If no C compiler flags were specified, use CFLAGS.
16243 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16245 # Allow CC to be a program name with arguments.
16249 # save warnings/boilerplate of simple test code
16250 ac_outfile=conftest.$ac_objext
16251 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16252 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16253 _lt_compiler_boilerplate=`cat conftest.err`
16256 ac_outfile=conftest.$ac_objext
16257 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16258 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16259 _lt_linker_boilerplate=`cat conftest.err`
16263 # Allow CC to be a program name with arguments.
16268 for cc_temp in $compiler""; do
16270 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16271 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16276 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16279 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16280 archive_cmds_need_lc_GCJ=no
16282 old_archive_cmds_GCJ=$old_archive_cmds
16285 lt_prog_compiler_no_builtin_flag_GCJ=
16287 if test "$GCC" = yes; then
16288 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16291 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16292 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16293 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16294 echo $ECHO_N "(cached) $ECHO_C" >&6
16296 lt_cv_prog_compiler_rtti_exceptions=no
16297 ac_outfile=conftest.$ac_objext
16298 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16299 lt_compiler_flag="-fno-rtti -fno-exceptions"
16300 # Insert the option either (1) after the last *FLAGS variable, or
16301 # (2) before a word containing "conftest.", or (3) at the end.
16302 # Note that $ac_compile itself does not contain backslashes and begins
16303 # with a dollar sign (not a hyphen), so the echo should work correctly.
16304 # The option is referenced via a variable to avoid confusing sed.
16305 lt_compile=`echo "$ac_compile" | $SED \
16306 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16307 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16308 -e 's:$: $lt_compiler_flag:'`
16309 (eval echo "\"\$as_me:16309: $lt_compile\"" >&5)
16310 (eval "$lt_compile" 2>conftest.err)
16312 cat conftest.err >&5
16313 echo "$as_me:16313: \$? = $ac_status" >&5
16314 if (exit $ac_status) && test -s "$ac_outfile"; then
16315 # The compiler can only warn and ignore the option if not recognized
16316 # So say no if there are warnings other than the usual output.
16317 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16318 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16319 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16320 lt_cv_prog_compiler_rtti_exceptions=yes
16326 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16327 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16329 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16330 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16337 lt_prog_compiler_wl_GCJ=
16338 lt_prog_compiler_pic_GCJ=
16339 lt_prog_compiler_static_GCJ=
16341 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16342 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16344 if test "$GCC" = yes; then
16345 lt_prog_compiler_wl_GCJ='-Wl,'
16346 lt_prog_compiler_static_GCJ='-static'
16350 # All AIX code is PIC.
16351 if test "$host_cpu" = ia64; then
16352 # AIX 5 now supports IA64 processor
16353 lt_prog_compiler_static_GCJ='-Bstatic'
16358 # FIXME: we need at least 68020 code to build shared libraries, but
16359 # adding the `-m68020' flag to GCC prevents building anything better,
16361 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16364 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16365 # PIC is the default for these OSes.
16368 mingw* | cygwin* | pw32* | os2*)
16369 # This hack is so that the source file can tell whether it is being
16370 # built for inclusion in a dll (and should export symbols for example).
16371 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16372 # (--disable-auto-import) libraries
16373 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16376 darwin* | rhapsody*)
16377 # PIC is the default on this platform
16378 # Common symbols not allowed in MH_DYLIB files
16379 lt_prog_compiler_pic_GCJ='-fno-common'
16383 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16384 # Instead, we relocate shared libraries at runtime.
16388 # Just because we use GCC doesn't mean we suddenly get shared libraries
16389 # on systems that don't support them.
16390 lt_prog_compiler_can_build_shared_GCJ=no
16395 if test -d /usr/nec; then
16396 lt_prog_compiler_pic_GCJ=-Kconform_pic
16401 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16402 # not for PA HP-UX.
16408 lt_prog_compiler_pic_GCJ='-fPIC'
16414 lt_prog_compiler_pic_GCJ='-fPIC'
16418 # PORTME Check for flag to pass linker flags through the system compiler.
16421 lt_prog_compiler_wl_GCJ='-Wl,'
16422 if test "$host_cpu" = ia64; then
16423 # AIX 5 now supports IA64 processor
16424 lt_prog_compiler_static_GCJ='-Bstatic'
16426 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16430 # PIC is the default on this platform
16431 # Common symbols not allowed in MH_DYLIB files
16432 case $cc_basename in
16434 lt_prog_compiler_pic_GCJ='-qnocommon'
16435 lt_prog_compiler_wl_GCJ='-Wl,'
16440 mingw* | cygwin* | pw32* | os2*)
16441 # This hack is so that the source file can tell whether it is being
16442 # built for inclusion in a dll (and should export symbols for example).
16443 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16446 hpux9* | hpux10* | hpux11*)
16447 lt_prog_compiler_wl_GCJ='-Wl,'
16448 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16449 # not for PA HP-UX.
16455 lt_prog_compiler_pic_GCJ='+Z'
16458 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16459 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16462 irix5* | irix6* | nonstopux*)
16463 lt_prog_compiler_wl_GCJ='-Wl,'
16464 # PIC (with -KPIC) is the default.
16465 lt_prog_compiler_static_GCJ='-non_shared'
16469 lt_prog_compiler_pic_GCJ='-KPIC'
16470 lt_prog_compiler_static_GCJ='-Bstatic'
16473 linux* | k*bsd*-gnu)
16474 case $cc_basename in
16476 lt_prog_compiler_wl_GCJ='-Wl,'
16477 lt_prog_compiler_pic_GCJ='-KPIC'
16478 lt_prog_compiler_static_GCJ='-static'
16480 pgcc* | pgf77* | pgf90* | pgf95*)
16481 # Portland Group compilers (*not* the Pentium gcc compiler,
16482 # which looks to be a dead project)
16483 lt_prog_compiler_wl_GCJ='-Wl,'
16484 lt_prog_compiler_pic_GCJ='-fpic'
16485 lt_prog_compiler_static_GCJ='-Bstatic'
16488 lt_prog_compiler_wl_GCJ='-Wl,'
16489 # All Alpha code is PIC.
16490 lt_prog_compiler_static_GCJ='-non_shared'
16493 case `$CC -V 2>&1 | sed 5q` in
16496 lt_prog_compiler_pic_GCJ='-KPIC'
16497 lt_prog_compiler_static_GCJ='-Bstatic'
16498 lt_prog_compiler_wl_GCJ='-Wl,'
16501 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16502 lt_prog_compiler_pic_GCJ='-KPIC'
16503 lt_prog_compiler_static_GCJ='-Bstatic'
16504 lt_prog_compiler_wl_GCJ=''
16511 osf3* | osf4* | osf5*)
16512 lt_prog_compiler_wl_GCJ='-Wl,'
16513 # All OSF/1 code is PIC.
16514 lt_prog_compiler_static_GCJ='-non_shared'
16518 lt_prog_compiler_static_GCJ='-non_shared'
16522 lt_prog_compiler_pic_GCJ='-KPIC'
16523 lt_prog_compiler_static_GCJ='-Bstatic'
16524 case $cc_basename in
16525 f77* | f90* | f95*)
16526 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16528 lt_prog_compiler_wl_GCJ='-Wl,';;
16533 lt_prog_compiler_wl_GCJ='-Qoption ld '
16534 lt_prog_compiler_pic_GCJ='-PIC'
16535 lt_prog_compiler_static_GCJ='-Bstatic'
16538 sysv4 | sysv4.2uw2* | sysv4.3*)
16539 lt_prog_compiler_wl_GCJ='-Wl,'
16540 lt_prog_compiler_pic_GCJ='-KPIC'
16541 lt_prog_compiler_static_GCJ='-Bstatic'
16545 if test -d /usr/nec ;then
16546 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16547 lt_prog_compiler_static_GCJ='-Bstatic'
16551 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16552 lt_prog_compiler_wl_GCJ='-Wl,'
16553 lt_prog_compiler_pic_GCJ='-KPIC'
16554 lt_prog_compiler_static_GCJ='-Bstatic'
16558 lt_prog_compiler_wl_GCJ='-Wl,'
16559 lt_prog_compiler_can_build_shared_GCJ=no
16563 lt_prog_compiler_pic_GCJ='-pic'
16564 lt_prog_compiler_static_GCJ='-Bstatic'
16568 lt_prog_compiler_can_build_shared_GCJ=no
16573 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16574 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16577 # Check to make sure the PIC flag actually works.
16579 if test -n "$lt_prog_compiler_pic_GCJ"; then
16581 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16582 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16583 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16584 echo $ECHO_N "(cached) $ECHO_C" >&6
16586 lt_prog_compiler_pic_works_GCJ=no
16587 ac_outfile=conftest.$ac_objext
16588 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16589 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16590 # Insert the option either (1) after the last *FLAGS variable, or
16591 # (2) before a word containing "conftest.", or (3) at the end.
16592 # Note that $ac_compile itself does not contain backslashes and begins
16593 # with a dollar sign (not a hyphen), so the echo should work correctly.
16594 # The option is referenced via a variable to avoid confusing sed.
16595 lt_compile=`echo "$ac_compile" | $SED \
16596 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16597 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16598 -e 's:$: $lt_compiler_flag:'`
16599 (eval echo "\"\$as_me:16599: $lt_compile\"" >&5)
16600 (eval "$lt_compile" 2>conftest.err)
16602 cat conftest.err >&5
16603 echo "$as_me:16603: \$? = $ac_status" >&5
16604 if (exit $ac_status) && test -s "$ac_outfile"; then
16605 # The compiler can only warn and ignore the option if not recognized
16606 # So say no if there are warnings other than the usual output.
16607 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16608 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16609 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16610 lt_prog_compiler_pic_works_GCJ=yes
16616 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16617 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16619 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16620 case $lt_prog_compiler_pic_GCJ in
16622 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16625 lt_prog_compiler_pic_GCJ=
16626 lt_prog_compiler_can_build_shared_GCJ=no
16631 # For platforms which do not support PIC, -DPIC is meaningless:
16633 lt_prog_compiler_pic_GCJ=
16636 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16641 # Check to make sure the static flag actually works.
16643 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16644 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16645 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16646 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16647 echo $ECHO_N "(cached) $ECHO_C" >&6
16649 lt_prog_compiler_static_works_GCJ=no
16650 save_LDFLAGS="$LDFLAGS"
16651 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16652 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16653 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16654 # The linker can only warn and ignore the option if not recognized
16655 # So say no if there are warnings
16656 if test -s conftest.err; then
16657 # Append any errors to the config.log.
16658 cat conftest.err 1>&5
16659 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16660 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16661 if diff conftest.exp conftest.er2 >/dev/null; then
16662 lt_prog_compiler_static_works_GCJ=yes
16665 lt_prog_compiler_static_works_GCJ=yes
16669 LDFLAGS="$save_LDFLAGS"
16672 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16673 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16675 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16678 lt_prog_compiler_static_GCJ=
16682 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16683 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16684 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16685 echo $ECHO_N "(cached) $ECHO_C" >&6
16687 lt_cv_prog_compiler_c_o_GCJ=no
16688 $rm -r conftest 2>/dev/null
16692 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16694 lt_compiler_flag="-o out/conftest2.$ac_objext"
16695 # Insert the option either (1) after the last *FLAGS variable, or
16696 # (2) before a word containing "conftest.", or (3) at the end.
16697 # Note that $ac_compile itself does not contain backslashes and begins
16698 # with a dollar sign (not a hyphen), so the echo should work correctly.
16699 lt_compile=`echo "$ac_compile" | $SED \
16700 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16701 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16702 -e 's:$: $lt_compiler_flag:'`
16703 (eval echo "\"\$as_me:16703: $lt_compile\"" >&5)
16704 (eval "$lt_compile" 2>out/conftest.err)
16706 cat out/conftest.err >&5
16707 echo "$as_me:16707: \$? = $ac_status" >&5
16708 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16710 # The compiler can only warn and ignore the option if not recognized
16711 # So say no if there are warnings
16712 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16713 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16714 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16715 lt_cv_prog_compiler_c_o_GCJ=yes
16720 # SGI C++ compiler will create directory out/ii_files/ for
16721 # template instantiation
16722 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16723 $rm out/* && rmdir out
16729 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16730 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16733 hard_links="nottested"
16734 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16735 # do not overwrite the value of need_locks provided by the user
16736 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16737 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16740 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16742 ln conftest.a conftest.b 2>&5 || hard_links=no
16743 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16744 { echo "$as_me:$LINENO: result: $hard_links" >&5
16745 echo "${ECHO_T}$hard_links" >&6; }
16746 if test "$hard_links" = no; then
16747 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16748 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16755 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16756 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16759 allow_undefined_flag_GCJ=
16760 enable_shared_with_static_runtimes_GCJ=no
16762 archive_expsym_cmds_GCJ=
16763 old_archive_From_new_cmds_GCJ=
16764 old_archive_from_expsyms_cmds_GCJ=
16765 export_dynamic_flag_spec_GCJ=
16766 whole_archive_flag_spec_GCJ=
16767 thread_safe_flag_spec_GCJ=
16768 hardcode_libdir_flag_spec_GCJ=
16769 hardcode_libdir_flag_spec_ld_GCJ=
16770 hardcode_libdir_separator_GCJ=
16771 hardcode_direct_GCJ=no
16772 hardcode_minus_L_GCJ=no
16773 hardcode_shlibpath_var_GCJ=unsupported
16774 link_all_deplibs_GCJ=unknown
16775 hardcode_automatic_GCJ=no
16777 module_expsym_cmds_GCJ=
16778 always_export_symbols_GCJ=no
16779 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16780 # include_expsyms should be a list of space-separated symbols to be *always*
16781 # included in the symbol list
16782 include_expsyms_GCJ=
16783 # exclude_expsyms can be an extended regexp of symbols to exclude
16784 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16785 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16786 # as well as any symbol that contains `d'.
16787 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16788 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16789 # platforms (ab)use it in PIC code, but their linkers get confused if
16790 # the symbol is explicitly referenced. Since portable code cannot
16791 # rely on this symbol name, it's probably fine to never include it in
16792 # preloaded symbol tables.
16793 extract_expsyms_cmds=
16794 # Just being paranoid about ensuring that cc_basename is set.
16795 for cc_temp in $compiler""; do
16797 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16798 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16803 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16806 cygwin* | mingw* | pw32*)
16807 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16808 # When not using gcc, we currently assume that we are using
16809 # Microsoft Visual C++.
16810 if test "$GCC" != yes; then
16815 # we just hope/assume this is gcc and not c89 (= MSVC++)
16824 if test "$with_gnu_ld" = yes; then
16825 # If archive_cmds runs LD, not CC, wlarc should be empty
16828 # Set some defaults for GNU ld with shared library support. These
16829 # are reset later if shared libraries are not supported. Putting them
16830 # here allows them to be overridden if necessary.
16831 runpath_var=LD_RUN_PATH
16832 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16833 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16834 # ancient GNU ld didn't support --whole-archive et. al.
16835 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16836 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16838 whole_archive_flag_spec_GCJ=
16840 supports_anon_versioning=no
16841 case `$LD -v 2>/dev/null` in
16842 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16843 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16844 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16845 *\ 2.11.*) ;; # other 2.11 versions
16846 *) supports_anon_versioning=yes ;;
16849 # See if GNU ld supports shared libraries.
16851 aix3* | aix4* | aix5*)
16852 # On AIX/PPC, the GNU linker is very broken
16853 if test "$host_cpu" != ia64; then
16857 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16858 *** to be unable to reliably create shared libraries on AIX.
16859 *** Therefore, libtool is disabling shared libraries support. If you
16860 *** really care for shared libraries, you may want to modify your PATH
16861 *** so that a non-GNU linker is found, and then restart.
16868 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)'
16869 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16870 hardcode_minus_L_GCJ=yes
16872 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16873 # that the semantics of dynamic libraries on AmigaOS, at least up
16874 # to version 4, is to share data among multiple programs linked
16875 # with the same dynamic library. Since this doesn't match the
16876 # behavior of shared libraries on other platforms, we can't use
16882 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16883 allow_undefined_flag_GCJ=unsupported
16884 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16885 # support --undefined. This deserves some investigation. FIXME
16886 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16892 cygwin* | mingw* | pw32*)
16893 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16894 # as there is no search path for DLLs.
16895 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16896 allow_undefined_flag_GCJ=unsupported
16897 always_export_symbols_GCJ=no
16898 enable_shared_with_static_runtimes_GCJ=yes
16899 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16901 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16902 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16903 # If the export-symbols file already is a .def file (1st line
16904 # is EXPORTS), use it as is; otherwise, prepend...
16905 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16906 cp $export_symbols $output_objdir/$soname.def;
16908 echo EXPORTS > $output_objdir/$soname.def;
16909 cat $export_symbols >> $output_objdir/$soname.def;
16911 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16918 hardcode_direct_GCJ=no
16919 hardcode_shlibpath_var_GCJ=no
16920 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16921 export_dynamic_flag_spec_GCJ='${wl}-E'
16922 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16923 # Instead, shared libraries are loaded at an image base (0x10000000 by
16924 # default) and relocated if they conflict, which is a slow very memory
16925 # consuming and fragmenting process. To avoid this, we pick a random,
16926 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16927 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16928 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'
16929 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'
16932 gnu* | linux* | k*bsd*-gnu)
16933 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16935 case $cc_basename,$host_cpu in
16936 pgcc*) # Portland Group C compiler
16937 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'
16938 tmp_addflag=' $pic_flag'
16940 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16941 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'
16942 tmp_addflag=' $pic_flag -Mnomain' ;;
16943 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16944 tmp_addflag=' -i_dynamic' ;;
16945 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16946 tmp_addflag=' -i_dynamic -nofor_main' ;;
16947 ifc* | ifort*) # Intel Fortran compiler
16948 tmp_addflag=' -nofor_main' ;;
16950 case `$CC -V 2>&1 | sed 5q` in
16951 *Sun\ C*) # Sun C 5.9
16952 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'
16953 tmp_sharedflag='-G' ;;
16954 *Sun\ F*) # Sun Fortran 8.3
16955 tmp_sharedflag='-G' ;;
16957 tmp_sharedflag='-shared' ;;
16959 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16961 if test $supports_anon_versioning = yes; then
16962 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16963 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16964 $echo "local: *; };" >> $output_objdir/$libname.ver~
16965 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16967 link_all_deplibs_GCJ=no
16973 netbsd* | netbsdelf*-gnu)
16974 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16975 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16978 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16979 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16984 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16988 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16989 *** create shared libraries on Solaris systems. Therefore, libtool
16990 *** is disabling shared libraries support. We urge you to upgrade GNU
16991 *** binutils to release 2.9.1 or newer. Another option is to modify
16992 *** your PATH or compiler configuration so that the native linker is
16993 *** used, and then restart.
16996 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16997 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16998 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17004 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17005 case `$LD -v 2>&1` in
17006 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17010 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17011 *** reliably create shared libraries on SCO systems. Therefore, libtool
17012 *** is disabling shared libraries support. We urge you to upgrade GNU
17013 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17014 *** your PATH or compiler configuration so that the native linker is
17015 *** used, and then restart.
17020 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17021 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17022 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17023 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17032 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17034 hardcode_direct_GCJ=yes
17035 hardcode_shlibpath_var_GCJ=no
17039 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17040 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17041 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17048 if test "$ld_shlibs_GCJ" = no; then
17050 hardcode_libdir_flag_spec_GCJ=
17051 export_dynamic_flag_spec_GCJ=
17052 whole_archive_flag_spec_GCJ=
17055 # PORTME fill in a description of your system's linker (not GNU ld)
17058 allow_undefined_flag_GCJ=unsupported
17059 always_export_symbols_GCJ=yes
17060 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'
17061 # Note: this linker hardcodes the directories in LIBPATH if there
17062 # are no directories specified by -L.
17063 hardcode_minus_L_GCJ=yes
17064 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17065 # Neither direct hardcoding nor static linking is supported with a
17067 hardcode_direct_GCJ=unsupported
17072 if test "$host_cpu" = ia64; then
17073 # On IA64, the linker does run time linking by default, so we don't
17074 # have to do anything special.
17075 aix_use_runtimelinking=no
17076 exp_sym_flag='-Bexport'
17079 # If we're using GNU nm, then we don't want the "-C" option.
17080 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17081 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17082 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'
17084 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'
17086 aix_use_runtimelinking=no
17088 # Test if we are trying to use run time linking or normal
17089 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17090 # need to do runtime linking.
17091 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17092 for ld_flag in $LDFLAGS; do
17093 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17094 aix_use_runtimelinking=yes
17101 exp_sym_flag='-bexport'
17102 no_entry_flag='-bnoentry'
17105 # When large executables or shared objects are built, AIX ld can
17106 # have problems creating the table of contents. If linking a library
17107 # or program results in "error TOC overflow" add -mminimal-toc to
17108 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17109 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17111 archive_cmds_GCJ=''
17112 hardcode_direct_GCJ=yes
17113 hardcode_libdir_separator_GCJ=':'
17114 link_all_deplibs_GCJ=yes
17116 if test "$GCC" = yes; then
17117 case $host_os in aix4.[012]|aix4.[012].*)
17118 # We only want to do this on AIX 4.2 and lower, the check
17119 # below for broken collect2 doesn't work under 4.3+
17120 collect2name=`${CC} -print-prog-name=collect2`
17121 if test -f "$collect2name" && \
17122 strings "$collect2name" | grep resolve_lib_name >/dev/null
17124 # We have reworked collect2
17127 # We have old collect2
17128 hardcode_direct_GCJ=unsupported
17129 # It fails to find uninstalled libraries when the uninstalled
17130 # path is not listed in the libpath. Setting hardcode_minus_L
17131 # to unsupported forces relinking
17132 hardcode_minus_L_GCJ=yes
17133 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17134 hardcode_libdir_separator_GCJ=
17138 shared_flag='-shared'
17139 if test "$aix_use_runtimelinking" = yes; then
17140 shared_flag="$shared_flag "'${wl}-G'
17144 if test "$host_cpu" = ia64; then
17145 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17146 # chokes on -Wl,-G. The following line is correct:
17149 if test "$aix_use_runtimelinking" = yes; then
17150 shared_flag='${wl}-G'
17152 shared_flag='${wl}-bM:SRE'
17157 # It seems that -bexpall does not export symbols beginning with
17158 # underscore (_), so it is better to generate a list of symbols to export.
17159 always_export_symbols_GCJ=yes
17160 if test "$aix_use_runtimelinking" = yes; then
17161 # Warning - without using the other runtime loading flags (-brtl),
17162 # -berok will link without error, but may produce a broken library.
17163 allow_undefined_flag_GCJ='-berok'
17164 # Determine the default libpath from the value encoded in an empty executable.
17165 cat >conftest.$ac_ext <<_ACEOF
17168 cat confdefs.h >>conftest.$ac_ext
17169 cat >>conftest.$ac_ext <<_ACEOF
17170 /* end confdefs.h. */
17180 rm -f conftest.$ac_objext conftest$ac_exeext
17181 if { (ac_try="$ac_link"
17182 case "(($ac_try" in
17183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17184 *) ac_try_echo=$ac_try;;
17186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17187 (eval "$ac_link") 2>conftest.er1
17189 grep -v '^ *+' conftest.er1 >conftest.err
17191 cat conftest.err >&5
17192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193 (exit $ac_status); } && {
17194 test -z "$ac_c_werror_flag" ||
17195 test ! -s conftest.err
17196 } && test -s conftest$ac_exeext &&
17197 $as_test_x conftest$ac_exeext; then
17199 lt_aix_libpath_sed='
17200 /Import File Strings/,/^$/ {
17206 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17207 # Check for a 64-bit object if we didn't find anything.
17208 if test -z "$aix_libpath"; then
17209 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17212 echo "$as_me: failed program was:" >&5
17213 sed 's/^/| /' conftest.$ac_ext >&5
17218 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17219 conftest$ac_exeext conftest.$ac_ext
17220 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17222 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17223 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"
17225 if test "$host_cpu" = ia64; then
17226 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17227 allow_undefined_flag_GCJ="-z nodefs"
17228 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"
17230 # Determine the default libpath from the value encoded in an empty executable.
17231 cat >conftest.$ac_ext <<_ACEOF
17234 cat confdefs.h >>conftest.$ac_ext
17235 cat >>conftest.$ac_ext <<_ACEOF
17236 /* end confdefs.h. */
17246 rm -f conftest.$ac_objext conftest$ac_exeext
17247 if { (ac_try="$ac_link"
17248 case "(($ac_try" in
17249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17250 *) ac_try_echo=$ac_try;;
17252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17253 (eval "$ac_link") 2>conftest.er1
17255 grep -v '^ *+' conftest.er1 >conftest.err
17257 cat conftest.err >&5
17258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259 (exit $ac_status); } && {
17260 test -z "$ac_c_werror_flag" ||
17261 test ! -s conftest.err
17262 } && test -s conftest$ac_exeext &&
17263 $as_test_x conftest$ac_exeext; then
17265 lt_aix_libpath_sed='
17266 /Import File Strings/,/^$/ {
17272 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17273 # Check for a 64-bit object if we didn't find anything.
17274 if test -z "$aix_libpath"; then
17275 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17278 echo "$as_me: failed program was:" >&5
17279 sed 's/^/| /' conftest.$ac_ext >&5
17284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17285 conftest$ac_exeext conftest.$ac_ext
17286 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17288 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17289 # Warning - without using the other run time loading flags,
17290 # -berok will link without error, but may produce a broken library.
17291 no_undefined_flag_GCJ=' ${wl}-bernotok'
17292 allow_undefined_flag_GCJ=' ${wl}-berok'
17293 # Exported symbols can be pulled into shared objects from archives
17294 whole_archive_flag_spec_GCJ='$convenience'
17295 archive_cmds_need_lc_GCJ=yes
17296 # This is similar to how AIX traditionally builds its shared libraries.
17297 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'
17303 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)'
17304 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17305 hardcode_minus_L_GCJ=yes
17306 # see comment about different semantics on the GNU ld section
17311 export_dynamic_flag_spec_GCJ=-rdynamic
17314 cygwin* | mingw* | pw32*)
17315 # When not using gcc, we currently assume that we are using
17316 # Microsoft Visual C++.
17317 # hardcode_libdir_flag_spec is actually meaningless, as there is
17318 # no search path for DLLs.
17319 hardcode_libdir_flag_spec_GCJ=' '
17320 allow_undefined_flag_GCJ=unsupported
17321 # Tell ltmain to make .lib files, not .a files.
17323 # Tell ltmain to make .dll files, not .so files.
17325 # FIXME: Setting linknames here is a bad hack.
17326 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17327 # The linker will automatically build a .lib file if we build a DLL.
17328 old_archive_From_new_cmds_GCJ='true'
17329 # FIXME: Should let the user specify the lib program.
17330 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17331 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17332 enable_shared_with_static_runtimes_GCJ=yes
17335 darwin* | rhapsody*)
17337 rhapsody* | darwin1.[012])
17338 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17341 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17342 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17344 case ${MACOSX_DEPLOYMENT_TARGET} in
17346 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17349 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17355 archive_cmds_need_lc_GCJ=no
17356 hardcode_direct_GCJ=no
17357 hardcode_automatic_GCJ=yes
17358 hardcode_shlibpath_var_GCJ=unsupported
17359 whole_archive_flag_spec_GCJ=''
17360 link_all_deplibs_GCJ=yes
17361 if test "$GCC" = yes ; then
17362 output_verbose_link_cmd='echo'
17363 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17364 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17365 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17366 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17367 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}'
17369 case $cc_basename in
17371 output_verbose_link_cmd='echo'
17372 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17373 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17374 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17375 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}'
17376 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}'
17386 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17387 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17388 hardcode_shlibpath_var_GCJ=no
17395 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17396 # support. Future versions do this automatically, but an explicit c++rt0.o
17397 # does not break anything, and helps significantly (at the cost of a little
17400 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17401 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17402 hardcode_direct_GCJ=yes
17403 hardcode_shlibpath_var_GCJ=no
17406 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17408 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17409 hardcode_direct_GCJ=yes
17410 hardcode_minus_L_GCJ=yes
17411 hardcode_shlibpath_var_GCJ=no
17414 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17415 freebsd* | dragonfly*)
17416 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17417 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17418 hardcode_direct_GCJ=yes
17419 hardcode_shlibpath_var_GCJ=no
17423 if test "$GCC" = yes; then
17424 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'
17426 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'
17428 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17429 hardcode_libdir_separator_GCJ=:
17430 hardcode_direct_GCJ=yes
17432 # hardcode_minus_L: Not really in the search PATH,
17433 # but as the default location of the library.
17434 hardcode_minus_L_GCJ=yes
17435 export_dynamic_flag_spec_GCJ='${wl}-E'
17439 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17440 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17442 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17444 if test "$with_gnu_ld" = no; then
17445 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17446 hardcode_libdir_separator_GCJ=:
17448 hardcode_direct_GCJ=yes
17449 export_dynamic_flag_spec_GCJ='${wl}-E'
17451 # hardcode_minus_L: Not really in the search PATH,
17452 # but as the default location of the library.
17453 hardcode_minus_L_GCJ=yes
17458 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17461 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17464 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17467 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17473 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17476 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17479 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17483 if test "$with_gnu_ld" = no; then
17484 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17485 hardcode_libdir_separator_GCJ=:
17489 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17490 hardcode_direct_GCJ=no
17491 hardcode_shlibpath_var_GCJ=no
17494 hardcode_direct_GCJ=yes
17495 export_dynamic_flag_spec_GCJ='${wl}-E'
17497 # hardcode_minus_L: Not really in the search PATH,
17498 # but as the default location of the library.
17499 hardcode_minus_L_GCJ=yes
17505 irix5* | irix6* | nonstopux*)
17506 if test "$GCC" = yes; then
17507 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'
17509 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'
17510 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17512 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17513 hardcode_libdir_separator_GCJ=:
17514 link_all_deplibs_GCJ=yes
17517 netbsd* | netbsdelf*-gnu)
17518 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17519 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17521 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17523 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17524 hardcode_direct_GCJ=yes
17525 hardcode_shlibpath_var_GCJ=no
17529 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17530 hardcode_direct_GCJ=yes
17531 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17532 hardcode_libdir_separator_GCJ=:
17533 hardcode_shlibpath_var_GCJ=no
17537 if test -f /usr/libexec/ld.so; then
17538 hardcode_direct_GCJ=yes
17539 hardcode_shlibpath_var_GCJ=no
17540 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17541 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17542 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17543 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17544 export_dynamic_flag_spec_GCJ='${wl}-E'
17547 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17548 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17549 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17552 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17553 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17563 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17564 hardcode_minus_L_GCJ=yes
17565 allow_undefined_flag_GCJ=unsupported
17566 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'
17567 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17571 if test "$GCC" = yes; then
17572 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17573 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'
17575 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17576 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'
17578 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17579 hardcode_libdir_separator_GCJ=:
17582 osf4* | osf5*) # as osf3* with the addition of -msym flag
17583 if test "$GCC" = yes; then
17584 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17585 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'
17586 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17588 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17589 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'
17590 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~
17591 $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'
17593 # Both c and cxx compiler support -rpath directly
17594 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17596 hardcode_libdir_separator_GCJ=:
17600 no_undefined_flag_GCJ=' -z text'
17601 if test "$GCC" = yes; then
17603 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17604 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17605 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17608 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17609 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17610 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17612 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17613 hardcode_shlibpath_var_GCJ=no
17615 solaris2.[0-5] | solaris2.[0-5].*) ;;
17617 # The compiler driver will combine and reorder linker options,
17618 # but understands `-z linker_flag'. GCC discards it without `$wl',
17619 # but is careful enough not to reorder.
17620 # Supported since Solaris 2.6 (maybe 2.5.1?)
17621 if test "$GCC" = yes; then
17622 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17624 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17628 link_all_deplibs_GCJ=yes
17632 if test "x$host_vendor" = xsequent; then
17633 # Use $CC to link under sequent, because it throws in some extra .o
17634 # files that make .init and .fini sections work.
17635 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17637 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17639 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17640 hardcode_direct_GCJ=yes
17641 hardcode_minus_L_GCJ=yes
17642 hardcode_shlibpath_var_GCJ=no
17646 case $host_vendor in
17648 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17649 hardcode_direct_GCJ=yes # is this really true???
17652 ## LD is ld it makes a PLAMLIB
17653 ## CC just makes a GrossModule.
17654 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17655 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17656 hardcode_direct_GCJ=no
17659 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17660 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17663 runpath_var='LD_RUN_PATH'
17664 hardcode_shlibpath_var_GCJ=no
17668 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17669 hardcode_shlibpath_var_GCJ=no
17670 export_dynamic_flag_spec_GCJ='-Bexport'
17674 if test -d /usr/nec; then
17675 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17676 hardcode_shlibpath_var_GCJ=no
17677 runpath_var=LD_RUN_PATH
17678 hardcode_runpath_var=yes
17683 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17684 no_undefined_flag_GCJ='${wl}-z,text'
17685 archive_cmds_need_lc_GCJ=no
17686 hardcode_shlibpath_var_GCJ=no
17687 runpath_var='LD_RUN_PATH'
17689 if test "$GCC" = yes; then
17690 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17691 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17693 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17694 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17698 sysv5* | sco3.2v5* | sco5v6*)
17699 # Note: We can NOT use -z defs as we might desire, because we do not
17700 # link with -lc, and that would cause any symbols used from libc to
17701 # always be unresolved, which means just about no library would
17702 # ever link correctly. If we're not using GNU ld we use -z text
17703 # though, which does catch some bad symbols but isn't as heavy-handed
17705 no_undefined_flag_GCJ='${wl}-z,text'
17706 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17707 archive_cmds_need_lc_GCJ=no
17708 hardcode_shlibpath_var_GCJ=no
17709 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17710 hardcode_libdir_separator_GCJ=':'
17711 link_all_deplibs_GCJ=yes
17712 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17713 runpath_var='LD_RUN_PATH'
17715 if test "$GCC" = yes; then
17716 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17717 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17719 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17720 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17725 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17726 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17727 hardcode_shlibpath_var_GCJ=no
17736 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17737 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17738 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17741 # Do we need to explicitly link libc?
17743 case "x$archive_cmds_need_lc_GCJ" in
17745 # Assume -lc should be added
17746 archive_cmds_need_lc_GCJ=yes
17748 if test "$enable_shared" = yes && test "$GCC" = yes; then
17749 case $archive_cmds_GCJ in
17751 # FIXME: we may have to deal with multi-command sequences.
17754 # Test whether the compiler implicitly links with -lc since on some
17755 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17756 # to ld, don't add -lc before -lgcc.
17757 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17758 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17760 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17763 (eval $ac_compile) 2>&5
17765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766 (exit $ac_status); } 2>conftest.err; then
17769 libobjs=conftest.$ac_objext
17771 wl=$lt_prog_compiler_wl_GCJ
17772 pic_flag=$lt_prog_compiler_pic_GCJ
17778 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17779 allow_undefined_flag_GCJ=
17780 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17781 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17784 (exit $ac_status); }
17786 archive_cmds_need_lc_GCJ=no
17788 archive_cmds_need_lc_GCJ=yes
17790 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17792 cat conftest.err 1>&5
17795 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17796 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17803 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17804 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17805 library_names_spec=
17806 libname_spec='lib$name'
17810 postuninstall_cmds=
17814 shlibpath_overrides_runpath=unknown
17816 dynamic_linker="$host_os ld.so"
17817 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17819 need_lib_prefix=unknown
17820 hardcode_into_libs=no
17822 # when you set need_version to no, make sure it does not cause -set_version
17823 # flags to be left without arguments
17824 need_version=unknown
17829 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17830 shlibpath_var=LIBPATH
17832 # AIX 3 has no versioning support, so we append a major version to the name.
17833 soname_spec='${libname}${release}${shared_ext}$major'
17840 hardcode_into_libs=yes
17841 if test "$host_cpu" = ia64; then
17842 # AIX 5 supports IA64
17843 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17844 shlibpath_var=LD_LIBRARY_PATH
17846 # With GCC up to 2.95.x, collect2 would create an import file
17847 # for dependence libraries. The import file would start with
17848 # the line `#! .'. This would cause the generated library to
17849 # depend on `.', always an invalid library. This was fixed in
17850 # development snapshots of GCC prior to 3.0.
17852 aix4 | aix4.[01] | aix4.[01].*)
17853 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17855 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17858 can_build_shared=no
17862 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17863 # soname into executable. Probably we can add versioning support to
17864 # collect2, so additional links can be useful in future.
17865 if test "$aix_use_runtimelinking" = yes; then
17866 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17867 # instead of lib<name>.a to let people know that these are not
17868 # typical AIX shared libraries.
17869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17871 # We preserve .a as extension for shared libraries through AIX4.2
17872 # and later when we are not doing run time linking.
17873 library_names_spec='${libname}${release}.a $libname.a'
17874 soname_spec='${libname}${release}${shared_ext}$major'
17876 shlibpath_var=LIBPATH
17881 library_names_spec='$libname.ixlibrary $libname.a'
17882 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17883 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'
17887 library_names_spec='${libname}${shared_ext}'
17888 dynamic_linker="$host_os ld.so"
17889 shlibpath_var=LIBRARY_PATH
17895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17896 soname_spec='${libname}${release}${shared_ext}$major'
17897 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17898 shlibpath_var=LD_LIBRARY_PATH
17899 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17900 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17901 # the default ld.so.conf also contains /usr/contrib/lib and
17902 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17903 # libtool to hard-code these into programs
17906 cygwin* | mingw* | pw32*)
17907 version_type=windows
17912 case $GCC,$host_os in
17913 yes,cygwin* | yes,mingw* | yes,pw32*)
17914 library_names_spec='$libname.dll.a'
17915 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17916 postinstall_cmds='base_file=`basename \${file}`~
17917 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17918 dldir=$destdir/`dirname \$dlpath`~
17919 test -d \$dldir || mkdir -p \$dldir~
17920 $install_prog $dir/$dlname \$dldir/$dlname~
17921 chmod a+x \$dldir/$dlname'
17922 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17923 dlpath=$dir/\$dldll~
17925 shlibpath_overrides_runpath=yes
17929 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17930 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17931 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17934 # MinGW DLLs use traditional 'lib' prefix
17935 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17936 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17937 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17938 # It is most probably a Windows format PATH printed by
17939 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17940 # path with ; separators, and with drive letters. We can handle the
17941 # drive letters (cygwin fileutils understands them), so leave them,
17942 # especially as we might pass files found there to a mingw objdump,
17943 # which wouldn't understand a cygwinified path. Ahh.
17944 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17946 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17950 # pw32 DLLs use 'pw' prefix rather than 'lib'
17951 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17957 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17960 dynamic_linker='Win32 ld.exe'
17961 # FIXME: first we should search . and the directory the executable is in
17965 darwin* | rhapsody*)
17966 dynamic_linker="$host_os dyld"
17967 version_type=darwin
17970 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17971 soname_spec='${libname}${release}${major}$shared_ext'
17972 shlibpath_overrides_runpath=yes
17973 shlibpath_var=DYLD_LIBRARY_PATH
17974 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17976 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17984 soname_spec='${libname}${release}${shared_ext}$major'
17985 shlibpath_var=LD_LIBRARY_PATH
17992 freebsd* | dragonfly*)
17993 # DragonFly does not have aout. When/if they implement a new
17994 # versioning mechanism, adjust this.
17995 if test -x /usr/bin/objformat; then
17996 objformat=`/usr/bin/objformat`
17999 freebsd[123]*) objformat=aout ;;
18000 *) objformat=elf ;;
18003 version_type=freebsd-$objformat
18004 case $version_type in
18006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18011 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18015 shlibpath_var=LD_LIBRARY_PATH
18018 shlibpath_overrides_runpath=yes
18020 freebsd3.[01]* | freebsdelf3.[01]*)
18021 shlibpath_overrides_runpath=yes
18022 hardcode_into_libs=yes
18024 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18025 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18026 shlibpath_overrides_runpath=no
18027 hardcode_into_libs=yes
18029 *) # from 4.6 on, and DragonFly
18030 shlibpath_overrides_runpath=yes
18031 hardcode_into_libs=yes
18040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18041 soname_spec='${libname}${release}${shared_ext}$major'
18042 shlibpath_var=LD_LIBRARY_PATH
18043 hardcode_into_libs=yes
18046 hpux9* | hpux10* | hpux11*)
18047 # Give a soname corresponding to the major version so that dld.sl refuses to
18048 # link against other versions.
18055 hardcode_into_libs=yes
18056 dynamic_linker="$host_os dld.so"
18057 shlibpath_var=LD_LIBRARY_PATH
18058 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18060 soname_spec='${libname}${release}${shared_ext}$major'
18061 if test "X$HPUX_IA64_MODE" = X32; then
18062 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18064 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18066 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18070 hardcode_into_libs=yes
18071 dynamic_linker="$host_os dld.sl"
18072 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18073 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18075 soname_spec='${libname}${release}${shared_ext}$major'
18076 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18077 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18081 dynamic_linker="$host_os dld.sl"
18082 shlibpath_var=SHLIB_PATH
18083 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18085 soname_spec='${libname}${release}${shared_ext}$major'
18088 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18089 postinstall_cmds='chmod 555 $lib'
18096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18097 soname_spec='${libname}${release}${shared_ext}$major'
18098 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18099 shlibpath_var=LD_LIBRARY_PATH
18100 shlibpath_overrides_runpath=no
18101 hardcode_into_libs=yes
18104 irix5* | irix6* | nonstopux*)
18106 nonstopux*) version_type=nonstopux ;;
18108 if test "$lt_cv_prog_gnu_ld" = yes; then
18116 soname_spec='${libname}${release}${shared_ext}$major'
18117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18119 irix5* | nonstopux*)
18120 libsuff= shlibsuff=
18123 case $LD in # libtool.m4 will add one of these switches to LD
18124 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18125 libsuff= shlibsuff= libmagic=32-bit;;
18126 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18127 libsuff=32 shlibsuff=N32 libmagic=N32;;
18128 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18129 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18130 *) libsuff= shlibsuff= libmagic=never-match;;
18134 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18135 shlibpath_overrides_runpath=no
18136 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18137 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18138 hardcode_into_libs=yes
18141 # No shared lib support for Linux oldld, aout, or coff.
18142 linux*oldld* | linux*aout* | linux*coff*)
18146 # This must be Linux ELF.
18147 linux* | k*bsd*-gnu)
18151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18152 soname_spec='${libname}${release}${shared_ext}$major'
18153 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18154 shlibpath_var=LD_LIBRARY_PATH
18155 shlibpath_overrides_runpath=no
18156 # This implies no fast_install, which is unacceptable.
18157 # Some rework will be needed to allow for fast_install
18158 # before this can be enabled.
18159 hardcode_into_libs=yes
18161 # Append ld.so.conf contents to the search path
18162 if test -f /etc/ld.so.conf; then
18163 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' ' '`
18164 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18167 # We used to test for /lib/ld.so.1 and disable shared libraries on
18168 # powerpc, because MkLinux only supported shared libraries with the
18169 # GNU dynamic linker. Since this was broken with cross compilers,
18170 # most powerpc-linux boxes support dynamic linking these days and
18171 # people can always --disable-shared, the test was removed, and we
18172 # assume the GNU/Linux dynamic linker is in use.
18173 dynamic_linker='GNU/Linux ld.so'
18180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18181 soname_spec='${libname}${release}${shared_ext}$major'
18182 shlibpath_var=LD_LIBRARY_PATH
18183 shlibpath_overrides_runpath=no
18184 hardcode_into_libs=yes
18185 dynamic_linker='NetBSD ld.elf_so'
18192 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18194 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18195 dynamic_linker='NetBSD (a.out) ld.so'
18197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18198 soname_spec='${libname}${release}${shared_ext}$major'
18199 dynamic_linker='NetBSD ld.elf_so'
18201 shlibpath_var=LD_LIBRARY_PATH
18202 shlibpath_overrides_runpath=yes
18203 hardcode_into_libs=yes
18208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18209 shlibpath_var=LD_LIBRARY_PATH
18210 shlibpath_overrides_runpath=yes
18217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18218 soname_spec='${libname}${release}${shared_ext}$major'
18219 shlibpath_var=LD_LIBRARY_PATH
18220 shlibpath_overrides_runpath=yes
18225 sys_lib_dlsearch_path_spec="/usr/lib"
18227 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18229 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18230 *) need_version=no ;;
18232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18233 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18234 shlibpath_var=LD_LIBRARY_PATH
18235 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18237 openbsd2.[89] | openbsd2.[89].*)
18238 shlibpath_overrides_runpath=no
18241 shlibpath_overrides_runpath=yes
18245 shlibpath_overrides_runpath=yes
18250 libname_spec='$name'
18253 library_names_spec='$libname${shared_ext} $libname.a'
18254 dynamic_linker='OS/2 ld.exe'
18255 shlibpath_var=LIBPATH
18258 osf3* | osf4* | osf5*)
18262 soname_spec='${libname}${release}${shared_ext}$major'
18263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18264 shlibpath_var=LD_LIBRARY_PATH
18265 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18266 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18278 soname_spec='${libname}${release}${shared_ext}$major'
18279 shlibpath_var=LD_LIBRARY_PATH
18280 shlibpath_overrides_runpath=yes
18281 hardcode_into_libs=yes
18282 # ldd complains unless libraries are executable
18283 postinstall_cmds='chmod +x $lib'
18288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18289 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18290 shlibpath_var=LD_LIBRARY_PATH
18291 shlibpath_overrides_runpath=yes
18292 if test "$with_gnu_ld" = yes; then
18300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18301 soname_spec='${libname}${release}${shared_ext}$major'
18302 shlibpath_var=LD_LIBRARY_PATH
18303 case $host_vendor in
18305 shlibpath_overrides_runpath=no
18307 export_dynamic_flag_spec='${wl}-Blargedynsym'
18308 runpath_var=LD_RUN_PATH
18316 shlibpath_overrides_runpath=no
18317 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18323 if test -d /usr/nec ;then
18325 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18326 soname_spec='$libname${shared_ext}.$major'
18327 shlibpath_var=LD_LIBRARY_PATH
18331 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18332 version_type=freebsd-elf
18335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18336 soname_spec='${libname}${release}${shared_ext}$major'
18337 shlibpath_var=LD_LIBRARY_PATH
18338 hardcode_into_libs=yes
18339 if test "$with_gnu_ld" = yes; then
18340 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18341 shlibpath_overrides_runpath=no
18343 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18344 shlibpath_overrides_runpath=yes
18347 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18351 sys_lib_dlsearch_path_spec='/usr/lib'
18356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18357 soname_spec='${libname}${release}${shared_ext}$major'
18358 shlibpath_var=LD_LIBRARY_PATH
18365 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18366 echo "${ECHO_T}$dynamic_linker" >&6; }
18367 test "$dynamic_linker" = no && can_build_shared=no
18369 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18370 if test "$GCC" = yes; then
18371 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18374 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18375 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18376 hardcode_action_GCJ=
18377 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18378 test -n "$runpath_var_GCJ" || \
18379 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18381 # We can hardcode non-existant directories.
18382 if test "$hardcode_direct_GCJ" != no &&
18383 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18384 # have to relink, otherwise we might link with an installed library
18385 # when we should be linking with a yet-to-be-installed one
18386 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18387 test "$hardcode_minus_L_GCJ" != no; then
18388 # Linking always hardcodes the temporary library directory.
18389 hardcode_action_GCJ=relink
18391 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18392 hardcode_action_GCJ=immediate
18395 # We cannot hardcode anything, or else we can only hardcode existing
18397 hardcode_action_GCJ=unsupported
18399 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18400 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18402 if test "$hardcode_action_GCJ" = relink; then
18403 # Fast installation is not supported
18404 enable_fast_install=no
18405 elif test "$shlibpath_overrides_runpath" = yes ||
18406 test "$enable_shared" = no; then
18407 # Fast installation is not necessary
18408 enable_fast_install=needless
18412 # The else clause should only fire when bootstrapping the
18413 # libtool distribution, otherwise you forgot to ship ltmain.sh
18414 # with your package, and you will get complaints that there are
18415 # no rules to generate ltmain.sh.
18416 if test -f "$ltmain"; then
18417 # See if we are running on zsh, and set the options which allow our commands through
18418 # without removal of \ escapes.
18419 if test -n "${ZSH_VERSION+set}" ; then
18420 setopt NO_GLOB_SUBST
18422 # Now quote all the things that may contain metacharacters while being
18423 # careful not to overquote the AC_SUBSTed values. We take copies of the
18424 # variables and quote the copies for generation of the libtool script.
18425 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18427 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18428 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18429 deplibs_check_method reload_flag reload_cmds need_locks \
18430 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18431 lt_cv_sys_global_symbol_to_c_name_address \
18432 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18433 old_postinstall_cmds old_postuninstall_cmds \
18437 lt_prog_compiler_wl_GCJ \
18438 lt_prog_compiler_pic_GCJ \
18439 lt_prog_compiler_static_GCJ \
18440 lt_prog_compiler_no_builtin_flag_GCJ \
18441 export_dynamic_flag_spec_GCJ \
18442 thread_safe_flag_spec_GCJ \
18443 whole_archive_flag_spec_GCJ \
18444 enable_shared_with_static_runtimes_GCJ \
18445 old_archive_cmds_GCJ \
18446 old_archive_from_new_cmds_GCJ \
18447 predep_objects_GCJ \
18448 postdep_objects_GCJ \
18451 compiler_lib_search_path_GCJ \
18453 archive_expsym_cmds_GCJ \
18454 postinstall_cmds_GCJ \
18455 postuninstall_cmds_GCJ \
18456 old_archive_from_expsyms_cmds_GCJ \
18457 allow_undefined_flag_GCJ \
18458 no_undefined_flag_GCJ \
18459 export_symbols_cmds_GCJ \
18460 hardcode_libdir_flag_spec_GCJ \
18461 hardcode_libdir_flag_spec_ld_GCJ \
18462 hardcode_libdir_separator_GCJ \
18463 hardcode_automatic_GCJ \
18465 module_expsym_cmds_GCJ \
18466 lt_cv_prog_compiler_c_o_GCJ \
18467 fix_srcfile_path_GCJ \
18468 exclude_expsyms_GCJ \
18469 include_expsyms_GCJ; do
18472 old_archive_cmds_GCJ | \
18473 old_archive_from_new_cmds_GCJ | \
18474 archive_cmds_GCJ | \
18475 archive_expsym_cmds_GCJ | \
18476 module_cmds_GCJ | \
18477 module_expsym_cmds_GCJ | \
18478 old_archive_from_expsyms_cmds_GCJ | \
18479 export_symbols_cmds_GCJ | \
18480 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18481 postinstall_cmds | postuninstall_cmds | \
18482 old_postinstall_cmds | old_postuninstall_cmds | \
18483 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18484 # Double-quote double-evaled strings.
18485 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18488 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18494 *'\$0 --fallback-echo"')
18495 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18501 cat <<__EOF__ >> "$cfgfile"
18502 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18504 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18506 # Shell to use when invoking shell scripts.
18509 # Whether or not to build shared libraries.
18510 build_libtool_libs=$enable_shared
18512 # Whether or not to build static libraries.
18513 build_old_libs=$enable_static
18515 # Whether or not to add -lc for building shared libraries.
18516 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18518 # Whether or not to disallow shared libs when runtime libs are static
18519 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18521 # Whether or not to optimize for fast installation.
18522 fast_install=$enable_fast_install
18525 host_alias=$host_alias
18529 # The build system.
18530 build_alias=$build_alias
18534 # An echo program that does not interpret backslashes.
18539 AR_FLAGS=$lt_AR_FLAGS
18544 # LTCC compiler flags.
18545 LTCFLAGS=$lt_LTCFLAGS
18547 # A language-specific compiler.
18548 CC=$lt_compiler_GCJ
18550 # Is the compiler the GNU C compiler?
18556 # The linker used to build libraries.
18559 # Whether we need hard or soft links.
18562 # A BSD-compatible nm program.
18565 # A symbol stripping program
18568 # Used to examine libraries when file_magic_cmd begins "file"
18569 MAGIC_CMD=$MAGIC_CMD
18571 # Used on cygwin: DLL creation program.
18574 # Used on cygwin: object dumper.
18577 # Used on cygwin: assembler.
18580 # The name of the directory that contains temporary libtool files.
18583 # How to create reloadable object files.
18584 reload_flag=$lt_reload_flag
18585 reload_cmds=$lt_reload_cmds
18587 # How to pass a linker flag through the compiler.
18588 wl=$lt_lt_prog_compiler_wl_GCJ
18590 # Object file suffix (normally "o").
18591 objext="$ac_objext"
18593 # Old archive suffix (normally "a").
18596 # Shared library suffix (normally ".so").
18597 shrext_cmds='$shrext_cmds'
18599 # Executable file suffix (normally "").
18602 # Additional compiler flags for building library objects.
18603 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18606 # What is the maximum length of a command?
18607 max_cmd_len=$lt_cv_sys_max_cmd_len
18609 # Does compiler simultaneously support -c and -o options?
18610 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18612 # Must we lock files when doing compilation?
18613 need_locks=$lt_need_locks
18615 # Do we need the lib prefix for modules?
18616 need_lib_prefix=$need_lib_prefix
18618 # Do we need a version for libraries?
18619 need_version=$need_version
18621 # Whether dlopen is supported.
18622 dlopen_support=$enable_dlopen
18624 # Whether dlopen of programs is supported.
18625 dlopen_self=$enable_dlopen_self
18627 # Whether dlopen of statically linked programs is supported.
18628 dlopen_self_static=$enable_dlopen_self_static
18630 # Compiler flag to prevent dynamic linking.
18631 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18633 # Compiler flag to turn off builtin functions.
18634 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18636 # Compiler flag to allow reflexive dlopens.
18637 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18639 # Compiler flag to generate shared objects directly from archives.
18640 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18642 # Compiler flag to generate thread-safe objects.
18643 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18645 # Library versioning type.
18646 version_type=$version_type
18648 # Format of library name prefix.
18649 libname_spec=$lt_libname_spec
18651 # List of archive names. First name is the real one, the rest are links.
18652 # The last name is the one that the linker finds with -lNAME.
18653 library_names_spec=$lt_library_names_spec
18655 # The coded name of the library, if different from the real name.
18656 soname_spec=$lt_soname_spec
18658 # Commands used to build and install an old-style archive.
18660 old_archive_cmds=$lt_old_archive_cmds_GCJ
18661 old_postinstall_cmds=$lt_old_postinstall_cmds
18662 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18664 # Create an old-style archive from a shared archive.
18665 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18667 # Create a temporary old-style archive to link instead of a shared archive.
18668 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18670 # Commands used to build and install a shared archive.
18671 archive_cmds=$lt_archive_cmds_GCJ
18672 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18673 postinstall_cmds=$lt_postinstall_cmds
18674 postuninstall_cmds=$lt_postuninstall_cmds
18676 # Commands used to build a loadable module (assumed same as above if empty)
18677 module_cmds=$lt_module_cmds_GCJ
18678 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18680 # Commands to strip libraries.
18681 old_striplib=$lt_old_striplib
18682 striplib=$lt_striplib
18684 # Dependencies to place before the objects being linked to create a
18686 predep_objects=$lt_predep_objects_GCJ
18688 # Dependencies to place after the objects being linked to create a
18690 postdep_objects=$lt_postdep_objects_GCJ
18692 # Dependencies to place before the objects being linked to create a
18694 predeps=$lt_predeps_GCJ
18696 # Dependencies to place after the objects being linked to create a
18698 postdeps=$lt_postdeps_GCJ
18700 # The library search path used internally by the compiler when linking
18701 # a shared library.
18702 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18704 # Method to check whether dependent libraries are shared objects.
18705 deplibs_check_method=$lt_deplibs_check_method
18707 # Command to use when deplibs_check_method == file_magic.
18708 file_magic_cmd=$lt_file_magic_cmd
18710 # Flag that allows shared libraries with undefined symbols to be built.
18711 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18713 # Flag that forces no undefined symbols.
18714 no_undefined_flag=$lt_no_undefined_flag_GCJ
18716 # Commands used to finish a libtool library installation in a directory.
18717 finish_cmds=$lt_finish_cmds
18719 # Same as above, but a single script fragment to be evaled but not shown.
18720 finish_eval=$lt_finish_eval
18722 # Take the output of nm and produce a listing of raw symbols and C names.
18723 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18725 # Transform the output of nm in a proper C declaration
18726 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18728 # Transform the output of nm in a C name address pair
18729 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18731 # This is the shared library runtime path variable.
18732 runpath_var=$runpath_var
18734 # This is the shared library path variable.
18735 shlibpath_var=$shlibpath_var
18737 # Is shlibpath searched before the hard-coded library search path?
18738 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18740 # How to hardcode a shared library path into an executable.
18741 hardcode_action=$hardcode_action_GCJ
18743 # Whether we should hardcode library paths into libraries.
18744 hardcode_into_libs=$hardcode_into_libs
18746 # Flag to hardcode \$libdir into a binary during linking.
18747 # This must work even if \$libdir does not exist.
18748 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18750 # If ld is used when linking, flag to hardcode \$libdir into
18751 # a binary during linking. This must work even if \$libdir does
18753 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18755 # Whether we need a single -rpath flag with a separated argument.
18756 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18758 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18759 # resulting binary.
18760 hardcode_direct=$hardcode_direct_GCJ
18762 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18763 # resulting binary.
18764 hardcode_minus_L=$hardcode_minus_L_GCJ
18766 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18767 # the resulting binary.
18768 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18770 # Set to yes if building a shared library automatically hardcodes DIR into the library
18771 # and all subsequent libraries and executables linked against it.
18772 hardcode_automatic=$hardcode_automatic_GCJ
18774 # Variables whose values should be saved in libtool wrapper scripts and
18775 # restored at relink time.
18776 variables_saved_for_relink="$variables_saved_for_relink"
18778 # Whether libtool must link a program against all its dependency libraries.
18779 link_all_deplibs=$link_all_deplibs_GCJ
18781 # Compile-time system search path for libraries
18782 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18784 # Run-time system search path for libraries
18785 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18787 # Fix the shell variable \$srcfile for the compiler.
18788 fix_srcfile_path=$lt_fix_srcfile_path
18790 # Set to yes if exported symbols are required.
18791 always_export_symbols=$always_export_symbols_GCJ
18793 # The commands to list exported symbols.
18794 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18796 # The commands to extract the exported symbol list from a shared archive.
18797 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18799 # Symbols that should not be listed in the preloaded symbols.
18800 exclude_expsyms=$lt_exclude_expsyms_GCJ
18802 # Symbols that must always be exported.
18803 include_expsyms=$lt_include_expsyms_GCJ
18805 # ### END LIBTOOL TAG CONFIG: $tagname
18811 # If there is no Makefile yet, we rely on a make rule to execute
18812 # `config.status --recheck' to rerun these tests and create the
18813 # libtool script then.
18814 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18815 if test -f "$ltmain_in"; then
18816 test -f Makefile && make "$ltmain"
18822 ac_cpp='$CPP $CPPFLAGS'
18823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18837 # Source file extension for RC test sources.
18840 # Object file extension for compiled RC test sources.
18844 # Code to be used in simple compile tests
18845 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18847 # Code to be used in simple link tests
18848 lt_simple_link_test_code="$lt_simple_compile_test_code"
18850 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18852 # If no C compiler was specified, use CC.
18855 # If no C compiler flags were specified, use CFLAGS.
18856 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18858 # Allow CC to be a program name with arguments.
18862 # save warnings/boilerplate of simple test code
18863 ac_outfile=conftest.$ac_objext
18864 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18865 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18866 _lt_compiler_boilerplate=`cat conftest.err`
18869 ac_outfile=conftest.$ac_objext
18870 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18871 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18872 _lt_linker_boilerplate=`cat conftest.err`
18876 # Allow CC to be a program name with arguments.
18881 for cc_temp in $compiler""; do
18883 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18884 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18889 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18891 lt_cv_prog_compiler_c_o_RC=yes
18893 # The else clause should only fire when bootstrapping the
18894 # libtool distribution, otherwise you forgot to ship ltmain.sh
18895 # with your package, and you will get complaints that there are
18896 # no rules to generate ltmain.sh.
18897 if test -f "$ltmain"; then
18898 # See if we are running on zsh, and set the options which allow our commands through
18899 # without removal of \ escapes.
18900 if test -n "${ZSH_VERSION+set}" ; then
18901 setopt NO_GLOB_SUBST
18903 # Now quote all the things that may contain metacharacters while being
18904 # careful not to overquote the AC_SUBSTed values. We take copies of the
18905 # variables and quote the copies for generation of the libtool script.
18906 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18908 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18909 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18910 deplibs_check_method reload_flag reload_cmds need_locks \
18911 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18912 lt_cv_sys_global_symbol_to_c_name_address \
18913 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18914 old_postinstall_cmds old_postuninstall_cmds \
18918 lt_prog_compiler_wl_RC \
18919 lt_prog_compiler_pic_RC \
18920 lt_prog_compiler_static_RC \
18921 lt_prog_compiler_no_builtin_flag_RC \
18922 export_dynamic_flag_spec_RC \
18923 thread_safe_flag_spec_RC \
18924 whole_archive_flag_spec_RC \
18925 enable_shared_with_static_runtimes_RC \
18926 old_archive_cmds_RC \
18927 old_archive_from_new_cmds_RC \
18928 predep_objects_RC \
18929 postdep_objects_RC \
18932 compiler_lib_search_path_RC \
18934 archive_expsym_cmds_RC \
18935 postinstall_cmds_RC \
18936 postuninstall_cmds_RC \
18937 old_archive_from_expsyms_cmds_RC \
18938 allow_undefined_flag_RC \
18939 no_undefined_flag_RC \
18940 export_symbols_cmds_RC \
18941 hardcode_libdir_flag_spec_RC \
18942 hardcode_libdir_flag_spec_ld_RC \
18943 hardcode_libdir_separator_RC \
18944 hardcode_automatic_RC \
18946 module_expsym_cmds_RC \
18947 lt_cv_prog_compiler_c_o_RC \
18948 fix_srcfile_path_RC \
18949 exclude_expsyms_RC \
18950 include_expsyms_RC; do
18953 old_archive_cmds_RC | \
18954 old_archive_from_new_cmds_RC | \
18955 archive_cmds_RC | \
18956 archive_expsym_cmds_RC | \
18958 module_expsym_cmds_RC | \
18959 old_archive_from_expsyms_cmds_RC | \
18960 export_symbols_cmds_RC | \
18961 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18962 postinstall_cmds | postuninstall_cmds | \
18963 old_postinstall_cmds | old_postuninstall_cmds | \
18964 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18965 # Double-quote double-evaled strings.
18966 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18969 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18975 *'\$0 --fallback-echo"')
18976 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18982 cat <<__EOF__ >> "$cfgfile"
18983 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18985 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18987 # Shell to use when invoking shell scripts.
18990 # Whether or not to build shared libraries.
18991 build_libtool_libs=$enable_shared
18993 # Whether or not to build static libraries.
18994 build_old_libs=$enable_static
18996 # Whether or not to add -lc for building shared libraries.
18997 build_libtool_need_lc=$archive_cmds_need_lc_RC
18999 # Whether or not to disallow shared libs when runtime libs are static
19000 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19002 # Whether or not to optimize for fast installation.
19003 fast_install=$enable_fast_install
19006 host_alias=$host_alias
19010 # The build system.
19011 build_alias=$build_alias
19015 # An echo program that does not interpret backslashes.
19020 AR_FLAGS=$lt_AR_FLAGS
19025 # LTCC compiler flags.
19026 LTCFLAGS=$lt_LTCFLAGS
19028 # A language-specific compiler.
19031 # Is the compiler the GNU C compiler?
19037 # The linker used to build libraries.
19040 # Whether we need hard or soft links.
19043 # A BSD-compatible nm program.
19046 # A symbol stripping program
19049 # Used to examine libraries when file_magic_cmd begins "file"
19050 MAGIC_CMD=$MAGIC_CMD
19052 # Used on cygwin: DLL creation program.
19055 # Used on cygwin: object dumper.
19058 # Used on cygwin: assembler.
19061 # The name of the directory that contains temporary libtool files.
19064 # How to create reloadable object files.
19065 reload_flag=$lt_reload_flag
19066 reload_cmds=$lt_reload_cmds
19068 # How to pass a linker flag through the compiler.
19069 wl=$lt_lt_prog_compiler_wl_RC
19071 # Object file suffix (normally "o").
19072 objext="$ac_objext"
19074 # Old archive suffix (normally "a").
19077 # Shared library suffix (normally ".so").
19078 shrext_cmds='$shrext_cmds'
19080 # Executable file suffix (normally "").
19083 # Additional compiler flags for building library objects.
19084 pic_flag=$lt_lt_prog_compiler_pic_RC
19087 # What is the maximum length of a command?
19088 max_cmd_len=$lt_cv_sys_max_cmd_len
19090 # Does compiler simultaneously support -c and -o options?
19091 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19093 # Must we lock files when doing compilation?
19094 need_locks=$lt_need_locks
19096 # Do we need the lib prefix for modules?
19097 need_lib_prefix=$need_lib_prefix
19099 # Do we need a version for libraries?
19100 need_version=$need_version
19102 # Whether dlopen is supported.
19103 dlopen_support=$enable_dlopen
19105 # Whether dlopen of programs is supported.
19106 dlopen_self=$enable_dlopen_self
19108 # Whether dlopen of statically linked programs is supported.
19109 dlopen_self_static=$enable_dlopen_self_static
19111 # Compiler flag to prevent dynamic linking.
19112 link_static_flag=$lt_lt_prog_compiler_static_RC
19114 # Compiler flag to turn off builtin functions.
19115 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19117 # Compiler flag to allow reflexive dlopens.
19118 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19120 # Compiler flag to generate shared objects directly from archives.
19121 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19123 # Compiler flag to generate thread-safe objects.
19124 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19126 # Library versioning type.
19127 version_type=$version_type
19129 # Format of library name prefix.
19130 libname_spec=$lt_libname_spec
19132 # List of archive names. First name is the real one, the rest are links.
19133 # The last name is the one that the linker finds with -lNAME.
19134 library_names_spec=$lt_library_names_spec
19136 # The coded name of the library, if different from the real name.
19137 soname_spec=$lt_soname_spec
19139 # Commands used to build and install an old-style archive.
19141 old_archive_cmds=$lt_old_archive_cmds_RC
19142 old_postinstall_cmds=$lt_old_postinstall_cmds
19143 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19145 # Create an old-style archive from a shared archive.
19146 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19148 # Create a temporary old-style archive to link instead of a shared archive.
19149 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19151 # Commands used to build and install a shared archive.
19152 archive_cmds=$lt_archive_cmds_RC
19153 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19154 postinstall_cmds=$lt_postinstall_cmds
19155 postuninstall_cmds=$lt_postuninstall_cmds
19157 # Commands used to build a loadable module (assumed same as above if empty)
19158 module_cmds=$lt_module_cmds_RC
19159 module_expsym_cmds=$lt_module_expsym_cmds_RC
19161 # Commands to strip libraries.
19162 old_striplib=$lt_old_striplib
19163 striplib=$lt_striplib
19165 # Dependencies to place before the objects being linked to create a
19167 predep_objects=$lt_predep_objects_RC
19169 # Dependencies to place after the objects being linked to create a
19171 postdep_objects=$lt_postdep_objects_RC
19173 # Dependencies to place before the objects being linked to create a
19175 predeps=$lt_predeps_RC
19177 # Dependencies to place after the objects being linked to create a
19179 postdeps=$lt_postdeps_RC
19181 # The library search path used internally by the compiler when linking
19182 # a shared library.
19183 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19185 # Method to check whether dependent libraries are shared objects.
19186 deplibs_check_method=$lt_deplibs_check_method
19188 # Command to use when deplibs_check_method == file_magic.
19189 file_magic_cmd=$lt_file_magic_cmd
19191 # Flag that allows shared libraries with undefined symbols to be built.
19192 allow_undefined_flag=$lt_allow_undefined_flag_RC
19194 # Flag that forces no undefined symbols.
19195 no_undefined_flag=$lt_no_undefined_flag_RC
19197 # Commands used to finish a libtool library installation in a directory.
19198 finish_cmds=$lt_finish_cmds
19200 # Same as above, but a single script fragment to be evaled but not shown.
19201 finish_eval=$lt_finish_eval
19203 # Take the output of nm and produce a listing of raw symbols and C names.
19204 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19206 # Transform the output of nm in a proper C declaration
19207 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19209 # Transform the output of nm in a C name address pair
19210 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19212 # This is the shared library runtime path variable.
19213 runpath_var=$runpath_var
19215 # This is the shared library path variable.
19216 shlibpath_var=$shlibpath_var
19218 # Is shlibpath searched before the hard-coded library search path?
19219 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19221 # How to hardcode a shared library path into an executable.
19222 hardcode_action=$hardcode_action_RC
19224 # Whether we should hardcode library paths into libraries.
19225 hardcode_into_libs=$hardcode_into_libs
19227 # Flag to hardcode \$libdir into a binary during linking.
19228 # This must work even if \$libdir does not exist.
19229 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19231 # If ld is used when linking, flag to hardcode \$libdir into
19232 # a binary during linking. This must work even if \$libdir does
19234 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19236 # Whether we need a single -rpath flag with a separated argument.
19237 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19239 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19240 # resulting binary.
19241 hardcode_direct=$hardcode_direct_RC
19243 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19244 # resulting binary.
19245 hardcode_minus_L=$hardcode_minus_L_RC
19247 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19248 # the resulting binary.
19249 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19251 # Set to yes if building a shared library automatically hardcodes DIR into the library
19252 # and all subsequent libraries and executables linked against it.
19253 hardcode_automatic=$hardcode_automatic_RC
19255 # Variables whose values should be saved in libtool wrapper scripts and
19256 # restored at relink time.
19257 variables_saved_for_relink="$variables_saved_for_relink"
19259 # Whether libtool must link a program against all its dependency libraries.
19260 link_all_deplibs=$link_all_deplibs_RC
19262 # Compile-time system search path for libraries
19263 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19265 # Run-time system search path for libraries
19266 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19268 # Fix the shell variable \$srcfile for the compiler.
19269 fix_srcfile_path=$lt_fix_srcfile_path
19271 # Set to yes if exported symbols are required.
19272 always_export_symbols=$always_export_symbols_RC
19274 # The commands to list exported symbols.
19275 export_symbols_cmds=$lt_export_symbols_cmds_RC
19277 # The commands to extract the exported symbol list from a shared archive.
19278 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19280 # Symbols that should not be listed in the preloaded symbols.
19281 exclude_expsyms=$lt_exclude_expsyms_RC
19283 # Symbols that must always be exported.
19284 include_expsyms=$lt_include_expsyms_RC
19286 # ### END LIBTOOL TAG CONFIG: $tagname
19292 # If there is no Makefile yet, we rely on a make rule to execute
19293 # `config.status --recheck' to rerun these tests and create the
19294 # libtool script then.
19295 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19296 if test -f "$ltmain_in"; then
19297 test -f Makefile && make "$ltmain"
19303 ac_cpp='$CPP $CPPFLAGS'
19304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19313 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19314 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19315 { (exit 1); exit 1; }; }
19319 # Append the new tag name to the list of available tags.
19320 if test -n "$tagname" ; then
19321 available_tags="$available_tags $tagname"
19327 # Now substitute the updated list of available tags.
19328 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19329 mv "${ofile}T" "$ofile"
19333 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19334 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19335 { (exit 1); exit 1; }; }
19341 # This can be used to rebuild libtool when needed
19342 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19344 # Always use our own libtool.
19345 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19347 # Prevent multiple expansion
19368 # Find a good install program. We prefer a C program (faster),
19369 # so one script is as good as another. But avoid the broken or
19370 # incompatible versions:
19371 # SysV /etc/install, /usr/sbin/install
19372 # SunOS /usr/etc/install
19373 # IRIX /sbin/install
19375 # AmigaOS /C/install, which installs bootblocks on floppy discs
19376 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
19377 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
19378 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
19379 # OS/2's system install, which has a completely different semantic
19380 # ./install, which can be erroneously created by make from ./install.sh.
19381 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
19382 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
19383 if test -z "$INSTALL"; then
19384 if test "${ac_cv_path_install+set}" = set; then
19385 echo $ECHO_N "(cached) $ECHO_C" >&6
19387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19388 for as_dir in $PATH
19391 test -z "$as_dir" && as_dir=.
19392 # Account for people who put trailing slashes in PATH elements.
19394 ./ | .// | /cC/* | \
19395 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
19396 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
19399 # OSF1 and SCO ODT 3.0 have their own names for install.
19400 # Don't use installbsd from OSF since it installs stuff as root
19402 for ac_prog in ginstall scoinst install; do
19403 for ac_exec_ext in '' $ac_executable_extensions; do
19404 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
19405 if test $ac_prog = install &&
19406 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19407 # AIX install. It has an incompatible calling convention.
19409 elif test $ac_prog = install &&
19410 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19411 # program-specific install script used by HP pwplus--don't use.
19414 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
19427 if test "${ac_cv_path_install+set}" = set; then
19428 INSTALL=$ac_cv_path_install
19430 # As a last resort, use the slow shell script. Don't cache a
19431 # value for INSTALL within a source directory, because that will
19432 # break other packages using the cache if that directory is
19433 # removed, or if the value is a relative name.
19434 INSTALL=$ac_install_sh
19437 { echo "$as_me:$LINENO: result: $INSTALL" >&5
19438 echo "${ECHO_T}$INSTALL" >&6; }
19440 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
19441 # It thinks the first close brace ends the variable substitution.
19442 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
19444 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
19446 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
19449 # Checks for libraries
19452 LDFLAGS="$LDFLAGS -pthread"
19457 { echo "$as_me:$LINENO: checking for main in -lpthread" >&5
19458 echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6; }
19459 if test "${ac_cv_lib_pthread_main+set}" = set; then
19460 echo $ECHO_N "(cached) $ECHO_C" >&6
19462 ac_check_lib_save_LIBS=$LIBS
19463 LIBS="-lpthread $LIBS"
19464 cat >conftest.$ac_ext <<_ACEOF
19467 cat confdefs.h >>conftest.$ac_ext
19468 cat >>conftest.$ac_ext <<_ACEOF
19469 /* end confdefs.h. */
19480 rm -f conftest.$ac_objext conftest$ac_exeext
19481 if { (ac_try="$ac_link"
19482 case "(($ac_try" in
19483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19484 *) ac_try_echo=$ac_try;;
19486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19487 (eval "$ac_link") 2>conftest.er1
19489 grep -v '^ *+' conftest.er1 >conftest.err
19491 cat conftest.err >&5
19492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19493 (exit $ac_status); } && {
19494 test -z "$ac_c_werror_flag" ||
19495 test ! -s conftest.err
19496 } && test -s conftest$ac_exeext &&
19497 $as_test_x conftest$ac_exeext; then
19498 ac_cv_lib_pthread_main=yes
19500 echo "$as_me: failed program was:" >&5
19501 sed 's/^/| /' conftest.$ac_ext >&5
19503 ac_cv_lib_pthread_main=no
19506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19507 conftest$ac_exeext conftest.$ac_ext
19508 LIBS=$ac_check_lib_save_LIBS
19510 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
19511 echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6; }
19512 if test $ac_cv_lib_pthread_main = yes; then
19513 cat >>confdefs.h <<_ACEOF
19514 #define HAVE_LIBPTHREAD 1
19517 LIBS="-lpthread $LIBS"
19524 # Checks for header files
19525 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19526 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19527 if test "${ac_cv_header_stdc+set}" = set; then
19528 echo $ECHO_N "(cached) $ECHO_C" >&6
19530 cat >conftest.$ac_ext <<_ACEOF
19533 cat confdefs.h >>conftest.$ac_ext
19534 cat >>conftest.$ac_ext <<_ACEOF
19535 /* end confdefs.h. */
19536 #include <stdlib.h>
19537 #include <stdarg.h>
19538 #include <string.h>
19549 rm -f conftest.$ac_objext
19550 if { (ac_try="$ac_compile"
19551 case "(($ac_try" in
19552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19553 *) ac_try_echo=$ac_try;;
19555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19556 (eval "$ac_compile") 2>conftest.er1
19558 grep -v '^ *+' conftest.er1 >conftest.err
19560 cat conftest.err >&5
19561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562 (exit $ac_status); } && {
19563 test -z "$ac_c_werror_flag" ||
19564 test ! -s conftest.err
19565 } && test -s conftest.$ac_objext; then
19566 ac_cv_header_stdc=yes
19568 echo "$as_me: failed program was:" >&5
19569 sed 's/^/| /' conftest.$ac_ext >&5
19571 ac_cv_header_stdc=no
19574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19576 if test $ac_cv_header_stdc = yes; then
19577 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19578 cat >conftest.$ac_ext <<_ACEOF
19581 cat confdefs.h >>conftest.$ac_ext
19582 cat >>conftest.$ac_ext <<_ACEOF
19583 /* end confdefs.h. */
19584 #include <string.h>
19587 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19588 $EGREP "memchr" >/dev/null 2>&1; then
19591 ac_cv_header_stdc=no
19597 if test $ac_cv_header_stdc = yes; then
19598 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19599 cat >conftest.$ac_ext <<_ACEOF
19602 cat confdefs.h >>conftest.$ac_ext
19603 cat >>conftest.$ac_ext <<_ACEOF
19604 /* end confdefs.h. */
19605 #include <stdlib.h>
19608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19609 $EGREP "free" >/dev/null 2>&1; then
19612 ac_cv_header_stdc=no
19618 if test $ac_cv_header_stdc = yes; then
19619 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19620 if test "$cross_compiling" = yes; then
19623 cat >conftest.$ac_ext <<_ACEOF
19626 cat confdefs.h >>conftest.$ac_ext
19627 cat >>conftest.$ac_ext <<_ACEOF
19628 /* end confdefs.h. */
19630 #include <stdlib.h>
19631 #if ((' ' & 0x0FF) == 0x020)
19632 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19633 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19635 # define ISLOWER(c) \
19636 (('a' <= (c) && (c) <= 'i') \
19637 || ('j' <= (c) && (c) <= 'r') \
19638 || ('s' <= (c) && (c) <= 'z'))
19639 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19642 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19647 for (i = 0; i < 256; i++)
19648 if (XOR (islower (i), ISLOWER (i))
19649 || toupper (i) != TOUPPER (i))
19654 rm -f conftest$ac_exeext
19655 if { (ac_try="$ac_link"
19656 case "(($ac_try" in
19657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19658 *) ac_try_echo=$ac_try;;
19660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19661 (eval "$ac_link") 2>&5
19663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19664 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19665 { (case "(($ac_try" in
19666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19667 *) ac_try_echo=$ac_try;;
19669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19670 (eval "$ac_try") 2>&5
19672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673 (exit $ac_status); }; }; then
19676 echo "$as_me: program exited with status $ac_status" >&5
19677 echo "$as_me: failed program was:" >&5
19678 sed 's/^/| /' conftest.$ac_ext >&5
19680 ( exit $ac_status )
19681 ac_cv_header_stdc=no
19683 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19689 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19690 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19691 if test $ac_cv_header_stdc = yes; then
19693 cat >>confdefs.h <<\_ACEOF
19694 #define STDC_HEADERS 1
19700 for ac_header in stdlib.h
19702 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19703 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19704 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19705 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19706 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19707 echo $ECHO_N "(cached) $ECHO_C" >&6
19709 ac_res=`eval echo '${'$as_ac_Header'}'`
19710 { echo "$as_me:$LINENO: result: $ac_res" >&5
19711 echo "${ECHO_T}$ac_res" >&6; }
19713 # Is the header compilable?
19714 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19715 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19716 cat >conftest.$ac_ext <<_ACEOF
19719 cat confdefs.h >>conftest.$ac_ext
19720 cat >>conftest.$ac_ext <<_ACEOF
19721 /* end confdefs.h. */
19722 $ac_includes_default
19723 #include <$ac_header>
19725 rm -f conftest.$ac_objext
19726 if { (ac_try="$ac_compile"
19727 case "(($ac_try" in
19728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19729 *) ac_try_echo=$ac_try;;
19731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19732 (eval "$ac_compile") 2>conftest.er1
19734 grep -v '^ *+' conftest.er1 >conftest.err
19736 cat conftest.err >&5
19737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19738 (exit $ac_status); } && {
19739 test -z "$ac_c_werror_flag" ||
19740 test ! -s conftest.err
19741 } && test -s conftest.$ac_objext; then
19742 ac_header_compiler=yes
19744 echo "$as_me: failed program was:" >&5
19745 sed 's/^/| /' conftest.$ac_ext >&5
19747 ac_header_compiler=no
19750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19751 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19752 echo "${ECHO_T}$ac_header_compiler" >&6; }
19754 # Is the header present?
19755 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19756 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19757 cat >conftest.$ac_ext <<_ACEOF
19760 cat confdefs.h >>conftest.$ac_ext
19761 cat >>conftest.$ac_ext <<_ACEOF
19762 /* end confdefs.h. */
19763 #include <$ac_header>
19765 if { (ac_try="$ac_cpp conftest.$ac_ext"
19766 case "(($ac_try" in
19767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19768 *) ac_try_echo=$ac_try;;
19770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19771 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19773 grep -v '^ *+' conftest.er1 >conftest.err
19775 cat conftest.err >&5
19776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19777 (exit $ac_status); } >/dev/null && {
19778 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19779 test ! -s conftest.err
19781 ac_header_preproc=yes
19783 echo "$as_me: failed program was:" >&5
19784 sed 's/^/| /' conftest.$ac_ext >&5
19786 ac_header_preproc=no
19789 rm -f conftest.err conftest.$ac_ext
19790 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19791 echo "${ECHO_T}$ac_header_preproc" >&6; }
19793 # So? What about this header?
19794 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19796 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19797 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19798 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19799 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19800 ac_header_preproc=yes
19803 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19804 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19805 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19806 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19807 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19808 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19809 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19810 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19811 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19812 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19813 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19814 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19818 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19821 echo $ECHO_N "(cached) $ECHO_C" >&6
19823 eval "$as_ac_Header=\$ac_header_preproc"
19825 ac_res=`eval echo '${'$as_ac_Header'}'`
19826 { echo "$as_me:$LINENO: result: $ac_res" >&5
19827 echo "${ECHO_T}$ac_res" >&6; }
19830 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19831 cat >>confdefs.h <<_ACEOF
19832 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19840 for ac_header in pthread.h
19842 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19844 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19845 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19847 echo $ECHO_N "(cached) $ECHO_C" >&6
19849 ac_res=`eval echo '${'$as_ac_Header'}'`
19850 { echo "$as_me:$LINENO: result: $ac_res" >&5
19851 echo "${ECHO_T}$ac_res" >&6; }
19853 # Is the header compilable?
19854 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19855 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19856 cat >conftest.$ac_ext <<_ACEOF
19859 cat confdefs.h >>conftest.$ac_ext
19860 cat >>conftest.$ac_ext <<_ACEOF
19861 /* end confdefs.h. */
19862 $ac_includes_default
19863 #include <$ac_header>
19865 rm -f conftest.$ac_objext
19866 if { (ac_try="$ac_compile"
19867 case "(($ac_try" in
19868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19869 *) ac_try_echo=$ac_try;;
19871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19872 (eval "$ac_compile") 2>conftest.er1
19874 grep -v '^ *+' conftest.er1 >conftest.err
19876 cat conftest.err >&5
19877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878 (exit $ac_status); } && {
19879 test -z "$ac_c_werror_flag" ||
19880 test ! -s conftest.err
19881 } && test -s conftest.$ac_objext; then
19882 ac_header_compiler=yes
19884 echo "$as_me: failed program was:" >&5
19885 sed 's/^/| /' conftest.$ac_ext >&5
19887 ac_header_compiler=no
19890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19891 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19892 echo "${ECHO_T}$ac_header_compiler" >&6; }
19894 # Is the header present?
19895 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19896 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19897 cat >conftest.$ac_ext <<_ACEOF
19900 cat confdefs.h >>conftest.$ac_ext
19901 cat >>conftest.$ac_ext <<_ACEOF
19902 /* end confdefs.h. */
19903 #include <$ac_header>
19905 if { (ac_try="$ac_cpp conftest.$ac_ext"
19906 case "(($ac_try" in
19907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19908 *) ac_try_echo=$ac_try;;
19910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19911 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19913 grep -v '^ *+' conftest.er1 >conftest.err
19915 cat conftest.err >&5
19916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19917 (exit $ac_status); } >/dev/null && {
19918 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19919 test ! -s conftest.err
19921 ac_header_preproc=yes
19923 echo "$as_me: failed program was:" >&5
19924 sed 's/^/| /' conftest.$ac_ext >&5
19926 ac_header_preproc=no
19929 rm -f conftest.err conftest.$ac_ext
19930 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19931 echo "${ECHO_T}$ac_header_preproc" >&6; }
19933 # So? What about this header?
19934 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19936 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19937 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19938 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19939 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19940 ac_header_preproc=yes
19943 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19944 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19945 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19946 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19947 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19948 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19949 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19950 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19951 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19952 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19953 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19954 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19958 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19960 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19961 echo $ECHO_N "(cached) $ECHO_C" >&6
19963 eval "$as_ac_Header=\$ac_header_preproc"
19965 ac_res=`eval echo '${'$as_ac_Header'}'`
19966 { echo "$as_me:$LINENO: result: $ac_res" >&5
19967 echo "${ECHO_T}$ac_res" >&6; }
19970 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19971 cat >>confdefs.h <<_ACEOF
19972 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19980 # Checks for typedefs, structures, and compiler characteristics.
19981 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19982 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
19983 if test "${ac_cv_c_const+set}" = set; then
19984 echo $ECHO_N "(cached) $ECHO_C" >&6
19986 cat >conftest.$ac_ext <<_ACEOF
19989 cat confdefs.h >>conftest.$ac_ext
19990 cat >>conftest.$ac_ext <<_ACEOF
19991 /* end confdefs.h. */
19996 /* FIXME: Include the comments suggested by Paul. */
19997 #ifndef __cplusplus
19998 /* Ultrix mips cc rejects this. */
19999 typedef int charset[2];
20001 /* SunOS 4.1.1 cc rejects this. */
20002 char const *const *pcpcc;
20004 /* NEC SVR4.0.2 mips cc rejects this. */
20005 struct point {int x, y;};
20006 static struct point const zero = {0,0};
20007 /* AIX XL C 1.02.0.0 rejects this.
20008 It does not let you subtract one const X* pointer from another in
20009 an arm of an if-expression whose if-part is not a constant
20011 const char *g = "string";
20012 pcpcc = &g + (g ? g-g : 0);
20013 /* HPUX 7.0 cc rejects these. */
20015 ppc = (char**) pcpcc;
20016 pcpcc = (char const *const *) ppc;
20017 { /* SCO 3.2v4 cc rejects this. */
20019 char const *s = 0 ? (char *) 0 : (char const *) 0;
20024 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20025 int x[] = {25, 17};
20026 const int *foo = &x[0];
20029 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20030 typedef const int *iptr;
20034 { /* AIX XL C 1.02.0.0 rejects this saying
20035 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20036 struct s { int j; const int *ap[3]; };
20037 struct s *b; b->j = 5;
20039 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20040 const int foo = 10;
20041 if (!foo) return 0;
20043 return !cs[0] && !zero.x;
20050 rm -f conftest.$ac_objext
20051 if { (ac_try="$ac_compile"
20052 case "(($ac_try" in
20053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20054 *) ac_try_echo=$ac_try;;
20056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20057 (eval "$ac_compile") 2>conftest.er1
20059 grep -v '^ *+' conftest.er1 >conftest.err
20061 cat conftest.err >&5
20062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20063 (exit $ac_status); } && {
20064 test -z "$ac_c_werror_flag" ||
20065 test ! -s conftest.err
20066 } && test -s conftest.$ac_objext; then
20069 echo "$as_me: failed program was:" >&5
20070 sed 's/^/| /' conftest.$ac_ext >&5
20075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20077 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20078 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20079 if test $ac_cv_c_const = no; then
20081 cat >>confdefs.h <<\_ACEOF
20088 # Checks for library functions.
20090 for ac_func in vprintf
20092 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20093 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20094 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20095 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20096 echo $ECHO_N "(cached) $ECHO_C" >&6
20098 cat >conftest.$ac_ext <<_ACEOF
20101 cat confdefs.h >>conftest.$ac_ext
20102 cat >>conftest.$ac_ext <<_ACEOF
20103 /* end confdefs.h. */
20104 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20105 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20106 #define $ac_func innocuous_$ac_func
20108 /* System header to define __stub macros and hopefully few prototypes,
20109 which can conflict with char $ac_func (); below.
20110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20111 <limits.h> exists even on freestanding compilers. */
20114 # include <limits.h>
20116 # include <assert.h>
20121 /* Override any GCC internal prototype to avoid an error.
20122 Use char because int might match the return type of a GCC
20123 builtin and then its argument prototype would still apply. */
20128 /* The GNU C library defines this for functions which it implements
20129 to always fail with ENOSYS. Some functions are actually named
20130 something starting with __ and the normal name is an alias. */
20131 #if defined __stub_$ac_func || defined __stub___$ac_func
20138 return $ac_func ();
20143 rm -f conftest.$ac_objext conftest$ac_exeext
20144 if { (ac_try="$ac_link"
20145 case "(($ac_try" in
20146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20147 *) ac_try_echo=$ac_try;;
20149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20150 (eval "$ac_link") 2>conftest.er1
20152 grep -v '^ *+' conftest.er1 >conftest.err
20154 cat conftest.err >&5
20155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156 (exit $ac_status); } && {
20157 test -z "$ac_c_werror_flag" ||
20158 test ! -s conftest.err
20159 } && test -s conftest$ac_exeext &&
20160 $as_test_x conftest$ac_exeext; then
20161 eval "$as_ac_var=yes"
20163 echo "$as_me: failed program was:" >&5
20164 sed 's/^/| /' conftest.$ac_ext >&5
20166 eval "$as_ac_var=no"
20169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20170 conftest$ac_exeext conftest.$ac_ext
20172 ac_res=`eval echo '${'$as_ac_var'}'`
20173 { echo "$as_me:$LINENO: result: $ac_res" >&5
20174 echo "${ECHO_T}$ac_res" >&6; }
20175 if test `eval echo '${'$as_ac_var'}'` = yes; then
20176 cat >>confdefs.h <<_ACEOF
20177 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20180 { echo "$as_me:$LINENO: checking for _doprnt" >&5
20181 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
20182 if test "${ac_cv_func__doprnt+set}" = set; then
20183 echo $ECHO_N "(cached) $ECHO_C" >&6
20185 cat >conftest.$ac_ext <<_ACEOF
20188 cat confdefs.h >>conftest.$ac_ext
20189 cat >>conftest.$ac_ext <<_ACEOF
20190 /* end confdefs.h. */
20191 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
20192 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20193 #define _doprnt innocuous__doprnt
20195 /* System header to define __stub macros and hopefully few prototypes,
20196 which can conflict with char _doprnt (); below.
20197 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20198 <limits.h> exists even on freestanding compilers. */
20201 # include <limits.h>
20203 # include <assert.h>
20208 /* Override any GCC internal prototype to avoid an error.
20209 Use char because int might match the return type of a GCC
20210 builtin and then its argument prototype would still apply. */
20215 /* The GNU C library defines this for functions which it implements
20216 to always fail with ENOSYS. Some functions are actually named
20217 something starting with __ and the normal name is an alias. */
20218 #if defined __stub__doprnt || defined __stub____doprnt
20230 rm -f conftest.$ac_objext conftest$ac_exeext
20231 if { (ac_try="$ac_link"
20232 case "(($ac_try" in
20233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20234 *) ac_try_echo=$ac_try;;
20236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20237 (eval "$ac_link") 2>conftest.er1
20239 grep -v '^ *+' conftest.er1 >conftest.err
20241 cat conftest.err >&5
20242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20243 (exit $ac_status); } && {
20244 test -z "$ac_c_werror_flag" ||
20245 test ! -s conftest.err
20246 } && test -s conftest$ac_exeext &&
20247 $as_test_x conftest$ac_exeext; then
20248 ac_cv_func__doprnt=yes
20250 echo "$as_me: failed program was:" >&5
20251 sed 's/^/| /' conftest.$ac_ext >&5
20253 ac_cv_func__doprnt=no
20256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20257 conftest$ac_exeext conftest.$ac_ext
20259 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
20260 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
20261 if test $ac_cv_func__doprnt = yes; then
20263 cat >>confdefs.h <<\_ACEOF
20264 #define HAVE_DOPRNT 1
20274 for ac_func in atexit
20276 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20277 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20278 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20279 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20280 echo $ECHO_N "(cached) $ECHO_C" >&6
20282 cat >conftest.$ac_ext <<_ACEOF
20285 cat confdefs.h >>conftest.$ac_ext
20286 cat >>conftest.$ac_ext <<_ACEOF
20287 /* end confdefs.h. */
20288 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20289 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20290 #define $ac_func innocuous_$ac_func
20292 /* System header to define __stub macros and hopefully few prototypes,
20293 which can conflict with char $ac_func (); below.
20294 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20295 <limits.h> exists even on freestanding compilers. */
20298 # include <limits.h>
20300 # include <assert.h>
20305 /* Override any GCC internal prototype to avoid an error.
20306 Use char because int might match the return type of a GCC
20307 builtin and then its argument prototype would still apply. */
20312 /* The GNU C library defines this for functions which it implements
20313 to always fail with ENOSYS. Some functions are actually named
20314 something starting with __ and the normal name is an alias. */
20315 #if defined __stub_$ac_func || defined __stub___$ac_func
20322 return $ac_func ();
20327 rm -f conftest.$ac_objext conftest$ac_exeext
20328 if { (ac_try="$ac_link"
20329 case "(($ac_try" in
20330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20331 *) ac_try_echo=$ac_try;;
20333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20334 (eval "$ac_link") 2>conftest.er1
20336 grep -v '^ *+' conftest.er1 >conftest.err
20338 cat conftest.err >&5
20339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20340 (exit $ac_status); } && {
20341 test -z "$ac_c_werror_flag" ||
20342 test ! -s conftest.err
20343 } && test -s conftest$ac_exeext &&
20344 $as_test_x conftest$ac_exeext; then
20345 eval "$as_ac_var=yes"
20347 echo "$as_me: failed program was:" >&5
20348 sed 's/^/| /' conftest.$ac_ext >&5
20350 eval "$as_ac_var=no"
20353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20354 conftest$ac_exeext conftest.$ac_ext
20356 ac_res=`eval echo '${'$as_ac_var'}'`
20357 { echo "$as_me:$LINENO: result: $ac_res" >&5
20358 echo "${ECHO_T}$ac_res" >&6; }
20359 if test `eval echo '${'$as_ac_var'}'` = yes; then
20360 cat >>confdefs.h <<_ACEOF
20361 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20368 ac_config_files="$ac_config_files Makefile src/Makefile tests/Makefile tests/diag/Makefile tests/fail/Makefile tests/ok/Makefile tests/ok/ok-hash/Makefile tests/ok/ok-numeric/Makefile tests/ok/ok/Makefile tests/pass/Makefile tests/plan/Makefile tests/plan/no-tests/Makefile tests/plan/no_plan/Makefile tests/plan/not-enough-tests/Makefile tests/plan/sane/Makefile tests/plan/skip_all/Makefile tests/plan/too-many-plans/Makefile tests/plan/too-many-tests/Makefile tests/skip/Makefile tests/todo/Makefile"
20370 cat >confcache <<\_ACEOF
20371 # This file is a shell script that caches the results of configure
20372 # tests run on this system so they can be shared between configure
20373 # scripts and configure runs, see configure's option --config-cache.
20374 # It is not useful on other systems. If it contains results you don't
20375 # want to keep, you may remove or edit it.
20377 # config.status only pays attention to the cache file if you give it
20378 # the --recheck option to rerun configure.
20380 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20381 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20382 # following values.
20386 # The following way of writing the cache mishandles newlines in values,
20387 # but we know of no workaround that is simple, portable, and efficient.
20388 # So, we kill variables containing newlines.
20389 # Ultrix sh set writes to stderr and can't be redirected directly,
20390 # and sets the high bit in the cache file unless we assign to the vars.
20392 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20393 eval ac_val=\$$ac_var
20397 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20398 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20401 _ | IFS | as_nl) ;; #(
20402 *) $as_unset $ac_var ;;
20408 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20409 *${as_nl}ac_space=\ *)
20410 # `set' does not quote correctly, so add quotes (double-quote
20411 # substitution turns \\\\ into \\, and sed turns \\ into \).
20414 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20417 # `set' quotes correctly as required by POSIX, so do not add quotes.
20418 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20427 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20429 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20431 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20432 if test -w "$cache_file"; then
20433 test "x$cache_file" != "x/dev/null" &&
20434 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20435 echo "$as_me: updating cache $cache_file" >&6;}
20436 cat confcache >$cache_file
20438 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20439 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20444 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20445 # Let make expand exec_prefix.
20446 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20448 # Transform confdefs.h into DEFS.
20449 # Protect against shell expansion while executing Makefile rules.
20450 # Protect against Makefile macro expansion.
20452 # If the first sed substitution is executed (which looks for macros that
20453 # take arguments), then branch to the quote section. Otherwise,
20454 # look for a macro that doesn't take arguments.
20458 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
20460 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
20464 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
20477 DEFS=`sed -n "$ac_script" confdefs.h`
20482 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20483 # 1. Remove the extension, and $U if already installed.
20484 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20485 ac_i=`echo "$ac_i" | sed "$ac_script"`
20486 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20487 # will be set to the directory where LIBOBJS objects are built.
20488 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20489 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20491 LIBOBJS=$ac_libobjs
20493 LTLIBOBJS=$ac_ltlibobjs
20496 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20497 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20498 Usually this means the macro was only invoked conditionally." >&5
20499 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20500 Usually this means the macro was only invoked conditionally." >&2;}
20501 { (exit 1); exit 1; }; }
20503 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20504 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20505 Usually this means the macro was only invoked conditionally." >&5
20506 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20507 Usually this means the macro was only invoked conditionally." >&2;}
20508 { (exit 1); exit 1; }; }
20510 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20511 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20512 Usually this means the macro was only invoked conditionally." >&5
20513 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20514 Usually this means the macro was only invoked conditionally." >&2;}
20515 { (exit 1); exit 1; }; }
20518 : ${CONFIG_STATUS=./config.status}
20519 ac_clean_files_save=$ac_clean_files
20520 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20521 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20522 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20523 cat >$CONFIG_STATUS <<_ACEOF
20525 # Generated by $as_me.
20526 # Run this file to recreate the current configuration.
20527 # Compiler output produced by configure, useful for debugging
20528 # configure, is in config.log if it exists.
20531 ac_cs_recheck=false
20533 SHELL=\${CONFIG_SHELL-$SHELL}
20536 cat >>$CONFIG_STATUS <<\_ACEOF
20537 ## --------------------- ##
20538 ## M4sh Initialization. ##
20539 ## --------------------- ##
20541 # Be more Bourne compatible
20542 DUALCASE=1; export DUALCASE # for MKS sh
20543 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20546 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20547 # is contrary to our usage. Disable this feature.
20548 alias -g '${1+"$@"}'='"$@"'
20549 setopt NO_GLOB_SUBST
20551 case `(set -o) 2>/dev/null` in
20552 *posix*) set -o posix ;;
20561 # Avoid depending upon Character Ranges.
20562 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20563 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20564 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20565 as_cr_digits='0123456789'
20566 as_cr_alnum=$as_cr_Letters$as_cr_digits
20568 # The user is always right.
20569 if test "${PATH_SEPARATOR+set}" != set; then
20570 echo "#! /bin/sh" >conf$$.sh
20571 echo "exit 0" >>conf$$.sh
20573 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20581 # Support unset when possible.
20582 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20590 # We need space, tab and new line, in precisely that order. Quoting is
20591 # there to prevent editors from complaining about space-tab.
20592 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20593 # splitting by setting IFS to empty value.)
20598 # Find who we are. Look in the path if we contain no directory separator.
20600 *[\\/]* ) as_myself=$0 ;;
20601 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20602 for as_dir in $PATH
20605 test -z "$as_dir" && as_dir=.
20606 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20612 # We did not find ourselves, most probably we were run as `sh COMMAND'
20613 # in which case we are not to be found in the path.
20614 if test "x$as_myself" = x; then
20617 if test ! -f "$as_myself"; then
20618 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20619 { (exit 1); exit 1; }
20622 # Work around bugs in pre-3.0 UWIN ksh.
20623 for as_var in ENV MAIL MAILPATH
20624 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20632 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20633 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20634 LC_TELEPHONE LC_TIME
20636 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20637 eval $as_var=C; export $as_var
20639 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20643 # Required to use basename.
20644 if expr a : '\(a\)' >/dev/null 2>&1 &&
20645 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20651 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20652 as_basename=basename
20658 # Name of the executable.
20659 as_me=`$as_basename -- "$0" ||
20660 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20661 X"$0" : 'X\(//\)$' \| \
20662 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20664 sed '/^.*\/\([^/][^/]*\)\/*$/{
20683 as_lineno_1=$LINENO
20684 as_lineno_2=$LINENO
20685 test "x$as_lineno_1" != "x$as_lineno_2" &&
20686 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20688 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20689 # uniformly replaced by the line number. The first 'sed' inserts a
20690 # line-number line after each line using $LINENO; the second 'sed'
20691 # does the real work. The second script uses 'N' to pair each
20692 # line-number line with the line containing $LINENO, and appends
20693 # trailing '-' during substitution so that $LINENO is not a special
20694 # case at line end.
20695 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20696 # scripts with optimization help from Paolo Bonzini. Blame Lee
20697 # E. McMahon (1931-1989) for sed's syntax. :-)
20709 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20712 ' >$as_me.lineno &&
20713 chmod +x "$as_me.lineno" ||
20714 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20715 { (exit 1); exit 1; }; }
20717 # Don't try to exec as it changes $[0], causing all sort of problems
20718 # (the dirname of $[0] is not the place where we might find the
20719 # original and so on. Autoconf is especially sensitive to this).
20720 . "./$as_me.lineno"
20721 # Exit status is that of the last command.
20726 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20732 ECHO_C= ECHO_N= ECHO_T=
20733 case `echo -n x` in
20735 case `echo 'x\c'` in
20736 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20743 if expr a : '\(a\)' >/dev/null 2>&1 &&
20744 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20750 rm -f conf$$ conf$$.exe conf$$.file
20751 if test -d conf$$.dir; then
20752 rm -f conf$$.dir/conf$$.file
20758 if ln -s conf$$.file conf$$ 2>/dev/null; then
20760 # ... but there are two gotchas:
20761 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20762 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20763 # In both cases, we have to default to `cp -p'.
20764 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20766 elif ln conf$$.file conf$$ 2>/dev/null; then
20771 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20772 rmdir conf$$.dir 2>/dev/null
20774 if mkdir -p . 2>/dev/null; then
20777 test -d ./-p && rmdir ./-p
20781 if test -x / >/dev/null 2>&1; then
20782 as_test_x='test -x'
20784 if ls -dL / >/dev/null 2>&1; then
20791 if test -d "$1"; then
20797 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20798 ???[sx]*):;;*)false;;esac;fi
20802 as_executable_p=$as_test_x
20804 # Sed expression to map a string onto a valid CPP name.
20805 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20807 # Sed expression to map a string onto a valid variable name.
20808 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20813 # Save the log message, to keep $[0] and so on meaningful, and to
20814 # report actual input values of CONFIG_FILES etc. instead of their
20815 # values after options handling.
20817 This file was extended by tap $as_me 1.01, which was
20818 generated by GNU Autoconf 2.61. Invocation command line was
20820 CONFIG_FILES = $CONFIG_FILES
20821 CONFIG_HEADERS = $CONFIG_HEADERS
20822 CONFIG_LINKS = $CONFIG_LINKS
20823 CONFIG_COMMANDS = $CONFIG_COMMANDS
20826 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20831 cat >>$CONFIG_STATUS <<_ACEOF
20832 # Files that config.status was made for.
20833 config_files="$ac_config_files"
20834 config_commands="$ac_config_commands"
20838 cat >>$CONFIG_STATUS <<\_ACEOF
20840 \`$as_me' instantiates files from templates according to the
20841 current configuration.
20843 Usage: $0 [OPTIONS] [FILE]...
20845 -h, --help print this help, then exit
20846 -V, --version print version number and configuration settings, then exit
20847 -q, --quiet do not print progress messages
20848 -d, --debug don't remove temporary files
20849 --recheck update $as_me by reconfiguring in the same conditions
20850 --file=FILE[:TEMPLATE]
20851 instantiate the configuration file FILE
20853 Configuration files:
20856 Configuration commands:
20859 Report bugs to <bug-autoconf@gnu.org>."
20862 cat >>$CONFIG_STATUS <<_ACEOF
20864 tap config.status 1.01
20865 configured by $0, generated by GNU Autoconf 2.61,
20866 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20868 Copyright (C) 2006 Free Software Foundation, Inc.
20869 This config.status script is free software; the Free Software Foundation
20870 gives unlimited permission to copy, distribute and modify it."
20878 cat >>$CONFIG_STATUS <<\_ACEOF
20879 # If no file are specified by the user, then we need to provide default
20880 # value. By we need to know if files were specified by the user.
20886 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20887 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20898 # Handling of the options.
20899 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20901 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20902 echo "$ac_cs_version"; exit ;;
20903 --debug | --debu | --deb | --de | --d | -d )
20905 --file | --fil | --fi | --f )
20907 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20908 ac_need_defaults=false;;
20909 --he | --h | --help | --hel | -h )
20910 echo "$ac_cs_usage"; exit ;;
20911 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20912 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20915 # This is an error.
20916 -*) { echo "$as_me: error: unrecognized option: $1
20917 Try \`$0 --help' for more information." >&2
20918 { (exit 1); exit 1; }; } ;;
20920 *) ac_config_targets="$ac_config_targets $1"
20921 ac_need_defaults=false ;;
20927 ac_configure_extra_args=
20929 if $ac_cs_silent; then
20931 ac_configure_extra_args="$ac_configure_extra_args --silent"
20935 cat >>$CONFIG_STATUS <<_ACEOF
20936 if \$ac_cs_recheck; then
20937 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20938 CONFIG_SHELL=$SHELL
20939 export CONFIG_SHELL
20940 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20944 cat >>$CONFIG_STATUS <<\_ACEOF
20948 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20949 ## Running $as_me. ##
20955 cat >>$CONFIG_STATUS <<_ACEOF
20959 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20963 cat >>$CONFIG_STATUS <<\_ACEOF
20965 # Handling of arguments.
20966 for ac_config_target in $ac_config_targets
20968 case $ac_config_target in
20969 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20970 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20971 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20972 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
20973 "tests/diag/Makefile") CONFIG_FILES="$CONFIG_FILES tests/diag/Makefile" ;;
20974 "tests/fail/Makefile") CONFIG_FILES="$CONFIG_FILES tests/fail/Makefile" ;;
20975 "tests/ok/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ok/Makefile" ;;
20976 "tests/ok/ok-hash/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ok/ok-hash/Makefile" ;;
20977 "tests/ok/ok-numeric/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ok/ok-numeric/Makefile" ;;
20978 "tests/ok/ok/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ok/ok/Makefile" ;;
20979 "tests/pass/Makefile") CONFIG_FILES="$CONFIG_FILES tests/pass/Makefile" ;;
20980 "tests/plan/Makefile") CONFIG_FILES="$CONFIG_FILES tests/plan/Makefile" ;;
20981 "tests/plan/no-tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/plan/no-tests/Makefile" ;;
20982 "tests/plan/no_plan/Makefile") CONFIG_FILES="$CONFIG_FILES tests/plan/no_plan/Makefile" ;;
20983 "tests/plan/not-enough-tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/plan/not-enough-tests/Makefile" ;;
20984 "tests/plan/sane/Makefile") CONFIG_FILES="$CONFIG_FILES tests/plan/sane/Makefile" ;;
20985 "tests/plan/skip_all/Makefile") CONFIG_FILES="$CONFIG_FILES tests/plan/skip_all/Makefile" ;;
20986 "tests/plan/too-many-plans/Makefile") CONFIG_FILES="$CONFIG_FILES tests/plan/too-many-plans/Makefile" ;;
20987 "tests/plan/too-many-tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/plan/too-many-tests/Makefile" ;;
20988 "tests/skip/Makefile") CONFIG_FILES="$CONFIG_FILES tests/skip/Makefile" ;;
20989 "tests/todo/Makefile") CONFIG_FILES="$CONFIG_FILES tests/todo/Makefile" ;;
20991 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20992 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20993 { (exit 1); exit 1; }; };;
20998 # If the user did not use the arguments to specify the items to instantiate,
20999 # then the envvar interface is used. Set only those that are not.
21000 # We use the long form for the default assignment because of an extremely
21001 # bizarre bug on SunOS 4.1.3.
21002 if $ac_need_defaults; then
21003 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21004 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21007 # Have a temporary directory for convenience. Make it in the build tree
21008 # simply because there is no reason against having it here, and in addition,
21009 # creating and moving files from /tmp can sometimes cause problems.
21010 # Hook for its removal unless debugging.
21011 # Note that there is a small window in which the directory will not be cleaned:
21012 # after its creation but before its name has been assigned to `$tmp'.
21016 trap 'exit_status=$?
21017 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21019 trap '{ (exit 1); exit 1; }' 1 2 13 15
21021 # Create a (secure) tmp directory for tmp files.
21024 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21025 test -n "$tmp" && test -d "$tmp"
21028 tmp=./conf$$-$RANDOM
21029 (umask 077 && mkdir "$tmp")
21032 echo "$me: cannot create a temporary directory in ." >&2
21033 { (exit 1); exit 1; }
21037 # Set up the sed scripts for CONFIG_FILES section.
21040 # No need to generate the scripts if there are no CONFIG_FILES.
21041 # This happens for instance when ./config.status config.h
21042 if test -n "$CONFIG_FILES"; then
21049 for ac_last_try in false false false false false :; do
21050 cat >conf$$subs.sed <<_ACEOF
21051 SHELL!$SHELL$ac_delim
21052 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21053 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21054 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21055 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21056 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21057 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21058 exec_prefix!$exec_prefix$ac_delim
21059 prefix!$prefix$ac_delim
21060 program_transform_name!$program_transform_name$ac_delim
21061 bindir!$bindir$ac_delim
21062 sbindir!$sbindir$ac_delim
21063 libexecdir!$libexecdir$ac_delim
21064 datarootdir!$datarootdir$ac_delim
21065 datadir!$datadir$ac_delim
21066 sysconfdir!$sysconfdir$ac_delim
21067 sharedstatedir!$sharedstatedir$ac_delim
21068 localstatedir!$localstatedir$ac_delim
21069 includedir!$includedir$ac_delim
21070 oldincludedir!$oldincludedir$ac_delim
21071 docdir!$docdir$ac_delim
21072 infodir!$infodir$ac_delim
21073 htmldir!$htmldir$ac_delim
21074 dvidir!$dvidir$ac_delim
21075 pdfdir!$pdfdir$ac_delim
21076 psdir!$psdir$ac_delim
21077 libdir!$libdir$ac_delim
21078 localedir!$localedir$ac_delim
21079 mandir!$mandir$ac_delim
21080 DEFS!$DEFS$ac_delim
21081 ECHO_C!$ECHO_C$ac_delim
21082 ECHO_N!$ECHO_N$ac_delim
21083 ECHO_T!$ECHO_T$ac_delim
21084 LIBS!$LIBS$ac_delim
21085 build_alias!$build_alias$ac_delim
21086 host_alias!$host_alias$ac_delim
21087 target_alias!$target_alias$ac_delim
21088 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21089 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21090 INSTALL_DATA!$INSTALL_DATA$ac_delim
21091 am__isrc!$am__isrc$ac_delim
21092 CYGPATH_W!$CYGPATH_W$ac_delim
21093 PACKAGE!$PACKAGE$ac_delim
21094 VERSION!$VERSION$ac_delim
21095 ACLOCAL!$ACLOCAL$ac_delim
21096 AUTOCONF!$AUTOCONF$ac_delim
21097 AUTOMAKE!$AUTOMAKE$ac_delim
21098 AUTOHEADER!$AUTOHEADER$ac_delim
21099 MAKEINFO!$MAKEINFO$ac_delim
21100 install_sh!$install_sh$ac_delim
21101 STRIP!$STRIP$ac_delim
21102 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21103 mkdir_p!$mkdir_p$ac_delim
21105 SET_MAKE!$SET_MAKE$ac_delim
21106 am__leading_dot!$am__leading_dot$ac_delim
21107 AMTAR!$AMTAR$ac_delim
21108 am__tar!$am__tar$ac_delim
21109 am__untar!$am__untar$ac_delim
21111 CFLAGS!$CFLAGS$ac_delim
21112 LDFLAGS!$LDFLAGS$ac_delim
21113 CPPFLAGS!$CPPFLAGS$ac_delim
21114 ac_ct_CC!$ac_ct_CC$ac_delim
21115 EXEEXT!$EXEEXT$ac_delim
21116 OBJEXT!$OBJEXT$ac_delim
21117 DEPDIR!$DEPDIR$ac_delim
21118 am__include!$am__include$ac_delim
21119 am__quote!$am__quote$ac_delim
21120 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21121 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21122 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21123 CCDEPMODE!$CCDEPMODE$ac_delim
21124 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21125 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21126 build!$build$ac_delim
21127 build_cpu!$build_cpu$ac_delim
21128 build_vendor!$build_vendor$ac_delim
21129 build_os!$build_os$ac_delim
21130 host!$host$ac_delim
21131 host_cpu!$host_cpu$ac_delim
21132 host_vendor!$host_vendor$ac_delim
21133 host_os!$host_os$ac_delim
21135 GREP!$GREP$ac_delim
21136 EGREP!$EGREP$ac_delim
21137 LN_S!$LN_S$ac_delim
21138 ECHO!$ECHO$ac_delim
21140 RANLIB!$RANLIB$ac_delim
21143 CXXFLAGS!$CXXFLAGS$ac_delim
21144 ac_ct_CXX!$ac_ct_CXX$ac_delim
21145 CXXDEPMODE!$CXXDEPMODE$ac_delim
21146 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21147 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21150 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21152 elif $ac_last_try; then
21153 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21154 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21155 { (exit 1); exit 1; }; }
21157 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21161 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21162 if test -n "$ac_eof"; then
21163 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21164 ac_eof=`expr $ac_eof + 1`
21167 cat >>$CONFIG_STATUS <<_ACEOF
21168 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21169 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21172 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21173 s/^/s,@/; s/!/@,|#_!!_#|/
21176 s/'"$ac_delim"'$/,g/; t
21178 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21179 ' >>$CONFIG_STATUS <conf$$subs.sed
21180 rm -f conf$$subs.sed
21181 cat >>$CONFIG_STATUS <<_ACEOF
21187 for ac_last_try in false false false false false :; do
21188 cat >conf$$subs.sed <<_ACEOF
21189 CXXCPP!$CXXCPP$ac_delim
21191 FFLAGS!$FFLAGS$ac_delim
21192 ac_ct_F77!$ac_ct_F77$ac_delim
21193 LIBTOOL!$LIBTOOL$ac_delim
21194 LIBOBJS!$LIBOBJS$ac_delim
21195 LTLIBOBJS!$LTLIBOBJS$ac_delim
21198 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 7; then
21200 elif $ac_last_try; then
21201 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21202 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21203 { (exit 1); exit 1; }; }
21205 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21209 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21210 if test -n "$ac_eof"; then
21211 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21212 ac_eof=`expr $ac_eof + 1`
21215 cat >>$CONFIG_STATUS <<_ACEOF
21216 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21217 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21220 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21221 s/^/s,@/; s/!/@,|#_!!_#|/
21224 s/'"$ac_delim"'$/,g/; t
21226 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21227 ' >>$CONFIG_STATUS <conf$$subs.sed
21228 rm -f conf$$subs.sed
21229 cat >>$CONFIG_STATUS <<_ACEOF
21236 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21237 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21238 # trailing colons and then remove the whole line if VPATH becomes empty
21239 # (actually we leave an empty line to preserve line numbers).
21240 if test "x$srcdir" = x.; then
21241 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21242 s/:*\$(srcdir):*/:/
21243 s/:*\${srcdir}:*/:/
21245 s/^\([^=]*=[ ]*\):*/\1/
21251 cat >>$CONFIG_STATUS <<\_ACEOF
21252 fi # test -n "$CONFIG_FILES"
21255 for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
21258 :[FHLC]) ac_mode=$ac_tag; continue;;
21260 case $ac_mode$ac_tag in
21262 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21263 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21264 { (exit 1); exit 1; }; };;
21265 :[FH]-) ac_tag=-:-;;
21266 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21283 -) ac_f="$tmp/stdin";;
21284 *) # Look for the file first in the build tree, then in the source tree
21285 # (if the path is not absolute). The absolute path cannot be DOS-style,
21286 # because $ac_f cannot contain `:'.
21290 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21292 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21293 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21294 { (exit 1); exit 1; }; };;
21296 ac_file_inputs="$ac_file_inputs $ac_f"
21299 # Let's still pretend it is `configure' which instantiates (i.e., don't
21300 # use $as_me), people would be surprised to read:
21301 # /* config.h. Generated by config.status. */
21302 configure_input="Generated from "`IFS=:
21303 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21304 if test x"$ac_file" != x-; then
21305 configure_input="$ac_file. $configure_input"
21306 { echo "$as_me:$LINENO: creating $ac_file" >&5
21307 echo "$as_me: creating $ac_file" >&6;}
21311 *:-:* | *:-) cat >"$tmp/stdin";;
21316 ac_dir=`$as_dirname -- "$ac_file" ||
21317 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21318 X"$ac_file" : 'X\(//\)[^/]' \| \
21319 X"$ac_file" : 'X\(//\)$' \| \
21320 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21326 /^X\(\/\/\)[^/].*/{
21341 -*) as_dir=./$as_dir;;
21343 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21347 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21348 *) as_qdir=$as_dir;;
21350 as_dirs="'$as_qdir' $as_dirs"
21351 as_dir=`$as_dirname -- "$as_dir" ||
21352 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21353 X"$as_dir" : 'X\(//\)[^/]' \| \
21354 X"$as_dir" : 'X\(//\)$' \| \
21355 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21361 /^X\(\/\/\)[^/].*/{
21374 test -d "$as_dir" && break
21376 test -z "$as_dirs" || eval "mkdir $as_dirs"
21377 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21378 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21379 { (exit 1); exit 1; }; }; }
21383 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21385 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21386 # A ".." for each directory in $ac_dir_suffix.
21387 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21388 case $ac_top_builddir_sub in
21389 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21390 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21393 ac_abs_top_builddir=$ac_pwd
21394 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21395 # for backward compatibility:
21396 ac_top_builddir=$ac_top_build_prefix
21399 .) # We are building in place.
21401 ac_top_srcdir=$ac_top_builddir_sub
21402 ac_abs_top_srcdir=$ac_pwd ;;
21403 [\\/]* | ?:[\\/]* ) # Absolute name.
21404 ac_srcdir=$srcdir$ac_dir_suffix;
21405 ac_top_srcdir=$srcdir
21406 ac_abs_top_srcdir=$srcdir ;;
21407 *) # Relative name.
21408 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21409 ac_top_srcdir=$ac_top_build_prefix$srcdir
21410 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21412 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21422 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21423 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21425 ac_MKDIR_P=$MKDIR_P
21427 [\\/$]* | ?:[\\/]* ) ;;
21428 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21432 cat >>$CONFIG_STATUS <<\_ACEOF
21433 # If the template does not know about datarootdir, expand it.
21434 # FIXME: This hack should be removed a few years after 2.60.
21435 ac_datarootdir_hack=; ac_datarootdir_seen=
21437 case `sed -n '/datarootdir/ {
21446 ' $ac_file_inputs` in
21447 *datarootdir*) ac_datarootdir_seen=yes;;
21448 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21449 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21450 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21452 cat >>$CONFIG_STATUS <<_ACEOF
21453 ac_datarootdir_hack='
21454 s&@datadir@&$datadir&g
21455 s&@docdir@&$docdir&g
21456 s&@infodir@&$infodir&g
21457 s&@localedir@&$localedir&g
21458 s&@mandir@&$mandir&g
21459 s&\\\${datarootdir}&$datarootdir&g' ;;
21463 # Neutralize VPATH when `$srcdir' = `.'.
21464 # Shell code in configure.ac might set extrasub.
21465 # FIXME: do we really want to maintain this feature?
21466 cat >>$CONFIG_STATUS <<_ACEOF
21470 cat >>$CONFIG_STATUS <<\_ACEOF
21472 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21473 s&@configure_input@&$configure_input&;t t
21474 s&@top_builddir@&$ac_top_builddir_sub&;t t
21475 s&@srcdir@&$ac_srcdir&;t t
21476 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21477 s&@top_srcdir@&$ac_top_srcdir&;t t
21478 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21479 s&@builddir@&$ac_builddir&;t t
21480 s&@abs_builddir@&$ac_abs_builddir&;t t
21481 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21482 s&@INSTALL@&$ac_INSTALL&;t t
21483 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21484 $ac_datarootdir_hack
21485 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21487 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21488 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21489 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21490 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21491 which seems to be undefined. Please make sure it is defined." >&5
21492 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21493 which seems to be undefined. Please make sure it is defined." >&2;}
21497 -) cat "$tmp/out"; rm -f "$tmp/out";;
21498 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21503 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21504 echo "$as_me: executing $ac_file commands" >&6;}
21509 case $ac_file$ac_mode in
21510 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21511 # Strip MF so we end up with the name of the file.
21512 mf=`echo "$mf" | sed -e 's/:.*$//'`
21513 # Check whether this is an Automake generated Makefile or not.
21514 # We used to match only the files named `Makefile.in', but
21515 # some people rename them; so instead we look at the file content.
21516 # Grep'ing the first line is not enough: some people post-process
21517 # each Makefile.in and add a new line on top of each file to say so.
21518 # Grep'ing the whole file is not good either: AIX grep has a line
21519 # limit of 2048, but all sed's we know have understand at least 4000.
21520 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
21521 dirpart=`$as_dirname -- "$mf" ||
21522 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21523 X"$mf" : 'X\(//\)[^/]' \| \
21524 X"$mf" : 'X\(//\)$' \| \
21525 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21527 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21531 /^X\(\/\/\)[^/].*/{
21547 # Extract the definition of DEPDIR, am__include, and am__quote
21548 # from the Makefile without running `make'.
21549 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21550 test -z "$DEPDIR" && continue
21551 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21552 test -z "am__include" && continue
21553 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21554 # When using ansi2knr, U may be empty or an underscore; expand it
21555 U=`sed -n 's/^U = //p' < "$mf"`
21556 # Find all dependency output files, they are included files with
21557 # $(DEPDIR) in their names. We invoke sed twice because it is the
21558 # simplest approach to changing $(DEPDIR) to its actual value in the
21560 for file in `sed -n "
21561 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21562 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21563 # Make sure the directory exists.
21564 test -f "$dirpart/$file" && continue
21565 fdir=`$as_dirname -- "$file" ||
21566 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21567 X"$file" : 'X\(//\)[^/]' \| \
21568 X"$file" : 'X\(//\)$' \| \
21569 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21571 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21575 /^X\(\/\/\)[^/].*/{
21588 { as_dir=$dirpart/$fdir
21590 -*) as_dir=./$as_dir;;
21592 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21596 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21597 *) as_qdir=$as_dir;;
21599 as_dirs="'$as_qdir' $as_dirs"
21600 as_dir=`$as_dirname -- "$as_dir" ||
21601 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21602 X"$as_dir" : 'X\(//\)[^/]' \| \
21603 X"$as_dir" : 'X\(//\)$' \| \
21604 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21606 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21610 /^X\(\/\/\)[^/].*/{
21623 test -d "$as_dir" && break
21625 test -z "$as_dirs" || eval "mkdir $as_dirs"
21626 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21627 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21628 { (exit 1); exit 1; }; }; }
21629 # echo "creating $dirpart/$file"
21630 echo '# dummy' > "$dirpart/$file"
21639 { (exit 0); exit 0; }
21641 chmod +x $CONFIG_STATUS
21642 ac_clean_files=$ac_clean_files_save
21645 # configure is writing to config.log, and then calls config.status.
21646 # config.status does its own redirection, appending to config.log.
21647 # Unfortunately, on DOS this fails, as config.log is still kept open
21648 # by configure, so config.status won't be able to write to it; its
21649 # output is simply discarded. So we exec the FD to /dev/null,
21650 # effectively closing config.log, so it can be properly (re)opened and
21651 # appended to by config.status. When coming back to configure, we
21652 # need to make the FD available again.
21653 if test "$no_create" != yes; then
21655 ac_config_status_args=
21656 test "$silent" = yes &&
21657 ac_config_status_args="$ac_config_status_args --quiet"
21659 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21661 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21662 # would make configure fail if this is the last instruction.
21663 $ac_cs_success || { (exit 1); exit 1; }