2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
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.
733 ac_unique_file="mp.w"
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}'
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 this package 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/PACKAGE]
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
1465 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1466 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1467 --enable-shared[=PKGS] build shared libraries [default=yes]
1468 --enable-static[=PKGS] build static libraries [default=yes]
1469 --enable-fast-install[=PKGS]
1470 optimize for fast installation [default=yes]
1471 --disable-dependency-tracking speeds up one-time build
1472 --enable-dependency-tracking do not reject slow dependency extractors
1473 --disable-libtool-lock avoid locking (might break parallel builds)
1476 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1477 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1478 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1479 --with-pic try to use only PIC/non-PIC objects [default=use
1481 --with-tags[=TAGS] include additional configurations [automatic]
1483 Some influential environment variables:
1484 CC C compiler command
1485 CFLAGS C compiler flags
1486 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1487 nonstandard directory <lib dir>
1488 LIBS libraries to pass to the linker, e.g. -l<library>
1489 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1490 you have headers in a nonstandard directory <include dir>
1492 CXX C++ compiler command
1493 CXXFLAGS C++ compiler flags
1494 CXXCPP C++ preprocessor
1495 F77 Fortran 77 compiler command
1496 FFLAGS Fortran 77 compiler flags
1498 Use these variables to override the choices made by `configure' or to help
1499 it to find libraries and programs with nonstandard names/locations.
1505 if test "$ac_init_help" = "recursive"; then
1506 # If there are subdirs, report their specific --help.
1507 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1508 test -d "$ac_dir" || continue
1512 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1515 # A ".." for each directory in $ac_dir_suffix.
1516 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1517 case $ac_top_builddir_sub in
1518 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1519 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1522 ac_abs_top_builddir=$ac_pwd
1523 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1524 # for backward compatibility:
1525 ac_top_builddir=$ac_top_build_prefix
1528 .) # We are building in place.
1530 ac_top_srcdir=$ac_top_builddir_sub
1531 ac_abs_top_srcdir=$ac_pwd ;;
1532 [\\/]* | ?:[\\/]* ) # Absolute name.
1533 ac_srcdir=$srcdir$ac_dir_suffix;
1534 ac_top_srcdir=$srcdir
1535 ac_abs_top_srcdir=$srcdir ;;
1537 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1538 ac_top_srcdir=$ac_top_build_prefix$srcdir
1539 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1541 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1543 cd "$ac_dir" || { ac_status=$?; continue; }
1544 # Check for guested configure.
1545 if test -f "$ac_srcdir/configure.gnu"; then
1547 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1548 elif test -f "$ac_srcdir/configure"; then
1550 $SHELL "$ac_srcdir/configure" --help=recursive
1552 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1554 cd "$ac_pwd" || { ac_status=$?; break; }
1558 test -n "$ac_init_help" && exit $ac_status
1559 if $ac_init_version; then
1562 generated by GNU Autoconf 2.61
1564 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1565 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1566 This configure script is free software; the Free Software Foundation
1567 gives unlimited permission to copy, distribute and modify it.
1571 cat >config.log <<_ACEOF
1572 This file contains any messages produced by compilers while
1573 running configure, to aid debugging if configure makes a mistake.
1575 It was created by $as_me, which was
1576 generated by GNU Autoconf 2.61. Invocation command line was
1588 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1589 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1590 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1591 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1592 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1594 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1595 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1597 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1598 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1599 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1600 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1601 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1602 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1603 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1611 test -z "$as_dir" && as_dir=.
1612 echo "PATH: $as_dir"
1628 # Keep a trace of the command line.
1629 # Strip out --no-create and --no-recursion so they do not pile up.
1630 # Strip out --silent because we don't want to record it for future runs.
1631 # Also quote any args containing shell meta-characters.
1632 # Make two passes to allow for proper duplicate-argument suppression.
1636 ac_must_keep_next=false
1642 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1643 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1644 | -silent | --silent | --silen | --sile | --sil)
1647 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1650 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1652 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1653 if test $ac_must_keep_next = true; then
1654 ac_must_keep_next=false # Got value, back to normal.
1657 *=* | --config-cache | -C | -disable-* | --disable-* \
1658 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1659 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1660 | -with-* | --with-* | -without-* | --without-* | --x)
1661 case "$ac_configure_args0 " in
1662 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1665 -* ) ac_must_keep_next=true ;;
1668 ac_configure_args="$ac_configure_args '$ac_arg'"
1673 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1674 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1676 # When interrupted or exit'd, cleanup temporary files, and complete
1677 # config.log. We remove comments because anyway the quotes in there
1678 # would cause problems or look ugly.
1679 # WARNING: Use '\'' to represent an apostrophe within the trap.
1680 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1681 trap 'exit_status=$?
1682 # Save into config.log some information that might help in debugging.
1687 ## ---------------- ##
1688 ## Cache variables. ##
1689 ## ---------------- ##
1692 # The following way of writing the cache mishandles newlines in values,
1694 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1695 eval ac_val=\$$ac_var
1699 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1700 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1703 _ | IFS | as_nl) ;; #(
1704 *) $as_unset $ac_var ;;
1709 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1710 *${as_nl}ac_space=\ *)
1712 "s/'\''/'\''\\\\'\'''\''/g;
1713 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1716 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1724 ## ----------------- ##
1725 ## Output variables. ##
1726 ## ----------------- ##
1729 for ac_var in $ac_subst_vars
1731 eval ac_val=\$$ac_var
1733 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1735 echo "$ac_var='\''$ac_val'\''"
1739 if test -n "$ac_subst_files"; then
1741 ## ------------------- ##
1742 ## File substitutions. ##
1743 ## ------------------- ##
1746 for ac_var in $ac_subst_files
1748 eval ac_val=\$$ac_var
1750 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1752 echo "$ac_var='\''$ac_val'\''"
1757 if test -s confdefs.h; then
1767 test "$ac_signal" != 0 &&
1768 echo "$as_me: caught signal $ac_signal"
1769 echo "$as_me: exit $exit_status"
1771 rm -f core *.core core.conftest.* &&
1772 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1775 for ac_signal in 1 2 13 15; do
1776 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1780 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1781 rm -f -r conftest* confdefs.h
1783 # Predefined preprocessor variables.
1785 cat >>confdefs.h <<_ACEOF
1786 #define PACKAGE_NAME "$PACKAGE_NAME"
1790 cat >>confdefs.h <<_ACEOF
1791 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1795 cat >>confdefs.h <<_ACEOF
1796 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1800 cat >>confdefs.h <<_ACEOF
1801 #define PACKAGE_STRING "$PACKAGE_STRING"
1805 cat >>confdefs.h <<_ACEOF
1806 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1810 # Let the site file select an alternate cache file if it wants to.
1811 # Prefer explicitly selected file to automatically selected ones.
1812 if test -n "$CONFIG_SITE"; then
1813 set x "$CONFIG_SITE"
1814 elif test "x$prefix" != xNONE; then
1815 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1817 set x "$ac_default_prefix/share/config.site" \
1818 "$ac_default_prefix/etc/config.site"
1823 if test -r "$ac_site_file"; then
1824 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1825 echo "$as_me: loading site script $ac_site_file" >&6;}
1826 sed 's/^/| /' "$ac_site_file" >&5
1831 if test -r "$cache_file"; then
1832 # Some versions of bash will fail to source /dev/null (special
1833 # files actually), so we avoid doing that.
1834 if test -f "$cache_file"; then
1835 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1836 echo "$as_me: loading cache $cache_file" >&6;}
1838 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1839 *) . "./$cache_file";;
1843 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1844 echo "$as_me: creating cache $cache_file" >&6;}
1848 # Check that the precious variables saved in the cache have kept the same
1850 ac_cache_corrupted=false
1851 for ac_var in $ac_precious_vars; do
1852 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1853 eval ac_new_set=\$ac_env_${ac_var}_set
1854 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1855 eval ac_new_val=\$ac_env_${ac_var}_value
1856 case $ac_old_set,$ac_new_set in
1858 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1859 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1860 ac_cache_corrupted=: ;;
1862 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1863 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1864 ac_cache_corrupted=: ;;
1867 if test "x$ac_old_val" != "x$ac_new_val"; then
1868 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1869 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1870 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1871 echo "$as_me: former value: $ac_old_val" >&2;}
1872 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1873 echo "$as_me: current value: $ac_new_val" >&2;}
1874 ac_cache_corrupted=:
1877 # Pass precious variables to config.status.
1878 if test "$ac_new_set" = set; then
1880 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1881 *) ac_arg=$ac_var=$ac_new_val ;;
1883 case " $ac_configure_args " in
1884 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1885 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1889 if $ac_cache_corrupted; then
1890 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1891 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1892 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1893 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1894 { (exit 1); exit 1; }; }
1914 ac_cpp='$CPP $CPPFLAGS'
1915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1920 am__api_version='1.10'
1923 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1924 if test -f "$ac_dir/install-sh"; then
1926 ac_install_sh="$ac_aux_dir/install-sh -c"
1928 elif test -f "$ac_dir/install.sh"; then
1930 ac_install_sh="$ac_aux_dir/install.sh -c"
1932 elif test -f "$ac_dir/shtool"; then
1934 ac_install_sh="$ac_aux_dir/shtool install -c"
1938 if test -z "$ac_aux_dir"; then
1939 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1940 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1941 { (exit 1); exit 1; }; }
1944 # These three variables are undocumented and unsupported,
1945 # and are intended to be withdrawn in a future Autoconf release.
1946 # They can cause serious problems if a builder's source tree is in a directory
1947 # whose full name contains unusual characters.
1948 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1949 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1950 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1953 # Find a good install program. We prefer a C program (faster),
1954 # so one script is as good as another. But avoid the broken or
1955 # incompatible versions:
1956 # SysV /etc/install, /usr/sbin/install
1957 # SunOS /usr/etc/install
1958 # IRIX /sbin/install
1960 # AmigaOS /C/install, which installs bootblocks on floppy discs
1961 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1962 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1963 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1964 # OS/2's system install, which has a completely different semantic
1965 # ./install, which can be erroneously created by make from ./install.sh.
1966 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1967 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1968 if test -z "$INSTALL"; then
1969 if test "${ac_cv_path_install+set}" = set; then
1970 echo $ECHO_N "(cached) $ECHO_C" >&6
1972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1976 test -z "$as_dir" && as_dir=.
1977 # Account for people who put trailing slashes in PATH elements.
1979 ./ | .// | /cC/* | \
1980 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1981 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1984 # OSF1 and SCO ODT 3.0 have their own names for install.
1985 # Don't use installbsd from OSF since it installs stuff as root
1987 for ac_prog in ginstall scoinst install; do
1988 for ac_exec_ext in '' $ac_executable_extensions; do
1989 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1990 if test $ac_prog = install &&
1991 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1992 # AIX install. It has an incompatible calling convention.
1994 elif test $ac_prog = install &&
1995 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1996 # program-specific install script used by HP pwplus--don't use.
1999 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2012 if test "${ac_cv_path_install+set}" = set; then
2013 INSTALL=$ac_cv_path_install
2015 # As a last resort, use the slow shell script. Don't cache a
2016 # value for INSTALL within a source directory, because that will
2017 # break other packages using the cache if that directory is
2018 # removed, or if the value is a relative name.
2019 INSTALL=$ac_install_sh
2022 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2023 echo "${ECHO_T}$INSTALL" >&6; }
2025 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2026 # It thinks the first close brace ends the variable substitution.
2027 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2029 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2031 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2033 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2034 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2037 echo timestamp > conftest.file
2038 # Do `set' in a subshell so we don't clobber the current shell's
2039 # arguments. Must try -L first in case configure is actually a
2040 # symlink; some systems play weird games with the mod time of symlinks
2041 # (eg FreeBSD returns the mod time of the symlink's containing
2044 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2045 if test "$*" = "X"; then
2047 set X `ls -t $srcdir/configure conftest.file`
2050 if test "$*" != "X $srcdir/configure conftest.file" \
2051 && test "$*" != "X conftest.file $srcdir/configure"; then
2053 # If neither matched, then we have a broken ls. This can happen
2054 # if, for instance, CONFIG_SHELL is bash and it inherits a
2055 # broken ls alias from the environment. This has actually
2056 # happened. Such a system could not be considered "sane".
2057 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2058 alias in your environment" >&5
2059 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2060 alias in your environment" >&2;}
2061 { (exit 1); exit 1; }; }
2064 test "$2" = conftest.file
2070 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2071 Check your system clock" >&5
2072 echo "$as_me: error: newly created file is older than distributed files!
2073 Check your system clock" >&2;}
2074 { (exit 1); exit 1; }; }
2076 { echo "$as_me:$LINENO: result: yes" >&5
2077 echo "${ECHO_T}yes" >&6; }
2078 test "$program_prefix" != NONE &&
2079 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2080 # Use a double $ so make ignores it.
2081 test "$program_suffix" != NONE &&
2082 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2083 # Double any \ or $. echo might interpret backslashes.
2084 # By default was `s,x,x', remove it if useless.
2085 cat <<\_ACEOF >conftest.sed
2086 s/[\\$]/&&/g;s/;s,x,x,$//
2088 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2091 # expand $ac_aux_dir to an absolute path
2092 am_aux_dir=`cd $ac_aux_dir && pwd`
2094 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2095 # Use eval to expand $SHELL
2096 if eval "$MISSING --run true"; then
2097 am_missing_run="$MISSING --run "
2100 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2101 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2104 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2105 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2106 if test -z "$MKDIR_P"; then
2107 if test "${ac_cv_path_mkdir+set}" = set; then
2108 echo $ECHO_N "(cached) $ECHO_C" >&6
2110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2111 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2114 test -z "$as_dir" && as_dir=.
2115 for ac_prog in mkdir gmkdir; do
2116 for ac_exec_ext in '' $ac_executable_extensions; do
2117 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2118 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2119 'mkdir (GNU coreutils) '* | \
2120 'mkdir (coreutils) '* | \
2121 'mkdir (fileutils) '4.1*)
2122 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2132 if test "${ac_cv_path_mkdir+set}" = set; then
2133 MKDIR_P="$ac_cv_path_mkdir -p"
2135 # As a last resort, use the slow shell script. Don't cache a
2136 # value for MKDIR_P within a source directory, because that will
2137 # break other packages using the cache if that directory is
2138 # removed, or if the value is a relative name.
2139 test -d ./--version && rmdir ./--version
2140 MKDIR_P="$ac_install_sh -d"
2143 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2144 echo "${ECHO_T}$MKDIR_P" >&6; }
2148 [\\/$]* | ?:[\\/]*) ;;
2149 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2152 for ac_prog in gawk mawk nawk awk
2154 # Extract the first word of "$ac_prog", so it can be a program name with args.
2155 set dummy $ac_prog; ac_word=$2
2156 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2158 if test "${ac_cv_prog_AWK+set}" = set; then
2159 echo $ECHO_N "(cached) $ECHO_C" >&6
2161 if test -n "$AWK"; then
2162 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2168 test -z "$as_dir" && as_dir=.
2169 for ac_exec_ext in '' $ac_executable_extensions; do
2170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2171 ac_cv_prog_AWK="$ac_prog"
2172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2182 if test -n "$AWK"; then
2183 { echo "$as_me:$LINENO: result: $AWK" >&5
2184 echo "${ECHO_T}$AWK" >&6; }
2186 { echo "$as_me:$LINENO: result: no" >&5
2187 echo "${ECHO_T}no" >&6; }
2191 test -n "$AWK" && break
2194 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2195 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2196 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2197 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2198 echo $ECHO_N "(cached) $ECHO_C" >&6
2200 cat >conftest.make <<\_ACEOF
2203 @echo '@@@%%%=$(MAKE)=@@@%%%'
2205 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2206 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2208 eval ac_cv_prog_make_${ac_make}_set=yes;;
2210 eval ac_cv_prog_make_${ac_make}_set=no;;
2214 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2215 { echo "$as_me:$LINENO: result: yes" >&5
2216 echo "${ECHO_T}yes" >&6; }
2219 { echo "$as_me:$LINENO: result: no" >&5
2220 echo "${ECHO_T}no" >&6; }
2221 SET_MAKE="MAKE=${MAKE-make}"
2224 rm -rf .tst 2>/dev/null
2225 mkdir .tst 2>/dev/null
2226 if test -d .tst; then
2231 rmdir .tst 2>/dev/null
2233 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2234 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2235 # is not polluted with repeated "-I."
2236 am__isrc=' -I$(srcdir)'
2237 # test to see if srcdir already configured
2238 if test -f $srcdir/config.status; then
2239 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2240 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2241 { (exit 1); exit 1; }; }
2245 # test whether we have cygpath
2246 if test -z "$CYGPATH_W"; then
2247 if (cygpath --version) >/dev/null 2>/dev/null; then
2248 CYGPATH_W='cygpath -w'
2255 # Define the identity of the package.
2260 cat >>confdefs.h <<_ACEOF
2261 #define PACKAGE "$PACKAGE"
2265 cat >>confdefs.h <<_ACEOF
2266 #define VERSION "$VERSION"
2269 # Some tools Automake needs.
2271 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2274 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2277 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2280 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2283 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2285 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2287 # Installed binaries are usually stripped using `strip' when the user
2288 # run `make install-strip'. However `strip' might not be the right
2289 # tool to use in cross-compilation environments, therefore Automake
2290 # will honor the `STRIP' environment variable to overrule this program.
2291 if test "$cross_compiling" != no; then
2292 if test -n "$ac_tool_prefix"; then
2293 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2294 set dummy ${ac_tool_prefix}strip; ac_word=$2
2295 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2297 if test "${ac_cv_prog_STRIP+set}" = set; then
2298 echo $ECHO_N "(cached) $ECHO_C" >&6
2300 if test -n "$STRIP"; then
2301 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2307 test -z "$as_dir" && as_dir=.
2308 for ac_exec_ext in '' $ac_executable_extensions; do
2309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2310 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2320 STRIP=$ac_cv_prog_STRIP
2321 if test -n "$STRIP"; then
2322 { echo "$as_me:$LINENO: result: $STRIP" >&5
2323 echo "${ECHO_T}$STRIP" >&6; }
2325 { echo "$as_me:$LINENO: result: no" >&5
2326 echo "${ECHO_T}no" >&6; }
2331 if test -z "$ac_cv_prog_STRIP"; then
2333 # Extract the first word of "strip", so it can be a program name with args.
2334 set dummy strip; ac_word=$2
2335 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2337 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2338 echo $ECHO_N "(cached) $ECHO_C" >&6
2340 if test -n "$ac_ct_STRIP"; then
2341 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347 test -z "$as_dir" && as_dir=.
2348 for ac_exec_ext in '' $ac_executable_extensions; do
2349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2350 ac_cv_prog_ac_ct_STRIP="strip"
2351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2360 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2361 if test -n "$ac_ct_STRIP"; then
2362 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2363 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2365 { echo "$as_me:$LINENO: result: no" >&5
2366 echo "${ECHO_T}no" >&6; }
2369 if test "x$ac_ct_STRIP" = x; then
2372 case $cross_compiling:$ac_tool_warned in
2374 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2375 whose name does not start with the host triplet. If you think this
2376 configuration is useful to you, please write to autoconf@gnu.org." >&5
2377 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2378 whose name does not start with the host triplet. If you think this
2379 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2380 ac_tool_warned=yes ;;
2385 STRIP="$ac_cv_prog_STRIP"
2389 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2391 # We need awk for the "check" target. The system "awk" is bad on
2393 # Always define AMTAR for backward compatibility.
2395 AMTAR=${AMTAR-"${am_missing_run}tar"}
2397 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2403 ac_config_headers="$ac_config_headers config.h"
2405 # Check whether --enable-shared was given.
2406 if test "${enable_shared+set}" = set; then
2407 enableval=$enable_shared; p=${PACKAGE-default}
2409 yes) enable_shared=yes ;;
2410 no) enable_shared=no ;;
2413 # Look at the argument we got. We use all the common list separators.
2414 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2415 for pkg in $enableval; do
2417 if test "X$pkg" = "X$p"; then
2429 # Check whether --enable-static was given.
2430 if test "${enable_static+set}" = set; then
2431 enableval=$enable_static; p=${PACKAGE-default}
2433 yes) enable_static=yes ;;
2434 no) enable_static=no ;;
2437 # Look at the argument we got. We use all the common list separators.
2438 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2439 for pkg in $enableval; do
2441 if test "X$pkg" = "X$p"; then
2453 # Check whether --enable-fast-install was given.
2454 if test "${enable_fast_install+set}" = set; then
2455 enableval=$enable_fast_install; p=${PACKAGE-default}
2457 yes) enable_fast_install=yes ;;
2458 no) enable_fast_install=no ;;
2460 enable_fast_install=no
2461 # Look at the argument we got. We use all the common list separators.
2462 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2463 for pkg in $enableval; do
2465 if test "X$pkg" = "X$p"; then
2466 enable_fast_install=yes
2473 enable_fast_install=yes
2477 # Make sure we can run config.sub.
2478 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2479 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2480 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2481 { (exit 1); exit 1; }; }
2483 { echo "$as_me:$LINENO: checking build system type" >&5
2484 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2485 if test "${ac_cv_build+set}" = set; then
2486 echo $ECHO_N "(cached) $ECHO_C" >&6
2488 ac_build_alias=$build_alias
2489 test "x$ac_build_alias" = x &&
2490 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2491 test "x$ac_build_alias" = x &&
2492 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2493 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2494 { (exit 1); exit 1; }; }
2495 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2496 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2497 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2498 { (exit 1); exit 1; }; }
2501 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2502 echo "${ECHO_T}$ac_cv_build" >&6; }
2503 case $ac_cv_build in
2505 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2506 echo "$as_me: error: invalid value of canonical build" >&2;}
2507 { (exit 1); exit 1; }; };;
2510 ac_save_IFS=$IFS; IFS='-'
2516 # Remember, the first character of IFS is used to create $*,
2517 # except with old shells:
2520 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2523 { echo "$as_me:$LINENO: checking host system type" >&5
2524 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2525 if test "${ac_cv_host+set}" = set; then
2526 echo $ECHO_N "(cached) $ECHO_C" >&6
2528 if test "x$host_alias" = x; then
2529 ac_cv_host=$ac_cv_build
2531 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2532 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2533 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2534 { (exit 1); exit 1; }; }
2538 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2539 echo "${ECHO_T}$ac_cv_host" >&6; }
2542 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2543 echo "$as_me: error: invalid value of canonical host" >&2;}
2544 { (exit 1); exit 1; }; };;
2547 ac_save_IFS=$IFS; IFS='-'
2553 # Remember, the first character of IFS is used to create $*,
2554 # except with old shells:
2557 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2560 DEPDIR="${am__leading_dot}deps"
2562 ac_config_commands="$ac_config_commands depfiles"
2565 am_make=${MAKE-make}
2566 cat > confinc << 'END'
2571 # If we don't find an include directive, just comment out the code.
2572 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2573 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2577 # First try GNU make style include.
2578 echo "include confinc" > confmf
2579 # We grep out `Entering directory' and `Leaving directory'
2580 # messages which can occur if `w' ends up in MAKEFLAGS.
2581 # In particular we don't look at `^make:' because GNU make might
2582 # be invoked under some other name (usually "gmake"), in which
2583 # case it prints its new name instead of `make'.
2584 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2589 # Now try BSD make style include.
2590 if test "$am__include" = "#"; then
2591 echo '.include "confinc"' > confmf
2592 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2593 am__include=.include
2600 { echo "$as_me:$LINENO: result: $_am_result" >&5
2601 echo "${ECHO_T}$_am_result" >&6; }
2602 rm -f confinc confmf
2604 # Check whether --enable-dependency-tracking was given.
2605 if test "${enable_dependency_tracking+set}" = set; then
2606 enableval=$enable_dependency_tracking;
2609 if test "x$enable_dependency_tracking" != xno; then
2610 am_depcomp="$ac_aux_dir/depcomp"
2613 if test "x$enable_dependency_tracking" != xno; then
2623 ac_cpp='$CPP $CPPFLAGS'
2624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2627 if test -n "$ac_tool_prefix"; then
2628 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2629 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2630 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2632 if test "${ac_cv_prog_CC+set}" = set; then
2633 echo $ECHO_N "(cached) $ECHO_C" >&6
2635 if test -n "$CC"; then
2636 ac_cv_prog_CC="$CC" # Let the user override the test.
2638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2642 test -z "$as_dir" && as_dir=.
2643 for ac_exec_ext in '' $ac_executable_extensions; do
2644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2645 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2656 if test -n "$CC"; then
2657 { echo "$as_me:$LINENO: result: $CC" >&5
2658 echo "${ECHO_T}$CC" >&6; }
2660 { echo "$as_me:$LINENO: result: no" >&5
2661 echo "${ECHO_T}no" >&6; }
2666 if test -z "$ac_cv_prog_CC"; then
2668 # Extract the first word of "gcc", so it can be a program name with args.
2669 set dummy gcc; ac_word=$2
2670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2672 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2673 echo $ECHO_N "(cached) $ECHO_C" >&6
2675 if test -n "$ac_ct_CC"; then
2676 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682 test -z "$as_dir" && as_dir=.
2683 for ac_exec_ext in '' $ac_executable_extensions; do
2684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2685 ac_cv_prog_ac_ct_CC="gcc"
2686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2695 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2696 if test -n "$ac_ct_CC"; then
2697 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2698 echo "${ECHO_T}$ac_ct_CC" >&6; }
2700 { echo "$as_me:$LINENO: result: no" >&5
2701 echo "${ECHO_T}no" >&6; }
2704 if test "x$ac_ct_CC" = x; then
2707 case $cross_compiling:$ac_tool_warned in
2709 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2710 whose name does not start with the host triplet. If you think this
2711 configuration is useful to you, please write to autoconf@gnu.org." >&5
2712 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2713 whose name does not start with the host triplet. If you think this
2714 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2715 ac_tool_warned=yes ;;
2723 if test -z "$CC"; then
2724 if test -n "$ac_tool_prefix"; then
2725 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2726 set dummy ${ac_tool_prefix}cc; ac_word=$2
2727 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2729 if test "${ac_cv_prog_CC+set}" = set; then
2730 echo $ECHO_N "(cached) $ECHO_C" >&6
2732 if test -n "$CC"; then
2733 ac_cv_prog_CC="$CC" # Let the user override the test.
2735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2739 test -z "$as_dir" && as_dir=.
2740 for ac_exec_ext in '' $ac_executable_extensions; do
2741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2742 ac_cv_prog_CC="${ac_tool_prefix}cc"
2743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2753 if test -n "$CC"; then
2754 { echo "$as_me:$LINENO: result: $CC" >&5
2755 echo "${ECHO_T}$CC" >&6; }
2757 { echo "$as_me:$LINENO: result: no" >&5
2758 echo "${ECHO_T}no" >&6; }
2764 if test -z "$CC"; then
2765 # Extract the first word of "cc", so it can be a program name with args.
2766 set dummy cc; ac_word=$2
2767 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2769 if test "${ac_cv_prog_CC+set}" = set; then
2770 echo $ECHO_N "(cached) $ECHO_C" >&6
2772 if test -n "$CC"; then
2773 ac_cv_prog_CC="$CC" # Let the user override the test.
2776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2780 test -z "$as_dir" && as_dir=.
2781 for ac_exec_ext in '' $ac_executable_extensions; do
2782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2783 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2784 ac_prog_rejected=yes
2788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2795 if test $ac_prog_rejected = yes; then
2796 # We found a bogon in the path, so make sure we never use it.
2797 set dummy $ac_cv_prog_CC
2799 if test $# != 0; then
2800 # We chose a different compiler from the bogus one.
2801 # However, it has the same basename, so the bogon will be chosen
2802 # first if we set CC to just the basename; use the full file name.
2804 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2810 if test -n "$CC"; then
2811 { echo "$as_me:$LINENO: result: $CC" >&5
2812 echo "${ECHO_T}$CC" >&6; }
2814 { echo "$as_me:$LINENO: result: no" >&5
2815 echo "${ECHO_T}no" >&6; }
2820 if test -z "$CC"; then
2821 if test -n "$ac_tool_prefix"; then
2822 for ac_prog in cl.exe
2824 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2825 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2826 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2828 if test "${ac_cv_prog_CC+set}" = set; then
2829 echo $ECHO_N "(cached) $ECHO_C" >&6
2831 if test -n "$CC"; then
2832 ac_cv_prog_CC="$CC" # Let the user override the test.
2834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838 test -z "$as_dir" && as_dir=.
2839 for ac_exec_ext in '' $ac_executable_extensions; do
2840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2841 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2852 if test -n "$CC"; then
2853 { echo "$as_me:$LINENO: result: $CC" >&5
2854 echo "${ECHO_T}$CC" >&6; }
2856 { echo "$as_me:$LINENO: result: no" >&5
2857 echo "${ECHO_T}no" >&6; }
2861 test -n "$CC" && break
2864 if test -z "$CC"; then
2866 for ac_prog in cl.exe
2868 # Extract the first word of "$ac_prog", so it can be a program name with args.
2869 set dummy $ac_prog; ac_word=$2
2870 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2872 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2873 echo $ECHO_N "(cached) $ECHO_C" >&6
2875 if test -n "$ac_ct_CC"; then
2876 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882 test -z "$as_dir" && as_dir=.
2883 for ac_exec_ext in '' $ac_executable_extensions; do
2884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2885 ac_cv_prog_ac_ct_CC="$ac_prog"
2886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2895 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2896 if test -n "$ac_ct_CC"; then
2897 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2898 echo "${ECHO_T}$ac_ct_CC" >&6; }
2900 { echo "$as_me:$LINENO: result: no" >&5
2901 echo "${ECHO_T}no" >&6; }
2905 test -n "$ac_ct_CC" && break
2908 if test "x$ac_ct_CC" = x; then
2911 case $cross_compiling:$ac_tool_warned in
2913 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2914 whose name does not start with the host triplet. If you think this
2915 configuration is useful to you, please write to autoconf@gnu.org." >&5
2916 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2917 whose name does not start with the host triplet. If you think this
2918 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2919 ac_tool_warned=yes ;;
2928 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2929 See \`config.log' for more details." >&5
2930 echo "$as_me: error: no acceptable C compiler found in \$PATH
2931 See \`config.log' for more details." >&2;}
2932 { (exit 1); exit 1; }; }
2934 # Provide some information about the compiler.
2935 echo "$as_me:$LINENO: checking for C compiler version" >&5
2936 ac_compiler=`set X $ac_compile; echo $2`
2937 { (ac_try="$ac_compiler --version >&5"
2939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940 *) ac_try_echo=$ac_try;;
2942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2943 (eval "$ac_compiler --version >&5") 2>&5
2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); }
2947 { (ac_try="$ac_compiler -v >&5"
2949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950 *) ac_try_echo=$ac_try;;
2952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2953 (eval "$ac_compiler -v >&5") 2>&5
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); }
2957 { (ac_try="$ac_compiler -V >&5"
2959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2960 *) ac_try_echo=$ac_try;;
2962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2963 (eval "$ac_compiler -V >&5") 2>&5
2965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966 (exit $ac_status); }
2968 cat >conftest.$ac_ext <<_ACEOF
2971 cat confdefs.h >>conftest.$ac_ext
2972 cat >>conftest.$ac_ext <<_ACEOF
2973 /* end confdefs.h. */
2983 ac_clean_files_save=$ac_clean_files
2984 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2985 # Try to create an executable without -o first, disregard a.out.
2986 # It will help us diagnose broken compilers, and finding out an intuition
2988 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2989 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2990 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2992 # List of possible output files, starting from the most likely.
2993 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2994 # only as a last resort. b.out is created by i960 compilers.
2995 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2997 # The IRIX 6 linker writes into existing files which may not be
2998 # executable, retaining their permissions. Remove them first so a
2999 # subsequent execution test works.
3001 for ac_file in $ac_files
3004 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3005 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3010 if { (ac_try="$ac_link_default"
3012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3013 *) ac_try_echo=$ac_try;;
3015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3016 (eval "$ac_link_default") 2>&5
3018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019 (exit $ac_status); }; then
3020 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3021 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3022 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3023 # so that the user can short-circuit this test for compilers unknown to
3025 for ac_file in $ac_files ''
3027 test -f "$ac_file" || continue
3029 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3032 # We found the default executable, but exeext='' is most
3036 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3038 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3040 # We set ac_cv_exeext here because the later test for it is not
3041 # safe: cross compilers may not add the suffix if given an `-o'
3042 # argument, so we may need to know it at that point already.
3043 # Even if this section looks crufty: it has the advantage of
3050 test "$ac_cv_exeext" = no && ac_cv_exeext=
3056 { echo "$as_me:$LINENO: result: $ac_file" >&5
3057 echo "${ECHO_T}$ac_file" >&6; }
3058 if test -z "$ac_file"; then
3059 echo "$as_me: failed program was:" >&5
3060 sed 's/^/| /' conftest.$ac_ext >&5
3062 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3063 See \`config.log' for more details." >&5
3064 echo "$as_me: error: C compiler cannot create executables
3065 See \`config.log' for more details." >&2;}
3066 { (exit 77); exit 77; }; }
3069 ac_exeext=$ac_cv_exeext
3071 # Check that the compiler produces executables we can run. If not, either
3072 # the compiler is broken, or we cross compile.
3073 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3074 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3075 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3076 # If not cross compiling, check that we can run a simple program.
3077 if test "$cross_compiling" != yes; then
3078 if { ac_try='./$ac_file'
3079 { (case "(($ac_try" in
3080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3081 *) ac_try_echo=$ac_try;;
3083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3084 (eval "$ac_try") 2>&5
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); }; }; then
3090 if test "$cross_compiling" = maybe; then
3093 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3094 If you meant to cross compile, use \`--host'.
3095 See \`config.log' for more details." >&5
3096 echo "$as_me: error: cannot run C compiled programs.
3097 If you meant to cross compile, use \`--host'.
3098 See \`config.log' for more details." >&2;}
3099 { (exit 1); exit 1; }; }
3103 { echo "$as_me:$LINENO: result: yes" >&5
3104 echo "${ECHO_T}yes" >&6; }
3106 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3107 ac_clean_files=$ac_clean_files_save
3108 # Check that the compiler produces executables we can run. If not, either
3109 # the compiler is broken, or we cross compile.
3110 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3111 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3112 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3113 echo "${ECHO_T}$cross_compiling" >&6; }
3115 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3116 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3117 if { (ac_try="$ac_link"
3119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120 *) ac_try_echo=$ac_try;;
3122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3123 (eval "$ac_link") 2>&5
3125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126 (exit $ac_status); }; then
3127 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3128 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3129 # work properly (i.e., refer to `conftest.exe'), while it won't with
3131 for ac_file in conftest.exe conftest conftest.*; do
3132 test -f "$ac_file" || continue
3134 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3135 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3141 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3142 See \`config.log' for more details." >&5
3143 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3144 See \`config.log' for more details." >&2;}
3145 { (exit 1); exit 1; }; }
3148 rm -f conftest$ac_cv_exeext
3149 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3150 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3152 rm -f conftest.$ac_ext
3153 EXEEXT=$ac_cv_exeext
3155 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3156 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3157 if test "${ac_cv_objext+set}" = set; then
3158 echo $ECHO_N "(cached) $ECHO_C" >&6
3160 cat >conftest.$ac_ext <<_ACEOF
3163 cat confdefs.h >>conftest.$ac_ext
3164 cat >>conftest.$ac_ext <<_ACEOF
3165 /* end confdefs.h. */
3175 rm -f conftest.o conftest.obj
3176 if { (ac_try="$ac_compile"
3178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179 *) ac_try_echo=$ac_try;;
3181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3182 (eval "$ac_compile") 2>&5
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); }; then
3186 for ac_file in conftest.o conftest.obj conftest.*; do
3187 test -f "$ac_file" || continue;
3189 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3190 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3195 echo "$as_me: failed program was:" >&5
3196 sed 's/^/| /' conftest.$ac_ext >&5
3198 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3199 See \`config.log' for more details." >&5
3200 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3201 See \`config.log' for more details." >&2;}
3202 { (exit 1); exit 1; }; }
3205 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3207 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3208 echo "${ECHO_T}$ac_cv_objext" >&6; }
3209 OBJEXT=$ac_cv_objext
3211 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3212 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3213 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3214 echo $ECHO_N "(cached) $ECHO_C" >&6
3216 cat >conftest.$ac_ext <<_ACEOF
3219 cat confdefs.h >>conftest.$ac_ext
3220 cat >>conftest.$ac_ext <<_ACEOF
3221 /* end confdefs.h. */
3234 rm -f conftest.$ac_objext
3235 if { (ac_try="$ac_compile"
3237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238 *) ac_try_echo=$ac_try;;
3240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3241 (eval "$ac_compile") 2>conftest.er1
3243 grep -v '^ *+' conftest.er1 >conftest.err
3245 cat conftest.err >&5
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); } && {
3248 test -z "$ac_c_werror_flag" ||
3249 test ! -s conftest.err
3250 } && test -s conftest.$ac_objext; then
3253 echo "$as_me: failed program was:" >&5
3254 sed 's/^/| /' conftest.$ac_ext >&5
3259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3260 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3263 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3264 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3265 GCC=`test $ac_compiler_gnu = yes && echo yes`
3266 ac_test_CFLAGS=${CFLAGS+set}
3267 ac_save_CFLAGS=$CFLAGS
3268 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3269 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3270 if test "${ac_cv_prog_cc_g+set}" = set; then
3271 echo $ECHO_N "(cached) $ECHO_C" >&6
3273 ac_save_c_werror_flag=$ac_c_werror_flag
3274 ac_c_werror_flag=yes
3277 cat >conftest.$ac_ext <<_ACEOF
3280 cat confdefs.h >>conftest.$ac_ext
3281 cat >>conftest.$ac_ext <<_ACEOF
3282 /* end confdefs.h. */
3292 rm -f conftest.$ac_objext
3293 if { (ac_try="$ac_compile"
3295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3296 *) ac_try_echo=$ac_try;;
3298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3299 (eval "$ac_compile") 2>conftest.er1
3301 grep -v '^ *+' conftest.er1 >conftest.err
3303 cat conftest.err >&5
3304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305 (exit $ac_status); } && {
3306 test -z "$ac_c_werror_flag" ||
3307 test ! -s conftest.err
3308 } && test -s conftest.$ac_objext; then
3311 echo "$as_me: failed program was:" >&5
3312 sed 's/^/| /' conftest.$ac_ext >&5
3315 cat >conftest.$ac_ext <<_ACEOF
3318 cat confdefs.h >>conftest.$ac_ext
3319 cat >>conftest.$ac_ext <<_ACEOF
3320 /* end confdefs.h. */
3330 rm -f conftest.$ac_objext
3331 if { (ac_try="$ac_compile"
3333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334 *) ac_try_echo=$ac_try;;
3336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3337 (eval "$ac_compile") 2>conftest.er1
3339 grep -v '^ *+' conftest.er1 >conftest.err
3341 cat conftest.err >&5
3342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343 (exit $ac_status); } && {
3344 test -z "$ac_c_werror_flag" ||
3345 test ! -s conftest.err
3346 } && test -s conftest.$ac_objext; then
3349 echo "$as_me: failed program was:" >&5
3350 sed 's/^/| /' conftest.$ac_ext >&5
3352 ac_c_werror_flag=$ac_save_c_werror_flag
3354 cat >conftest.$ac_ext <<_ACEOF
3357 cat confdefs.h >>conftest.$ac_ext
3358 cat >>conftest.$ac_ext <<_ACEOF
3359 /* end confdefs.h. */
3369 rm -f conftest.$ac_objext
3370 if { (ac_try="$ac_compile"
3372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3373 *) ac_try_echo=$ac_try;;
3375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3376 (eval "$ac_compile") 2>conftest.er1
3378 grep -v '^ *+' conftest.er1 >conftest.err
3380 cat conftest.err >&5
3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382 (exit $ac_status); } && {
3383 test -z "$ac_c_werror_flag" ||
3384 test ! -s conftest.err
3385 } && test -s conftest.$ac_objext; then
3388 echo "$as_me: failed program was:" >&5
3389 sed 's/^/| /' conftest.$ac_ext >&5
3394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3401 ac_c_werror_flag=$ac_save_c_werror_flag
3403 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3404 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3405 if test "$ac_test_CFLAGS" = set; then
3406 CFLAGS=$ac_save_CFLAGS
3407 elif test $ac_cv_prog_cc_g = yes; then
3408 if test "$GCC" = yes; then
3414 if test "$GCC" = yes; then
3420 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3421 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3422 if test "${ac_cv_prog_cc_c89+set}" = set; then
3423 echo $ECHO_N "(cached) $ECHO_C" >&6
3425 ac_cv_prog_cc_c89=no
3427 cat >conftest.$ac_ext <<_ACEOF
3430 cat confdefs.h >>conftest.$ac_ext
3431 cat >>conftest.$ac_ext <<_ACEOF
3432 /* end confdefs.h. */
3435 #include <sys/types.h>
3436 #include <sys/stat.h>
3437 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3438 struct buf { int x; };
3439 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3440 static char *e (p, i)
3446 static char *f (char * (*g) (char **, int), char **p, ...)
3451 s = g (p, va_arg (v,int));
3456 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3457 function prototypes and stuff, but not '\xHH' hex character constants.
3458 These don't provoke an error unfortunately, instead are silently treated
3459 as 'x'. The following induces an error, until -std is added to get
3460 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3461 array size at least. It's necessary to write '\x00'==0 to get something
3462 that's true only with -std. */
3463 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3465 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3466 inside strings and character constants. */
3468 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3470 int test (int i, double x);
3471 struct s1 {int (*f) (int a);};
3472 struct s2 {int (*f) (double a);};
3473 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3479 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3484 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3485 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3487 CC="$ac_save_CC $ac_arg"
3488 rm -f conftest.$ac_objext
3489 if { (ac_try="$ac_compile"
3491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3492 *) ac_try_echo=$ac_try;;
3494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3495 (eval "$ac_compile") 2>conftest.er1
3497 grep -v '^ *+' conftest.er1 >conftest.err
3499 cat conftest.err >&5
3500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501 (exit $ac_status); } && {
3502 test -z "$ac_c_werror_flag" ||
3503 test ! -s conftest.err
3504 } && test -s conftest.$ac_objext; then
3505 ac_cv_prog_cc_c89=$ac_arg
3507 echo "$as_me: failed program was:" >&5
3508 sed 's/^/| /' conftest.$ac_ext >&5
3513 rm -f core conftest.err conftest.$ac_objext
3514 test "x$ac_cv_prog_cc_c89" != "xno" && break
3516 rm -f conftest.$ac_ext
3521 case "x$ac_cv_prog_cc_c89" in
3523 { echo "$as_me:$LINENO: result: none needed" >&5
3524 echo "${ECHO_T}none needed" >&6; } ;;
3526 { echo "$as_me:$LINENO: result: unsupported" >&5
3527 echo "${ECHO_T}unsupported" >&6; } ;;
3529 CC="$CC $ac_cv_prog_cc_c89"
3530 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3531 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3536 ac_cpp='$CPP $CPPFLAGS'
3537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3541 depcc="$CC" am_compiler_list=
3543 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3544 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3545 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3546 echo $ECHO_N "(cached) $ECHO_C" >&6
3548 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3549 # We make a subdir and do the tests there. Otherwise we can end up
3550 # making bogus files that we don't know about and never remove. For
3551 # instance it was reported that on HP-UX the gcc test will end up
3552 # making a dummy file named `D' -- because `-MD' means `put the output
3555 # Copy depcomp to subdir because otherwise we won't find it if we're
3556 # using a relative directory.
3557 cp "$am_depcomp" conftest.dir
3559 # We will build objects and dependencies in a subdirectory because
3560 # it helps to detect inapplicable dependency modes. For instance
3561 # both Tru64's cc and ICC support -MD to output dependencies as a
3562 # side effect of compilation, but ICC will put the dependencies in
3563 # the current directory while Tru64 will put them in the object
3567 am_cv_CC_dependencies_compiler_type=none
3568 if test "$am_compiler_list" = ""; then
3569 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3571 for depmode in $am_compiler_list; do
3572 # Setup a source with many dependencies, because some compilers
3573 # like to wrap large dependency lists on column 80 (with \), and
3574 # we should not choose a depcomp mode which is confused by this.
3576 # We need to recreate these files for each test, as the compiler may
3577 # overwrite some of them when testing with obscure command lines.
3578 # This happens at least with the AIX C compiler.
3580 for i in 1 2 3 4 5 6; do
3581 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3582 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3583 # Solaris 8's {/usr,}/bin/sh.
3584 touch sub/conftst$i.h
3586 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3590 # after this tag, mechanisms are not by side-effect, so they'll
3591 # only be used when explicitly requested
3592 if test "x$enable_dependency_tracking" = xyes; then
3600 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3601 # mode. It turns out that the SunPro C++ compiler does not properly
3602 # handle `-M -o', and we need to detect this.
3603 if depmode=$depmode \
3604 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3605 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3606 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3607 >/dev/null 2>conftest.err &&
3608 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3609 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3610 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3611 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3612 # icc doesn't choke on unknown options, it will just issue warnings
3613 # or remarks (even with -Werror). So we grep stderr for any message
3614 # that says an option was ignored or not supported.
3615 # When given -MP, icc 7.0 and 7.1 complain thusly:
3616 # icc: Command line warning: ignoring option '-M'; no argument required
3617 # The diagnosis changed in icc 8.0:
3618 # icc: Command line remark: option '-MP' not supported
3619 if (grep 'ignoring option' conftest.err ||
3620 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3621 am_cv_CC_dependencies_compiler_type=$depmode
3630 am_cv_CC_dependencies_compiler_type=none
3634 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3635 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3636 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3639 test "x$enable_dependency_tracking" != xno \
3640 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3642 am__fastdepCC_FALSE='#'
3644 am__fastdepCC_TRUE='#'
3645 am__fastdepCC_FALSE=
3649 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3650 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3651 if test "${lt_cv_path_SED+set}" = set; then
3652 echo $ECHO_N "(cached) $ECHO_C" >&6
3654 # Loop through the user's path and test for sed and gsed.
3655 # Then use that list of sed's as ones to test for truncation.
3656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660 test -z "$as_dir" && as_dir=.
3661 for lt_ac_prog in sed gsed; do
3662 for ac_exec_ext in '' $ac_executable_extensions; do
3663 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3664 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3672 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3673 # along with /bin/sed that truncates output.
3674 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3675 test ! -f $lt_ac_sed && continue
3676 cat /dev/null > conftest.in
3678 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3679 # Check for GNU sed and select it if it is found.
3680 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3681 lt_cv_path_SED=$lt_ac_sed
3685 cat conftest.in conftest.in >conftest.tmp
3686 mv conftest.tmp conftest.in
3687 cp conftest.in conftest.nl
3689 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3690 cmp -s conftest.out conftest.nl || break
3691 # 10000 chars as input seems more than enough
3692 test $lt_ac_count -gt 10 && break
3693 lt_ac_count=`expr $lt_ac_count + 1`
3694 if test $lt_ac_count -gt $lt_ac_max; then
3695 lt_ac_max=$lt_ac_count
3696 lt_cv_path_SED=$lt_ac_sed
3705 { echo "$as_me:$LINENO: result: $SED" >&5
3706 echo "${ECHO_T}$SED" >&6; }
3708 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3709 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3710 if test "${ac_cv_path_GREP+set}" = set; then
3711 echo $ECHO_N "(cached) $ECHO_C" >&6
3713 # Extract the first word of "grep ggrep" to use in msg output
3714 if test -z "$GREP"; then
3715 set dummy grep ggrep; ac_prog_name=$2
3716 if test "${ac_cv_path_GREP+set}" = set; then
3717 echo $ECHO_N "(cached) $ECHO_C" >&6
3719 ac_path_GREP_found=false
3720 # Loop through the user's path and test for each of PROGNAME-LIST
3721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3722 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3725 test -z "$as_dir" && as_dir=.
3726 for ac_prog in grep ggrep; do
3727 for ac_exec_ext in '' $ac_executable_extensions; do
3728 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3729 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3730 # Check for GNU ac_path_GREP and select it if it is found.
3731 # Check for GNU $ac_path_GREP
3732 case `"$ac_path_GREP" --version 2>&1` in
3734 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3737 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3740 cat "conftest.in" "conftest.in" >"conftest.tmp"
3741 mv "conftest.tmp" "conftest.in"
3742 cp "conftest.in" "conftest.nl"
3743 echo 'GREP' >> "conftest.nl"
3744 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3745 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3746 ac_count=`expr $ac_count + 1`
3747 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3748 # Best one so far, save it but keep looking for a better one
3749 ac_cv_path_GREP="$ac_path_GREP"
3750 ac_path_GREP_max=$ac_count
3752 # 10*(2^10) chars as input seems more than enough
3753 test $ac_count -gt 10 && break
3755 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3759 $ac_path_GREP_found && break 3
3769 GREP="$ac_cv_path_GREP"
3770 if test -z "$GREP"; then
3771 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3772 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3773 { (exit 1); exit 1; }; }
3777 ac_cv_path_GREP=$GREP
3782 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3783 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3784 GREP="$ac_cv_path_GREP"
3787 { echo "$as_me:$LINENO: checking for egrep" >&5
3788 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3789 if test "${ac_cv_path_EGREP+set}" = set; then
3790 echo $ECHO_N "(cached) $ECHO_C" >&6
3792 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3793 then ac_cv_path_EGREP="$GREP -E"
3795 # Extract the first word of "egrep" to use in msg output
3796 if test -z "$EGREP"; then
3797 set dummy egrep; ac_prog_name=$2
3798 if test "${ac_cv_path_EGREP+set}" = set; then
3799 echo $ECHO_N "(cached) $ECHO_C" >&6
3801 ac_path_EGREP_found=false
3802 # Loop through the user's path and test for each of PROGNAME-LIST
3803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3804 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3807 test -z "$as_dir" && as_dir=.
3808 for ac_prog in egrep; do
3809 for ac_exec_ext in '' $ac_executable_extensions; do
3810 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3811 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3812 # Check for GNU ac_path_EGREP and select it if it is found.
3813 # Check for GNU $ac_path_EGREP
3814 case `"$ac_path_EGREP" --version 2>&1` in
3816 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3819 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3822 cat "conftest.in" "conftest.in" >"conftest.tmp"
3823 mv "conftest.tmp" "conftest.in"
3824 cp "conftest.in" "conftest.nl"
3825 echo 'EGREP' >> "conftest.nl"
3826 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3827 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3828 ac_count=`expr $ac_count + 1`
3829 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3830 # Best one so far, save it but keep looking for a better one
3831 ac_cv_path_EGREP="$ac_path_EGREP"
3832 ac_path_EGREP_max=$ac_count
3834 # 10*(2^10) chars as input seems more than enough
3835 test $ac_count -gt 10 && break
3837 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3841 $ac_path_EGREP_found && break 3
3851 EGREP="$ac_cv_path_EGREP"
3852 if test -z "$EGREP"; then
3853 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3854 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3855 { (exit 1); exit 1; }; }
3859 ac_cv_path_EGREP=$EGREP
3865 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3866 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3867 EGREP="$ac_cv_path_EGREP"
3871 # Check whether --with-gnu-ld was given.
3872 if test "${with_gnu_ld+set}" = set; then
3873 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3879 if test "$GCC" = yes; then
3880 # Check if gcc -print-prog-name=ld gives a path.
3881 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3882 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3885 # gcc leaves a trailing carriage return which upsets mingw
3886 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3888 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3891 # Accept absolute paths.
3893 re_direlt='/[^/][^/]*/\.\./'
3894 # Canonicalize the pathname of ld
3895 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3896 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3897 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3899 test -z "$LD" && LD="$ac_prog"
3902 # If it fails, then pretend we aren't using GCC.
3906 # If it is relative, then search for the first ld in PATH.
3910 elif test "$with_gnu_ld" = yes; then
3911 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3912 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3914 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3915 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3917 if test "${lt_cv_path_LD+set}" = set; then
3918 echo $ECHO_N "(cached) $ECHO_C" >&6
3920 if test -z "$LD"; then
3921 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3922 for ac_dir in $PATH; do
3924 test -z "$ac_dir" && ac_dir=.
3925 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3926 lt_cv_path_LD="$ac_dir/$ac_prog"
3927 # Check to see if the program is GNU ld. I'd rather use --version,
3928 # but apparently some variants of GNU ld only accept -v.
3929 # Break only if it was the GNU/non-GNU ld that we prefer.
3930 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3931 *GNU* | *'with BFD'*)
3932 test "$with_gnu_ld" != no && break
3935 test "$with_gnu_ld" != yes && break
3942 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3947 if test -n "$LD"; then
3948 { echo "$as_me:$LINENO: result: $LD" >&5
3949 echo "${ECHO_T}$LD" >&6; }
3951 { echo "$as_me:$LINENO: result: no" >&5
3952 echo "${ECHO_T}no" >&6; }
3954 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3955 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3956 { (exit 1); exit 1; }; }
3957 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3958 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3959 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3960 echo $ECHO_N "(cached) $ECHO_C" >&6
3962 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3963 case `$LD -v 2>&1 </dev/null` in
3964 *GNU* | *'with BFD'*)
3965 lt_cv_prog_gnu_ld=yes
3968 lt_cv_prog_gnu_ld=no
3972 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3973 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
3974 with_gnu_ld=$lt_cv_prog_gnu_ld
3977 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3978 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
3979 if test "${lt_cv_ld_reload_flag+set}" = set; then
3980 echo $ECHO_N "(cached) $ECHO_C" >&6
3982 lt_cv_ld_reload_flag='-r'
3984 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3985 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
3986 reload_flag=$lt_cv_ld_reload_flag
3987 case $reload_flag in
3989 *) reload_flag=" $reload_flag" ;;
3991 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3994 if test "$GCC" = yes; then
3995 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3997 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4002 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4003 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4004 if test "${lt_cv_path_NM+set}" = set; then
4005 echo $ECHO_N "(cached) $ECHO_C" >&6
4007 if test -n "$NM"; then
4008 # Let the user override the test.
4011 lt_nm_to_check="${ac_tool_prefix}nm"
4012 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4013 lt_nm_to_check="$lt_nm_to_check nm"
4015 for lt_tmp_nm in $lt_nm_to_check; do
4016 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4017 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4019 test -z "$ac_dir" && ac_dir=.
4020 tmp_nm="$ac_dir/$lt_tmp_nm"
4021 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4022 # Check to see if the nm accepts a BSD-compat flag.
4023 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4024 # nm: unknown option "B" ignored
4025 # Tru64's nm complains that /dev/null is an invalid object file
4026 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4027 */dev/null* | *'Invalid file or object type'*)
4028 lt_cv_path_NM="$tmp_nm -B"
4032 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4034 lt_cv_path_NM="$tmp_nm -p"
4038 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4039 continue # so that we can try to find one that supports BSD flags
4048 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4051 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4052 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4055 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4056 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4058 if test "$LN_S" = "ln -s"; then
4059 { echo "$as_me:$LINENO: result: yes" >&5
4060 echo "${ECHO_T}yes" >&6; }
4062 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4063 echo "${ECHO_T}no, using $LN_S" >&6; }
4066 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4067 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4068 if test "${lt_cv_deplibs_check_method+set}" = set; then
4069 echo $ECHO_N "(cached) $ECHO_C" >&6
4071 lt_cv_file_magic_cmd='$MAGIC_CMD'
4072 lt_cv_file_magic_test_file=
4073 lt_cv_deplibs_check_method='unknown'
4074 # Need to set the preceding variable on all platforms that support
4075 # interlibrary dependencies.
4076 # 'none' -- dependencies not supported.
4077 # `unknown' -- same as none, but documents that we really don't know.
4078 # 'pass_all' -- all dependencies passed with no checks.
4079 # 'test_compile' -- check by making test program.
4080 # 'file_magic [[regex]]' -- check by looking for files in library path
4081 # which responds to the $file_magic_cmd with a given extended regex.
4082 # If you have `file' or equivalent on your system and you're not sure
4083 # whether `pass_all' will *always* work, you probably want this one.
4087 lt_cv_deplibs_check_method=pass_all
4091 lt_cv_deplibs_check_method=pass_all
4095 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4096 lt_cv_file_magic_cmd='/usr/bin/file -L'
4097 lt_cv_file_magic_test_file=/shlib/libc.so
4101 # func_win32_libid is a shell function defined in ltmain.sh
4102 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4103 lt_cv_file_magic_cmd='func_win32_libid'
4107 # Base MSYS/MinGW do not provide the 'file' command needed by
4108 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4109 # unless we find 'file', for example because we are cross-compiling.
4110 if ( file / ) >/dev/null 2>&1; then
4111 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4112 lt_cv_file_magic_cmd='func_win32_libid'
4114 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4115 lt_cv_file_magic_cmd='$OBJDUMP -f'
4119 darwin* | rhapsody*)
4120 lt_cv_deplibs_check_method=pass_all
4123 freebsd* | dragonfly*)
4124 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4127 # Not sure whether the presence of OpenBSD here was a mistake.
4128 # Let's accept both of them until this is cleared up.
4129 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4130 lt_cv_file_magic_cmd=/usr/bin/file
4131 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4135 lt_cv_deplibs_check_method=pass_all
4140 lt_cv_deplibs_check_method=pass_all
4143 hpux10.20* | hpux11*)
4144 lt_cv_file_magic_cmd=/usr/bin/file
4147 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4148 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4151 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]'
4152 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4155 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4156 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4162 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4163 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4166 irix5* | irix6* | nonstopux*)
4168 *-32|*"-32 ") libmagic=32-bit;;
4169 *-n32|*"-n32 ") libmagic=N32;;
4170 *-64|*"-64 ") libmagic=64-bit;;
4171 *) libmagic=never-match;;
4173 lt_cv_deplibs_check_method=pass_all
4176 # This must be Linux ELF.
4177 linux* | k*bsd*-gnu)
4178 lt_cv_deplibs_check_method=pass_all
4182 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4183 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4185 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4190 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4191 lt_cv_file_magic_cmd=/usr/bin/file
4192 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4196 lt_cv_deplibs_check_method=unknown
4200 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4201 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4203 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4207 osf3* | osf4* | osf5*)
4208 lt_cv_deplibs_check_method=pass_all
4212 lt_cv_deplibs_check_method=pass_all
4216 lt_cv_deplibs_check_method=pass_all
4220 case $host_vendor in
4222 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]'
4223 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4226 lt_cv_deplibs_check_method=pass_all
4229 lt_cv_file_magic_cmd='/bin/file'
4230 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4233 lt_cv_file_magic_cmd='/bin/file'
4234 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4235 lt_cv_file_magic_test_file=/lib/libc.so
4238 lt_cv_deplibs_check_method=pass_all
4241 lt_cv_deplibs_check_method=pass_all
4246 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4247 lt_cv_deplibs_check_method=pass_all
4252 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4253 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4254 file_magic_cmd=$lt_cv_file_magic_cmd
4255 deplibs_check_method=$lt_cv_deplibs_check_method
4256 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4261 # If no C compiler was specified, use CC.
4264 # If no C compiler flags were specified, use CFLAGS.
4265 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4267 # Allow CC to be a program name with arguments.
4271 # Check whether --enable-libtool-lock was given.
4272 if test "${enable_libtool_lock+set}" = set; then
4273 enableval=$enable_libtool_lock;
4276 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4278 # Some flags need to be propagated to the compiler or linker for good
4282 # Find out which ABI we are using.
4283 echo 'int i;' > conftest.$ac_ext
4284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4285 (eval $ac_compile) 2>&5
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); }; then
4289 case `/usr/bin/file conftest.$ac_objext` in
4301 # Find out which ABI we are using.
4302 echo '#line 4302 "configure"' > conftest.$ac_ext
4303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4304 (eval $ac_compile) 2>&5
4306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307 (exit $ac_status); }; then
4308 if test "$lt_cv_prog_gnu_ld" = yes; then
4309 case `/usr/bin/file conftest.$ac_objext` in
4311 LD="${LD-ld} -melf32bsmip"
4314 LD="${LD-ld} -melf32bmipn32"
4317 LD="${LD-ld} -melf64bmip"
4321 case `/usr/bin/file conftest.$ac_objext` in
4337 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4338 s390*-*linux*|sparc*-*linux*)
4339 # Find out which ABI we are using.
4340 echo 'int i;' > conftest.$ac_ext
4341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4342 (eval $ac_compile) 2>&5
4344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345 (exit $ac_status); }; then
4346 case `/usr/bin/file conftest.o` in
4349 x86_64-*kfreebsd*-gnu)
4350 LD="${LD-ld} -m elf_i386_fbsd"
4353 LD="${LD-ld} -m elf_i386"
4355 ppc64-*linux*|powerpc64-*linux*)
4356 LD="${LD-ld} -m elf32ppclinux"
4359 LD="${LD-ld} -m elf_s390"
4362 LD="${LD-ld} -m elf32_sparc"
4368 x86_64-*kfreebsd*-gnu)
4369 LD="${LD-ld} -m elf_x86_64_fbsd"
4372 LD="${LD-ld} -m elf_x86_64"
4374 ppc*-*linux*|powerpc*-*linux*)
4375 LD="${LD-ld} -m elf64ppc"
4378 LD="${LD-ld} -m elf64_s390"
4381 LD="${LD-ld} -m elf64_sparc"
4391 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4392 SAVE_CFLAGS="$CFLAGS"
4393 CFLAGS="$CFLAGS -belf"
4394 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4395 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4396 if test "${lt_cv_cc_needs_belf+set}" = set; then
4397 echo $ECHO_N "(cached) $ECHO_C" >&6
4400 ac_cpp='$CPP $CPPFLAGS'
4401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4405 cat >conftest.$ac_ext <<_ACEOF
4408 cat confdefs.h >>conftest.$ac_ext
4409 cat >>conftest.$ac_ext <<_ACEOF
4410 /* end confdefs.h. */
4420 rm -f conftest.$ac_objext conftest$ac_exeext
4421 if { (ac_try="$ac_link"
4423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4424 *) ac_try_echo=$ac_try;;
4426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4427 (eval "$ac_link") 2>conftest.er1
4429 grep -v '^ *+' conftest.er1 >conftest.err
4431 cat conftest.err >&5
4432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433 (exit $ac_status); } && {
4434 test -z "$ac_c_werror_flag" ||
4435 test ! -s conftest.err
4436 } && test -s conftest$ac_exeext &&
4437 $as_test_x conftest$ac_exeext; then
4438 lt_cv_cc_needs_belf=yes
4440 echo "$as_me: failed program was:" >&5
4441 sed 's/^/| /' conftest.$ac_ext >&5
4443 lt_cv_cc_needs_belf=no
4446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4447 conftest$ac_exeext conftest.$ac_ext
4449 ac_cpp='$CPP $CPPFLAGS'
4450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4455 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4456 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4457 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4458 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4459 CFLAGS="$SAVE_CFLAGS"
4463 # Find out which ABI we are using.
4464 echo 'int i;' > conftest.$ac_ext
4465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4466 (eval $ac_compile) 2>&5
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); }; then
4470 case `/usr/bin/file conftest.o` in
4472 case $lt_cv_prog_gnu_ld in
4473 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4474 *) LD="${LD-ld} -64" ;;
4485 need_locks="$enable_libtool_lock"
4489 ac_cpp='$CPP $CPPFLAGS'
4490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4493 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4494 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4495 # On Suns, sometimes $CPP names a directory.
4496 if test -n "$CPP" && test -d "$CPP"; then
4499 if test -z "$CPP"; then
4500 if test "${ac_cv_prog_CPP+set}" = set; then
4501 echo $ECHO_N "(cached) $ECHO_C" >&6
4503 # Double quotes because CPP needs to be expanded
4504 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4507 for ac_c_preproc_warn_flag in '' yes
4509 # Use a header file that comes with gcc, so configuring glibc
4510 # with a fresh cross-compiler works.
4511 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4512 # <limits.h> exists even on freestanding compilers.
4513 # On the NeXT, cc -E runs the code through the compiler's parser,
4514 # not just through cpp. "Syntax error" is here to catch this case.
4515 cat >conftest.$ac_ext <<_ACEOF
4518 cat confdefs.h >>conftest.$ac_ext
4519 cat >>conftest.$ac_ext <<_ACEOF
4520 /* end confdefs.h. */
4522 # include <limits.h>
4524 # include <assert.h>
4528 if { (ac_try="$ac_cpp conftest.$ac_ext"
4530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4531 *) ac_try_echo=$ac_try;;
4533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4534 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4536 grep -v '^ *+' conftest.er1 >conftest.err
4538 cat conftest.err >&5
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); } >/dev/null && {
4541 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4542 test ! -s conftest.err
4546 echo "$as_me: failed program was:" >&5
4547 sed 's/^/| /' conftest.$ac_ext >&5
4549 # Broken: fails on valid input.
4553 rm -f conftest.err conftest.$ac_ext
4555 # OK, works on sane cases. Now check whether nonexistent headers
4556 # can be detected and how.
4557 cat >conftest.$ac_ext <<_ACEOF
4560 cat confdefs.h >>conftest.$ac_ext
4561 cat >>conftest.$ac_ext <<_ACEOF
4562 /* end confdefs.h. */
4563 #include <ac_nonexistent.h>
4565 if { (ac_try="$ac_cpp conftest.$ac_ext"
4567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4568 *) ac_try_echo=$ac_try;;
4570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4571 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4573 grep -v '^ *+' conftest.er1 >conftest.err
4575 cat conftest.err >&5
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); } >/dev/null && {
4578 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4579 test ! -s conftest.err
4581 # Broken: success on invalid input.
4584 echo "$as_me: failed program was:" >&5
4585 sed 's/^/| /' conftest.$ac_ext >&5
4587 # Passes both tests.
4592 rm -f conftest.err conftest.$ac_ext
4595 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4596 rm -f conftest.err conftest.$ac_ext
4597 if $ac_preproc_ok; then
4609 { echo "$as_me:$LINENO: result: $CPP" >&5
4610 echo "${ECHO_T}$CPP" >&6; }
4612 for ac_c_preproc_warn_flag in '' yes
4614 # Use a header file that comes with gcc, so configuring glibc
4615 # with a fresh cross-compiler works.
4616 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4617 # <limits.h> exists even on freestanding compilers.
4618 # On the NeXT, cc -E runs the code through the compiler's parser,
4619 # not just through cpp. "Syntax error" is here to catch this case.
4620 cat >conftest.$ac_ext <<_ACEOF
4623 cat confdefs.h >>conftest.$ac_ext
4624 cat >>conftest.$ac_ext <<_ACEOF
4625 /* end confdefs.h. */
4627 # include <limits.h>
4629 # include <assert.h>
4633 if { (ac_try="$ac_cpp conftest.$ac_ext"
4635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4636 *) ac_try_echo=$ac_try;;
4638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4639 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4641 grep -v '^ *+' conftest.er1 >conftest.err
4643 cat conftest.err >&5
4644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645 (exit $ac_status); } >/dev/null && {
4646 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4647 test ! -s conftest.err
4651 echo "$as_me: failed program was:" >&5
4652 sed 's/^/| /' conftest.$ac_ext >&5
4654 # Broken: fails on valid input.
4658 rm -f conftest.err conftest.$ac_ext
4660 # OK, works on sane cases. Now check whether nonexistent headers
4661 # can be detected and how.
4662 cat >conftest.$ac_ext <<_ACEOF
4665 cat confdefs.h >>conftest.$ac_ext
4666 cat >>conftest.$ac_ext <<_ACEOF
4667 /* end confdefs.h. */
4668 #include <ac_nonexistent.h>
4670 if { (ac_try="$ac_cpp conftest.$ac_ext"
4672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4673 *) ac_try_echo=$ac_try;;
4675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4676 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4678 grep -v '^ *+' conftest.er1 >conftest.err
4680 cat conftest.err >&5
4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682 (exit $ac_status); } >/dev/null && {
4683 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4684 test ! -s conftest.err
4686 # Broken: success on invalid input.
4689 echo "$as_me: failed program was:" >&5
4690 sed 's/^/| /' conftest.$ac_ext >&5
4692 # Passes both tests.
4697 rm -f conftest.err conftest.$ac_ext
4700 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4701 rm -f conftest.err conftest.$ac_ext
4702 if $ac_preproc_ok; then
4705 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4706 See \`config.log' for more details." >&5
4707 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4708 See \`config.log' for more details." >&2;}
4709 { (exit 1); exit 1; }; }
4713 ac_cpp='$CPP $CPPFLAGS'
4714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4719 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4720 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4721 if test "${ac_cv_header_stdc+set}" = set; then
4722 echo $ECHO_N "(cached) $ECHO_C" >&6
4724 cat >conftest.$ac_ext <<_ACEOF
4727 cat confdefs.h >>conftest.$ac_ext
4728 cat >>conftest.$ac_ext <<_ACEOF
4729 /* end confdefs.h. */
4743 rm -f conftest.$ac_objext
4744 if { (ac_try="$ac_compile"
4746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4747 *) ac_try_echo=$ac_try;;
4749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4750 (eval "$ac_compile") 2>conftest.er1
4752 grep -v '^ *+' conftest.er1 >conftest.err
4754 cat conftest.err >&5
4755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756 (exit $ac_status); } && {
4757 test -z "$ac_c_werror_flag" ||
4758 test ! -s conftest.err
4759 } && test -s conftest.$ac_objext; then
4760 ac_cv_header_stdc=yes
4762 echo "$as_me: failed program was:" >&5
4763 sed 's/^/| /' conftest.$ac_ext >&5
4765 ac_cv_header_stdc=no
4768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4770 if test $ac_cv_header_stdc = yes; then
4771 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4772 cat >conftest.$ac_ext <<_ACEOF
4775 cat confdefs.h >>conftest.$ac_ext
4776 cat >>conftest.$ac_ext <<_ACEOF
4777 /* end confdefs.h. */
4781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4782 $EGREP "memchr" >/dev/null 2>&1; then
4785 ac_cv_header_stdc=no
4791 if test $ac_cv_header_stdc = yes; then
4792 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4793 cat >conftest.$ac_ext <<_ACEOF
4796 cat confdefs.h >>conftest.$ac_ext
4797 cat >>conftest.$ac_ext <<_ACEOF
4798 /* end confdefs.h. */
4802 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4803 $EGREP "free" >/dev/null 2>&1; then
4806 ac_cv_header_stdc=no
4812 if test $ac_cv_header_stdc = yes; then
4813 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4814 if test "$cross_compiling" = yes; then
4817 cat >conftest.$ac_ext <<_ACEOF
4820 cat confdefs.h >>conftest.$ac_ext
4821 cat >>conftest.$ac_ext <<_ACEOF
4822 /* end confdefs.h. */
4825 #if ((' ' & 0x0FF) == 0x020)
4826 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4827 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4829 # define ISLOWER(c) \
4830 (('a' <= (c) && (c) <= 'i') \
4831 || ('j' <= (c) && (c) <= 'r') \
4832 || ('s' <= (c) && (c) <= 'z'))
4833 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4836 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4841 for (i = 0; i < 256; i++)
4842 if (XOR (islower (i), ISLOWER (i))
4843 || toupper (i) != TOUPPER (i))
4848 rm -f conftest$ac_exeext
4849 if { (ac_try="$ac_link"
4851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4852 *) ac_try_echo=$ac_try;;
4854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4855 (eval "$ac_link") 2>&5
4857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4859 { (case "(($ac_try" in
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_try") 2>&5
4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); }; }; then
4870 echo "$as_me: program exited with status $ac_status" >&5
4871 echo "$as_me: failed program was:" >&5
4872 sed 's/^/| /' conftest.$ac_ext >&5
4875 ac_cv_header_stdc=no
4877 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4883 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4884 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4885 if test $ac_cv_header_stdc = yes; then
4887 cat >>confdefs.h <<\_ACEOF
4888 #define STDC_HEADERS 1
4893 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4903 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4904 inttypes.h stdint.h unistd.h
4906 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4907 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4910 echo $ECHO_N "(cached) $ECHO_C" >&6
4912 cat >conftest.$ac_ext <<_ACEOF
4915 cat confdefs.h >>conftest.$ac_ext
4916 cat >>conftest.$ac_ext <<_ACEOF
4917 /* end confdefs.h. */
4918 $ac_includes_default
4920 #include <$ac_header>
4922 rm -f conftest.$ac_objext
4923 if { (ac_try="$ac_compile"
4925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4926 *) ac_try_echo=$ac_try;;
4928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4929 (eval "$ac_compile") 2>conftest.er1
4931 grep -v '^ *+' conftest.er1 >conftest.err
4933 cat conftest.err >&5
4934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935 (exit $ac_status); } && {
4936 test -z "$ac_c_werror_flag" ||
4937 test ! -s conftest.err
4938 } && test -s conftest.$ac_objext; then
4939 eval "$as_ac_Header=yes"
4941 echo "$as_me: failed program was:" >&5
4942 sed 's/^/| /' conftest.$ac_ext >&5
4944 eval "$as_ac_Header=no"
4947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4949 ac_res=`eval echo '${'$as_ac_Header'}'`
4950 { echo "$as_me:$LINENO: result: $ac_res" >&5
4951 echo "${ECHO_T}$ac_res" >&6; }
4952 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4953 cat >>confdefs.h <<_ACEOF
4954 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4963 for ac_header in dlfcn.h
4965 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4966 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4967 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4969 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4970 echo $ECHO_N "(cached) $ECHO_C" >&6
4972 ac_res=`eval echo '${'$as_ac_Header'}'`
4973 { echo "$as_me:$LINENO: result: $ac_res" >&5
4974 echo "${ECHO_T}$ac_res" >&6; }
4976 # Is the header compilable?
4977 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4978 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4979 cat >conftest.$ac_ext <<_ACEOF
4982 cat confdefs.h >>conftest.$ac_ext
4983 cat >>conftest.$ac_ext <<_ACEOF
4984 /* end confdefs.h. */
4985 $ac_includes_default
4986 #include <$ac_header>
4988 rm -f conftest.$ac_objext
4989 if { (ac_try="$ac_compile"
4991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4992 *) ac_try_echo=$ac_try;;
4994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4995 (eval "$ac_compile") 2>conftest.er1
4997 grep -v '^ *+' conftest.er1 >conftest.err
4999 cat conftest.err >&5
5000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001 (exit $ac_status); } && {
5002 test -z "$ac_c_werror_flag" ||
5003 test ! -s conftest.err
5004 } && test -s conftest.$ac_objext; then
5005 ac_header_compiler=yes
5007 echo "$as_me: failed program was:" >&5
5008 sed 's/^/| /' conftest.$ac_ext >&5
5010 ac_header_compiler=no
5013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5014 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5015 echo "${ECHO_T}$ac_header_compiler" >&6; }
5017 # Is the header present?
5018 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5019 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5020 cat >conftest.$ac_ext <<_ACEOF
5023 cat confdefs.h >>conftest.$ac_ext
5024 cat >>conftest.$ac_ext <<_ACEOF
5025 /* end confdefs.h. */
5026 #include <$ac_header>
5028 if { (ac_try="$ac_cpp conftest.$ac_ext"
5030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5031 *) ac_try_echo=$ac_try;;
5033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5034 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5036 grep -v '^ *+' conftest.er1 >conftest.err
5038 cat conftest.err >&5
5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040 (exit $ac_status); } >/dev/null && {
5041 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5042 test ! -s conftest.err
5044 ac_header_preproc=yes
5046 echo "$as_me: failed program was:" >&5
5047 sed 's/^/| /' conftest.$ac_ext >&5
5049 ac_header_preproc=no
5052 rm -f conftest.err conftest.$ac_ext
5053 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5054 echo "${ECHO_T}$ac_header_preproc" >&6; }
5056 # So? What about this header?
5057 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5059 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5060 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5061 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5062 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5063 ac_header_preproc=yes
5066 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5067 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5068 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5069 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5070 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5071 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5072 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5073 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5074 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5075 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5076 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5077 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5081 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5083 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5084 echo $ECHO_N "(cached) $ECHO_C" >&6
5086 eval "$as_ac_Header=\$ac_header_preproc"
5088 ac_res=`eval echo '${'$as_ac_Header'}'`
5089 { echo "$as_me:$LINENO: result: $ac_res" >&5
5090 echo "${ECHO_T}$ac_res" >&6; }
5093 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5094 cat >>confdefs.h <<_ACEOF
5095 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5103 ac_cpp='$CXXCPP $CPPFLAGS'
5104 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5105 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5106 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5107 if test -z "$CXX"; then
5108 if test -n "$CCC"; then
5111 if test -n "$ac_tool_prefix"; then
5112 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5114 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5115 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5118 if test "${ac_cv_prog_CXX+set}" = set; then
5119 echo $ECHO_N "(cached) $ECHO_C" >&6
5121 if test -n "$CXX"; then
5122 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5128 test -z "$as_dir" && as_dir=.
5129 for ac_exec_ext in '' $ac_executable_extensions; do
5130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5131 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5142 if test -n "$CXX"; then
5143 { echo "$as_me:$LINENO: result: $CXX" >&5
5144 echo "${ECHO_T}$CXX" >&6; }
5146 { echo "$as_me:$LINENO: result: no" >&5
5147 echo "${ECHO_T}no" >&6; }
5151 test -n "$CXX" && break
5154 if test -z "$CXX"; then
5156 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5158 # Extract the first word of "$ac_prog", so it can be a program name with args.
5159 set dummy $ac_prog; ac_word=$2
5160 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5162 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5163 echo $ECHO_N "(cached) $ECHO_C" >&6
5165 if test -n "$ac_ct_CXX"; then
5166 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5172 test -z "$as_dir" && as_dir=.
5173 for ac_exec_ext in '' $ac_executable_extensions; do
5174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5175 ac_cv_prog_ac_ct_CXX="$ac_prog"
5176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5185 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5186 if test -n "$ac_ct_CXX"; then
5187 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5188 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5190 { echo "$as_me:$LINENO: result: no" >&5
5191 echo "${ECHO_T}no" >&6; }
5195 test -n "$ac_ct_CXX" && break
5198 if test "x$ac_ct_CXX" = x; then
5201 case $cross_compiling:$ac_tool_warned in
5203 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5204 whose name does not start with the host triplet. If you think this
5205 configuration is useful to you, please write to autoconf@gnu.org." >&5
5206 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5207 whose name does not start with the host triplet. If you think this
5208 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5209 ac_tool_warned=yes ;;
5217 # Provide some information about the compiler.
5218 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5219 ac_compiler=`set X $ac_compile; echo $2`
5220 { (ac_try="$ac_compiler --version >&5"
5222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5223 *) ac_try_echo=$ac_try;;
5225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5226 (eval "$ac_compiler --version >&5") 2>&5
5228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229 (exit $ac_status); }
5230 { (ac_try="$ac_compiler -v >&5"
5232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5233 *) ac_try_echo=$ac_try;;
5235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5236 (eval "$ac_compiler -v >&5") 2>&5
5238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239 (exit $ac_status); }
5240 { (ac_try="$ac_compiler -V >&5"
5242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5243 *) ac_try_echo=$ac_try;;
5245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5246 (eval "$ac_compiler -V >&5") 2>&5
5248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5249 (exit $ac_status); }
5251 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5252 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5253 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5254 echo $ECHO_N "(cached) $ECHO_C" >&6
5256 cat >conftest.$ac_ext <<_ACEOF
5259 cat confdefs.h >>conftest.$ac_ext
5260 cat >>conftest.$ac_ext <<_ACEOF
5261 /* end confdefs.h. */
5274 rm -f conftest.$ac_objext
5275 if { (ac_try="$ac_compile"
5277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5278 *) ac_try_echo=$ac_try;;
5280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5281 (eval "$ac_compile") 2>conftest.er1
5283 grep -v '^ *+' conftest.er1 >conftest.err
5285 cat conftest.err >&5
5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287 (exit $ac_status); } && {
5288 test -z "$ac_cxx_werror_flag" ||
5289 test ! -s conftest.err
5290 } && test -s conftest.$ac_objext; then
5293 echo "$as_me: failed program was:" >&5
5294 sed 's/^/| /' conftest.$ac_ext >&5
5299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5300 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5303 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5304 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5305 GXX=`test $ac_compiler_gnu = yes && echo yes`
5306 ac_test_CXXFLAGS=${CXXFLAGS+set}
5307 ac_save_CXXFLAGS=$CXXFLAGS
5308 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5309 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5310 if test "${ac_cv_prog_cxx_g+set}" = set; then
5311 echo $ECHO_N "(cached) $ECHO_C" >&6
5313 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5314 ac_cxx_werror_flag=yes
5317 cat >conftest.$ac_ext <<_ACEOF
5320 cat confdefs.h >>conftest.$ac_ext
5321 cat >>conftest.$ac_ext <<_ACEOF
5322 /* end confdefs.h. */
5332 rm -f conftest.$ac_objext
5333 if { (ac_try="$ac_compile"
5335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5336 *) ac_try_echo=$ac_try;;
5338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5339 (eval "$ac_compile") 2>conftest.er1
5341 grep -v '^ *+' conftest.er1 >conftest.err
5343 cat conftest.err >&5
5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); } && {
5346 test -z "$ac_cxx_werror_flag" ||
5347 test ! -s conftest.err
5348 } && test -s conftest.$ac_objext; then
5349 ac_cv_prog_cxx_g=yes
5351 echo "$as_me: failed program was:" >&5
5352 sed 's/^/| /' conftest.$ac_ext >&5
5355 cat >conftest.$ac_ext <<_ACEOF
5358 cat confdefs.h >>conftest.$ac_ext
5359 cat >>conftest.$ac_ext <<_ACEOF
5360 /* end confdefs.h. */
5370 rm -f conftest.$ac_objext
5371 if { (ac_try="$ac_compile"
5373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5374 *) ac_try_echo=$ac_try;;
5376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5377 (eval "$ac_compile") 2>conftest.er1
5379 grep -v '^ *+' conftest.er1 >conftest.err
5381 cat conftest.err >&5
5382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383 (exit $ac_status); } && {
5384 test -z "$ac_cxx_werror_flag" ||
5385 test ! -s conftest.err
5386 } && test -s conftest.$ac_objext; then
5389 echo "$as_me: failed program was:" >&5
5390 sed 's/^/| /' conftest.$ac_ext >&5
5392 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5394 cat >conftest.$ac_ext <<_ACEOF
5397 cat confdefs.h >>conftest.$ac_ext
5398 cat >>conftest.$ac_ext <<_ACEOF
5399 /* end confdefs.h. */
5409 rm -f conftest.$ac_objext
5410 if { (ac_try="$ac_compile"
5412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5413 *) ac_try_echo=$ac_try;;
5415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5416 (eval "$ac_compile") 2>conftest.er1
5418 grep -v '^ *+' conftest.er1 >conftest.err
5420 cat conftest.err >&5
5421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422 (exit $ac_status); } && {
5423 test -z "$ac_cxx_werror_flag" ||
5424 test ! -s conftest.err
5425 } && test -s conftest.$ac_objext; then
5426 ac_cv_prog_cxx_g=yes
5428 echo "$as_me: failed program was:" >&5
5429 sed 's/^/| /' conftest.$ac_ext >&5
5434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5441 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5443 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5444 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5445 if test "$ac_test_CXXFLAGS" = set; then
5446 CXXFLAGS=$ac_save_CXXFLAGS
5447 elif test $ac_cv_prog_cxx_g = yes; then
5448 if test "$GXX" = yes; then
5454 if test "$GXX" = yes; then
5461 ac_cpp='$CXXCPP $CPPFLAGS'
5462 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5463 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5464 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5466 depcc="$CXX" am_compiler_list=
5468 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5469 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5470 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5471 echo $ECHO_N "(cached) $ECHO_C" >&6
5473 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5474 # We make a subdir and do the tests there. Otherwise we can end up
5475 # making bogus files that we don't know about and never remove. For
5476 # instance it was reported that on HP-UX the gcc test will end up
5477 # making a dummy file named `D' -- because `-MD' means `put the output
5480 # Copy depcomp to subdir because otherwise we won't find it if we're
5481 # using a relative directory.
5482 cp "$am_depcomp" conftest.dir
5484 # We will build objects and dependencies in a subdirectory because
5485 # it helps to detect inapplicable dependency modes. For instance
5486 # both Tru64's cc and ICC support -MD to output dependencies as a
5487 # side effect of compilation, but ICC will put the dependencies in
5488 # the current directory while Tru64 will put them in the object
5492 am_cv_CXX_dependencies_compiler_type=none
5493 if test "$am_compiler_list" = ""; then
5494 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5496 for depmode in $am_compiler_list; do
5497 # Setup a source with many dependencies, because some compilers
5498 # like to wrap large dependency lists on column 80 (with \), and
5499 # we should not choose a depcomp mode which is confused by this.
5501 # We need to recreate these files for each test, as the compiler may
5502 # overwrite some of them when testing with obscure command lines.
5503 # This happens at least with the AIX C compiler.
5505 for i in 1 2 3 4 5 6; do
5506 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5507 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5508 # Solaris 8's {/usr,}/bin/sh.
5509 touch sub/conftst$i.h
5511 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5515 # after this tag, mechanisms are not by side-effect, so they'll
5516 # only be used when explicitly requested
5517 if test "x$enable_dependency_tracking" = xyes; then
5525 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5526 # mode. It turns out that the SunPro C++ compiler does not properly
5527 # handle `-M -o', and we need to detect this.
5528 if depmode=$depmode \
5529 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5530 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5531 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5532 >/dev/null 2>conftest.err &&
5533 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5534 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5535 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5536 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5537 # icc doesn't choke on unknown options, it will just issue warnings
5538 # or remarks (even with -Werror). So we grep stderr for any message
5539 # that says an option was ignored or not supported.
5540 # When given -MP, icc 7.0 and 7.1 complain thusly:
5541 # icc: Command line warning: ignoring option '-M'; no argument required
5542 # The diagnosis changed in icc 8.0:
5543 # icc: Command line remark: option '-MP' not supported
5544 if (grep 'ignoring option' conftest.err ||
5545 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5546 am_cv_CXX_dependencies_compiler_type=$depmode
5555 am_cv_CXX_dependencies_compiler_type=none
5559 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5560 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5561 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5564 test "x$enable_dependency_tracking" != xno \
5565 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5566 am__fastdepCXX_TRUE=
5567 am__fastdepCXX_FALSE='#'
5569 am__fastdepCXX_TRUE='#'
5570 am__fastdepCXX_FALSE=
5576 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5577 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5578 (test "X$CXX" != "Xg++"))) ; then
5580 ac_cpp='$CXXCPP $CPPFLAGS'
5581 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5582 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5583 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5584 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5585 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5586 if test -z "$CXXCPP"; then
5587 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5588 echo $ECHO_N "(cached) $ECHO_C" >&6
5590 # Double quotes because CXXCPP needs to be expanded
5591 for CXXCPP in "$CXX -E" "/lib/cpp"
5594 for ac_cxx_preproc_warn_flag in '' yes
5596 # Use a header file that comes with gcc, so configuring glibc
5597 # with a fresh cross-compiler works.
5598 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5599 # <limits.h> exists even on freestanding compilers.
5600 # On the NeXT, cc -E runs the code through the compiler's parser,
5601 # not just through cpp. "Syntax error" is here to catch this case.
5602 cat >conftest.$ac_ext <<_ACEOF
5605 cat confdefs.h >>conftest.$ac_ext
5606 cat >>conftest.$ac_ext <<_ACEOF
5607 /* end confdefs.h. */
5609 # include <limits.h>
5611 # include <assert.h>
5615 if { (ac_try="$ac_cpp conftest.$ac_ext"
5617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5618 *) ac_try_echo=$ac_try;;
5620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5621 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5623 grep -v '^ *+' conftest.er1 >conftest.err
5625 cat conftest.err >&5
5626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627 (exit $ac_status); } >/dev/null && {
5628 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5629 test ! -s conftest.err
5633 echo "$as_me: failed program was:" >&5
5634 sed 's/^/| /' conftest.$ac_ext >&5
5636 # Broken: fails on valid input.
5640 rm -f conftest.err conftest.$ac_ext
5642 # OK, works on sane cases. Now check whether nonexistent headers
5643 # can be detected and how.
5644 cat >conftest.$ac_ext <<_ACEOF
5647 cat confdefs.h >>conftest.$ac_ext
5648 cat >>conftest.$ac_ext <<_ACEOF
5649 /* end confdefs.h. */
5650 #include <ac_nonexistent.h>
5652 if { (ac_try="$ac_cpp conftest.$ac_ext"
5654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5655 *) ac_try_echo=$ac_try;;
5657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5660 grep -v '^ *+' conftest.er1 >conftest.err
5662 cat conftest.err >&5
5663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664 (exit $ac_status); } >/dev/null && {
5665 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5666 test ! -s conftest.err
5668 # Broken: success on invalid input.
5671 echo "$as_me: failed program was:" >&5
5672 sed 's/^/| /' conftest.$ac_ext >&5
5674 # Passes both tests.
5679 rm -f conftest.err conftest.$ac_ext
5682 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5683 rm -f conftest.err conftest.$ac_ext
5684 if $ac_preproc_ok; then
5689 ac_cv_prog_CXXCPP=$CXXCPP
5692 CXXCPP=$ac_cv_prog_CXXCPP
5694 ac_cv_prog_CXXCPP=$CXXCPP
5696 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5697 echo "${ECHO_T}$CXXCPP" >&6; }
5699 for ac_cxx_preproc_warn_flag in '' yes
5701 # Use a header file that comes with gcc, so configuring glibc
5702 # with a fresh cross-compiler works.
5703 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5704 # <limits.h> exists even on freestanding compilers.
5705 # On the NeXT, cc -E runs the code through the compiler's parser,
5706 # not just through cpp. "Syntax error" is here to catch this case.
5707 cat >conftest.$ac_ext <<_ACEOF
5710 cat confdefs.h >>conftest.$ac_ext
5711 cat >>conftest.$ac_ext <<_ACEOF
5712 /* end confdefs.h. */
5714 # include <limits.h>
5716 # include <assert.h>
5720 if { (ac_try="$ac_cpp conftest.$ac_ext"
5722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5723 *) ac_try_echo=$ac_try;;
5725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5726 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5728 grep -v '^ *+' conftest.er1 >conftest.err
5730 cat conftest.err >&5
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); } >/dev/null && {
5733 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5734 test ! -s conftest.err
5738 echo "$as_me: failed program was:" >&5
5739 sed 's/^/| /' conftest.$ac_ext >&5
5741 # Broken: fails on valid input.
5745 rm -f conftest.err conftest.$ac_ext
5747 # OK, works on sane cases. Now check whether nonexistent headers
5748 # can be detected and how.
5749 cat >conftest.$ac_ext <<_ACEOF
5752 cat confdefs.h >>conftest.$ac_ext
5753 cat >>conftest.$ac_ext <<_ACEOF
5754 /* end confdefs.h. */
5755 #include <ac_nonexistent.h>
5757 if { (ac_try="$ac_cpp conftest.$ac_ext"
5759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5760 *) ac_try_echo=$ac_try;;
5762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5765 grep -v '^ *+' conftest.er1 >conftest.err
5767 cat conftest.err >&5
5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); } >/dev/null && {
5770 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5771 test ! -s conftest.err
5773 # Broken: success on invalid input.
5776 echo "$as_me: failed program was:" >&5
5777 sed 's/^/| /' conftest.$ac_ext >&5
5779 # Passes both tests.
5784 rm -f conftest.err conftest.$ac_ext
5787 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5788 rm -f conftest.err conftest.$ac_ext
5789 if $ac_preproc_ok; then
5792 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5793 See \`config.log' for more details." >&5
5794 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5795 See \`config.log' for more details." >&2;}
5796 { (exit 1); exit 1; }; }
5800 ac_cpp='$CXXCPP $CPPFLAGS'
5801 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5802 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5803 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5809 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5810 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5811 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5812 if test -n "$ac_tool_prefix"; then
5813 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
5815 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5816 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5817 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5819 if test "${ac_cv_prog_F77+set}" = set; then
5820 echo $ECHO_N "(cached) $ECHO_C" >&6
5822 if test -n "$F77"; then
5823 ac_cv_prog_F77="$F77" # Let the user override the test.
5825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5829 test -z "$as_dir" && as_dir=.
5830 for ac_exec_ext in '' $ac_executable_extensions; do
5831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5832 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5843 if test -n "$F77"; then
5844 { echo "$as_me:$LINENO: result: $F77" >&5
5845 echo "${ECHO_T}$F77" >&6; }
5847 { echo "$as_me:$LINENO: result: no" >&5
5848 echo "${ECHO_T}no" >&6; }
5852 test -n "$F77" && break
5855 if test -z "$F77"; then
5857 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
5859 # Extract the first word of "$ac_prog", so it can be a program name with args.
5860 set dummy $ac_prog; ac_word=$2
5861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5863 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5864 echo $ECHO_N "(cached) $ECHO_C" >&6
5866 if test -n "$ac_ct_F77"; then
5867 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5873 test -z "$as_dir" && as_dir=.
5874 for ac_exec_ext in '' $ac_executable_extensions; do
5875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5876 ac_cv_prog_ac_ct_F77="$ac_prog"
5877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5886 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5887 if test -n "$ac_ct_F77"; then
5888 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5889 echo "${ECHO_T}$ac_ct_F77" >&6; }
5891 { echo "$as_me:$LINENO: result: no" >&5
5892 echo "${ECHO_T}no" >&6; }
5896 test -n "$ac_ct_F77" && break
5899 if test "x$ac_ct_F77" = x; then
5902 case $cross_compiling:$ac_tool_warned in
5904 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5905 whose name does not start with the host triplet. If you think this
5906 configuration is useful to you, please write to autoconf@gnu.org." >&5
5907 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5908 whose name does not start with the host triplet. If you think this
5909 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5910 ac_tool_warned=yes ;;
5917 # Provide some information about the compiler.
5918 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5919 ac_compiler=`set X $ac_compile; echo $2`
5920 { (ac_try="$ac_compiler --version >&5"
5922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5923 *) ac_try_echo=$ac_try;;
5925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5926 (eval "$ac_compiler --version >&5") 2>&5
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); }
5930 { (ac_try="$ac_compiler -v >&5"
5932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5933 *) ac_try_echo=$ac_try;;
5935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5936 (eval "$ac_compiler -v >&5") 2>&5
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); }
5940 { (ac_try="$ac_compiler -V >&5"
5942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5943 *) ac_try_echo=$ac_try;;
5945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5946 (eval "$ac_compiler -V >&5") 2>&5
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); }
5952 # If we don't use `.F' as extension, the preprocessor is not run on the
5953 # input file. (Note that this only needs to work for GNU compilers.)
5956 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5957 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5958 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5959 echo $ECHO_N "(cached) $ECHO_C" >&6
5961 cat >conftest.$ac_ext <<_ACEOF
5969 rm -f conftest.$ac_objext
5970 if { (ac_try="$ac_compile"
5972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5973 *) ac_try_echo=$ac_try;;
5975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5976 (eval "$ac_compile") 2>conftest.er1
5978 grep -v '^ *+' conftest.er1 >conftest.err
5980 cat conftest.err >&5
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); } && {
5983 test -z "$ac_f77_werror_flag" ||
5984 test ! -s conftest.err
5985 } && test -s conftest.$ac_objext; then
5988 echo "$as_me: failed program was:" >&5
5989 sed 's/^/| /' conftest.$ac_ext >&5
5994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5995 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5998 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5999 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6001 ac_test_FFLAGS=${FFLAGS+set}
6002 ac_save_FFLAGS=$FFLAGS
6004 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6005 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6006 if test "${ac_cv_prog_f77_g+set}" = set; then
6007 echo $ECHO_N "(cached) $ECHO_C" >&6
6010 cat >conftest.$ac_ext <<_ACEOF
6015 rm -f conftest.$ac_objext
6016 if { (ac_try="$ac_compile"
6018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6019 *) ac_try_echo=$ac_try;;
6021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6022 (eval "$ac_compile") 2>conftest.er1
6024 grep -v '^ *+' conftest.er1 >conftest.err
6026 cat conftest.err >&5
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); } && {
6029 test -z "$ac_f77_werror_flag" ||
6030 test ! -s conftest.err
6031 } && test -s conftest.$ac_objext; then
6032 ac_cv_prog_f77_g=yes
6034 echo "$as_me: failed program was:" >&5
6035 sed 's/^/| /' conftest.$ac_ext >&5
6040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6043 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6044 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6045 if test "$ac_test_FFLAGS" = set; then
6046 FFLAGS=$ac_save_FFLAGS
6047 elif test $ac_cv_prog_f77_g = yes; then
6048 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6054 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6061 G77=`test $ac_compiler_gnu = yes && echo yes`
6063 ac_cpp='$CPP $CPPFLAGS'
6064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6070 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6072 # find the maximum length of command line arguments
6073 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6074 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6075 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6076 echo $ECHO_N "(cached) $ECHO_C" >&6
6083 # On DJGPP, this test can blow up pretty badly due to problems in libc
6084 # (any single argument exceeding 2000 bytes causes a buffer overrun
6085 # during glob expansion). Even if it were fixed, the result of this
6086 # check would be larger than it should be.
6087 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6091 # Under GNU Hurd, this test is not required because there is
6092 # no limit to the length of command line arguments.
6093 # Libtool will interpret -1 as no limit whatsoever
6094 lt_cv_sys_max_cmd_len=-1;
6098 # On Win9x/ME, this test blows up -- it succeeds, but takes
6099 # about 5 minutes as the teststring grows exponentially.
6100 # Worse, since 9x/ME are not pre-emptively multitasking,
6101 # you end up with a "frozen" computer, even though with patience
6102 # the test eventually succeeds (with a max line length of 256k).
6103 # Instead, let's just punt: use the minimum linelength reported by
6104 # all of the supported platforms: 8192 (on NT/2K/XP).
6105 lt_cv_sys_max_cmd_len=8192;
6109 # On AmigaOS with pdksh, this test takes hours, literally.
6110 # So we just punt and use a minimum line length of 8192.
6111 lt_cv_sys_max_cmd_len=8192;
6114 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6115 # This has been around since 386BSD, at least. Likely further.
6116 if test -x /sbin/sysctl; then
6117 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6118 elif test -x /usr/sbin/sysctl; then
6119 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6121 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6123 # And add a safety zone
6124 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6125 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6129 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6130 lt_cv_sys_max_cmd_len=196608
6134 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6135 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6136 # nice to cause kernel panics so lets avoid the loop below.
6137 # First set a reasonable default.
6138 lt_cv_sys_max_cmd_len=16384
6140 if test -x /sbin/sysconfig; then
6141 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6142 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6147 lt_cv_sys_max_cmd_len=102400
6149 sysv5* | sco5v6* | sysv4.2uw2*)
6150 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6151 if test -n "$kargmax"; then
6152 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6154 lt_cv_sys_max_cmd_len=32768
6158 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6159 if test -n "$lt_cv_sys_max_cmd_len"; then
6160 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6161 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6163 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6164 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6165 = "XX$teststring") >/dev/null 2>&1 &&
6166 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6167 lt_cv_sys_max_cmd_len=$new_result &&
6168 test $i != 17 # 1/2 MB should be enough
6171 teststring=$teststring$teststring
6174 # Add a significant safety factor because C++ compilers can tack on massive
6175 # amounts of additional arguments before passing them to the linker.
6176 # It appears as though 1/2 is a usable value.
6177 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6184 if test -n $lt_cv_sys_max_cmd_len ; then
6185 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6186 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6188 { echo "$as_me:$LINENO: result: none" >&5
6189 echo "${ECHO_T}none" >&6; }
6196 # Check for command to grab the raw symbol name followed by C symbol from nm.
6197 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6198 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6199 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6200 echo $ECHO_N "(cached) $ECHO_C" >&6
6203 # These are sane defaults that work on at least a few old systems.
6204 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6206 # Character class describing NM global symbol codes.
6207 symcode='[BCDEGRST]'
6209 # Regexp to match symbols that can be accessed directly from C.
6210 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6212 # Transform an extracted symbol line into a proper C declaration
6213 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6215 # Transform an extracted symbol line into symbol name and symbol address
6216 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'"
6218 # Define system-specific variables.
6223 cygwin* | mingw* | pw32*)
6224 symcode='[ABCDGISTW]'
6226 hpux*) # Its linker distinguishes data from code symbols
6227 if test "$host_cpu" = ia64; then
6228 symcode='[ABCDEGRST]'
6230 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6231 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'"
6233 linux* | k*bsd*-gnu)
6234 if test "$host_cpu" = ia64; then
6235 symcode='[ABCDGIRSTW]'
6236 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6237 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'"
6241 symcode='[BCDEGRST]'
6244 symcode='[BCDEGQRST]'
6255 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6263 # Handle CRLF in mingw tool chain
6267 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6271 # If we're using GNU nm, then use its standard symbol codes.
6272 case `$NM -V 2>&1` in
6273 *GNU* | *'with BFD'*)
6274 symcode='[ABCDGIRSTW]' ;;
6277 # Try without a prefix undercore, then with it.
6278 for ac_symprfx in "" "_"; do
6280 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6281 symxfrm="\\1 $ac_symprfx\\2 \\2"
6283 # Write the raw and C identifiers.
6284 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6286 # Check to see that the pipe works correctly.
6290 cat > conftest.$ac_ext <<EOF
6295 void nm_test_func(){}
6299 int main(){nm_test_var='a';nm_test_func();return(0);}
6302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6303 (eval $ac_compile) 2>&5
6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); }; then
6307 # Now try to grab the symbols.
6309 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6310 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313 (exit $ac_status); } && test -s "$nlist"; then
6314 # Try sorting and uniquifying the output.
6315 if sort "$nlist" | uniq > "$nlist"T; then
6316 mv -f "$nlist"T "$nlist"
6321 # Make sure that we snagged all the symbols we need.
6322 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6323 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6324 cat <<EOF > conftest.$ac_ext
6330 # Now generate the symbol file.
6331 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6333 cat <<EOF >> conftest.$ac_ext
6334 #if defined (__STDC__) && __STDC__
6335 # define lt_ptr_t void *
6337 # define lt_ptr_t char *
6341 /* The mapping between symbol names and symbols. */
6346 lt_preloaded_symbols[] =
6349 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6350 cat <<\EOF >> conftest.$ac_ext
6358 # Now try linking the two files.
6359 mv conftest.$ac_objext conftstm.$ac_objext
6360 lt_save_LIBS="$LIBS"
6361 lt_save_CFLAGS="$CFLAGS"
6362 LIBS="conftstm.$ac_objext"
6363 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6365 (eval $ac_link) 2>&5
6367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6371 LIBS="$lt_save_LIBS"
6372 CFLAGS="$lt_save_CFLAGS"
6374 echo "cannot find nm_test_func in $nlist" >&5
6377 echo "cannot find nm_test_var in $nlist" >&5
6380 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6383 echo "$progname: failed program was:" >&5
6384 cat conftest.$ac_ext >&5
6386 rm -f conftest* conftst*
6388 # Do not use the global_symbol_pipe unless it works.
6389 if test "$pipe_works" = yes; then
6392 lt_cv_sys_global_symbol_pipe=
6398 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6399 lt_cv_sys_global_symbol_to_cdecl=
6401 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6402 { echo "$as_me:$LINENO: result: failed" >&5
6403 echo "${ECHO_T}failed" >&6; }
6405 { echo "$as_me:$LINENO: result: ok" >&5
6406 echo "${ECHO_T}ok" >&6; }
6409 { echo "$as_me:$LINENO: checking for objdir" >&5
6410 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6411 if test "${lt_cv_objdir+set}" = set; then
6412 echo $ECHO_N "(cached) $ECHO_C" >&6
6414 rm -f .libs 2>/dev/null
6415 mkdir .libs 2>/dev/null
6416 if test -d .libs; then
6419 # MS-DOS does not allow filenames that begin with a dot.
6422 rmdir .libs 2>/dev/null
6424 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6425 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6426 objdir=$lt_cv_objdir
6434 # AIX sometimes has problems with the GCC collect2 program. For some
6435 # reason, if we set the COLLECT_NAMES environment variable, the problems
6436 # vanish in a puff of smoke.
6437 if test "X${COLLECT_NAMES+set}" != Xset; then
6439 export COLLECT_NAMES
6444 # Sed substitution that helps us do robust quoting. It backslashifies
6445 # metacharacters that are still active within double-quoted strings.
6446 Xsed='sed -e 1s/^X//'
6447 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6449 # Same as above, but do not quote variable references.
6450 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6452 # Sed substitution to delay expansion of an escaped shell variable in a
6453 # double_quote_subst'ed string.
6454 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6456 # Sed substitution to avoid accidental globbing in evaled expressions
6457 no_glob_subst='s/\*/\\\*/g'
6463 default_ofile=libtool
6464 can_build_shared=yes
6466 # All known linkers require a `.a' archive for static linking (except MSVC,
6467 # which needs '.lib').
6469 ltmain="$ac_aux_dir/ltmain.sh"
6470 ofile="$default_ofile"
6471 with_gnu_ld="$lt_cv_prog_gnu_ld"
6473 if test -n "$ac_tool_prefix"; then
6474 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6475 set dummy ${ac_tool_prefix}ar; ac_word=$2
6476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6478 if test "${ac_cv_prog_AR+set}" = set; then
6479 echo $ECHO_N "(cached) $ECHO_C" >&6
6481 if test -n "$AR"; then
6482 ac_cv_prog_AR="$AR" # Let the user override the test.
6484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6488 test -z "$as_dir" && as_dir=.
6489 for ac_exec_ext in '' $ac_executable_extensions; do
6490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6491 ac_cv_prog_AR="${ac_tool_prefix}ar"
6492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6502 if test -n "$AR"; then
6503 { echo "$as_me:$LINENO: result: $AR" >&5
6504 echo "${ECHO_T}$AR" >&6; }
6506 { echo "$as_me:$LINENO: result: no" >&5
6507 echo "${ECHO_T}no" >&6; }
6512 if test -z "$ac_cv_prog_AR"; then
6514 # Extract the first word of "ar", so it can be a program name with args.
6515 set dummy ar; ac_word=$2
6516 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6518 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6519 echo $ECHO_N "(cached) $ECHO_C" >&6
6521 if test -n "$ac_ct_AR"; then
6522 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6528 test -z "$as_dir" && as_dir=.
6529 for ac_exec_ext in '' $ac_executable_extensions; do
6530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6531 ac_cv_prog_ac_ct_AR="ar"
6532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6541 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6542 if test -n "$ac_ct_AR"; then
6543 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6544 echo "${ECHO_T}$ac_ct_AR" >&6; }
6546 { echo "$as_me:$LINENO: result: no" >&5
6547 echo "${ECHO_T}no" >&6; }
6550 if test "x$ac_ct_AR" = x; then
6553 case $cross_compiling:$ac_tool_warned in
6555 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6556 whose name does not start with the host triplet. If you think this
6557 configuration is useful to you, please write to autoconf@gnu.org." >&5
6558 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6559 whose name does not start with the host triplet. If you think this
6560 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6561 ac_tool_warned=yes ;;
6569 if test -n "$ac_tool_prefix"; then
6570 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6571 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6574 if test "${ac_cv_prog_RANLIB+set}" = set; then
6575 echo $ECHO_N "(cached) $ECHO_C" >&6
6577 if test -n "$RANLIB"; then
6578 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6584 test -z "$as_dir" && as_dir=.
6585 for ac_exec_ext in '' $ac_executable_extensions; do
6586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6587 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6597 RANLIB=$ac_cv_prog_RANLIB
6598 if test -n "$RANLIB"; then
6599 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6600 echo "${ECHO_T}$RANLIB" >&6; }
6602 { echo "$as_me:$LINENO: result: no" >&5
6603 echo "${ECHO_T}no" >&6; }
6608 if test -z "$ac_cv_prog_RANLIB"; then
6609 ac_ct_RANLIB=$RANLIB
6610 # Extract the first word of "ranlib", so it can be a program name with args.
6611 set dummy ranlib; ac_word=$2
6612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6614 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6615 echo $ECHO_N "(cached) $ECHO_C" >&6
6617 if test -n "$ac_ct_RANLIB"; then
6618 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6624 test -z "$as_dir" && as_dir=.
6625 for ac_exec_ext in '' $ac_executable_extensions; do
6626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6627 ac_cv_prog_ac_ct_RANLIB="ranlib"
6628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6637 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6638 if test -n "$ac_ct_RANLIB"; then
6639 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6640 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6642 { echo "$as_me:$LINENO: result: no" >&5
6643 echo "${ECHO_T}no" >&6; }
6646 if test "x$ac_ct_RANLIB" = x; then
6649 case $cross_compiling:$ac_tool_warned in
6651 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6652 whose name does not start with the host triplet. If you think this
6653 configuration is useful to you, please write to autoconf@gnu.org." >&5
6654 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6655 whose name does not start with the host triplet. If you think this
6656 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6657 ac_tool_warned=yes ;;
6659 RANLIB=$ac_ct_RANLIB
6662 RANLIB="$ac_cv_prog_RANLIB"
6665 if test -n "$ac_tool_prefix"; then
6666 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6667 set dummy ${ac_tool_prefix}strip; ac_word=$2
6668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6670 if test "${ac_cv_prog_STRIP+set}" = set; then
6671 echo $ECHO_N "(cached) $ECHO_C" >&6
6673 if test -n "$STRIP"; then
6674 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6680 test -z "$as_dir" && as_dir=.
6681 for ac_exec_ext in '' $ac_executable_extensions; do
6682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6683 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6693 STRIP=$ac_cv_prog_STRIP
6694 if test -n "$STRIP"; then
6695 { echo "$as_me:$LINENO: result: $STRIP" >&5
6696 echo "${ECHO_T}$STRIP" >&6; }
6698 { echo "$as_me:$LINENO: result: no" >&5
6699 echo "${ECHO_T}no" >&6; }
6704 if test -z "$ac_cv_prog_STRIP"; then
6706 # Extract the first word of "strip", so it can be a program name with args.
6707 set dummy strip; ac_word=$2
6708 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6710 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6711 echo $ECHO_N "(cached) $ECHO_C" >&6
6713 if test -n "$ac_ct_STRIP"; then
6714 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6720 test -z "$as_dir" && as_dir=.
6721 for ac_exec_ext in '' $ac_executable_extensions; do
6722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6723 ac_cv_prog_ac_ct_STRIP="strip"
6724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6733 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6734 if test -n "$ac_ct_STRIP"; then
6735 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6736 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6738 { echo "$as_me:$LINENO: result: no" >&5
6739 echo "${ECHO_T}no" >&6; }
6742 if test "x$ac_ct_STRIP" = x; then
6745 case $cross_compiling:$ac_tool_warned in
6747 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6748 whose name does not start with the host triplet. If you think this
6749 configuration is useful to you, please write to autoconf@gnu.org." >&5
6750 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6751 whose name does not start with the host triplet. If you think this
6752 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6753 ac_tool_warned=yes ;;
6758 STRIP="$ac_cv_prog_STRIP"
6763 old_CFLAGS="$CFLAGS"
6765 # Set sane defaults for various variables
6766 test -z "$AR" && AR=ar
6767 test -z "$AR_FLAGS" && AR_FLAGS=cru
6768 test -z "$AS" && AS=as
6769 test -z "$CC" && CC=cc
6770 test -z "$LTCC" && LTCC=$CC
6771 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6772 test -z "$DLLTOOL" && DLLTOOL=dlltool
6773 test -z "$LD" && LD=ld
6774 test -z "$LN_S" && LN_S="ln -s"
6775 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6776 test -z "$NM" && NM=nm
6777 test -z "$SED" && SED=sed
6778 test -z "$OBJDUMP" && OBJDUMP=objdump
6779 test -z "$RANLIB" && RANLIB=:
6780 test -z "$STRIP" && STRIP=:
6781 test -z "$ac_objext" && ac_objext=o
6783 # Determine commands to create old-style static archives.
6784 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6785 old_postinstall_cmds='chmod 644 $oldlib'
6786 old_postuninstall_cmds=
6788 if test -n "$RANLIB"; then
6791 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6794 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6797 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6800 for cc_temp in $compiler""; do
6802 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6803 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6808 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6811 # Only perform the check for file, if the check method requires it
6812 case $deplibs_check_method in
6814 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6815 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6816 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6817 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6818 echo $ECHO_N "(cached) $ECHO_C" >&6
6822 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6825 lt_save_MAGIC_CMD="$MAGIC_CMD"
6826 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6827 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6828 for ac_dir in $ac_dummy; do
6830 test -z "$ac_dir" && ac_dir=.
6831 if test -f $ac_dir/${ac_tool_prefix}file; then
6832 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6833 if test -n "$file_magic_test_file"; then
6834 case $deplibs_check_method in
6836 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6837 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6838 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6839 $EGREP "$file_magic_regex" > /dev/null; then
6844 *** Warning: the command libtool uses to detect shared libraries,
6845 *** $file_magic_cmd, produces output that libtool cannot recognize.
6846 *** The result is that libtool may fail to recognize shared libraries
6847 *** as such. This will affect the creation of libtool libraries that
6848 *** depend on shared libraries, but programs linked with such libtool
6849 *** libraries will work regardless of this problem. Nevertheless, you
6850 *** may want to report the problem to your system manager and/or to
6851 *** bug-libtool@gnu.org
6861 MAGIC_CMD="$lt_save_MAGIC_CMD"
6866 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6867 if test -n "$MAGIC_CMD"; then
6868 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6869 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6871 { echo "$as_me:$LINENO: result: no" >&5
6872 echo "${ECHO_T}no" >&6; }
6875 if test -z "$lt_cv_path_MAGIC_CMD"; then
6876 if test -n "$ac_tool_prefix"; then
6877 { echo "$as_me:$LINENO: checking for file" >&5
6878 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6879 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6880 echo $ECHO_N "(cached) $ECHO_C" >&6
6884 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6887 lt_save_MAGIC_CMD="$MAGIC_CMD"
6888 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6889 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6890 for ac_dir in $ac_dummy; do
6892 test -z "$ac_dir" && ac_dir=.
6893 if test -f $ac_dir/file; then
6894 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6895 if test -n "$file_magic_test_file"; then
6896 case $deplibs_check_method in
6898 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6899 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6900 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6901 $EGREP "$file_magic_regex" > /dev/null; then
6906 *** Warning: the command libtool uses to detect shared libraries,
6907 *** $file_magic_cmd, produces output that libtool cannot recognize.
6908 *** The result is that libtool may fail to recognize shared libraries
6909 *** as such. This will affect the creation of libtool libraries that
6910 *** depend on shared libraries, but programs linked with such libtool
6911 *** libraries will work regardless of this problem. Nevertheless, you
6912 *** may want to report the problem to your system manager and/or to
6913 *** bug-libtool@gnu.org
6923 MAGIC_CMD="$lt_save_MAGIC_CMD"
6928 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6929 if test -n "$MAGIC_CMD"; then
6930 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6931 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6933 { echo "$as_me:$LINENO: result: no" >&5
6934 echo "${ECHO_T}no" >&6; }
6949 # Check whether --enable-libtool-lock was given.
6950 if test "${enable_libtool_lock+set}" = set; then
6951 enableval=$enable_libtool_lock;
6954 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6957 # Check whether --with-pic was given.
6958 if test "${with_pic+set}" = set; then
6959 withval=$with_pic; pic_mode="$withval"
6964 test -z "$pic_mode" && pic_mode=default
6966 # Use C for the default configuration in the libtool script
6970 ac_cpp='$CPP $CPPFLAGS'
6971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6976 # Source file extension for C test sources.
6979 # Object file extension for compiled C test sources.
6983 # Code to be used in simple compile tests
6984 lt_simple_compile_test_code="int some_variable = 0;"
6986 # Code to be used in simple link tests
6987 lt_simple_link_test_code='int main(){return(0);}'
6990 # If no C compiler was specified, use CC.
6993 # If no C compiler flags were specified, use CFLAGS.
6994 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6996 # Allow CC to be a program name with arguments.
7000 # save warnings/boilerplate of simple test code
7001 ac_outfile=conftest.$ac_objext
7002 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7003 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7004 _lt_compiler_boilerplate=`cat conftest.err`
7007 ac_outfile=conftest.$ac_objext
7008 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7009 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7010 _lt_linker_boilerplate=`cat conftest.err`
7015 lt_prog_compiler_no_builtin_flag=
7017 if test "$GCC" = yes; then
7018 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7021 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7022 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7023 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7024 echo $ECHO_N "(cached) $ECHO_C" >&6
7026 lt_cv_prog_compiler_rtti_exceptions=no
7027 ac_outfile=conftest.$ac_objext
7028 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7029 lt_compiler_flag="-fno-rtti -fno-exceptions"
7030 # Insert the option either (1) after the last *FLAGS variable, or
7031 # (2) before a word containing "conftest.", or (3) at the end.
7032 # Note that $ac_compile itself does not contain backslashes and begins
7033 # with a dollar sign (not a hyphen), so the echo should work correctly.
7034 # The option is referenced via a variable to avoid confusing sed.
7035 lt_compile=`echo "$ac_compile" | $SED \
7036 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7037 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7038 -e 's:$: $lt_compiler_flag:'`
7039 (eval echo "\"\$as_me:7039: $lt_compile\"" >&5)
7040 (eval "$lt_compile" 2>conftest.err)
7042 cat conftest.err >&5
7043 echo "$as_me:7043: \$? = $ac_status" >&5
7044 if (exit $ac_status) && test -s "$ac_outfile"; then
7045 # The compiler can only warn and ignore the option if not recognized
7046 # So say no if there are warnings other than the usual output.
7047 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7048 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7049 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7050 lt_cv_prog_compiler_rtti_exceptions=yes
7056 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7057 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7059 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7060 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7067 lt_prog_compiler_wl=
7068 lt_prog_compiler_pic=
7069 lt_prog_compiler_static=
7071 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7072 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7074 if test "$GCC" = yes; then
7075 lt_prog_compiler_wl='-Wl,'
7076 lt_prog_compiler_static='-static'
7080 # All AIX code is PIC.
7081 if test "$host_cpu" = ia64; then
7082 # AIX 5 now supports IA64 processor
7083 lt_prog_compiler_static='-Bstatic'
7088 # FIXME: we need at least 68020 code to build shared libraries, but
7089 # adding the `-m68020' flag to GCC prevents building anything better,
7091 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7094 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7095 # PIC is the default for these OSes.
7098 mingw* | cygwin* | pw32* | os2*)
7099 # This hack is so that the source file can tell whether it is being
7100 # built for inclusion in a dll (and should export symbols for example).
7101 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7102 # (--disable-auto-import) libraries
7103 lt_prog_compiler_pic='-DDLL_EXPORT'
7106 darwin* | rhapsody*)
7107 # PIC is the default on this platform
7108 # Common symbols not allowed in MH_DYLIB files
7109 lt_prog_compiler_pic='-fno-common'
7113 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7114 # Instead, we relocate shared libraries at runtime.
7118 # Just because we use GCC doesn't mean we suddenly get shared libraries
7119 # on systems that don't support them.
7120 lt_prog_compiler_can_build_shared=no
7125 if test -d /usr/nec; then
7126 lt_prog_compiler_pic=-Kconform_pic
7131 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7138 lt_prog_compiler_pic='-fPIC'
7144 lt_prog_compiler_pic='-fPIC'
7148 # PORTME Check for flag to pass linker flags through the system compiler.
7151 lt_prog_compiler_wl='-Wl,'
7152 if test "$host_cpu" = ia64; then
7153 # AIX 5 now supports IA64 processor
7154 lt_prog_compiler_static='-Bstatic'
7156 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7160 # PIC is the default on this platform
7161 # Common symbols not allowed in MH_DYLIB files
7162 case $cc_basename in
7164 lt_prog_compiler_pic='-qnocommon'
7165 lt_prog_compiler_wl='-Wl,'
7170 mingw* | cygwin* | pw32* | os2*)
7171 # This hack is so that the source file can tell whether it is being
7172 # built for inclusion in a dll (and should export symbols for example).
7173 lt_prog_compiler_pic='-DDLL_EXPORT'
7176 hpux9* | hpux10* | hpux11*)
7177 lt_prog_compiler_wl='-Wl,'
7178 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7185 lt_prog_compiler_pic='+Z'
7188 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7189 lt_prog_compiler_static='${wl}-a ${wl}archive'
7192 irix5* | irix6* | nonstopux*)
7193 lt_prog_compiler_wl='-Wl,'
7194 # PIC (with -KPIC) is the default.
7195 lt_prog_compiler_static='-non_shared'
7199 lt_prog_compiler_pic='-KPIC'
7200 lt_prog_compiler_static='-Bstatic'
7203 linux* | k*bsd*-gnu)
7204 case $cc_basename in
7206 lt_prog_compiler_wl='-Wl,'
7207 lt_prog_compiler_pic='-KPIC'
7208 lt_prog_compiler_static='-static'
7210 pgcc* | pgf77* | pgf90* | pgf95*)
7211 # Portland Group compilers (*not* the Pentium gcc compiler,
7212 # which looks to be a dead project)
7213 lt_prog_compiler_wl='-Wl,'
7214 lt_prog_compiler_pic='-fpic'
7215 lt_prog_compiler_static='-Bstatic'
7218 lt_prog_compiler_wl='-Wl,'
7219 # All Alpha code is PIC.
7220 lt_prog_compiler_static='-non_shared'
7223 case `$CC -V 2>&1 | sed 5q` in
7226 lt_prog_compiler_pic='-KPIC'
7227 lt_prog_compiler_static='-Bstatic'
7228 lt_prog_compiler_wl='-Wl,'
7231 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7232 lt_prog_compiler_pic='-KPIC'
7233 lt_prog_compiler_static='-Bstatic'
7234 lt_prog_compiler_wl=''
7241 osf3* | osf4* | osf5*)
7242 lt_prog_compiler_wl='-Wl,'
7243 # All OSF/1 code is PIC.
7244 lt_prog_compiler_static='-non_shared'
7248 lt_prog_compiler_static='-non_shared'
7252 lt_prog_compiler_pic='-KPIC'
7253 lt_prog_compiler_static='-Bstatic'
7254 case $cc_basename in
7256 lt_prog_compiler_wl='-Qoption ld ';;
7258 lt_prog_compiler_wl='-Wl,';;
7263 lt_prog_compiler_wl='-Qoption ld '
7264 lt_prog_compiler_pic='-PIC'
7265 lt_prog_compiler_static='-Bstatic'
7268 sysv4 | sysv4.2uw2* | sysv4.3*)
7269 lt_prog_compiler_wl='-Wl,'
7270 lt_prog_compiler_pic='-KPIC'
7271 lt_prog_compiler_static='-Bstatic'
7275 if test -d /usr/nec ;then
7276 lt_prog_compiler_pic='-Kconform_pic'
7277 lt_prog_compiler_static='-Bstatic'
7281 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7282 lt_prog_compiler_wl='-Wl,'
7283 lt_prog_compiler_pic='-KPIC'
7284 lt_prog_compiler_static='-Bstatic'
7288 lt_prog_compiler_wl='-Wl,'
7289 lt_prog_compiler_can_build_shared=no
7293 lt_prog_compiler_pic='-pic'
7294 lt_prog_compiler_static='-Bstatic'
7298 lt_prog_compiler_can_build_shared=no
7303 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7304 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7307 # Check to make sure the PIC flag actually works.
7309 if test -n "$lt_prog_compiler_pic"; then
7311 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7312 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7313 if test "${lt_prog_compiler_pic_works+set}" = set; then
7314 echo $ECHO_N "(cached) $ECHO_C" >&6
7316 lt_prog_compiler_pic_works=no
7317 ac_outfile=conftest.$ac_objext
7318 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7319 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7320 # Insert the option either (1) after the last *FLAGS variable, or
7321 # (2) before a word containing "conftest.", or (3) at the end.
7322 # Note that $ac_compile itself does not contain backslashes and begins
7323 # with a dollar sign (not a hyphen), so the echo should work correctly.
7324 # The option is referenced via a variable to avoid confusing sed.
7325 lt_compile=`echo "$ac_compile" | $SED \
7326 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7327 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7328 -e 's:$: $lt_compiler_flag:'`
7329 (eval echo "\"\$as_me:7329: $lt_compile\"" >&5)
7330 (eval "$lt_compile" 2>conftest.err)
7332 cat conftest.err >&5
7333 echo "$as_me:7333: \$? = $ac_status" >&5
7334 if (exit $ac_status) && test -s "$ac_outfile"; then
7335 # The compiler can only warn and ignore the option if not recognized
7336 # So say no if there are warnings other than the usual output.
7337 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7338 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7339 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7340 lt_prog_compiler_pic_works=yes
7346 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7347 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7349 if test x"$lt_prog_compiler_pic_works" = xyes; then
7350 case $lt_prog_compiler_pic in
7352 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7355 lt_prog_compiler_pic=
7356 lt_prog_compiler_can_build_shared=no
7361 # For platforms which do not support PIC, -DPIC is meaningless:
7363 lt_prog_compiler_pic=
7366 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7371 # Check to make sure the static flag actually works.
7373 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7374 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7375 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7376 if test "${lt_prog_compiler_static_works+set}" = set; then
7377 echo $ECHO_N "(cached) $ECHO_C" >&6
7379 lt_prog_compiler_static_works=no
7380 save_LDFLAGS="$LDFLAGS"
7381 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7382 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7383 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7384 # The linker can only warn and ignore the option if not recognized
7385 # So say no if there are warnings
7386 if test -s conftest.err; then
7387 # Append any errors to the config.log.
7388 cat conftest.err 1>&5
7389 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7390 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7391 if diff conftest.exp conftest.er2 >/dev/null; then
7392 lt_prog_compiler_static_works=yes
7395 lt_prog_compiler_static_works=yes
7399 LDFLAGS="$save_LDFLAGS"
7402 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7403 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7405 if test x"$lt_prog_compiler_static_works" = xyes; then
7408 lt_prog_compiler_static=
7412 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7413 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7414 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7415 echo $ECHO_N "(cached) $ECHO_C" >&6
7417 lt_cv_prog_compiler_c_o=no
7418 $rm -r conftest 2>/dev/null
7422 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7424 lt_compiler_flag="-o out/conftest2.$ac_objext"
7425 # Insert the option either (1) after the last *FLAGS variable, or
7426 # (2) before a word containing "conftest.", or (3) at the end.
7427 # Note that $ac_compile itself does not contain backslashes and begins
7428 # with a dollar sign (not a hyphen), so the echo should work correctly.
7429 lt_compile=`echo "$ac_compile" | $SED \
7430 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7431 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7432 -e 's:$: $lt_compiler_flag:'`
7433 (eval echo "\"\$as_me:7433: $lt_compile\"" >&5)
7434 (eval "$lt_compile" 2>out/conftest.err)
7436 cat out/conftest.err >&5
7437 echo "$as_me:7437: \$? = $ac_status" >&5
7438 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7440 # The compiler can only warn and ignore the option if not recognized
7441 # So say no if there are warnings
7442 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7443 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7444 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7445 lt_cv_prog_compiler_c_o=yes
7450 # SGI C++ compiler will create directory out/ii_files/ for
7451 # template instantiation
7452 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7453 $rm out/* && rmdir out
7459 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7460 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7463 hard_links="nottested"
7464 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7465 # do not overwrite the value of need_locks provided by the user
7466 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7467 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7470 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7472 ln conftest.a conftest.b 2>&5 || hard_links=no
7473 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7474 { echo "$as_me:$LINENO: result: $hard_links" >&5
7475 echo "${ECHO_T}$hard_links" >&6; }
7476 if test "$hard_links" = no; then
7477 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7478 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7485 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7486 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7489 allow_undefined_flag=
7490 enable_shared_with_static_runtimes=no
7492 archive_expsym_cmds=
7493 old_archive_From_new_cmds=
7494 old_archive_from_expsyms_cmds=
7495 export_dynamic_flag_spec=
7496 whole_archive_flag_spec=
7497 thread_safe_flag_spec=
7498 hardcode_libdir_flag_spec=
7499 hardcode_libdir_flag_spec_ld=
7500 hardcode_libdir_separator=
7503 hardcode_shlibpath_var=unsupported
7504 link_all_deplibs=unknown
7505 hardcode_automatic=no
7508 always_export_symbols=no
7509 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7510 # include_expsyms should be a list of space-separated symbols to be *always*
7511 # included in the symbol list
7513 # exclude_expsyms can be an extended regexp of symbols to exclude
7514 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7515 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7516 # as well as any symbol that contains `d'.
7517 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7518 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7519 # platforms (ab)use it in PIC code, but their linkers get confused if
7520 # the symbol is explicitly referenced. Since portable code cannot
7521 # rely on this symbol name, it's probably fine to never include it in
7522 # preloaded symbol tables.
7523 extract_expsyms_cmds=
7524 # Just being paranoid about ensuring that cc_basename is set.
7525 for cc_temp in $compiler""; do
7527 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7528 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7533 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7536 cygwin* | mingw* | pw32*)
7537 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7538 # When not using gcc, we currently assume that we are using
7539 # Microsoft Visual C++.
7540 if test "$GCC" != yes; then
7545 # we just hope/assume this is gcc and not c89 (= MSVC++)
7554 if test "$with_gnu_ld" = yes; then
7555 # If archive_cmds runs LD, not CC, wlarc should be empty
7558 # Set some defaults for GNU ld with shared library support. These
7559 # are reset later if shared libraries are not supported. Putting them
7560 # here allows them to be overridden if necessary.
7561 runpath_var=LD_RUN_PATH
7562 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7563 export_dynamic_flag_spec='${wl}--export-dynamic'
7564 # ancient GNU ld didn't support --whole-archive et. al.
7565 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7566 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7568 whole_archive_flag_spec=
7570 supports_anon_versioning=no
7571 case `$LD -v 2>/dev/null` in
7572 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7573 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7574 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7575 *\ 2.11.*) ;; # other 2.11 versions
7576 *) supports_anon_versioning=yes ;;
7579 # See if GNU ld supports shared libraries.
7581 aix3* | aix4* | aix5*)
7582 # On AIX/PPC, the GNU linker is very broken
7583 if test "$host_cpu" != ia64; then
7587 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7588 *** to be unable to reliably create shared libraries on AIX.
7589 *** Therefore, libtool is disabling shared libraries support. If you
7590 *** really care for shared libraries, you may want to modify your PATH
7591 *** so that a non-GNU linker is found, and then restart.
7598 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)'
7599 hardcode_libdir_flag_spec='-L$libdir'
7600 hardcode_minus_L=yes
7602 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7603 # that the semantics of dynamic libraries on AmigaOS, at least up
7604 # to version 4, is to share data among multiple programs linked
7605 # with the same dynamic library. Since this doesn't match the
7606 # behavior of shared libraries on other platforms, we can't use
7612 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7613 allow_undefined_flag=unsupported
7614 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7615 # support --undefined. This deserves some investigation. FIXME
7616 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7622 cygwin* | mingw* | pw32*)
7623 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7624 # as there is no search path for DLLs.
7625 hardcode_libdir_flag_spec='-L$libdir'
7626 allow_undefined_flag=unsupported
7627 always_export_symbols=no
7628 enable_shared_with_static_runtimes=yes
7629 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7631 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7632 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7633 # If the export-symbols file already is a .def file (1st line
7634 # is EXPORTS), use it as is; otherwise, prepend...
7635 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7636 cp $export_symbols $output_objdir/$soname.def;
7638 echo EXPORTS > $output_objdir/$soname.def;
7639 cat $export_symbols >> $output_objdir/$soname.def;
7641 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7649 hardcode_shlibpath_var=no
7650 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7651 export_dynamic_flag_spec='${wl}-E'
7652 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7653 # Instead, shared libraries are loaded at an image base (0x10000000 by
7654 # default) and relocated if they conflict, which is a slow very memory
7655 # consuming and fragmenting process. To avoid this, we pick a random,
7656 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7657 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7658 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7659 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'
7662 gnu* | linux* | k*bsd*-gnu)
7663 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7665 case $cc_basename,$host_cpu in
7666 pgcc*) # Portland Group C compiler
7667 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'
7668 tmp_addflag=' $pic_flag'
7670 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7671 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'
7672 tmp_addflag=' $pic_flag -Mnomain' ;;
7673 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7674 tmp_addflag=' -i_dynamic' ;;
7675 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7676 tmp_addflag=' -i_dynamic -nofor_main' ;;
7677 ifc* | ifort*) # Intel Fortran compiler
7678 tmp_addflag=' -nofor_main' ;;
7680 case `$CC -V 2>&1 | sed 5q` in
7681 *Sun\ C*) # Sun C 5.9
7682 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'
7683 tmp_sharedflag='-G' ;;
7684 *Sun\ F*) # Sun Fortran 8.3
7685 tmp_sharedflag='-G' ;;
7687 tmp_sharedflag='-shared' ;;
7689 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7691 if test $supports_anon_versioning = yes; then
7692 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7693 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7694 $echo "local: *; };" >> $output_objdir/$libname.ver~
7695 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7703 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7704 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7707 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7708 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7713 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7717 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7718 *** create shared libraries on Solaris systems. Therefore, libtool
7719 *** is disabling shared libraries support. We urge you to upgrade GNU
7720 *** binutils to release 2.9.1 or newer. Another option is to modify
7721 *** your PATH or compiler configuration so that the native linker is
7722 *** used, and then restart.
7725 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7726 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7727 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7733 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7734 case `$LD -v 2>&1` in
7735 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7739 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7740 *** reliably create shared libraries on SCO systems. Therefore, libtool
7741 *** is disabling shared libraries support. We urge you to upgrade GNU
7742 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7743 *** your PATH or compiler configuration so that the native linker is
7744 *** used, and then restart.
7749 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7750 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7751 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7752 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7761 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7764 hardcode_shlibpath_var=no
7768 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7769 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7770 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7777 if test "$ld_shlibs" = no; then
7779 hardcode_libdir_flag_spec=
7780 export_dynamic_flag_spec=
7781 whole_archive_flag_spec=
7784 # PORTME fill in a description of your system's linker (not GNU ld)
7787 allow_undefined_flag=unsupported
7788 always_export_symbols=yes
7789 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'
7790 # Note: this linker hardcodes the directories in LIBPATH if there
7791 # are no directories specified by -L.
7792 hardcode_minus_L=yes
7793 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7794 # Neither direct hardcoding nor static linking is supported with a
7796 hardcode_direct=unsupported
7801 if test "$host_cpu" = ia64; then
7802 # On IA64, the linker does run time linking by default, so we don't
7803 # have to do anything special.
7804 aix_use_runtimelinking=no
7805 exp_sym_flag='-Bexport'
7808 # If we're using GNU nm, then we don't want the "-C" option.
7809 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7810 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7811 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'
7813 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'
7815 aix_use_runtimelinking=no
7817 # Test if we are trying to use run time linking or normal
7818 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7819 # need to do runtime linking.
7820 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7821 for ld_flag in $LDFLAGS; do
7822 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7823 aix_use_runtimelinking=yes
7830 exp_sym_flag='-bexport'
7831 no_entry_flag='-bnoentry'
7834 # When large executables or shared objects are built, AIX ld can
7835 # have problems creating the table of contents. If linking a library
7836 # or program results in "error TOC overflow" add -mminimal-toc to
7837 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7838 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7842 hardcode_libdir_separator=':'
7843 link_all_deplibs=yes
7845 if test "$GCC" = yes; then
7846 case $host_os in aix4.[012]|aix4.[012].*)
7847 # We only want to do this on AIX 4.2 and lower, the check
7848 # below for broken collect2 doesn't work under 4.3+
7849 collect2name=`${CC} -print-prog-name=collect2`
7850 if test -f "$collect2name" && \
7851 strings "$collect2name" | grep resolve_lib_name >/dev/null
7853 # We have reworked collect2
7856 # We have old collect2
7857 hardcode_direct=unsupported
7858 # It fails to find uninstalled libraries when the uninstalled
7859 # path is not listed in the libpath. Setting hardcode_minus_L
7860 # to unsupported forces relinking
7861 hardcode_minus_L=yes
7862 hardcode_libdir_flag_spec='-L$libdir'
7863 hardcode_libdir_separator=
7867 shared_flag='-shared'
7868 if test "$aix_use_runtimelinking" = yes; then
7869 shared_flag="$shared_flag "'${wl}-G'
7873 if test "$host_cpu" = ia64; then
7874 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7875 # chokes on -Wl,-G. The following line is correct:
7878 if test "$aix_use_runtimelinking" = yes; then
7879 shared_flag='${wl}-G'
7881 shared_flag='${wl}-bM:SRE'
7886 # It seems that -bexpall does not export symbols beginning with
7887 # underscore (_), so it is better to generate a list of symbols to export.
7888 always_export_symbols=yes
7889 if test "$aix_use_runtimelinking" = yes; then
7890 # Warning - without using the other runtime loading flags (-brtl),
7891 # -berok will link without error, but may produce a broken library.
7892 allow_undefined_flag='-berok'
7893 # Determine the default libpath from the value encoded in an empty executable.
7894 cat >conftest.$ac_ext <<_ACEOF
7897 cat confdefs.h >>conftest.$ac_ext
7898 cat >>conftest.$ac_ext <<_ACEOF
7899 /* end confdefs.h. */
7909 rm -f conftest.$ac_objext conftest$ac_exeext
7910 if { (ac_try="$ac_link"
7912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7913 *) ac_try_echo=$ac_try;;
7915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7916 (eval "$ac_link") 2>conftest.er1
7918 grep -v '^ *+' conftest.er1 >conftest.err
7920 cat conftest.err >&5
7921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922 (exit $ac_status); } && {
7923 test -z "$ac_c_werror_flag" ||
7924 test ! -s conftest.err
7925 } && test -s conftest$ac_exeext &&
7926 $as_test_x conftest$ac_exeext; then
7928 lt_aix_libpath_sed='
7929 /Import File Strings/,/^$/ {
7935 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7936 # Check for a 64-bit object if we didn't find anything.
7937 if test -z "$aix_libpath"; then
7938 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7941 echo "$as_me: failed program was:" >&5
7942 sed 's/^/| /' conftest.$ac_ext >&5
7947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7948 conftest$ac_exeext conftest.$ac_ext
7949 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7951 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7952 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"
7954 if test "$host_cpu" = ia64; then
7955 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7956 allow_undefined_flag="-z nodefs"
7957 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"
7959 # Determine the default libpath from the value encoded in an empty executable.
7960 cat >conftest.$ac_ext <<_ACEOF
7963 cat confdefs.h >>conftest.$ac_ext
7964 cat >>conftest.$ac_ext <<_ACEOF
7965 /* end confdefs.h. */
7975 rm -f conftest.$ac_objext conftest$ac_exeext
7976 if { (ac_try="$ac_link"
7978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7979 *) ac_try_echo=$ac_try;;
7981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7982 (eval "$ac_link") 2>conftest.er1
7984 grep -v '^ *+' conftest.er1 >conftest.err
7986 cat conftest.err >&5
7987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988 (exit $ac_status); } && {
7989 test -z "$ac_c_werror_flag" ||
7990 test ! -s conftest.err
7991 } && test -s conftest$ac_exeext &&
7992 $as_test_x conftest$ac_exeext; then
7994 lt_aix_libpath_sed='
7995 /Import File Strings/,/^$/ {
8001 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8002 # Check for a 64-bit object if we didn't find anything.
8003 if test -z "$aix_libpath"; then
8004 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8007 echo "$as_me: failed program was:" >&5
8008 sed 's/^/| /' conftest.$ac_ext >&5
8013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8014 conftest$ac_exeext conftest.$ac_ext
8015 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8017 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8018 # Warning - without using the other run time loading flags,
8019 # -berok will link without error, but may produce a broken library.
8020 no_undefined_flag=' ${wl}-bernotok'
8021 allow_undefined_flag=' ${wl}-berok'
8022 # Exported symbols can be pulled into shared objects from archives
8023 whole_archive_flag_spec='$convenience'
8024 archive_cmds_need_lc=yes
8025 # This is similar to how AIX traditionally builds its shared libraries.
8026 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'
8032 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)'
8033 hardcode_libdir_flag_spec='-L$libdir'
8034 hardcode_minus_L=yes
8035 # see comment about different semantics on the GNU ld section
8040 export_dynamic_flag_spec=-rdynamic
8043 cygwin* | mingw* | pw32*)
8044 # When not using gcc, we currently assume that we are using
8045 # Microsoft Visual C++.
8046 # hardcode_libdir_flag_spec is actually meaningless, as there is
8047 # no search path for DLLs.
8048 hardcode_libdir_flag_spec=' '
8049 allow_undefined_flag=unsupported
8050 # Tell ltmain to make .lib files, not .a files.
8052 # Tell ltmain to make .dll files, not .so files.
8054 # FIXME: Setting linknames here is a bad hack.
8055 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8056 # The linker will automatically build a .lib file if we build a DLL.
8057 old_archive_From_new_cmds='true'
8058 # FIXME: Should let the user specify the lib program.
8059 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8060 fix_srcfile_path='`cygpath -w "$srcfile"`'
8061 enable_shared_with_static_runtimes=yes
8064 darwin* | rhapsody*)
8066 rhapsody* | darwin1.[012])
8067 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8070 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8071 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8073 case ${MACOSX_DEPLOYMENT_TARGET} in
8075 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8078 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8084 archive_cmds_need_lc=no
8086 hardcode_automatic=yes
8087 hardcode_shlibpath_var=unsupported
8088 whole_archive_flag_spec=''
8089 link_all_deplibs=yes
8090 if test "$GCC" = yes ; then
8091 output_verbose_link_cmd='echo'
8092 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8093 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8094 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8095 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}'
8096 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}'
8098 case $cc_basename in
8100 output_verbose_link_cmd='echo'
8101 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8102 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8103 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8104 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}'
8105 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}'
8115 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8116 hardcode_libdir_flag_spec='-L$libdir'
8117 hardcode_shlibpath_var=no
8124 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8125 # support. Future versions do this automatically, but an explicit c++rt0.o
8126 # does not break anything, and helps significantly (at the cost of a little
8129 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8130 hardcode_libdir_flag_spec='-R$libdir'
8132 hardcode_shlibpath_var=no
8135 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8137 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8139 hardcode_minus_L=yes
8140 hardcode_shlibpath_var=no
8143 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8144 freebsd* | dragonfly*)
8145 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8146 hardcode_libdir_flag_spec='-R$libdir'
8148 hardcode_shlibpath_var=no
8152 if test "$GCC" = yes; then
8153 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'
8155 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'
8157 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8158 hardcode_libdir_separator=:
8161 # hardcode_minus_L: Not really in the search PATH,
8162 # but as the default location of the library.
8163 hardcode_minus_L=yes
8164 export_dynamic_flag_spec='${wl}-E'
8168 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8169 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8171 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8173 if test "$with_gnu_ld" = no; then
8174 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8175 hardcode_libdir_separator=:
8178 export_dynamic_flag_spec='${wl}-E'
8180 # hardcode_minus_L: Not really in the search PATH,
8181 # but as the default location of the library.
8182 hardcode_minus_L=yes
8187 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8190 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8193 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8196 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8202 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8205 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8208 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8212 if test "$with_gnu_ld" = no; then
8213 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8214 hardcode_libdir_separator=:
8218 hardcode_libdir_flag_spec_ld='+b $libdir'
8220 hardcode_shlibpath_var=no
8224 export_dynamic_flag_spec='${wl}-E'
8226 # hardcode_minus_L: Not really in the search PATH,
8227 # but as the default location of the library.
8228 hardcode_minus_L=yes
8234 irix5* | irix6* | nonstopux*)
8235 if test "$GCC" = yes; then
8236 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'
8238 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'
8239 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8241 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8242 hardcode_libdir_separator=:
8243 link_all_deplibs=yes
8247 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8248 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8250 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8252 hardcode_libdir_flag_spec='-R$libdir'
8254 hardcode_shlibpath_var=no
8258 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8260 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8261 hardcode_libdir_separator=:
8262 hardcode_shlibpath_var=no
8266 if test -f /usr/libexec/ld.so; then
8268 hardcode_shlibpath_var=no
8269 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8270 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8271 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8272 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8273 export_dynamic_flag_spec='${wl}-E'
8276 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8277 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8278 hardcode_libdir_flag_spec='-R$libdir'
8281 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8282 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8292 hardcode_libdir_flag_spec='-L$libdir'
8293 hardcode_minus_L=yes
8294 allow_undefined_flag=unsupported
8295 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'
8296 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8300 if test "$GCC" = yes; then
8301 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8302 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'
8304 allow_undefined_flag=' -expect_unresolved \*'
8305 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'
8307 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8308 hardcode_libdir_separator=:
8311 osf4* | osf5*) # as osf3* with the addition of -msym flag
8312 if test "$GCC" = yes; then
8313 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8314 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'
8315 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8317 allow_undefined_flag=' -expect_unresolved \*'
8318 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'
8319 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8320 $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'
8322 # Both c and cxx compiler support -rpath directly
8323 hardcode_libdir_flag_spec='-rpath $libdir'
8325 hardcode_libdir_separator=:
8329 no_undefined_flag=' -z text'
8330 if test "$GCC" = yes; then
8332 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8333 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8334 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8337 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8338 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8339 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8341 hardcode_libdir_flag_spec='-R$libdir'
8342 hardcode_shlibpath_var=no
8344 solaris2.[0-5] | solaris2.[0-5].*) ;;
8346 # The compiler driver will combine and reorder linker options,
8347 # but understands `-z linker_flag'. GCC discards it without `$wl',
8348 # but is careful enough not to reorder.
8349 # Supported since Solaris 2.6 (maybe 2.5.1?)
8350 if test "$GCC" = yes; then
8351 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8353 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8357 link_all_deplibs=yes
8361 if test "x$host_vendor" = xsequent; then
8362 # Use $CC to link under sequent, because it throws in some extra .o
8363 # files that make .init and .fini sections work.
8364 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8366 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8368 hardcode_libdir_flag_spec='-L$libdir'
8370 hardcode_minus_L=yes
8371 hardcode_shlibpath_var=no
8375 case $host_vendor in
8377 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8378 hardcode_direct=yes # is this really true???
8381 ## LD is ld it makes a PLAMLIB
8382 ## CC just makes a GrossModule.
8383 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8384 reload_cmds='$CC -r -o $output$reload_objs'
8388 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8389 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8392 runpath_var='LD_RUN_PATH'
8393 hardcode_shlibpath_var=no
8397 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8398 hardcode_shlibpath_var=no
8399 export_dynamic_flag_spec='-Bexport'
8403 if test -d /usr/nec; then
8404 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8405 hardcode_shlibpath_var=no
8406 runpath_var=LD_RUN_PATH
8407 hardcode_runpath_var=yes
8412 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8413 no_undefined_flag='${wl}-z,text'
8414 archive_cmds_need_lc=no
8415 hardcode_shlibpath_var=no
8416 runpath_var='LD_RUN_PATH'
8418 if test "$GCC" = yes; then
8419 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8420 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8422 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8423 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8427 sysv5* | sco3.2v5* | sco5v6*)
8428 # Note: We can NOT use -z defs as we might desire, because we do not
8429 # link with -lc, and that would cause any symbols used from libc to
8430 # always be unresolved, which means just about no library would
8431 # ever link correctly. If we're not using GNU ld we use -z text
8432 # though, which does catch some bad symbols but isn't as heavy-handed
8434 no_undefined_flag='${wl}-z,text'
8435 allow_undefined_flag='${wl}-z,nodefs'
8436 archive_cmds_need_lc=no
8437 hardcode_shlibpath_var=no
8438 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8439 hardcode_libdir_separator=':'
8440 link_all_deplibs=yes
8441 export_dynamic_flag_spec='${wl}-Bexport'
8442 runpath_var='LD_RUN_PATH'
8444 if test "$GCC" = yes; then
8445 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8446 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8448 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8449 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8454 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8455 hardcode_libdir_flag_spec='-L$libdir'
8456 hardcode_shlibpath_var=no
8465 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8466 echo "${ECHO_T}$ld_shlibs" >&6; }
8467 test "$ld_shlibs" = no && can_build_shared=no
8470 # Do we need to explicitly link libc?
8472 case "x$archive_cmds_need_lc" in
8474 # Assume -lc should be added
8475 archive_cmds_need_lc=yes
8477 if test "$enable_shared" = yes && test "$GCC" = yes; then
8478 case $archive_cmds in
8480 # FIXME: we may have to deal with multi-command sequences.
8483 # Test whether the compiler implicitly links with -lc since on some
8484 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8485 # to ld, don't add -lc before -lgcc.
8486 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8487 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8489 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8492 (eval $ac_compile) 2>&5
8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); } 2>conftest.err; then
8498 libobjs=conftest.$ac_objext
8500 wl=$lt_prog_compiler_wl
8501 pic_flag=$lt_prog_compiler_pic
8507 lt_save_allow_undefined_flag=$allow_undefined_flag
8508 allow_undefined_flag=
8509 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8510 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513 (exit $ac_status); }
8515 archive_cmds_need_lc=no
8517 archive_cmds_need_lc=yes
8519 allow_undefined_flag=$lt_save_allow_undefined_flag
8521 cat conftest.err 1>&5
8524 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8525 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8532 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8533 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8535 libname_spec='lib$name'
8543 shlibpath_overrides_runpath=unknown
8545 dynamic_linker="$host_os ld.so"
8546 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8548 if test "$GCC" = yes; then
8550 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8551 *) lt_awk_arg="/^libraries:/" ;;
8553 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8554 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8555 # if the path contains ";" then we assume it to be the separator
8556 # otherwise default to the standard path separator (i.e. ":") - it is
8557 # assumed that no part of a normal pathname contains ";" but that should
8558 # okay in the real world where ";" in dirpaths is itself problematic.
8559 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8561 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8563 # Ok, now we have the path, separated by spaces, we can step through it
8564 # and add multilib dir if necessary.
8565 lt_tmp_lt_search_path_spec=
8566 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8567 for lt_sys_path in $lt_search_path_spec; do
8568 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8569 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8571 test -d "$lt_sys_path" && \
8572 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8575 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8576 BEGIN {RS=" "; FS="/|\n";} {
8579 for (lt_i = NF; lt_i > 0; lt_i--) {
8580 if ($lt_i != "" && $lt_i != ".") {
8581 if ($lt_i == "..") {
8584 if (lt_count == 0) {
8585 lt_foo="/" $lt_i lt_foo;
8592 if (lt_foo != "") { lt_freq[lt_foo]++; }
8593 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8595 sys_lib_search_path_spec=`echo $lt_search_path_spec`
8597 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8599 need_lib_prefix=unknown
8600 hardcode_into_libs=no
8602 # when you set need_version to no, make sure it does not cause -set_version
8603 # flags to be left without arguments
8604 need_version=unknown
8609 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8610 shlibpath_var=LIBPATH
8612 # AIX 3 has no versioning support, so we append a major version to the name.
8613 soname_spec='${libname}${release}${shared_ext}$major'
8620 hardcode_into_libs=yes
8621 if test "$host_cpu" = ia64; then
8622 # AIX 5 supports IA64
8623 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8624 shlibpath_var=LD_LIBRARY_PATH
8626 # With GCC up to 2.95.x, collect2 would create an import file
8627 # for dependence libraries. The import file would start with
8628 # the line `#! .'. This would cause the generated library to
8629 # depend on `.', always an invalid library. This was fixed in
8630 # development snapshots of GCC prior to 3.0.
8632 aix4 | aix4.[01] | aix4.[01].*)
8633 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8635 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8642 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8643 # soname into executable. Probably we can add versioning support to
8644 # collect2, so additional links can be useful in future.
8645 if test "$aix_use_runtimelinking" = yes; then
8646 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8647 # instead of lib<name>.a to let people know that these are not
8648 # typical AIX shared libraries.
8649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8651 # We preserve .a as extension for shared libraries through AIX4.2
8652 # and later when we are not doing run time linking.
8653 library_names_spec='${libname}${release}.a $libname.a'
8654 soname_spec='${libname}${release}${shared_ext}$major'
8656 shlibpath_var=LIBPATH
8661 library_names_spec='$libname.ixlibrary $libname.a'
8662 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8663 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'
8667 library_names_spec='${libname}${shared_ext}'
8668 dynamic_linker="$host_os ld.so"
8669 shlibpath_var=LIBRARY_PATH
8675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8676 soname_spec='${libname}${release}${shared_ext}$major'
8677 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8678 shlibpath_var=LD_LIBRARY_PATH
8679 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8680 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8681 # the default ld.so.conf also contains /usr/contrib/lib and
8682 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8683 # libtool to hard-code these into programs
8686 cygwin* | mingw* | pw32*)
8687 version_type=windows
8692 case $GCC,$host_os in
8693 yes,cygwin* | yes,mingw* | yes,pw32*)
8694 library_names_spec='$libname.dll.a'
8695 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8696 postinstall_cmds='base_file=`basename \${file}`~
8697 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8698 dldir=$destdir/`dirname \$dlpath`~
8699 test -d \$dldir || mkdir -p \$dldir~
8700 $install_prog $dir/$dlname \$dldir/$dlname~
8701 chmod a+x \$dldir/$dlname'
8702 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8703 dlpath=$dir/\$dldll~
8705 shlibpath_overrides_runpath=yes
8709 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8710 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8711 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8714 # MinGW DLLs use traditional 'lib' prefix
8715 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8716 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8717 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8718 # It is most probably a Windows format PATH printed by
8719 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8720 # path with ; separators, and with drive letters. We can handle the
8721 # drive letters (cygwin fileutils understands them), so leave them,
8722 # especially as we might pass files found there to a mingw objdump,
8723 # which wouldn't understand a cygwinified path. Ahh.
8724 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8726 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8730 # pw32 DLLs use 'pw' prefix rather than 'lib'
8731 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8737 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8740 dynamic_linker='Win32 ld.exe'
8741 # FIXME: first we should search . and the directory the executable is in
8745 darwin* | rhapsody*)
8746 dynamic_linker="$host_os dyld"
8750 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8751 soname_spec='${libname}${release}${major}$shared_ext'
8752 shlibpath_overrides_runpath=yes
8753 shlibpath_var=DYLD_LIBRARY_PATH
8754 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8756 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8757 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8765 soname_spec='${libname}${release}${shared_ext}$major'
8766 shlibpath_var=LD_LIBRARY_PATH
8773 freebsd* | dragonfly*)
8774 # DragonFly does not have aout. When/if they implement a new
8775 # versioning mechanism, adjust this.
8776 if test -x /usr/bin/objformat; then
8777 objformat=`/usr/bin/objformat`
8780 freebsd[123]*) objformat=aout ;;
8784 version_type=freebsd-$objformat
8785 case $version_type in
8787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8792 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8796 shlibpath_var=LD_LIBRARY_PATH
8799 shlibpath_overrides_runpath=yes
8801 freebsd3.[01]* | freebsdelf3.[01]*)
8802 shlibpath_overrides_runpath=yes
8803 hardcode_into_libs=yes
8805 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8806 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8807 shlibpath_overrides_runpath=no
8808 hardcode_into_libs=yes
8810 *) # from 4.6 on, and DragonFly
8811 shlibpath_overrides_runpath=yes
8812 hardcode_into_libs=yes
8821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8822 soname_spec='${libname}${release}${shared_ext}$major'
8823 shlibpath_var=LD_LIBRARY_PATH
8824 hardcode_into_libs=yes
8827 hpux9* | hpux10* | hpux11*)
8828 # Give a soname corresponding to the major version so that dld.sl refuses to
8829 # link against other versions.
8836 hardcode_into_libs=yes
8837 dynamic_linker="$host_os dld.so"
8838 shlibpath_var=LD_LIBRARY_PATH
8839 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8841 soname_spec='${libname}${release}${shared_ext}$major'
8842 if test "X$HPUX_IA64_MODE" = X32; then
8843 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8845 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8847 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8851 hardcode_into_libs=yes
8852 dynamic_linker="$host_os dld.sl"
8853 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8854 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8856 soname_spec='${libname}${release}${shared_ext}$major'
8857 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8858 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8862 dynamic_linker="$host_os dld.sl"
8863 shlibpath_var=SHLIB_PATH
8864 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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'
8869 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8870 postinstall_cmds='chmod 555 $lib'
8877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8878 soname_spec='${libname}${release}${shared_ext}$major'
8879 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8880 shlibpath_var=LD_LIBRARY_PATH
8881 shlibpath_overrides_runpath=no
8882 hardcode_into_libs=yes
8885 irix5* | irix6* | nonstopux*)
8887 nonstopux*) version_type=nonstopux ;;
8889 if test "$lt_cv_prog_gnu_ld" = yes; then
8897 soname_spec='${libname}${release}${shared_ext}$major'
8898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8900 irix5* | nonstopux*)
8904 case $LD in # libtool.m4 will add one of these switches to LD
8905 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8906 libsuff= shlibsuff= libmagic=32-bit;;
8907 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8908 libsuff=32 shlibsuff=N32 libmagic=N32;;
8909 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8910 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8911 *) libsuff= shlibsuff= libmagic=never-match;;
8915 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8916 shlibpath_overrides_runpath=no
8917 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8918 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8919 hardcode_into_libs=yes
8922 # No shared lib support for Linux oldld, aout, or coff.
8923 linux*oldld* | linux*aout* | linux*coff*)
8927 # This must be Linux ELF.
8928 linux* | k*bsd*-gnu)
8932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8933 soname_spec='${libname}${release}${shared_ext}$major'
8934 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8935 shlibpath_var=LD_LIBRARY_PATH
8936 shlibpath_overrides_runpath=no
8937 # This implies no fast_install, which is unacceptable.
8938 # Some rework will be needed to allow for fast_install
8939 # before this can be enabled.
8940 hardcode_into_libs=yes
8942 # find out which ABI we are using
8945 x86_64*|s390x*|powerpc64*)
8946 echo '#line 8946 "configure"' > conftest.$ac_ext
8947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8948 (eval $ac_compile) 2>&5
8950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 (exit $ac_status); }; then
8952 case `/usr/bin/file conftest.$ac_objext` in
8955 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8963 # Append ld.so.conf contents to the search path
8964 if test -f /etc/ld.so.conf; then
8965 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' ' '`
8966 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8969 # We used to test for /lib/ld.so.1 and disable shared libraries on
8970 # powerpc, because MkLinux only supported shared libraries with the
8971 # GNU dynamic linker. Since this was broken with cross compilers,
8972 # most powerpc-linux boxes support dynamic linking these days and
8973 # people can always --disable-shared, the test was removed, and we
8974 # assume the GNU/Linux dynamic linker is in use.
8975 dynamic_linker='GNU/Linux ld.so'
8982 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8984 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8985 dynamic_linker='NetBSD (a.out) ld.so'
8987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8988 soname_spec='${libname}${release}${shared_ext}$major'
8989 dynamic_linker='NetBSD ld.elf_so'
8991 shlibpath_var=LD_LIBRARY_PATH
8992 shlibpath_overrides_runpath=yes
8993 hardcode_into_libs=yes
8998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8999 shlibpath_var=LD_LIBRARY_PATH
9000 shlibpath_overrides_runpath=yes
9007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9008 soname_spec='${libname}${release}${shared_ext}$major'
9009 shlibpath_var=LD_LIBRARY_PATH
9010 shlibpath_overrides_runpath=yes
9015 sys_lib_dlsearch_path_spec="/usr/lib"
9017 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9019 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9020 *) need_version=no ;;
9022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9023 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9024 shlibpath_var=LD_LIBRARY_PATH
9025 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9027 openbsd2.[89] | openbsd2.[89].*)
9028 shlibpath_overrides_runpath=no
9031 shlibpath_overrides_runpath=yes
9035 shlibpath_overrides_runpath=yes
9040 libname_spec='$name'
9043 library_names_spec='$libname${shared_ext} $libname.a'
9044 dynamic_linker='OS/2 ld.exe'
9045 shlibpath_var=LIBPATH
9048 osf3* | osf4* | osf5*)
9052 soname_spec='${libname}${release}${shared_ext}$major'
9053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9054 shlibpath_var=LD_LIBRARY_PATH
9055 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9056 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9068 soname_spec='${libname}${release}${shared_ext}$major'
9069 shlibpath_var=LD_LIBRARY_PATH
9070 shlibpath_overrides_runpath=yes
9071 hardcode_into_libs=yes
9072 # ldd complains unless libraries are executable
9073 postinstall_cmds='chmod +x $lib'
9078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9079 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9080 shlibpath_var=LD_LIBRARY_PATH
9081 shlibpath_overrides_runpath=yes
9082 if test "$with_gnu_ld" = yes; then
9090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9091 soname_spec='${libname}${release}${shared_ext}$major'
9092 shlibpath_var=LD_LIBRARY_PATH
9093 case $host_vendor in
9095 shlibpath_overrides_runpath=no
9097 export_dynamic_flag_spec='${wl}-Blargedynsym'
9098 runpath_var=LD_RUN_PATH
9106 shlibpath_overrides_runpath=no
9107 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9113 if test -d /usr/nec ;then
9115 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9116 soname_spec='$libname${shared_ext}.$major'
9117 shlibpath_var=LD_LIBRARY_PATH
9121 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9122 version_type=freebsd-elf
9125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9126 soname_spec='${libname}${release}${shared_ext}$major'
9127 shlibpath_var=LD_LIBRARY_PATH
9128 hardcode_into_libs=yes
9129 if test "$with_gnu_ld" = yes; then
9130 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9131 shlibpath_overrides_runpath=no
9133 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9134 shlibpath_overrides_runpath=yes
9137 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9141 sys_lib_dlsearch_path_spec='/usr/lib'
9146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9147 soname_spec='${libname}${release}${shared_ext}$major'
9148 shlibpath_var=LD_LIBRARY_PATH
9155 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9156 echo "${ECHO_T}$dynamic_linker" >&6; }
9157 test "$dynamic_linker" = no && can_build_shared=no
9159 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9160 if test "$GCC" = yes; then
9161 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9164 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9165 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9167 if test -n "$hardcode_libdir_flag_spec" || \
9168 test -n "$runpath_var" || \
9169 test "X$hardcode_automatic" = "Xyes" ; then
9171 # We can hardcode non-existant directories.
9172 if test "$hardcode_direct" != no &&
9173 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9174 # have to relink, otherwise we might link with an installed library
9175 # when we should be linking with a yet-to-be-installed one
9176 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9177 test "$hardcode_minus_L" != no; then
9178 # Linking always hardcodes the temporary library directory.
9179 hardcode_action=relink
9181 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9182 hardcode_action=immediate
9185 # We cannot hardcode anything, or else we can only hardcode existing
9187 hardcode_action=unsupported
9189 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9190 echo "${ECHO_T}$hardcode_action" >&6; }
9192 if test "$hardcode_action" = relink; then
9193 # Fast installation is not supported
9194 enable_fast_install=no
9195 elif test "$shlibpath_overrides_runpath" = yes ||
9196 test "$enable_shared" = no; then
9197 # Fast installation is not necessary
9198 enable_fast_install=needless
9203 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9204 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9205 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9206 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9207 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9208 { echo "$as_me:$LINENO: result: yes" >&5
9209 echo "${ECHO_T}yes" >&6; }
9211 # FIXME - insert some real tests, host_os isn't really good enough
9214 if test -n "$STRIP" ; then
9215 striplib="$STRIP -x"
9216 old_striplib="$STRIP -S"
9217 { echo "$as_me:$LINENO: result: yes" >&5
9218 echo "${ECHO_T}yes" >&6; }
9220 { echo "$as_me:$LINENO: result: no" >&5
9221 echo "${ECHO_T}no" >&6; }
9225 { echo "$as_me:$LINENO: result: no" >&5
9226 echo "${ECHO_T}no" >&6; }
9231 if test "x$enable_dlopen" != xyes; then
9232 enable_dlopen=unknown
9233 enable_dlopen_self=unknown
9234 enable_dlopen_self_static=unknown
9241 lt_cv_dlopen="load_add_on"
9243 lt_cv_dlopen_self=yes
9247 lt_cv_dlopen="LoadLibrary"
9252 lt_cv_dlopen="dlopen"
9257 # if libdl is installed we need to link against it
9258 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9259 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9260 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9261 echo $ECHO_N "(cached) $ECHO_C" >&6
9263 ac_check_lib_save_LIBS=$LIBS
9265 cat >conftest.$ac_ext <<_ACEOF
9268 cat confdefs.h >>conftest.$ac_ext
9269 cat >>conftest.$ac_ext <<_ACEOF
9270 /* end confdefs.h. */
9272 /* Override any GCC internal prototype to avoid an error.
9273 Use char because int might match the return type of a GCC
9274 builtin and then its argument prototype would still apply. */
9287 rm -f conftest.$ac_objext conftest$ac_exeext
9288 if { (ac_try="$ac_link"
9290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9291 *) ac_try_echo=$ac_try;;
9293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9294 (eval "$ac_link") 2>conftest.er1
9296 grep -v '^ *+' conftest.er1 >conftest.err
9298 cat conftest.err >&5
9299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300 (exit $ac_status); } && {
9301 test -z "$ac_c_werror_flag" ||
9302 test ! -s conftest.err
9303 } && test -s conftest$ac_exeext &&
9304 $as_test_x conftest$ac_exeext; then
9305 ac_cv_lib_dl_dlopen=yes
9307 echo "$as_me: failed program was:" >&5
9308 sed 's/^/| /' conftest.$ac_ext >&5
9310 ac_cv_lib_dl_dlopen=no
9313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9314 conftest$ac_exeext conftest.$ac_ext
9315 LIBS=$ac_check_lib_save_LIBS
9317 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9318 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9319 if test $ac_cv_lib_dl_dlopen = yes; then
9320 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9325 lt_cv_dlopen_self=yes
9332 { echo "$as_me:$LINENO: checking for shl_load" >&5
9333 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9334 if test "${ac_cv_func_shl_load+set}" = set; then
9335 echo $ECHO_N "(cached) $ECHO_C" >&6
9337 cat >conftest.$ac_ext <<_ACEOF
9340 cat confdefs.h >>conftest.$ac_ext
9341 cat >>conftest.$ac_ext <<_ACEOF
9342 /* end confdefs.h. */
9343 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9344 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9345 #define shl_load innocuous_shl_load
9347 /* System header to define __stub macros and hopefully few prototypes,
9348 which can conflict with char shl_load (); below.
9349 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9350 <limits.h> exists even on freestanding compilers. */
9353 # include <limits.h>
9355 # include <assert.h>
9360 /* Override any GCC internal prototype to avoid an error.
9361 Use char because int might match the return type of a GCC
9362 builtin and then its argument prototype would still apply. */
9367 /* The GNU C library defines this for functions which it implements
9368 to always fail with ENOSYS. Some functions are actually named
9369 something starting with __ and the normal name is an alias. */
9370 #if defined __stub_shl_load || defined __stub___shl_load
9382 rm -f conftest.$ac_objext conftest$ac_exeext
9383 if { (ac_try="$ac_link"
9385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9386 *) ac_try_echo=$ac_try;;
9388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9389 (eval "$ac_link") 2>conftest.er1
9391 grep -v '^ *+' conftest.er1 >conftest.err
9393 cat conftest.err >&5
9394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395 (exit $ac_status); } && {
9396 test -z "$ac_c_werror_flag" ||
9397 test ! -s conftest.err
9398 } && test -s conftest$ac_exeext &&
9399 $as_test_x conftest$ac_exeext; then
9400 ac_cv_func_shl_load=yes
9402 echo "$as_me: failed program was:" >&5
9403 sed 's/^/| /' conftest.$ac_ext >&5
9405 ac_cv_func_shl_load=no
9408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9409 conftest$ac_exeext conftest.$ac_ext
9411 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9412 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9413 if test $ac_cv_func_shl_load = yes; then
9414 lt_cv_dlopen="shl_load"
9416 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9417 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9418 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9419 echo $ECHO_N "(cached) $ECHO_C" >&6
9421 ac_check_lib_save_LIBS=$LIBS
9423 cat >conftest.$ac_ext <<_ACEOF
9426 cat confdefs.h >>conftest.$ac_ext
9427 cat >>conftest.$ac_ext <<_ACEOF
9428 /* end confdefs.h. */
9430 /* Override any GCC internal prototype to avoid an error.
9431 Use char because int might match the return type of a GCC
9432 builtin and then its argument prototype would still apply. */
9445 rm -f conftest.$ac_objext conftest$ac_exeext
9446 if { (ac_try="$ac_link"
9448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9449 *) ac_try_echo=$ac_try;;
9451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9452 (eval "$ac_link") 2>conftest.er1
9454 grep -v '^ *+' conftest.er1 >conftest.err
9456 cat conftest.err >&5
9457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458 (exit $ac_status); } && {
9459 test -z "$ac_c_werror_flag" ||
9460 test ! -s conftest.err
9461 } && test -s conftest$ac_exeext &&
9462 $as_test_x conftest$ac_exeext; then
9463 ac_cv_lib_dld_shl_load=yes
9465 echo "$as_me: failed program was:" >&5
9466 sed 's/^/| /' conftest.$ac_ext >&5
9468 ac_cv_lib_dld_shl_load=no
9471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9472 conftest$ac_exeext conftest.$ac_ext
9473 LIBS=$ac_check_lib_save_LIBS
9475 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9476 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9477 if test $ac_cv_lib_dld_shl_load = yes; then
9478 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9480 { echo "$as_me:$LINENO: checking for dlopen" >&5
9481 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9482 if test "${ac_cv_func_dlopen+set}" = set; then
9483 echo $ECHO_N "(cached) $ECHO_C" >&6
9485 cat >conftest.$ac_ext <<_ACEOF
9488 cat confdefs.h >>conftest.$ac_ext
9489 cat >>conftest.$ac_ext <<_ACEOF
9490 /* end confdefs.h. */
9491 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9492 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9493 #define dlopen innocuous_dlopen
9495 /* System header to define __stub macros and hopefully few prototypes,
9496 which can conflict with char dlopen (); below.
9497 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9498 <limits.h> exists even on freestanding compilers. */
9501 # include <limits.h>
9503 # include <assert.h>
9508 /* Override any GCC internal prototype to avoid an error.
9509 Use char because int might match the return type of a GCC
9510 builtin and then its argument prototype would still apply. */
9515 /* The GNU C library defines this for functions which it implements
9516 to always fail with ENOSYS. Some functions are actually named
9517 something starting with __ and the normal name is an alias. */
9518 #if defined __stub_dlopen || defined __stub___dlopen
9530 rm -f conftest.$ac_objext conftest$ac_exeext
9531 if { (ac_try="$ac_link"
9533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9534 *) ac_try_echo=$ac_try;;
9536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9537 (eval "$ac_link") 2>conftest.er1
9539 grep -v '^ *+' conftest.er1 >conftest.err
9541 cat conftest.err >&5
9542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543 (exit $ac_status); } && {
9544 test -z "$ac_c_werror_flag" ||
9545 test ! -s conftest.err
9546 } && test -s conftest$ac_exeext &&
9547 $as_test_x conftest$ac_exeext; then
9548 ac_cv_func_dlopen=yes
9550 echo "$as_me: failed program was:" >&5
9551 sed 's/^/| /' conftest.$ac_ext >&5
9553 ac_cv_func_dlopen=no
9556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9557 conftest$ac_exeext conftest.$ac_ext
9559 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9560 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9561 if test $ac_cv_func_dlopen = yes; then
9562 lt_cv_dlopen="dlopen"
9564 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9565 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9566 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9567 echo $ECHO_N "(cached) $ECHO_C" >&6
9569 ac_check_lib_save_LIBS=$LIBS
9571 cat >conftest.$ac_ext <<_ACEOF
9574 cat confdefs.h >>conftest.$ac_ext
9575 cat >>conftest.$ac_ext <<_ACEOF
9576 /* end confdefs.h. */
9578 /* Override any GCC internal prototype to avoid an error.
9579 Use char because int might match the return type of a GCC
9580 builtin and then its argument prototype would still apply. */
9593 rm -f conftest.$ac_objext conftest$ac_exeext
9594 if { (ac_try="$ac_link"
9596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9597 *) ac_try_echo=$ac_try;;
9599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9600 (eval "$ac_link") 2>conftest.er1
9602 grep -v '^ *+' conftest.er1 >conftest.err
9604 cat conftest.err >&5
9605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606 (exit $ac_status); } && {
9607 test -z "$ac_c_werror_flag" ||
9608 test ! -s conftest.err
9609 } && test -s conftest$ac_exeext &&
9610 $as_test_x conftest$ac_exeext; then
9611 ac_cv_lib_dl_dlopen=yes
9613 echo "$as_me: failed program was:" >&5
9614 sed 's/^/| /' conftest.$ac_ext >&5
9616 ac_cv_lib_dl_dlopen=no
9619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9620 conftest$ac_exeext conftest.$ac_ext
9621 LIBS=$ac_check_lib_save_LIBS
9623 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9624 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9625 if test $ac_cv_lib_dl_dlopen = yes; then
9626 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9628 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9629 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9630 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9631 echo $ECHO_N "(cached) $ECHO_C" >&6
9633 ac_check_lib_save_LIBS=$LIBS
9635 cat >conftest.$ac_ext <<_ACEOF
9638 cat confdefs.h >>conftest.$ac_ext
9639 cat >>conftest.$ac_ext <<_ACEOF
9640 /* end confdefs.h. */
9642 /* Override any GCC internal prototype to avoid an error.
9643 Use char because int might match the return type of a GCC
9644 builtin and then its argument prototype would still apply. */
9657 rm -f conftest.$ac_objext conftest$ac_exeext
9658 if { (ac_try="$ac_link"
9660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9661 *) ac_try_echo=$ac_try;;
9663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9664 (eval "$ac_link") 2>conftest.er1
9666 grep -v '^ *+' conftest.er1 >conftest.err
9668 cat conftest.err >&5
9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670 (exit $ac_status); } && {
9671 test -z "$ac_c_werror_flag" ||
9672 test ! -s conftest.err
9673 } && test -s conftest$ac_exeext &&
9674 $as_test_x conftest$ac_exeext; then
9675 ac_cv_lib_svld_dlopen=yes
9677 echo "$as_me: failed program was:" >&5
9678 sed 's/^/| /' conftest.$ac_ext >&5
9680 ac_cv_lib_svld_dlopen=no
9683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9684 conftest$ac_exeext conftest.$ac_ext
9685 LIBS=$ac_check_lib_save_LIBS
9687 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9688 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9689 if test $ac_cv_lib_svld_dlopen = yes; then
9690 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9692 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9693 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9694 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9695 echo $ECHO_N "(cached) $ECHO_C" >&6
9697 ac_check_lib_save_LIBS=$LIBS
9699 cat >conftest.$ac_ext <<_ACEOF
9702 cat confdefs.h >>conftest.$ac_ext
9703 cat >>conftest.$ac_ext <<_ACEOF
9704 /* end confdefs.h. */
9706 /* Override any GCC internal prototype to avoid an error.
9707 Use char because int might match the return type of a GCC
9708 builtin and then its argument prototype would still apply. */
9721 rm -f conftest.$ac_objext conftest$ac_exeext
9722 if { (ac_try="$ac_link"
9724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9725 *) ac_try_echo=$ac_try;;
9727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9728 (eval "$ac_link") 2>conftest.er1
9730 grep -v '^ *+' conftest.er1 >conftest.err
9732 cat conftest.err >&5
9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); } && {
9735 test -z "$ac_c_werror_flag" ||
9736 test ! -s conftest.err
9737 } && test -s conftest$ac_exeext &&
9738 $as_test_x conftest$ac_exeext; then
9739 ac_cv_lib_dld_dld_link=yes
9741 echo "$as_me: failed program was:" >&5
9742 sed 's/^/| /' conftest.$ac_ext >&5
9744 ac_cv_lib_dld_dld_link=no
9747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9748 conftest$ac_exeext conftest.$ac_ext
9749 LIBS=$ac_check_lib_save_LIBS
9751 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9752 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9753 if test $ac_cv_lib_dld_dld_link = yes; then
9754 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9775 if test "x$lt_cv_dlopen" != xno; then
9781 case $lt_cv_dlopen in
9783 save_CPPFLAGS="$CPPFLAGS"
9784 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9786 save_LDFLAGS="$LDFLAGS"
9787 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9790 LIBS="$lt_cv_dlopen_libs $LIBS"
9792 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9793 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9794 if test "${lt_cv_dlopen_self+set}" = set; then
9795 echo $ECHO_N "(cached) $ECHO_C" >&6
9797 if test "$cross_compiling" = yes; then :
9798 lt_cv_dlopen_self=cross
9800 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9801 lt_status=$lt_dlunknown
9802 cat > conftest.$ac_ext <<EOF
9803 #line 9803 "configure"
9804 #include "confdefs.h"
9813 # define LT_DLGLOBAL RTLD_GLOBAL
9816 # define LT_DLGLOBAL DL_GLOBAL
9818 # define LT_DLGLOBAL 0
9822 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9823 find out it does not work in some platform. */
9824 #ifndef LT_DLLAZY_OR_NOW
9826 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9829 # define LT_DLLAZY_OR_NOW DL_LAZY
9832 # define LT_DLLAZY_OR_NOW RTLD_NOW
9835 # define LT_DLLAZY_OR_NOW DL_NOW
9837 # define LT_DLLAZY_OR_NOW 0
9845 extern "C" void exit (int);
9848 void fnord() { int i=42;}
9851 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9852 int status = $lt_dlunknown;
9856 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9857 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9858 /* dlclose (self); */
9866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9867 (eval $ac_link) 2>&5
9869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9871 (./conftest; exit; ) >&5 2>/dev/null
9874 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9875 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9876 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9879 # compilation failed
9880 lt_cv_dlopen_self=no
9887 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9888 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9890 if test "x$lt_cv_dlopen_self" = xyes; then
9891 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9892 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9893 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9894 if test "${lt_cv_dlopen_self_static+set}" = set; then
9895 echo $ECHO_N "(cached) $ECHO_C" >&6
9897 if test "$cross_compiling" = yes; then :
9898 lt_cv_dlopen_self_static=cross
9900 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9901 lt_status=$lt_dlunknown
9902 cat > conftest.$ac_ext <<EOF
9903 #line 9903 "configure"
9904 #include "confdefs.h"
9913 # define LT_DLGLOBAL RTLD_GLOBAL
9916 # define LT_DLGLOBAL DL_GLOBAL
9918 # define LT_DLGLOBAL 0
9922 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9923 find out it does not work in some platform. */
9924 #ifndef LT_DLLAZY_OR_NOW
9926 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9929 # define LT_DLLAZY_OR_NOW DL_LAZY
9932 # define LT_DLLAZY_OR_NOW RTLD_NOW
9935 # define LT_DLLAZY_OR_NOW DL_NOW
9937 # define LT_DLLAZY_OR_NOW 0
9945 extern "C" void exit (int);
9948 void fnord() { int i=42;}
9951 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9952 int status = $lt_dlunknown;
9956 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9957 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9958 /* dlclose (self); */
9966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9967 (eval $ac_link) 2>&5
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9971 (./conftest; exit; ) >&5 2>/dev/null
9974 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9975 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9976 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9979 # compilation failed
9980 lt_cv_dlopen_self_static=no
9987 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9988 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9991 CPPFLAGS="$save_CPPFLAGS"
9992 LDFLAGS="$save_LDFLAGS"
9997 case $lt_cv_dlopen_self in
9998 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9999 *) enable_dlopen_self=unknown ;;
10002 case $lt_cv_dlopen_self_static in
10003 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10004 *) enable_dlopen_self_static=unknown ;;
10009 # Report which library types will actually be built
10010 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10011 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10012 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10013 echo "${ECHO_T}$can_build_shared" >&6; }
10015 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10016 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10017 test "$can_build_shared" = "no" && enable_shared=no
10019 # On AIX, shared libraries and static libraries use the same namespace, and
10020 # are all built from PIC.
10023 test "$enable_shared" = yes && enable_static=no
10024 if test -n "$RANLIB"; then
10025 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10026 postinstall_cmds='$RANLIB $lib'
10031 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10032 test "$enable_shared" = yes && enable_static=no
10036 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10037 echo "${ECHO_T}$enable_shared" >&6; }
10039 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10040 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10041 # Make sure either enable_shared or enable_static is yes.
10042 test "$enable_shared" = yes || enable_static=yes
10043 { echo "$as_me:$LINENO: result: $enable_static" >&5
10044 echo "${ECHO_T}$enable_static" >&6; }
10046 # The else clause should only fire when bootstrapping the
10047 # libtool distribution, otherwise you forgot to ship ltmain.sh
10048 # with your package, and you will get complaints that there are
10049 # no rules to generate ltmain.sh.
10050 if test -f "$ltmain"; then
10051 # See if we are running on zsh, and set the options which allow our commands through
10052 # without removal of \ escapes.
10053 if test -n "${ZSH_VERSION+set}" ; then
10054 setopt NO_GLOB_SUBST
10056 # Now quote all the things that may contain metacharacters while being
10057 # careful not to overquote the AC_SUBSTed values. We take copies of the
10058 # variables and quote the copies for generation of the libtool script.
10059 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10061 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10062 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10063 deplibs_check_method reload_flag reload_cmds need_locks \
10064 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10065 lt_cv_sys_global_symbol_to_c_name_address \
10066 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10067 old_postinstall_cmds old_postuninstall_cmds \
10071 lt_prog_compiler_wl \
10072 lt_prog_compiler_pic \
10073 lt_prog_compiler_static \
10074 lt_prog_compiler_no_builtin_flag \
10075 export_dynamic_flag_spec \
10076 thread_safe_flag_spec \
10077 whole_archive_flag_spec \
10078 enable_shared_with_static_runtimes \
10080 old_archive_from_new_cmds \
10085 compiler_lib_search_path \
10087 archive_expsym_cmds \
10089 postuninstall_cmds \
10090 old_archive_from_expsyms_cmds \
10091 allow_undefined_flag \
10092 no_undefined_flag \
10093 export_symbols_cmds \
10094 hardcode_libdir_flag_spec \
10095 hardcode_libdir_flag_spec_ld \
10096 hardcode_libdir_separator \
10097 hardcode_automatic \
10099 module_expsym_cmds \
10100 lt_cv_prog_compiler_c_o \
10103 include_expsyms; do
10106 old_archive_cmds | \
10107 old_archive_from_new_cmds | \
10109 archive_expsym_cmds | \
10111 module_expsym_cmds | \
10112 old_archive_from_expsyms_cmds | \
10113 export_symbols_cmds | \
10114 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10115 postinstall_cmds | postuninstall_cmds | \
10116 old_postinstall_cmds | old_postuninstall_cmds | \
10117 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10118 # Double-quote double-evaled strings.
10119 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10122 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10128 *'\$0 --fallback-echo"')
10129 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10133 cfgfile="${ofile}T"
10134 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10136 { echo "$as_me:$LINENO: creating $ofile" >&5
10137 echo "$as_me: creating $ofile" >&6;}
10139 cat <<__EOF__ >> "$cfgfile"
10142 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10143 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10144 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10146 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10147 # Free Software Foundation, Inc.
10149 # This file is part of GNU Libtool:
10150 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10152 # This program is free software; you can redistribute it and/or modify
10153 # it under the terms of the GNU General Public License as published by
10154 # the Free Software Foundation; either version 2 of the License, or
10155 # (at your option) any later version.
10157 # This program is distributed in the hope that it will be useful, but
10158 # WITHOUT ANY WARRANTY; without even the implied warranty of
10159 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10160 # General Public License for more details.
10162 # You should have received a copy of the GNU General Public License
10163 # along with this program; if not, write to the Free Software
10164 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10166 # As a special exception to the GNU General Public License, if you
10167 # distribute this file as part of a program that contains a
10168 # configuration script generated by Autoconf, you may include it under
10169 # the same distribution terms that you use for the rest of that program.
10171 # A sed program that does not truncate output.
10174 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10175 Xsed="$SED -e 1s/^X//"
10177 # The HP-UX ksh and POSIX shell print the target directory to stdout
10178 # if CDPATH is set.
10179 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10181 # The names of the tagged configurations supported by this script.
10184 # ### BEGIN LIBTOOL CONFIG
10186 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10188 # Shell to use when invoking shell scripts.
10191 # Whether or not to build shared libraries.
10192 build_libtool_libs=$enable_shared
10194 # Whether or not to build static libraries.
10195 build_old_libs=$enable_static
10197 # Whether or not to add -lc for building shared libraries.
10198 build_libtool_need_lc=$archive_cmds_need_lc
10200 # Whether or not to disallow shared libs when runtime libs are static
10201 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10203 # Whether or not to optimize for fast installation.
10204 fast_install=$enable_fast_install
10207 host_alias=$host_alias
10211 # The build system.
10212 build_alias=$build_alias
10216 # An echo program that does not interpret backslashes.
10221 AR_FLAGS=$lt_AR_FLAGS
10226 # LTCC compiler flags.
10227 LTCFLAGS=$lt_LTCFLAGS
10229 # A language-specific compiler.
10232 # Is the compiler the GNU C compiler?
10235 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
10236 gcc_ver=\`gcc -dumpversion\`
10241 # The linker used to build libraries.
10244 # Whether we need hard or soft links.
10247 # A BSD-compatible nm program.
10250 # A symbol stripping program
10253 # Used to examine libraries when file_magic_cmd begins "file"
10254 MAGIC_CMD=$MAGIC_CMD
10256 # Used on cygwin: DLL creation program.
10259 # Used on cygwin: object dumper.
10262 # Used on cygwin: assembler.
10265 # The name of the directory that contains temporary libtool files.
10268 # How to create reloadable object files.
10269 reload_flag=$lt_reload_flag
10270 reload_cmds=$lt_reload_cmds
10272 # How to pass a linker flag through the compiler.
10273 wl=$lt_lt_prog_compiler_wl
10275 # Object file suffix (normally "o").
10276 objext="$ac_objext"
10278 # Old archive suffix (normally "a").
10281 # Shared library suffix (normally ".so").
10282 shrext_cmds='$shrext_cmds'
10284 # Executable file suffix (normally "").
10287 # Additional compiler flags for building library objects.
10288 pic_flag=$lt_lt_prog_compiler_pic
10291 # What is the maximum length of a command?
10292 max_cmd_len=$lt_cv_sys_max_cmd_len
10294 # Does compiler simultaneously support -c and -o options?
10295 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10297 # Must we lock files when doing compilation?
10298 need_locks=$lt_need_locks
10300 # Do we need the lib prefix for modules?
10301 need_lib_prefix=$need_lib_prefix
10303 # Do we need a version for libraries?
10304 need_version=$need_version
10306 # Whether dlopen is supported.
10307 dlopen_support=$enable_dlopen
10309 # Whether dlopen of programs is supported.
10310 dlopen_self=$enable_dlopen_self
10312 # Whether dlopen of statically linked programs is supported.
10313 dlopen_self_static=$enable_dlopen_self_static
10315 # Compiler flag to prevent dynamic linking.
10316 link_static_flag=$lt_lt_prog_compiler_static
10318 # Compiler flag to turn off builtin functions.
10319 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10321 # Compiler flag to allow reflexive dlopens.
10322 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10324 # Compiler flag to generate shared objects directly from archives.
10325 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10327 # Compiler flag to generate thread-safe objects.
10328 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10330 # Library versioning type.
10331 version_type=$version_type
10333 # Format of library name prefix.
10334 libname_spec=$lt_libname_spec
10336 # List of archive names. First name is the real one, the rest are links.
10337 # The last name is the one that the linker finds with -lNAME.
10338 library_names_spec=$lt_library_names_spec
10340 # The coded name of the library, if different from the real name.
10341 soname_spec=$lt_soname_spec
10343 # Commands used to build and install an old-style archive.
10345 old_archive_cmds=$lt_old_archive_cmds
10346 old_postinstall_cmds=$lt_old_postinstall_cmds
10347 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10349 # Create an old-style archive from a shared archive.
10350 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10352 # Create a temporary old-style archive to link instead of a shared archive.
10353 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10355 # Commands used to build and install a shared archive.
10356 archive_cmds=$lt_archive_cmds
10357 archive_expsym_cmds=$lt_archive_expsym_cmds
10358 postinstall_cmds=$lt_postinstall_cmds
10359 postuninstall_cmds=$lt_postuninstall_cmds
10361 # Commands used to build a loadable module (assumed same as above if empty)
10362 module_cmds=$lt_module_cmds
10363 module_expsym_cmds=$lt_module_expsym_cmds
10365 # Commands to strip libraries.
10366 old_striplib=$lt_old_striplib
10367 striplib=$lt_striplib
10369 # Dependencies to place before the objects being linked to create a
10371 predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10373 # Dependencies to place after the objects being linked to create a
10375 postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10377 # Dependencies to place before the objects being linked to create a
10379 predeps=$lt_predeps
10381 # Dependencies to place after the objects being linked to create a
10383 postdeps=$lt_postdeps
10385 # The library search path used internally by the compiler when linking
10386 # a shared library.
10387 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10389 # Method to check whether dependent libraries are shared objects.
10390 deplibs_check_method=$lt_deplibs_check_method
10392 # Command to use when deplibs_check_method == file_magic.
10393 file_magic_cmd=$lt_file_magic_cmd
10395 # Flag that allows shared libraries with undefined symbols to be built.
10396 allow_undefined_flag=$lt_allow_undefined_flag
10398 # Flag that forces no undefined symbols.
10399 no_undefined_flag=$lt_no_undefined_flag
10401 # Commands used to finish a libtool library installation in a directory.
10402 finish_cmds=$lt_finish_cmds
10404 # Same as above, but a single script fragment to be evaled but not shown.
10405 finish_eval=$lt_finish_eval
10407 # Take the output of nm and produce a listing of raw symbols and C names.
10408 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10410 # Transform the output of nm in a proper C declaration
10411 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10413 # Transform the output of nm in a C name address pair
10414 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10416 # This is the shared library runtime path variable.
10417 runpath_var=$runpath_var
10419 # This is the shared library path variable.
10420 shlibpath_var=$shlibpath_var
10422 # Is shlibpath searched before the hard-coded library search path?
10423 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10425 # How to hardcode a shared library path into an executable.
10426 hardcode_action=$hardcode_action
10428 # Whether we should hardcode library paths into libraries.
10429 hardcode_into_libs=$hardcode_into_libs
10431 # Flag to hardcode \$libdir into a binary during linking.
10432 # This must work even if \$libdir does not exist.
10433 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10435 # If ld is used when linking, flag to hardcode \$libdir into
10436 # a binary during linking. This must work even if \$libdir does
10438 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10440 # Whether we need a single -rpath flag with a separated argument.
10441 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10443 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10444 # resulting binary.
10445 hardcode_direct=$hardcode_direct
10447 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10448 # resulting binary.
10449 hardcode_minus_L=$hardcode_minus_L
10451 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10452 # the resulting binary.
10453 hardcode_shlibpath_var=$hardcode_shlibpath_var
10455 # Set to yes if building a shared library automatically hardcodes DIR into the library
10456 # and all subsequent libraries and executables linked against it.
10457 hardcode_automatic=$hardcode_automatic
10459 # Variables whose values should be saved in libtool wrapper scripts and
10460 # restored at relink time.
10461 variables_saved_for_relink="$variables_saved_for_relink"
10463 # Whether libtool must link a program against all its dependency libraries.
10464 link_all_deplibs=$link_all_deplibs
10466 # Compile-time system search path for libraries
10467 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10469 # Run-time system search path for libraries
10470 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10472 # Fix the shell variable \$srcfile for the compiler.
10473 fix_srcfile_path=$lt_fix_srcfile_path
10475 # Set to yes if exported symbols are required.
10476 always_export_symbols=$always_export_symbols
10478 # The commands to list exported symbols.
10479 export_symbols_cmds=$lt_export_symbols_cmds
10481 # The commands to extract the exported symbol list from a shared archive.
10482 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10484 # Symbols that should not be listed in the preloaded symbols.
10485 exclude_expsyms=$lt_exclude_expsyms
10487 # Symbols that must always be exported.
10488 include_expsyms=$lt_include_expsyms
10490 # ### END LIBTOOL CONFIG
10497 cat <<\EOF >> "$cfgfile"
10499 # AIX sometimes has problems with the GCC collect2 program. For some
10500 # reason, if we set the COLLECT_NAMES environment variable, the problems
10501 # vanish in a puff of smoke.
10502 if test "X${COLLECT_NAMES+set}" != Xset; then
10504 export COLLECT_NAMES
10510 # We use sed instead of cat because bash on DJGPP gets confused if
10511 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10512 # text mode, it properly converts lines to CR/LF. This bash problem
10513 # is reportedly fixed, but why not run on old versions too?
10514 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10516 mv -f "$cfgfile" "$ofile" || \
10517 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10521 # If there is no Makefile yet, we rely on a make rule to execute
10522 # `config.status --recheck' to rerun these tests and create the
10523 # libtool script then.
10524 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10525 if test -f "$ltmain_in"; then
10526 test -f Makefile && make "$ltmain"
10532 ac_cpp='$CPP $CPPFLAGS'
10533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10540 # Check whether --with-tags was given.
10541 if test "${with_tags+set}" = set; then
10542 withval=$with_tags; tagnames="$withval"
10546 if test -f "$ltmain" && test -n "$tagnames"; then
10547 if test ! -f "${ofile}"; then
10548 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10549 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10552 if test -z "$LTCC"; then
10553 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10554 if test -z "$LTCC"; then
10555 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10556 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10558 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10559 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10562 if test -z "$LTCFLAGS"; then
10563 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10566 # Extract list of available tagged configurations in $ofile.
10567 # Note that this assumes the entire list is on one line.
10568 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10570 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10571 for tagname in $tagnames; do
10573 # Check whether tagname contains only valid characters
10574 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10576 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10577 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10578 { (exit 1); exit 1; }; }
10582 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10584 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10585 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10586 { (exit 1); exit 1; }; }
10589 # Update the list of available tags.
10590 if test -n "$tagname"; then
10591 echo appending configuration tag \"$tagname\" to $ofile
10595 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10596 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10597 (test "X$CXX" != "Xg++"))) ; then
10599 ac_cpp='$CXXCPP $CPPFLAGS'
10600 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10601 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10602 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10607 archive_cmds_need_lc_CXX=no
10608 allow_undefined_flag_CXX=
10609 always_export_symbols_CXX=no
10610 archive_expsym_cmds_CXX=
10611 export_dynamic_flag_spec_CXX=
10612 hardcode_direct_CXX=no
10613 hardcode_libdir_flag_spec_CXX=
10614 hardcode_libdir_flag_spec_ld_CXX=
10615 hardcode_libdir_separator_CXX=
10616 hardcode_minus_L_CXX=no
10617 hardcode_shlibpath_var_CXX=unsupported
10618 hardcode_automatic_CXX=no
10620 module_expsym_cmds_CXX=
10621 link_all_deplibs_CXX=unknown
10622 old_archive_cmds_CXX=$old_archive_cmds
10623 no_undefined_flag_CXX=
10624 whole_archive_flag_spec_CXX=
10625 enable_shared_with_static_runtimes_CXX=no
10627 # Dependencies to place before and after the object being linked:
10628 predep_objects_CXX=
10629 postdep_objects_CXX=
10632 compiler_lib_search_path_CXX=
10634 # Source file extension for C++ test sources.
10637 # Object file extension for compiled C++ test sources.
10641 # Code to be used in simple compile tests
10642 lt_simple_compile_test_code="int some_variable = 0;"
10644 # Code to be used in simple link tests
10645 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10647 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10649 # If no C compiler was specified, use CC.
10652 # If no C compiler flags were specified, use CFLAGS.
10653 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10655 # Allow CC to be a program name with arguments.
10659 # save warnings/boilerplate of simple test code
10660 ac_outfile=conftest.$ac_objext
10661 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10662 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10663 _lt_compiler_boilerplate=`cat conftest.err`
10666 ac_outfile=conftest.$ac_objext
10667 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10668 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10669 _lt_linker_boilerplate=`cat conftest.err`
10673 # Allow CC to be a program name with arguments.
10678 lt_save_with_gnu_ld=$with_gnu_ld
10679 lt_save_path_LD=$lt_cv_path_LD
10680 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10681 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10683 $as_unset lt_cv_prog_gnu_ld
10685 if test -n "${lt_cv_path_LDCXX+set}"; then
10686 lt_cv_path_LD=$lt_cv_path_LDCXX
10688 $as_unset lt_cv_path_LD
10690 test -z "${LDCXX+set}" || LD=$LDCXX
10694 for cc_temp in $compiler""; do
10696 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10697 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10702 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10705 # We don't want -fno-exception wen compiling C++ code, so set the
10706 # no_builtin_flag separately
10707 if test "$GXX" = yes; then
10708 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10710 lt_prog_compiler_no_builtin_flag_CXX=
10713 if test "$GXX" = yes; then
10714 # Set up default GNU C++ configuration
10717 # Check whether --with-gnu-ld was given.
10718 if test "${with_gnu_ld+set}" = set; then
10719 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10725 if test "$GCC" = yes; then
10726 # Check if gcc -print-prog-name=ld gives a path.
10727 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10728 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10731 # gcc leaves a trailing carriage return which upsets mingw
10732 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10734 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10737 # Accept absolute paths.
10739 re_direlt='/[^/][^/]*/\.\./'
10740 # Canonicalize the pathname of ld
10741 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10742 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10743 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10745 test -z "$LD" && LD="$ac_prog"
10748 # If it fails, then pretend we aren't using GCC.
10752 # If it is relative, then search for the first ld in PATH.
10753 with_gnu_ld=unknown
10756 elif test "$with_gnu_ld" = yes; then
10757 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10758 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10760 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10761 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10763 if test "${lt_cv_path_LD+set}" = set; then
10764 echo $ECHO_N "(cached) $ECHO_C" >&6
10766 if test -z "$LD"; then
10767 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10768 for ac_dir in $PATH; do
10770 test -z "$ac_dir" && ac_dir=.
10771 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10772 lt_cv_path_LD="$ac_dir/$ac_prog"
10773 # Check to see if the program is GNU ld. I'd rather use --version,
10774 # but apparently some variants of GNU ld only accept -v.
10775 # Break only if it was the GNU/non-GNU ld that we prefer.
10776 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10777 *GNU* | *'with BFD'*)
10778 test "$with_gnu_ld" != no && break
10781 test "$with_gnu_ld" != yes && break
10788 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10792 LD="$lt_cv_path_LD"
10793 if test -n "$LD"; then
10794 { echo "$as_me:$LINENO: result: $LD" >&5
10795 echo "${ECHO_T}$LD" >&6; }
10797 { echo "$as_me:$LINENO: result: no" >&5
10798 echo "${ECHO_T}no" >&6; }
10800 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10801 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10802 { (exit 1); exit 1; }; }
10803 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10804 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10805 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10806 echo $ECHO_N "(cached) $ECHO_C" >&6
10808 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10809 case `$LD -v 2>&1 </dev/null` in
10810 *GNU* | *'with BFD'*)
10811 lt_cv_prog_gnu_ld=yes
10814 lt_cv_prog_gnu_ld=no
10818 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10819 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10820 with_gnu_ld=$lt_cv_prog_gnu_ld
10824 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10825 # archiving commands below assume that GNU ld is being used.
10826 if test "$with_gnu_ld" = yes; then
10827 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10828 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'
10830 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10831 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10833 # If archive_cmds runs LD, not CC, wlarc should be empty
10834 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10835 # investigate it a little bit more. (MM)
10838 # ancient GNU ld didn't support --whole-archive et. al.
10839 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10840 grep 'no-whole-archive' > /dev/null; then
10841 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10843 whole_archive_flag_spec_CXX=
10849 # A generic and very simple default shared library creation
10850 # command for GNU C++ for the case where it uses the native
10851 # linker, instead of GNU ld. If possible, this setting should
10852 # overridden to take advantage of the native linker features on
10853 # the platform it is being used on.
10854 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10857 # Commands to make compiler produce verbose output that lists
10858 # what "hidden" libraries, object files and flags are used when
10859 # linking a shared library.
10860 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10868 # PORTME: fill in a description of your system's C++ link characteristics
10869 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10870 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10874 # FIXME: insert proper C++ library support
10878 if test "$host_cpu" = ia64; then
10879 # On IA64, the linker does run time linking by default, so we don't
10880 # have to do anything special.
10881 aix_use_runtimelinking=no
10882 exp_sym_flag='-Bexport'
10885 aix_use_runtimelinking=no
10887 # Test if we are trying to use run time linking or normal
10888 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10889 # need to do runtime linking.
10890 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10891 for ld_flag in $LDFLAGS; do
10894 aix_use_runtimelinking=yes
10902 exp_sym_flag='-bexport'
10903 no_entry_flag='-bnoentry'
10906 # When large executables or shared objects are built, AIX ld can
10907 # have problems creating the table of contents. If linking a library
10908 # or program results in "error TOC overflow" add -mminimal-toc to
10909 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10910 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10912 archive_cmds_CXX=''
10913 hardcode_direct_CXX=yes
10914 hardcode_libdir_separator_CXX=':'
10915 link_all_deplibs_CXX=yes
10917 if test "$GXX" = yes; then
10918 case $host_os in aix4.[012]|aix4.[012].*)
10919 # We only want to do this on AIX 4.2 and lower, the check
10920 # below for broken collect2 doesn't work under 4.3+
10921 collect2name=`${CC} -print-prog-name=collect2`
10922 if test -f "$collect2name" && \
10923 strings "$collect2name" | grep resolve_lib_name >/dev/null
10925 # We have reworked collect2
10928 # We have old collect2
10929 hardcode_direct_CXX=unsupported
10930 # It fails to find uninstalled libraries when the uninstalled
10931 # path is not listed in the libpath. Setting hardcode_minus_L
10932 # to unsupported forces relinking
10933 hardcode_minus_L_CXX=yes
10934 hardcode_libdir_flag_spec_CXX='-L$libdir'
10935 hardcode_libdir_separator_CXX=
10939 shared_flag='-shared'
10940 if test "$aix_use_runtimelinking" = yes; then
10941 shared_flag="$shared_flag "'${wl}-G'
10945 if test "$host_cpu" = ia64; then
10946 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10947 # chokes on -Wl,-G. The following line is correct:
10950 if test "$aix_use_runtimelinking" = yes; then
10951 shared_flag='${wl}-G'
10953 shared_flag='${wl}-bM:SRE'
10958 # It seems that -bexpall does not export symbols beginning with
10959 # underscore (_), so it is better to generate a list of symbols to export.
10960 always_export_symbols_CXX=yes
10961 if test "$aix_use_runtimelinking" = yes; then
10962 # Warning - without using the other runtime loading flags (-brtl),
10963 # -berok will link without error, but may produce a broken library.
10964 allow_undefined_flag_CXX='-berok'
10965 # Determine the default libpath from the value encoded in an empty executable.
10966 cat >conftest.$ac_ext <<_ACEOF
10969 cat confdefs.h >>conftest.$ac_ext
10970 cat >>conftest.$ac_ext <<_ACEOF
10971 /* end confdefs.h. */
10981 rm -f conftest.$ac_objext conftest$ac_exeext
10982 if { (ac_try="$ac_link"
10983 case "(($ac_try" in
10984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10985 *) ac_try_echo=$ac_try;;
10987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10988 (eval "$ac_link") 2>conftest.er1
10990 grep -v '^ *+' conftest.er1 >conftest.err
10992 cat conftest.err >&5
10993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10994 (exit $ac_status); } && {
10995 test -z "$ac_cxx_werror_flag" ||
10996 test ! -s conftest.err
10997 } && test -s conftest$ac_exeext &&
10998 $as_test_x conftest$ac_exeext; then
11000 lt_aix_libpath_sed='
11001 /Import File Strings/,/^$/ {
11007 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11008 # Check for a 64-bit object if we didn't find anything.
11009 if test -z "$aix_libpath"; then
11010 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11013 echo "$as_me: failed program was:" >&5
11014 sed 's/^/| /' conftest.$ac_ext >&5
11019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11020 conftest$ac_exeext conftest.$ac_ext
11021 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11023 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11025 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"
11027 if test "$host_cpu" = ia64; then
11028 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11029 allow_undefined_flag_CXX="-z nodefs"
11030 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"
11032 # Determine the default libpath from the value encoded in an empty executable.
11033 cat >conftest.$ac_ext <<_ACEOF
11036 cat confdefs.h >>conftest.$ac_ext
11037 cat >>conftest.$ac_ext <<_ACEOF
11038 /* end confdefs.h. */
11048 rm -f conftest.$ac_objext conftest$ac_exeext
11049 if { (ac_try="$ac_link"
11050 case "(($ac_try" in
11051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11052 *) ac_try_echo=$ac_try;;
11054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11055 (eval "$ac_link") 2>conftest.er1
11057 grep -v '^ *+' conftest.er1 >conftest.err
11059 cat conftest.err >&5
11060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); } && {
11062 test -z "$ac_cxx_werror_flag" ||
11063 test ! -s conftest.err
11064 } && test -s conftest$ac_exeext &&
11065 $as_test_x conftest$ac_exeext; then
11067 lt_aix_libpath_sed='
11068 /Import File Strings/,/^$/ {
11074 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11075 # Check for a 64-bit object if we didn't find anything.
11076 if test -z "$aix_libpath"; then
11077 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11080 echo "$as_me: failed program was:" >&5
11081 sed 's/^/| /' conftest.$ac_ext >&5
11086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11087 conftest$ac_exeext conftest.$ac_ext
11088 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11090 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11091 # Warning - without using the other run time loading flags,
11092 # -berok will link without error, but may produce a broken library.
11093 no_undefined_flag_CXX=' ${wl}-bernotok'
11094 allow_undefined_flag_CXX=' ${wl}-berok'
11095 # Exported symbols can be pulled into shared objects from archives
11096 whole_archive_flag_spec_CXX='$convenience'
11097 archive_cmds_need_lc_CXX=yes
11098 # This is similar to how AIX traditionally builds its shared libraries.
11099 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'
11105 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11106 allow_undefined_flag_CXX=unsupported
11107 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11108 # support --undefined. This deserves some investigation. FIXME
11109 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11116 case $cc_basename in
11118 # FIXME: insert proper C++ library support
11124 cygwin* | mingw* | pw32*)
11125 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11126 # as there is no search path for DLLs.
11127 hardcode_libdir_flag_spec_CXX='-L$libdir'
11128 allow_undefined_flag_CXX=unsupported
11129 always_export_symbols_CXX=no
11130 enable_shared_with_static_runtimes_CXX=yes
11132 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11133 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'
11134 # If the export-symbols file already is a .def file (1st line
11135 # is EXPORTS), use it as is; otherwise, prepend...
11136 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11137 cp $export_symbols $output_objdir/$soname.def;
11139 echo EXPORTS > $output_objdir/$soname.def;
11140 cat $export_symbols >> $output_objdir/$soname.def;
11142 $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'
11147 darwin* | rhapsody*)
11149 rhapsody* | darwin1.[012])
11150 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11153 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11154 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11156 case ${MACOSX_DEPLOYMENT_TARGET} in
11158 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11161 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11167 archive_cmds_need_lc_CXX=no
11168 hardcode_direct_CXX=no
11169 hardcode_automatic_CXX=yes
11170 hardcode_shlibpath_var_CXX=unsupported
11171 whole_archive_flag_spec_CXX=''
11172 link_all_deplibs_CXX=yes
11174 if test "$GXX" = yes ; then
11175 lt_int_apple_cc_single_mod=no
11176 output_verbose_link_cmd='echo'
11177 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11178 lt_int_apple_cc_single_mod=yes
11180 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11181 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11183 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'
11185 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11186 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11187 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11188 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}'
11190 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}'
11192 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}'
11194 case $cc_basename in
11196 output_verbose_link_cmd='echo'
11197 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'
11198 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11199 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11200 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}'
11201 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}'
11211 case $cc_basename in
11213 # FIXME: insert proper C++ library support
11217 # Green Hills C++ Compiler
11218 # FIXME: insert proper C++ library support
11222 # FIXME: insert proper C++ library support
11228 # C++ shared libraries reported to be fairly broken before switch to ELF
11232 archive_cmds_need_lc_CXX=no
11234 freebsd* | dragonfly*)
11235 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11242 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11243 hardcode_libdir_separator_CXX=:
11244 export_dynamic_flag_spec_CXX='${wl}-E'
11245 hardcode_direct_CXX=yes
11246 hardcode_minus_L_CXX=yes # Not in the search PATH,
11247 # but as the default
11248 # location of the library.
11250 case $cc_basename in
11252 # FIXME: insert proper C++ library support
11256 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'
11257 # Commands to make compiler produce verbose output that lists
11258 # what "hidden" libraries, object files and flags are used when
11259 # linking a shared library.
11261 # There doesn't appear to be a way to prevent this compiler from
11262 # explicitly linking system object files so we need to strip them
11263 # from the output so that they don't get included in the library
11265 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'
11268 if test "$GXX" = yes; then
11269 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'
11271 # FIXME: insert proper C++ library support
11278 if test $with_gnu_ld = no; then
11279 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11280 hardcode_libdir_separator_CXX=:
11285 export_dynamic_flag_spec_CXX='${wl}-E'
11291 hardcode_direct_CXX=no
11292 hardcode_shlibpath_var_CXX=no
11295 hardcode_direct_CXX=yes
11296 hardcode_minus_L_CXX=yes # Not in the search PATH,
11297 # but as the default
11298 # location of the library.
11302 case $cc_basename in
11304 # FIXME: insert proper C++ library support
11310 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11313 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11316 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11319 # Commands to make compiler produce verbose output that lists
11320 # what "hidden" libraries, object files and flags are used when
11321 # linking a shared library.
11323 # There doesn't appear to be a way to prevent this compiler from
11324 # explicitly linking system object files so we need to strip them
11325 # from the output so that they don't get included in the library
11327 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'
11330 if test "$GXX" = yes; then
11331 if test $with_gnu_ld = no; then
11334 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11337 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11340 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'
11345 # FIXME: insert proper C++ library support
11352 hardcode_direct_CXX=no
11353 hardcode_shlibpath_var_CXX=no
11354 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11355 export_dynamic_flag_spec_CXX='${wl}-E'
11356 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11357 # Instead, shared libraries are loaded at an image base (0x10000000 by
11358 # default) and relocated if they conflict, which is a slow very memory
11359 # consuming and fragmenting process. To avoid this, we pick a random,
11360 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11361 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11362 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'
11363 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'
11366 case $cc_basename in
11369 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'
11371 # Archives containing C++ object files must be created using
11372 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11373 # necessary to make sure instantiated templates are included
11375 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11378 if test "$GXX" = yes; then
11379 if test "$with_gnu_ld" = no; then
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` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11382 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'
11385 link_all_deplibs_CXX=yes
11388 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11389 hardcode_libdir_separator_CXX=:
11391 linux* | k*bsd*-gnu)
11392 case $cc_basename in
11394 # Kuck and Associates, Inc. (KAI) C++ Compiler
11396 # KCC will only create a shared library if the output file
11397 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11398 # to its proper name (with version) after linking.
11399 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'
11400 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'
11401 # Commands to make compiler produce verbose output that lists
11402 # what "hidden" libraries, object files and flags are used when
11403 # linking a shared library.
11405 # There doesn't appear to be a way to prevent this compiler from
11406 # explicitly linking system object files so we need to strip them
11407 # from the output so that they don't get included in the library
11409 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'
11411 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11412 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11414 # Archives containing C++ object files must be created using
11415 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11416 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11421 # version 8.0 and above of icpc choke on multiply defined symbols
11422 # if we add $predep_objects and $postdep_objects, however 7.1 and
11423 # earlier do not add the objects themselves.
11424 case `$CC -V 2>&1` in
11426 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11427 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'
11429 *) # Version 8.0 or newer
11432 ia64*) tmp_idyn=' -i_dynamic';;
11434 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11435 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'
11438 archive_cmds_need_lc_CXX=no
11439 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11440 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11441 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11444 # Portland Group C++ compiler
11445 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11446 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'
11448 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11449 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11450 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'
11454 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11455 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'
11457 runpath_var=LD_RUN_PATH
11458 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11459 hardcode_libdir_separator_CXX=:
11461 # Commands to make compiler produce verbose output that lists
11462 # what "hidden" libraries, object files and flags are used when
11463 # linking a shared library.
11465 # There doesn't appear to be a way to prevent this compiler from
11466 # explicitly linking system object files so we need to strip them
11467 # from the output so that they don't get included in the library
11469 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'
11472 case `$CC -V 2>&1 | sed 5q` in
11475 no_undefined_flag_CXX=' -zdefs'
11476 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11477 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'
11478 hardcode_libdir_flag_spec_CXX='-R$libdir'
11479 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'
11481 # Not sure whether something based on
11482 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11484 output_verbose_link_cmd='echo'
11486 # Archives containing C++ object files must be created using
11487 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11488 # necessary to make sure instantiated templates are included
11490 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11497 # FIXME: insert proper C++ library support
11501 # FIXME: insert proper C++ library support
11505 case $cc_basename in
11507 # FIXME: insert proper C++ library support
11511 # FIXME: insert proper C++ library support
11517 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11518 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11520 hardcode_libdir_flag_spec_CXX='-R$libdir'
11521 hardcode_direct_CXX=yes
11522 hardcode_shlibpath_var_CXX=no
11524 # Workaround some broken pre-1.5 toolchains
11525 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11528 # C++ shared libraries are fairly broken
11532 if test -f /usr/libexec/ld.so; then
11533 hardcode_direct_CXX=yes
11534 hardcode_shlibpath_var_CXX=no
11535 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11536 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11537 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11538 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11539 export_dynamic_flag_spec_CXX='${wl}-E'
11540 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11542 output_verbose_link_cmd='echo'
11548 case $cc_basename in
11550 # Kuck and Associates, Inc. (KAI) C++ Compiler
11552 # KCC will only create a shared library if the output file
11553 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11554 # to its proper name (with version) after linking.
11555 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'
11557 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11558 hardcode_libdir_separator_CXX=:
11560 # Archives containing C++ object files must be created using
11561 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11562 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11566 # Rational C++ 2.4.1
11567 # FIXME: insert proper C++ library support
11571 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11572 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'
11574 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11575 hardcode_libdir_separator_CXX=:
11577 # Commands to make compiler produce verbose output that lists
11578 # what "hidden" libraries, object files and flags are used when
11579 # linking a shared library.
11581 # There doesn't appear to be a way to prevent this compiler from
11582 # explicitly linking system object files so we need to strip them
11583 # from the output so that they don't get included in the library
11585 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'
11588 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11589 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11590 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'
11592 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11593 hardcode_libdir_separator_CXX=:
11595 # Commands to make compiler produce verbose output that lists
11596 # what "hidden" libraries, object files and flags are used when
11597 # linking a shared library.
11598 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11601 # FIXME: insert proper C++ library support
11608 case $cc_basename in
11610 # Kuck and Associates, Inc. (KAI) C++ Compiler
11612 # KCC will only create a shared library if the output file
11613 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11614 # to its proper name (with version) after linking.
11615 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'
11617 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11618 hardcode_libdir_separator_CXX=:
11620 # Archives containing C++ object files must be created using
11621 # the KAI C++ compiler.
11622 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11625 # Rational C++ 2.4.1
11626 # FIXME: insert proper C++ library support
11630 allow_undefined_flag_CXX=' -expect_unresolved \*'
11631 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'
11632 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11633 echo "-hidden">> $lib.exp~
11634 $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~
11637 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11638 hardcode_libdir_separator_CXX=:
11640 # Commands to make compiler produce verbose output that lists
11641 # what "hidden" libraries, object files and flags are used when
11642 # linking a shared library.
11644 # There doesn't appear to be a way to prevent this compiler from
11645 # explicitly linking system object files so we need to strip them
11646 # from the output so that they don't get included in the library
11648 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'
11651 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11652 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11653 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'
11655 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11656 hardcode_libdir_separator_CXX=:
11658 # Commands to make compiler produce verbose output that lists
11659 # what "hidden" libraries, object files and flags are used when
11660 # linking a shared library.
11661 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11664 # FIXME: insert proper C++ library support
11671 # FIXME: insert proper C++ library support
11675 case $cc_basename in
11678 # FIXME: insert proper C++ library support
11683 # FIXME: insert proper C++ library support
11687 # FIXME: insert proper C++ library support
11693 case $cc_basename in
11695 # Sun C++ 4.2, 5.x and Centerline C++
11696 archive_cmds_need_lc_CXX=yes
11697 no_undefined_flag_CXX=' -zdefs'
11698 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11699 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11700 $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'
11702 hardcode_libdir_flag_spec_CXX='-R$libdir'
11703 hardcode_shlibpath_var_CXX=no
11705 solaris2.[0-5] | solaris2.[0-5].*) ;;
11707 # The compiler driver will combine and reorder linker options,
11708 # but understands `-z linker_flag'.
11709 # Supported since Solaris 2.6 (maybe 2.5.1?)
11710 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11713 link_all_deplibs_CXX=yes
11715 output_verbose_link_cmd='echo'
11717 # Archives containing C++ object files must be created using
11718 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11719 # necessary to make sure instantiated templates are included
11721 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11724 # Green Hills C++ Compiler
11725 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11727 # The C++ compiler must be used to create the archive.
11728 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11731 # GNU C++ compiler with Solaris linker
11732 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11733 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11734 if $CC --version | grep -v '^2\.7' > /dev/null; then
11735 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11736 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11737 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11739 # Commands to make compiler produce verbose output that lists
11740 # what "hidden" libraries, object files and flags are used when
11741 # linking a shared library.
11742 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11744 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11746 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11747 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11748 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11750 # Commands to make compiler produce verbose output that lists
11751 # what "hidden" libraries, object files and flags are used when
11752 # linking a shared library.
11753 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11756 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11758 solaris2.[0-5] | solaris2.[0-5].*) ;;
11760 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11767 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11768 no_undefined_flag_CXX='${wl}-z,text'
11769 archive_cmds_need_lc_CXX=no
11770 hardcode_shlibpath_var_CXX=no
11771 runpath_var='LD_RUN_PATH'
11773 case $cc_basename in
11775 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11776 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11779 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11780 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11784 sysv5* | sco3.2v5* | sco5v6*)
11785 # Note: We can NOT use -z defs as we might desire, because we do not
11786 # link with -lc, and that would cause any symbols used from libc to
11787 # always be unresolved, which means just about no library would
11788 # ever link correctly. If we're not using GNU ld we use -z text
11789 # though, which does catch some bad symbols but isn't as heavy-handed
11791 # For security reasons, it is highly recommended that you always
11792 # use absolute paths for naming shared libraries, and exclude the
11793 # DT_RUNPATH tag from executables and libraries. But doing so
11794 # requires that you compile everything twice, which is a pain.
11795 # So that behaviour is only enabled if SCOABSPATH is set to a
11796 # non-empty value in the environment. Most likely only useful for
11797 # creating official distributions of packages.
11798 # This is a hack until libtool officially supports absolute path
11799 # names for shared libraries.
11800 no_undefined_flag_CXX='${wl}-z,text'
11801 allow_undefined_flag_CXX='${wl}-z,nodefs'
11802 archive_cmds_need_lc_CXX=no
11803 hardcode_shlibpath_var_CXX=no
11804 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11805 hardcode_libdir_separator_CXX=':'
11806 link_all_deplibs_CXX=yes
11807 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11808 runpath_var='LD_RUN_PATH'
11810 case $cc_basename in
11812 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11813 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11816 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11817 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11822 case $cc_basename in
11824 # NonStop-UX NCC 3.20
11825 # FIXME: insert proper C++ library support
11829 # FIXME: insert proper C++ library support
11835 # FIXME: insert proper C++ library support
11839 # FIXME: insert proper C++ library support
11843 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11844 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11845 test "$ld_shlibs_CXX" = no && can_build_shared=no
11851 cat > conftest.$ac_ext <<EOF
11855 Foo (void) { a = 0; }
11861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11862 (eval $ac_compile) 2>&5
11864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11865 (exit $ac_status); }; then
11866 # Parse the compiler output and extract the necessary
11867 # objects, libraries and library flags.
11869 # Sentinel used to keep track of whether or not we are before
11870 # the conftest object file.
11871 pre_test_object_deps_done=no
11873 # The `*' in the case matches for architectures that use `case' in
11874 # $output_verbose_cmd can trigger glob expansion during the loop
11875 # eval without this substitution.
11876 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11878 for p in `eval $output_verbose_link_cmd`; do
11882 # Some compilers place space between "-{L,R}" and the path.
11883 # Remove the space.
11884 if test $p = "-L" \
11885 || test $p = "-R"; then
11892 if test "$pre_test_object_deps_done" = no; then
11895 # Internal compiler library paths should come after those
11896 # provided the user. The postdeps already come after the
11897 # user supplied libs so there is no need to process them.
11898 if test -z "$compiler_lib_search_path_CXX"; then
11899 compiler_lib_search_path_CXX="${prev}${p}"
11901 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11904 # The "-l" case would never come before the object being
11905 # linked, so don't bother handling this case.
11908 if test -z "$postdeps_CXX"; then
11909 postdeps_CXX="${prev}${p}"
11911 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11917 # This assumes that the test object file only shows up
11918 # once in the compiler output.
11919 if test "$p" = "conftest.$objext"; then
11920 pre_test_object_deps_done=yes
11924 if test "$pre_test_object_deps_done" = no; then
11925 if test -z "$predep_objects_CXX"; then
11926 predep_objects_CXX="$p"
11928 predep_objects_CXX="$predep_objects_CXX $p"
11931 if test -z "$postdep_objects_CXX"; then
11932 postdep_objects_CXX="$p"
11934 postdep_objects_CXX="$postdep_objects_CXX $p"
11939 *) ;; # Ignore the rest.
11947 echo "libtool.m4: error: problem compiling CXX test program"
11950 $rm -f confest.$objext
11952 # PORTME: override above test on systems where it is broken
11955 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11956 # hack all around it, let's just trust "g++" to DTRT.
11957 predep_objects_CXX=
11958 postdep_objects_CXX=
11963 case `$CC -V 2>&1 | sed 5q` in
11967 # The more standards-conforming stlport4 library is
11968 # incompatible with the Cstd library. Avoid specifying
11969 # it if it's in CXXFLAGS. Ignore libCrun as
11970 # -library=stlport4 depends on it.
11971 case " $CXX $CXXFLAGS " in
11972 *" -library=stlport4 "*)
11973 solaris_use_stlport4=yes
11976 if test "$solaris_use_stlport4" != yes; then
11977 postdeps_CXX='-library=Cstd -library=Crun'
11984 case $cc_basename in
11986 # The more standards-conforming stlport4 library is
11987 # incompatible with the Cstd library. Avoid specifying
11988 # it if it's in CXXFLAGS. Ignore libCrun as
11989 # -library=stlport4 depends on it.
11990 case " $CXX $CXXFLAGS " in
11991 *" -library=stlport4 "*)
11992 solaris_use_stlport4=yes
11996 # Adding this requires a known-good setup of shared libraries for
11997 # Sun compiler versions before 5.6, else PIC objects from an old
11998 # archive will be linked into the output, leading to subtle bugs.
11999 if test "$solaris_use_stlport4" != yes; then
12000 postdeps_CXX='-library=Cstd -library=Crun'
12008 case " $postdeps_CXX " in
12009 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12012 lt_prog_compiler_wl_CXX=
12013 lt_prog_compiler_pic_CXX=
12014 lt_prog_compiler_static_CXX=
12016 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12017 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12019 # C++ specific cases for pic, static, wl, etc.
12020 if test "$GXX" = yes; then
12021 lt_prog_compiler_wl_CXX='-Wl,'
12022 lt_prog_compiler_static_CXX='-static'
12026 # All AIX code is PIC.
12027 if test "$host_cpu" = ia64; then
12028 # AIX 5 now supports IA64 processor
12029 lt_prog_compiler_static_CXX='-Bstatic'
12033 # FIXME: we need at least 68020 code to build shared libraries, but
12034 # adding the `-m68020' flag to GCC prevents building anything better,
12036 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12038 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12039 # PIC is the default for these OSes.
12041 mingw* | cygwin* | os2* | pw32*)
12042 # This hack is so that the source file can tell whether it is being
12043 # built for inclusion in a dll (and should export symbols for example).
12044 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12045 # (--disable-auto-import) libraries
12046 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12048 darwin* | rhapsody*)
12049 # PIC is the default on this platform
12050 # Common symbols not allowed in MH_DYLIB files
12051 lt_prog_compiler_pic_CXX='-fno-common'
12054 # DJGPP does not support shared libraries at all
12055 lt_prog_compiler_pic_CXX=
12058 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12059 # Instead, we relocate shared libraries at runtime.
12062 if test -d /usr/nec; then
12063 lt_prog_compiler_pic_CXX=-Kconform_pic
12067 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12068 # not for PA HP-UX.
12073 lt_prog_compiler_pic_CXX='-fPIC'
12078 lt_prog_compiler_pic_CXX='-fPIC'
12084 # All AIX code is PIC.
12085 if test "$host_cpu" = ia64; then
12086 # AIX 5 now supports IA64 processor
12087 lt_prog_compiler_static_CXX='-Bstatic'
12089 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12093 case $cc_basename in
12095 # Green Hills C++ Compiler
12096 # _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"
12101 # PIC is the default on this platform
12102 # Common symbols not allowed in MH_DYLIB files
12103 case $cc_basename in
12105 lt_prog_compiler_pic_CXX='-qnocommon'
12106 lt_prog_compiler_wl_CXX='-Wl,'
12111 case $cc_basename in
12113 lt_prog_compiler_pic_CXX='-KPIC'
12116 # Green Hills C++ Compiler
12117 lt_prog_compiler_pic_CXX='-pic'
12123 freebsd* | dragonfly*)
12124 # FreeBSD uses GNU C++
12126 hpux9* | hpux10* | hpux11*)
12127 case $cc_basename in
12129 lt_prog_compiler_wl_CXX='-Wl,'
12130 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12131 if test "$host_cpu" != ia64; then
12132 lt_prog_compiler_pic_CXX='+Z'
12136 lt_prog_compiler_wl_CXX='-Wl,'
12137 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12143 lt_prog_compiler_pic_CXX='+Z'
12152 # This is c89, which is MS Visual C++ (no shared libs)
12153 # Anyone wants to do a port?
12155 irix5* | irix6* | nonstopux*)
12156 case $cc_basename in
12158 lt_prog_compiler_wl_CXX='-Wl,'
12159 lt_prog_compiler_static_CXX='-non_shared'
12160 # CC pic flag -KPIC is the default.
12166 linux* | k*bsd*-gnu)
12167 case $cc_basename in
12170 lt_prog_compiler_wl_CXX='--backend -Wl,'
12171 lt_prog_compiler_pic_CXX='-fPIC'
12175 lt_prog_compiler_wl_CXX='-Wl,'
12176 lt_prog_compiler_pic_CXX='-KPIC'
12177 lt_prog_compiler_static_CXX='-static'
12180 # Portland Group C++ compiler.
12181 lt_prog_compiler_wl_CXX='-Wl,'
12182 lt_prog_compiler_pic_CXX='-fpic'
12183 lt_prog_compiler_static_CXX='-Bstatic'
12187 # Make sure the PIC flag is empty. It appears that all Alpha
12188 # Linux and Compaq Tru64 Unix objects are PIC.
12189 lt_prog_compiler_pic_CXX=
12190 lt_prog_compiler_static_CXX='-non_shared'
12193 case `$CC -V 2>&1 | sed 5q` in
12196 lt_prog_compiler_pic_CXX='-KPIC'
12197 lt_prog_compiler_static_CXX='-Bstatic'
12198 lt_prog_compiler_wl_CXX='-Qoption ld '
12209 case $cc_basename in
12211 lt_prog_compiler_pic_CXX='-W c,exportall'
12219 osf3* | osf4* | osf5*)
12220 case $cc_basename in
12222 lt_prog_compiler_wl_CXX='--backend -Wl,'
12225 # Rational C++ 2.4.1
12226 lt_prog_compiler_pic_CXX='-pic'
12229 # Digital/Compaq C++
12230 lt_prog_compiler_wl_CXX='-Wl,'
12231 # Make sure the PIC flag is empty. It appears that all Alpha
12232 # Linux and Compaq Tru64 Unix objects are PIC.
12233 lt_prog_compiler_pic_CXX=
12234 lt_prog_compiler_static_CXX='-non_shared'
12243 case $cc_basename in
12245 # Sun C++ 4.2, 5.x and Centerline C++
12246 lt_prog_compiler_pic_CXX='-KPIC'
12247 lt_prog_compiler_static_CXX='-Bstatic'
12248 lt_prog_compiler_wl_CXX='-Qoption ld '
12251 # Green Hills C++ Compiler
12252 lt_prog_compiler_pic_CXX='-PIC'
12259 case $cc_basename in
12262 lt_prog_compiler_pic_CXX='-pic'
12263 lt_prog_compiler_static_CXX='-Bstatic'
12267 lt_prog_compiler_pic_CXX='-pic'
12274 case $cc_basename in
12276 # NonStop-UX NCC 3.20
12277 lt_prog_compiler_pic_CXX='-KPIC'
12283 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12284 case $cc_basename in
12286 lt_prog_compiler_wl_CXX='-Wl,'
12287 lt_prog_compiler_pic_CXX='-KPIC'
12288 lt_prog_compiler_static_CXX='-Bstatic'
12295 lt_prog_compiler_can_build_shared_CXX=no
12300 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12301 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12304 # Check to make sure the PIC flag actually works.
12306 if test -n "$lt_prog_compiler_pic_CXX"; then
12308 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12309 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12310 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12311 echo $ECHO_N "(cached) $ECHO_C" >&6
12313 lt_prog_compiler_pic_works_CXX=no
12314 ac_outfile=conftest.$ac_objext
12315 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12316 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12317 # Insert the option either (1) after the last *FLAGS variable, or
12318 # (2) before a word containing "conftest.", or (3) at the end.
12319 # Note that $ac_compile itself does not contain backslashes and begins
12320 # with a dollar sign (not a hyphen), so the echo should work correctly.
12321 # The option is referenced via a variable to avoid confusing sed.
12322 lt_compile=`echo "$ac_compile" | $SED \
12323 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12324 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12325 -e 's:$: $lt_compiler_flag:'`
12326 (eval echo "\"\$as_me:12326: $lt_compile\"" >&5)
12327 (eval "$lt_compile" 2>conftest.err)
12329 cat conftest.err >&5
12330 echo "$as_me:12330: \$? = $ac_status" >&5
12331 if (exit $ac_status) && test -s "$ac_outfile"; then
12332 # The compiler can only warn and ignore the option if not recognized
12333 # So say no if there are warnings other than the usual output.
12334 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12335 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12336 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12337 lt_prog_compiler_pic_works_CXX=yes
12343 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12344 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12346 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12347 case $lt_prog_compiler_pic_CXX in
12349 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12352 lt_prog_compiler_pic_CXX=
12353 lt_prog_compiler_can_build_shared_CXX=no
12358 # For platforms which do not support PIC, -DPIC is meaningless:
12360 lt_prog_compiler_pic_CXX=
12363 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12368 # Check to make sure the static flag actually works.
12370 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12371 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12372 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12373 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12374 echo $ECHO_N "(cached) $ECHO_C" >&6
12376 lt_prog_compiler_static_works_CXX=no
12377 save_LDFLAGS="$LDFLAGS"
12378 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12379 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12380 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12381 # The linker can only warn and ignore the option if not recognized
12382 # So say no if there are warnings
12383 if test -s conftest.err; then
12384 # Append any errors to the config.log.
12385 cat conftest.err 1>&5
12386 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12387 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12388 if diff conftest.exp conftest.er2 >/dev/null; then
12389 lt_prog_compiler_static_works_CXX=yes
12392 lt_prog_compiler_static_works_CXX=yes
12396 LDFLAGS="$save_LDFLAGS"
12399 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12400 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12402 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12405 lt_prog_compiler_static_CXX=
12409 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12410 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12411 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12412 echo $ECHO_N "(cached) $ECHO_C" >&6
12414 lt_cv_prog_compiler_c_o_CXX=no
12415 $rm -r conftest 2>/dev/null
12419 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12421 lt_compiler_flag="-o out/conftest2.$ac_objext"
12422 # Insert the option either (1) after the last *FLAGS variable, or
12423 # (2) before a word containing "conftest.", or (3) at the end.
12424 # Note that $ac_compile itself does not contain backslashes and begins
12425 # with a dollar sign (not a hyphen), so the echo should work correctly.
12426 lt_compile=`echo "$ac_compile" | $SED \
12427 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12428 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12429 -e 's:$: $lt_compiler_flag:'`
12430 (eval echo "\"\$as_me:12430: $lt_compile\"" >&5)
12431 (eval "$lt_compile" 2>out/conftest.err)
12433 cat out/conftest.err >&5
12434 echo "$as_me:12434: \$? = $ac_status" >&5
12435 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12437 # The compiler can only warn and ignore the option if not recognized
12438 # So say no if there are warnings
12439 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12440 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12441 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12442 lt_cv_prog_compiler_c_o_CXX=yes
12447 # SGI C++ compiler will create directory out/ii_files/ for
12448 # template instantiation
12449 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12450 $rm out/* && rmdir out
12456 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12457 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12460 hard_links="nottested"
12461 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12462 # do not overwrite the value of need_locks provided by the user
12463 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12464 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12467 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12469 ln conftest.a conftest.b 2>&5 || hard_links=no
12470 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12471 { echo "$as_me:$LINENO: result: $hard_links" >&5
12472 echo "${ECHO_T}$hard_links" >&6; }
12473 if test "$hard_links" = no; then
12474 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12475 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12482 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12483 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12485 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12488 # If we're using GNU nm, then we don't want the "-C" option.
12489 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12490 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12491 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'
12493 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'
12497 export_symbols_cmds_CXX="$ltdll_cmds"
12500 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'
12503 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12507 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12508 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12509 test "$ld_shlibs_CXX" = no && can_build_shared=no
12512 # Do we need to explicitly link libc?
12514 case "x$archive_cmds_need_lc_CXX" in
12516 # Assume -lc should be added
12517 archive_cmds_need_lc_CXX=yes
12519 if test "$enable_shared" = yes && test "$GCC" = yes; then
12520 case $archive_cmds_CXX in
12522 # FIXME: we may have to deal with multi-command sequences.
12525 # Test whether the compiler implicitly links with -lc since on some
12526 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12527 # to ld, don't add -lc before -lgcc.
12528 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12529 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12531 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12534 (eval $ac_compile) 2>&5
12536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537 (exit $ac_status); } 2>conftest.err; then
12540 libobjs=conftest.$ac_objext
12542 wl=$lt_prog_compiler_wl_CXX
12543 pic_flag=$lt_prog_compiler_pic_CXX
12549 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12550 allow_undefined_flag_CXX=
12551 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12552 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); }
12557 archive_cmds_need_lc_CXX=no
12559 archive_cmds_need_lc_CXX=yes
12561 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12563 cat conftest.err 1>&5
12566 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12567 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12574 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12575 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12576 library_names_spec=
12577 libname_spec='lib$name'
12581 postuninstall_cmds=
12585 shlibpath_overrides_runpath=unknown
12587 dynamic_linker="$host_os ld.so"
12588 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12590 need_lib_prefix=unknown
12591 hardcode_into_libs=no
12593 # when you set need_version to no, make sure it does not cause -set_version
12594 # flags to be left without arguments
12595 need_version=unknown
12600 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12601 shlibpath_var=LIBPATH
12603 # AIX 3 has no versioning support, so we append a major version to the name.
12604 soname_spec='${libname}${release}${shared_ext}$major'
12611 hardcode_into_libs=yes
12612 if test "$host_cpu" = ia64; then
12613 # AIX 5 supports IA64
12614 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12615 shlibpath_var=LD_LIBRARY_PATH
12617 # With GCC up to 2.95.x, collect2 would create an import file
12618 # for dependence libraries. The import file would start with
12619 # the line `#! .'. This would cause the generated library to
12620 # depend on `.', always an invalid library. This was fixed in
12621 # development snapshots of GCC prior to 3.0.
12623 aix4 | aix4.[01] | aix4.[01].*)
12624 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12626 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12629 can_build_shared=no
12633 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12634 # soname into executable. Probably we can add versioning support to
12635 # collect2, so additional links can be useful in future.
12636 if test "$aix_use_runtimelinking" = yes; then
12637 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12638 # instead of lib<name>.a to let people know that these are not
12639 # typical AIX shared libraries.
12640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12642 # We preserve .a as extension for shared libraries through AIX4.2
12643 # and later when we are not doing run time linking.
12644 library_names_spec='${libname}${release}.a $libname.a'
12645 soname_spec='${libname}${release}${shared_ext}$major'
12647 shlibpath_var=LIBPATH
12652 library_names_spec='$libname.ixlibrary $libname.a'
12653 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12654 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'
12658 library_names_spec='${libname}${shared_ext}'
12659 dynamic_linker="$host_os ld.so"
12660 shlibpath_var=LIBRARY_PATH
12666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12667 soname_spec='${libname}${release}${shared_ext}$major'
12668 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12669 shlibpath_var=LD_LIBRARY_PATH
12670 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12671 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12672 # the default ld.so.conf also contains /usr/contrib/lib and
12673 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12674 # libtool to hard-code these into programs
12677 cygwin* | mingw* | pw32*)
12678 version_type=windows
12683 case $GCC,$host_os in
12684 yes,cygwin* | yes,mingw* | yes,pw32*)
12685 library_names_spec='$libname.dll.a'
12686 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12687 postinstall_cmds='base_file=`basename \${file}`~
12688 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12689 dldir=$destdir/`dirname \$dlpath`~
12690 test -d \$dldir || mkdir -p \$dldir~
12691 $install_prog $dir/$dlname \$dldir/$dlname~
12692 chmod a+x \$dldir/$dlname'
12693 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12694 dlpath=$dir/\$dldll~
12696 shlibpath_overrides_runpath=yes
12700 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12701 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12702 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12705 # MinGW DLLs use traditional 'lib' prefix
12706 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12707 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12708 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12709 # It is most probably a Windows format PATH printed by
12710 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12711 # path with ; separators, and with drive letters. We can handle the
12712 # drive letters (cygwin fileutils understands them), so leave them,
12713 # especially as we might pass files found there to a mingw objdump,
12714 # which wouldn't understand a cygwinified path. Ahh.
12715 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12717 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12721 # pw32 DLLs use 'pw' prefix rather than 'lib'
12722 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12728 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12731 dynamic_linker='Win32 ld.exe'
12732 # FIXME: first we should search . and the directory the executable is in
12736 darwin* | rhapsody*)
12737 dynamic_linker="$host_os dyld"
12738 version_type=darwin
12741 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12742 soname_spec='${libname}${release}${major}$shared_ext'
12743 shlibpath_overrides_runpath=yes
12744 shlibpath_var=DYLD_LIBRARY_PATH
12745 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12747 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12755 soname_spec='${libname}${release}${shared_ext}$major'
12756 shlibpath_var=LD_LIBRARY_PATH
12763 freebsd* | dragonfly*)
12764 # DragonFly does not have aout. When/if they implement a new
12765 # versioning mechanism, adjust this.
12766 if test -x /usr/bin/objformat; then
12767 objformat=`/usr/bin/objformat`
12770 freebsd[123]*) objformat=aout ;;
12771 *) objformat=elf ;;
12774 version_type=freebsd-$objformat
12775 case $version_type in
12777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12782 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12786 shlibpath_var=LD_LIBRARY_PATH
12789 shlibpath_overrides_runpath=yes
12791 freebsd3.[01]* | freebsdelf3.[01]*)
12792 shlibpath_overrides_runpath=yes
12793 hardcode_into_libs=yes
12795 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12796 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12797 shlibpath_overrides_runpath=no
12798 hardcode_into_libs=yes
12800 *) # from 4.6 on, and DragonFly
12801 shlibpath_overrides_runpath=yes
12802 hardcode_into_libs=yes
12811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12812 soname_spec='${libname}${release}${shared_ext}$major'
12813 shlibpath_var=LD_LIBRARY_PATH
12814 hardcode_into_libs=yes
12817 hpux9* | hpux10* | hpux11*)
12818 # Give a soname corresponding to the major version so that dld.sl refuses to
12819 # link against other versions.
12826 hardcode_into_libs=yes
12827 dynamic_linker="$host_os dld.so"
12828 shlibpath_var=LD_LIBRARY_PATH
12829 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12831 soname_spec='${libname}${release}${shared_ext}$major'
12832 if test "X$HPUX_IA64_MODE" = X32; then
12833 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12835 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12837 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12841 hardcode_into_libs=yes
12842 dynamic_linker="$host_os dld.sl"
12843 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12844 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12846 soname_spec='${libname}${release}${shared_ext}$major'
12847 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12848 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12852 dynamic_linker="$host_os dld.sl"
12853 shlibpath_var=SHLIB_PATH
12854 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12856 soname_spec='${libname}${release}${shared_ext}$major'
12859 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12860 postinstall_cmds='chmod 555 $lib'
12867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12868 soname_spec='${libname}${release}${shared_ext}$major'
12869 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12870 shlibpath_var=LD_LIBRARY_PATH
12871 shlibpath_overrides_runpath=no
12872 hardcode_into_libs=yes
12875 irix5* | irix6* | nonstopux*)
12877 nonstopux*) version_type=nonstopux ;;
12879 if test "$lt_cv_prog_gnu_ld" = yes; then
12887 soname_spec='${libname}${release}${shared_ext}$major'
12888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12890 irix5* | nonstopux*)
12891 libsuff= shlibsuff=
12894 case $LD in # libtool.m4 will add one of these switches to LD
12895 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12896 libsuff= shlibsuff= libmagic=32-bit;;
12897 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12898 libsuff=32 shlibsuff=N32 libmagic=N32;;
12899 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12900 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12901 *) libsuff= shlibsuff= libmagic=never-match;;
12905 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12906 shlibpath_overrides_runpath=no
12907 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12908 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12909 hardcode_into_libs=yes
12912 # No shared lib support for Linux oldld, aout, or coff.
12913 linux*oldld* | linux*aout* | linux*coff*)
12917 # This must be Linux ELF.
12918 linux* | k*bsd*-gnu)
12922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12923 soname_spec='${libname}${release}${shared_ext}$major'
12924 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12925 shlibpath_var=LD_LIBRARY_PATH
12926 shlibpath_overrides_runpath=no
12927 # This implies no fast_install, which is unacceptable.
12928 # Some rework will be needed to allow for fast_install
12929 # before this can be enabled.
12930 hardcode_into_libs=yes
12932 # find out which ABI we are using
12934 case "$host_cpu" in
12935 x86_64*|s390x*|powerpc64*)
12936 echo '#line 12936 "configure"' > conftest.$ac_ext
12937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12938 (eval $ac_compile) 2>&5
12940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12941 (exit $ac_status); }; then
12942 case `/usr/bin/file conftest.$ac_objext` in
12945 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12953 # Append ld.so.conf contents to the search path
12954 if test -f /etc/ld.so.conf; then
12955 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' ' '`
12956 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12959 # We used to test for /lib/ld.so.1 and disable shared libraries on
12960 # powerpc, because MkLinux only supported shared libraries with the
12961 # GNU dynamic linker. Since this was broken with cross compilers,
12962 # most powerpc-linux boxes support dynamic linking these days and
12963 # people can always --disable-shared, the test was removed, and we
12964 # assume the GNU/Linux dynamic linker is in use.
12965 dynamic_linker='GNU/Linux ld.so'
12972 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12974 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12975 dynamic_linker='NetBSD (a.out) ld.so'
12977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12978 soname_spec='${libname}${release}${shared_ext}$major'
12979 dynamic_linker='NetBSD ld.elf_so'
12981 shlibpath_var=LD_LIBRARY_PATH
12982 shlibpath_overrides_runpath=yes
12983 hardcode_into_libs=yes
12988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12989 shlibpath_var=LD_LIBRARY_PATH
12990 shlibpath_overrides_runpath=yes
12997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12998 soname_spec='${libname}${release}${shared_ext}$major'
12999 shlibpath_var=LD_LIBRARY_PATH
13000 shlibpath_overrides_runpath=yes
13005 sys_lib_dlsearch_path_spec="/usr/lib"
13007 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13009 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13010 *) need_version=no ;;
13012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13013 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13014 shlibpath_var=LD_LIBRARY_PATH
13015 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13017 openbsd2.[89] | openbsd2.[89].*)
13018 shlibpath_overrides_runpath=no
13021 shlibpath_overrides_runpath=yes
13025 shlibpath_overrides_runpath=yes
13030 libname_spec='$name'
13033 library_names_spec='$libname${shared_ext} $libname.a'
13034 dynamic_linker='OS/2 ld.exe'
13035 shlibpath_var=LIBPATH
13038 osf3* | osf4* | osf5*)
13042 soname_spec='${libname}${release}${shared_ext}$major'
13043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13044 shlibpath_var=LD_LIBRARY_PATH
13045 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13046 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13058 soname_spec='${libname}${release}${shared_ext}$major'
13059 shlibpath_var=LD_LIBRARY_PATH
13060 shlibpath_overrides_runpath=yes
13061 hardcode_into_libs=yes
13062 # ldd complains unless libraries are executable
13063 postinstall_cmds='chmod +x $lib'
13068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13069 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13070 shlibpath_var=LD_LIBRARY_PATH
13071 shlibpath_overrides_runpath=yes
13072 if test "$with_gnu_ld" = yes; then
13080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13081 soname_spec='${libname}${release}${shared_ext}$major'
13082 shlibpath_var=LD_LIBRARY_PATH
13083 case $host_vendor in
13085 shlibpath_overrides_runpath=no
13087 export_dynamic_flag_spec='${wl}-Blargedynsym'
13088 runpath_var=LD_RUN_PATH
13096 shlibpath_overrides_runpath=no
13097 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13103 if test -d /usr/nec ;then
13105 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13106 soname_spec='$libname${shared_ext}.$major'
13107 shlibpath_var=LD_LIBRARY_PATH
13111 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13112 version_type=freebsd-elf
13115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13116 soname_spec='${libname}${release}${shared_ext}$major'
13117 shlibpath_var=LD_LIBRARY_PATH
13118 hardcode_into_libs=yes
13119 if test "$with_gnu_ld" = yes; then
13120 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13121 shlibpath_overrides_runpath=no
13123 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13124 shlibpath_overrides_runpath=yes
13127 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13131 sys_lib_dlsearch_path_spec='/usr/lib'
13136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13137 soname_spec='${libname}${release}${shared_ext}$major'
13138 shlibpath_var=LD_LIBRARY_PATH
13145 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13146 echo "${ECHO_T}$dynamic_linker" >&6; }
13147 test "$dynamic_linker" = no && can_build_shared=no
13149 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13150 if test "$GCC" = yes; then
13151 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13154 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13155 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13156 hardcode_action_CXX=
13157 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13158 test -n "$runpath_var_CXX" || \
13159 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13161 # We can hardcode non-existant directories.
13162 if test "$hardcode_direct_CXX" != no &&
13163 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13164 # have to relink, otherwise we might link with an installed library
13165 # when we should be linking with a yet-to-be-installed one
13166 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13167 test "$hardcode_minus_L_CXX" != no; then
13168 # Linking always hardcodes the temporary library directory.
13169 hardcode_action_CXX=relink
13171 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13172 hardcode_action_CXX=immediate
13175 # We cannot hardcode anything, or else we can only hardcode existing
13177 hardcode_action_CXX=unsupported
13179 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13180 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13182 if test "$hardcode_action_CXX" = relink; then
13183 # Fast installation is not supported
13184 enable_fast_install=no
13185 elif test "$shlibpath_overrides_runpath" = yes ||
13186 test "$enable_shared" = no; then
13187 # Fast installation is not necessary
13188 enable_fast_install=needless
13192 # The else clause should only fire when bootstrapping the
13193 # libtool distribution, otherwise you forgot to ship ltmain.sh
13194 # with your package, and you will get complaints that there are
13195 # no rules to generate ltmain.sh.
13196 if test -f "$ltmain"; then
13197 # See if we are running on zsh, and set the options which allow our commands through
13198 # without removal of \ escapes.
13199 if test -n "${ZSH_VERSION+set}" ; then
13200 setopt NO_GLOB_SUBST
13202 # Now quote all the things that may contain metacharacters while being
13203 # careful not to overquote the AC_SUBSTed values. We take copies of the
13204 # variables and quote the copies for generation of the libtool script.
13205 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13207 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13208 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13209 deplibs_check_method reload_flag reload_cmds need_locks \
13210 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13211 lt_cv_sys_global_symbol_to_c_name_address \
13212 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13213 old_postinstall_cmds old_postuninstall_cmds \
13217 lt_prog_compiler_wl_CXX \
13218 lt_prog_compiler_pic_CXX \
13219 lt_prog_compiler_static_CXX \
13220 lt_prog_compiler_no_builtin_flag_CXX \
13221 export_dynamic_flag_spec_CXX \
13222 thread_safe_flag_spec_CXX \
13223 whole_archive_flag_spec_CXX \
13224 enable_shared_with_static_runtimes_CXX \
13225 old_archive_cmds_CXX \
13226 old_archive_from_new_cmds_CXX \
13227 predep_objects_CXX \
13228 postdep_objects_CXX \
13231 compiler_lib_search_path_CXX \
13233 archive_expsym_cmds_CXX \
13234 postinstall_cmds_CXX \
13235 postuninstall_cmds_CXX \
13236 old_archive_from_expsyms_cmds_CXX \
13237 allow_undefined_flag_CXX \
13238 no_undefined_flag_CXX \
13239 export_symbols_cmds_CXX \
13240 hardcode_libdir_flag_spec_CXX \
13241 hardcode_libdir_flag_spec_ld_CXX \
13242 hardcode_libdir_separator_CXX \
13243 hardcode_automatic_CXX \
13245 module_expsym_cmds_CXX \
13246 lt_cv_prog_compiler_c_o_CXX \
13247 fix_srcfile_path_CXX \
13248 exclude_expsyms_CXX \
13249 include_expsyms_CXX; do
13252 old_archive_cmds_CXX | \
13253 old_archive_from_new_cmds_CXX | \
13254 archive_cmds_CXX | \
13255 archive_expsym_cmds_CXX | \
13256 module_cmds_CXX | \
13257 module_expsym_cmds_CXX | \
13258 old_archive_from_expsyms_cmds_CXX | \
13259 export_symbols_cmds_CXX | \
13260 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13261 postinstall_cmds | postuninstall_cmds | \
13262 old_postinstall_cmds | old_postuninstall_cmds | \
13263 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13264 # Double-quote double-evaled strings.
13265 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13268 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13274 *'\$0 --fallback-echo"')
13275 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13281 cat <<__EOF__ >> "$cfgfile"
13282 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13284 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13286 # Shell to use when invoking shell scripts.
13289 # Whether or not to build shared libraries.
13290 build_libtool_libs=$enable_shared
13292 # Whether or not to build static libraries.
13293 build_old_libs=$enable_static
13295 # Whether or not to add -lc for building shared libraries.
13296 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13298 # Whether or not to disallow shared libs when runtime libs are static
13299 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13301 # Whether or not to optimize for fast installation.
13302 fast_install=$enable_fast_install
13305 host_alias=$host_alias
13309 # The build system.
13310 build_alias=$build_alias
13314 # An echo program that does not interpret backslashes.
13319 AR_FLAGS=$lt_AR_FLAGS
13324 # LTCC compiler flags.
13325 LTCFLAGS=$lt_LTCFLAGS
13327 # A language-specific compiler.
13328 CC=$lt_compiler_CXX
13330 # Is the compiler the GNU C compiler?
13333 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
13334 gcc_ver=\`gcc -dumpversion\`
13339 # The linker used to build libraries.
13342 # Whether we need hard or soft links.
13345 # A BSD-compatible nm program.
13348 # A symbol stripping program
13351 # Used to examine libraries when file_magic_cmd begins "file"
13352 MAGIC_CMD=$MAGIC_CMD
13354 # Used on cygwin: DLL creation program.
13357 # Used on cygwin: object dumper.
13360 # Used on cygwin: assembler.
13363 # The name of the directory that contains temporary libtool files.
13366 # How to create reloadable object files.
13367 reload_flag=$lt_reload_flag
13368 reload_cmds=$lt_reload_cmds
13370 # How to pass a linker flag through the compiler.
13371 wl=$lt_lt_prog_compiler_wl_CXX
13373 # Object file suffix (normally "o").
13374 objext="$ac_objext"
13376 # Old archive suffix (normally "a").
13379 # Shared library suffix (normally ".so").
13380 shrext_cmds='$shrext_cmds'
13382 # Executable file suffix (normally "").
13385 # Additional compiler flags for building library objects.
13386 pic_flag=$lt_lt_prog_compiler_pic_CXX
13389 # What is the maximum length of a command?
13390 max_cmd_len=$lt_cv_sys_max_cmd_len
13392 # Does compiler simultaneously support -c and -o options?
13393 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13395 # Must we lock files when doing compilation?
13396 need_locks=$lt_need_locks
13398 # Do we need the lib prefix for modules?
13399 need_lib_prefix=$need_lib_prefix
13401 # Do we need a version for libraries?
13402 need_version=$need_version
13404 # Whether dlopen is supported.
13405 dlopen_support=$enable_dlopen
13407 # Whether dlopen of programs is supported.
13408 dlopen_self=$enable_dlopen_self
13410 # Whether dlopen of statically linked programs is supported.
13411 dlopen_self_static=$enable_dlopen_self_static
13413 # Compiler flag to prevent dynamic linking.
13414 link_static_flag=$lt_lt_prog_compiler_static_CXX
13416 # Compiler flag to turn off builtin functions.
13417 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13419 # Compiler flag to allow reflexive dlopens.
13420 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13422 # Compiler flag to generate shared objects directly from archives.
13423 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13425 # Compiler flag to generate thread-safe objects.
13426 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13428 # Library versioning type.
13429 version_type=$version_type
13431 # Format of library name prefix.
13432 libname_spec=$lt_libname_spec
13434 # List of archive names. First name is the real one, the rest are links.
13435 # The last name is the one that the linker finds with -lNAME.
13436 library_names_spec=$lt_library_names_spec
13438 # The coded name of the library, if different from the real name.
13439 soname_spec=$lt_soname_spec
13441 # Commands used to build and install an old-style archive.
13443 old_archive_cmds=$lt_old_archive_cmds_CXX
13444 old_postinstall_cmds=$lt_old_postinstall_cmds
13445 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13447 # Create an old-style archive from a shared archive.
13448 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13450 # Create a temporary old-style archive to link instead of a shared archive.
13451 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13453 # Commands used to build and install a shared archive.
13454 archive_cmds=$lt_archive_cmds_CXX
13455 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13456 postinstall_cmds=$lt_postinstall_cmds
13457 postuninstall_cmds=$lt_postuninstall_cmds
13459 # Commands used to build a loadable module (assumed same as above if empty)
13460 module_cmds=$lt_module_cmds_CXX
13461 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13463 # Commands to strip libraries.
13464 old_striplib=$lt_old_striplib
13465 striplib=$lt_striplib
13467 # Dependencies to place before the objects being linked to create a
13469 predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13471 # Dependencies to place after the objects being linked to create a
13473 postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13475 # Dependencies to place before the objects being linked to create a
13477 predeps=$lt_predeps_CXX
13479 # Dependencies to place after the objects being linked to create a
13481 postdeps=$lt_postdeps_CXX
13483 # The library search path used internally by the compiler when linking
13484 # a shared library.
13485 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13487 # Method to check whether dependent libraries are shared objects.
13488 deplibs_check_method=$lt_deplibs_check_method
13490 # Command to use when deplibs_check_method == file_magic.
13491 file_magic_cmd=$lt_file_magic_cmd
13493 # Flag that allows shared libraries with undefined symbols to be built.
13494 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13496 # Flag that forces no undefined symbols.
13497 no_undefined_flag=$lt_no_undefined_flag_CXX
13499 # Commands used to finish a libtool library installation in a directory.
13500 finish_cmds=$lt_finish_cmds
13502 # Same as above, but a single script fragment to be evaled but not shown.
13503 finish_eval=$lt_finish_eval
13505 # Take the output of nm and produce a listing of raw symbols and C names.
13506 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13508 # Transform the output of nm in a proper C declaration
13509 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13511 # Transform the output of nm in a C name address pair
13512 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13514 # This is the shared library runtime path variable.
13515 runpath_var=$runpath_var
13517 # This is the shared library path variable.
13518 shlibpath_var=$shlibpath_var
13520 # Is shlibpath searched before the hard-coded library search path?
13521 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13523 # How to hardcode a shared library path into an executable.
13524 hardcode_action=$hardcode_action_CXX
13526 # Whether we should hardcode library paths into libraries.
13527 hardcode_into_libs=$hardcode_into_libs
13529 # Flag to hardcode \$libdir into a binary during linking.
13530 # This must work even if \$libdir does not exist.
13531 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13533 # If ld is used when linking, flag to hardcode \$libdir into
13534 # a binary during linking. This must work even if \$libdir does
13536 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13538 # Whether we need a single -rpath flag with a separated argument.
13539 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13541 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13542 # resulting binary.
13543 hardcode_direct=$hardcode_direct_CXX
13545 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13546 # resulting binary.
13547 hardcode_minus_L=$hardcode_minus_L_CXX
13549 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13550 # the resulting binary.
13551 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13553 # Set to yes if building a shared library automatically hardcodes DIR into the library
13554 # and all subsequent libraries and executables linked against it.
13555 hardcode_automatic=$hardcode_automatic_CXX
13557 # Variables whose values should be saved in libtool wrapper scripts and
13558 # restored at relink time.
13559 variables_saved_for_relink="$variables_saved_for_relink"
13561 # Whether libtool must link a program against all its dependency libraries.
13562 link_all_deplibs=$link_all_deplibs_CXX
13564 # Compile-time system search path for libraries
13565 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13567 # Run-time system search path for libraries
13568 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13570 # Fix the shell variable \$srcfile for the compiler.
13571 fix_srcfile_path=$lt_fix_srcfile_path
13573 # Set to yes if exported symbols are required.
13574 always_export_symbols=$always_export_symbols_CXX
13576 # The commands to list exported symbols.
13577 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13579 # The commands to extract the exported symbol list from a shared archive.
13580 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13582 # Symbols that should not be listed in the preloaded symbols.
13583 exclude_expsyms=$lt_exclude_expsyms_CXX
13585 # Symbols that must always be exported.
13586 include_expsyms=$lt_include_expsyms_CXX
13588 # ### END LIBTOOL TAG CONFIG: $tagname
13594 # If there is no Makefile yet, we rely on a make rule to execute
13595 # `config.status --recheck' to rerun these tests and create the
13596 # libtool script then.
13597 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13598 if test -f "$ltmain_in"; then
13599 test -f Makefile && make "$ltmain"
13605 ac_cpp='$CPP $CPPFLAGS'
13606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13614 with_gnu_ldcxx=$with_gnu_ld
13615 with_gnu_ld=$lt_save_with_gnu_ld
13616 lt_cv_path_LDCXX=$lt_cv_path_LD
13617 lt_cv_path_LD=$lt_save_path_LD
13618 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13619 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13627 if test -n "$F77" && test "X$F77" != "Xno"; then
13630 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13631 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13632 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13635 archive_cmds_need_lc_F77=no
13636 allow_undefined_flag_F77=
13637 always_export_symbols_F77=no
13638 archive_expsym_cmds_F77=
13639 export_dynamic_flag_spec_F77=
13640 hardcode_direct_F77=no
13641 hardcode_libdir_flag_spec_F77=
13642 hardcode_libdir_flag_spec_ld_F77=
13643 hardcode_libdir_separator_F77=
13644 hardcode_minus_L_F77=no
13645 hardcode_automatic_F77=no
13647 module_expsym_cmds_F77=
13648 link_all_deplibs_F77=unknown
13649 old_archive_cmds_F77=$old_archive_cmds
13650 no_undefined_flag_F77=
13651 whole_archive_flag_spec_F77=
13652 enable_shared_with_static_runtimes_F77=no
13654 # Source file extension for f77 test sources.
13657 # Object file extension for compiled f77 test sources.
13661 # Code to be used in simple compile tests
13662 lt_simple_compile_test_code="\
13668 # Code to be used in simple link tests
13669 lt_simple_link_test_code="\
13674 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13676 # If no C compiler was specified, use CC.
13679 # If no C compiler flags were specified, use CFLAGS.
13680 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13682 # Allow CC to be a program name with arguments.
13686 # save warnings/boilerplate of simple test code
13687 ac_outfile=conftest.$ac_objext
13688 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13689 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13690 _lt_compiler_boilerplate=`cat conftest.err`
13693 ac_outfile=conftest.$ac_objext
13694 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13695 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13696 _lt_linker_boilerplate=`cat conftest.err`
13700 # Allow CC to be a program name with arguments.
13705 for cc_temp in $compiler""; do
13707 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13708 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13713 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13716 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13717 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13718 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13719 echo "${ECHO_T}$can_build_shared" >&6; }
13721 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13722 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13723 test "$can_build_shared" = "no" && enable_shared=no
13725 # On AIX, shared libraries and static libraries use the same namespace, and
13726 # are all built from PIC.
13729 test "$enable_shared" = yes && enable_static=no
13730 if test -n "$RANLIB"; then
13731 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13732 postinstall_cmds='$RANLIB $lib'
13736 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13737 test "$enable_shared" = yes && enable_static=no
13741 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13742 echo "${ECHO_T}$enable_shared" >&6; }
13744 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13745 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13746 # Make sure either enable_shared or enable_static is yes.
13747 test "$enable_shared" = yes || enable_static=yes
13748 { echo "$as_me:$LINENO: result: $enable_static" >&5
13749 echo "${ECHO_T}$enable_static" >&6; }
13754 lt_prog_compiler_wl_F77=
13755 lt_prog_compiler_pic_F77=
13756 lt_prog_compiler_static_F77=
13758 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13759 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13761 if test "$GCC" = yes; then
13762 lt_prog_compiler_wl_F77='-Wl,'
13763 lt_prog_compiler_static_F77='-static'
13767 # All AIX code is PIC.
13768 if test "$host_cpu" = ia64; then
13769 # AIX 5 now supports IA64 processor
13770 lt_prog_compiler_static_F77='-Bstatic'
13775 # FIXME: we need at least 68020 code to build shared libraries, but
13776 # adding the `-m68020' flag to GCC prevents building anything better,
13778 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13781 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13782 # PIC is the default for these OSes.
13785 mingw* | cygwin* | pw32* | os2*)
13786 # This hack is so that the source file can tell whether it is being
13787 # built for inclusion in a dll (and should export symbols for example).
13788 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13789 # (--disable-auto-import) libraries
13790 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13793 darwin* | rhapsody*)
13794 # PIC is the default on this platform
13795 # Common symbols not allowed in MH_DYLIB files
13796 lt_prog_compiler_pic_F77='-fno-common'
13800 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13801 # Instead, we relocate shared libraries at runtime.
13805 # Just because we use GCC doesn't mean we suddenly get shared libraries
13806 # on systems that don't support them.
13807 lt_prog_compiler_can_build_shared_F77=no
13812 if test -d /usr/nec; then
13813 lt_prog_compiler_pic_F77=-Kconform_pic
13818 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13819 # not for PA HP-UX.
13825 lt_prog_compiler_pic_F77='-fPIC'
13831 lt_prog_compiler_pic_F77='-fPIC'
13835 # PORTME Check for flag to pass linker flags through the system compiler.
13838 lt_prog_compiler_wl_F77='-Wl,'
13839 if test "$host_cpu" = ia64; then
13840 # AIX 5 now supports IA64 processor
13841 lt_prog_compiler_static_F77='-Bstatic'
13843 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13847 # PIC is the default on this platform
13848 # Common symbols not allowed in MH_DYLIB files
13849 case $cc_basename in
13851 lt_prog_compiler_pic_F77='-qnocommon'
13852 lt_prog_compiler_wl_F77='-Wl,'
13857 mingw* | cygwin* | pw32* | os2*)
13858 # This hack is so that the source file can tell whether it is being
13859 # built for inclusion in a dll (and should export symbols for example).
13860 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13863 hpux9* | hpux10* | hpux11*)
13864 lt_prog_compiler_wl_F77='-Wl,'
13865 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13866 # not for PA HP-UX.
13872 lt_prog_compiler_pic_F77='+Z'
13875 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13876 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13879 irix5* | irix6* | nonstopux*)
13880 lt_prog_compiler_wl_F77='-Wl,'
13881 # PIC (with -KPIC) is the default.
13882 lt_prog_compiler_static_F77='-non_shared'
13886 lt_prog_compiler_pic_F77='-KPIC'
13887 lt_prog_compiler_static_F77='-Bstatic'
13890 linux* | k*bsd*-gnu)
13891 case $cc_basename in
13893 lt_prog_compiler_wl_F77='-Wl,'
13894 lt_prog_compiler_pic_F77='-KPIC'
13895 lt_prog_compiler_static_F77='-static'
13897 pgcc* | pgf77* | pgf90* | pgf95*)
13898 # Portland Group compilers (*not* the Pentium gcc compiler,
13899 # which looks to be a dead project)
13900 lt_prog_compiler_wl_F77='-Wl,'
13901 lt_prog_compiler_pic_F77='-fpic'
13902 lt_prog_compiler_static_F77='-Bstatic'
13905 lt_prog_compiler_wl_F77='-Wl,'
13906 # All Alpha code is PIC.
13907 lt_prog_compiler_static_F77='-non_shared'
13910 case `$CC -V 2>&1 | sed 5q` in
13913 lt_prog_compiler_pic_F77='-KPIC'
13914 lt_prog_compiler_static_F77='-Bstatic'
13915 lt_prog_compiler_wl_F77='-Wl,'
13918 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13919 lt_prog_compiler_pic_F77='-KPIC'
13920 lt_prog_compiler_static_F77='-Bstatic'
13921 lt_prog_compiler_wl_F77=''
13928 osf3* | osf4* | osf5*)
13929 lt_prog_compiler_wl_F77='-Wl,'
13930 # All OSF/1 code is PIC.
13931 lt_prog_compiler_static_F77='-non_shared'
13935 lt_prog_compiler_static_F77='-non_shared'
13939 lt_prog_compiler_pic_F77='-KPIC'
13940 lt_prog_compiler_static_F77='-Bstatic'
13941 case $cc_basename in
13942 f77* | f90* | f95*)
13943 lt_prog_compiler_wl_F77='-Qoption ld ';;
13945 lt_prog_compiler_wl_F77='-Wl,';;
13950 lt_prog_compiler_wl_F77='-Qoption ld '
13951 lt_prog_compiler_pic_F77='-PIC'
13952 lt_prog_compiler_static_F77='-Bstatic'
13955 sysv4 | sysv4.2uw2* | sysv4.3*)
13956 lt_prog_compiler_wl_F77='-Wl,'
13957 lt_prog_compiler_pic_F77='-KPIC'
13958 lt_prog_compiler_static_F77='-Bstatic'
13962 if test -d /usr/nec ;then
13963 lt_prog_compiler_pic_F77='-Kconform_pic'
13964 lt_prog_compiler_static_F77='-Bstatic'
13968 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13969 lt_prog_compiler_wl_F77='-Wl,'
13970 lt_prog_compiler_pic_F77='-KPIC'
13971 lt_prog_compiler_static_F77='-Bstatic'
13975 lt_prog_compiler_wl_F77='-Wl,'
13976 lt_prog_compiler_can_build_shared_F77=no
13980 lt_prog_compiler_pic_F77='-pic'
13981 lt_prog_compiler_static_F77='-Bstatic'
13985 lt_prog_compiler_can_build_shared_F77=no
13990 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13991 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13994 # Check to make sure the PIC flag actually works.
13996 if test -n "$lt_prog_compiler_pic_F77"; then
13998 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13999 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14000 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14001 echo $ECHO_N "(cached) $ECHO_C" >&6
14003 lt_prog_compiler_pic_works_F77=no
14004 ac_outfile=conftest.$ac_objext
14005 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14006 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14007 # Insert the option either (1) after the last *FLAGS variable, or
14008 # (2) before a word containing "conftest.", or (3) at the end.
14009 # Note that $ac_compile itself does not contain backslashes and begins
14010 # with a dollar sign (not a hyphen), so the echo should work correctly.
14011 # The option is referenced via a variable to avoid confusing sed.
14012 lt_compile=`echo "$ac_compile" | $SED \
14013 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14014 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14015 -e 's:$: $lt_compiler_flag:'`
14016 (eval echo "\"\$as_me:14016: $lt_compile\"" >&5)
14017 (eval "$lt_compile" 2>conftest.err)
14019 cat conftest.err >&5
14020 echo "$as_me:14020: \$? = $ac_status" >&5
14021 if (exit $ac_status) && test -s "$ac_outfile"; then
14022 # The compiler can only warn and ignore the option if not recognized
14023 # So say no if there are warnings other than the usual output.
14024 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14025 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14026 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14027 lt_prog_compiler_pic_works_F77=yes
14033 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14034 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14036 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14037 case $lt_prog_compiler_pic_F77 in
14039 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14042 lt_prog_compiler_pic_F77=
14043 lt_prog_compiler_can_build_shared_F77=no
14048 # For platforms which do not support PIC, -DPIC is meaningless:
14050 lt_prog_compiler_pic_F77=
14053 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14058 # Check to make sure the static flag actually works.
14060 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14061 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14062 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14063 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14064 echo $ECHO_N "(cached) $ECHO_C" >&6
14066 lt_prog_compiler_static_works_F77=no
14067 save_LDFLAGS="$LDFLAGS"
14068 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14069 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14070 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14071 # The linker can only warn and ignore the option if not recognized
14072 # So say no if there are warnings
14073 if test -s conftest.err; then
14074 # Append any errors to the config.log.
14075 cat conftest.err 1>&5
14076 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14077 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14078 if diff conftest.exp conftest.er2 >/dev/null; then
14079 lt_prog_compiler_static_works_F77=yes
14082 lt_prog_compiler_static_works_F77=yes
14086 LDFLAGS="$save_LDFLAGS"
14089 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14090 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14092 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14095 lt_prog_compiler_static_F77=
14099 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14100 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14101 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14102 echo $ECHO_N "(cached) $ECHO_C" >&6
14104 lt_cv_prog_compiler_c_o_F77=no
14105 $rm -r conftest 2>/dev/null
14109 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14111 lt_compiler_flag="-o out/conftest2.$ac_objext"
14112 # Insert the option either (1) after the last *FLAGS variable, or
14113 # (2) before a word containing "conftest.", or (3) at the end.
14114 # Note that $ac_compile itself does not contain backslashes and begins
14115 # with a dollar sign (not a hyphen), so the echo should work correctly.
14116 lt_compile=`echo "$ac_compile" | $SED \
14117 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14118 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14119 -e 's:$: $lt_compiler_flag:'`
14120 (eval echo "\"\$as_me:14120: $lt_compile\"" >&5)
14121 (eval "$lt_compile" 2>out/conftest.err)
14123 cat out/conftest.err >&5
14124 echo "$as_me:14124: \$? = $ac_status" >&5
14125 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14127 # The compiler can only warn and ignore the option if not recognized
14128 # So say no if there are warnings
14129 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14130 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14131 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14132 lt_cv_prog_compiler_c_o_F77=yes
14137 # SGI C++ compiler will create directory out/ii_files/ for
14138 # template instantiation
14139 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14140 $rm out/* && rmdir out
14146 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14147 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14150 hard_links="nottested"
14151 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14152 # do not overwrite the value of need_locks provided by the user
14153 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14154 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14157 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14159 ln conftest.a conftest.b 2>&5 || hard_links=no
14160 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14161 { echo "$as_me:$LINENO: result: $hard_links" >&5
14162 echo "${ECHO_T}$hard_links" >&6; }
14163 if test "$hard_links" = no; then
14164 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14165 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14172 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14173 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14176 allow_undefined_flag_F77=
14177 enable_shared_with_static_runtimes_F77=no
14179 archive_expsym_cmds_F77=
14180 old_archive_From_new_cmds_F77=
14181 old_archive_from_expsyms_cmds_F77=
14182 export_dynamic_flag_spec_F77=
14183 whole_archive_flag_spec_F77=
14184 thread_safe_flag_spec_F77=
14185 hardcode_libdir_flag_spec_F77=
14186 hardcode_libdir_flag_spec_ld_F77=
14187 hardcode_libdir_separator_F77=
14188 hardcode_direct_F77=no
14189 hardcode_minus_L_F77=no
14190 hardcode_shlibpath_var_F77=unsupported
14191 link_all_deplibs_F77=unknown
14192 hardcode_automatic_F77=no
14194 module_expsym_cmds_F77=
14195 always_export_symbols_F77=no
14196 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14197 # include_expsyms should be a list of space-separated symbols to be *always*
14198 # included in the symbol list
14199 include_expsyms_F77=
14200 # exclude_expsyms can be an extended regexp of symbols to exclude
14201 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14202 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14203 # as well as any symbol that contains `d'.
14204 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14205 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14206 # platforms (ab)use it in PIC code, but their linkers get confused if
14207 # the symbol is explicitly referenced. Since portable code cannot
14208 # rely on this symbol name, it's probably fine to never include it in
14209 # preloaded symbol tables.
14210 extract_expsyms_cmds=
14211 # Just being paranoid about ensuring that cc_basename is set.
14212 for cc_temp in $compiler""; do
14214 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14215 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14220 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14223 cygwin* | mingw* | pw32*)
14224 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14225 # When not using gcc, we currently assume that we are using
14226 # Microsoft Visual C++.
14227 if test "$GCC" != yes; then
14232 # we just hope/assume this is gcc and not c89 (= MSVC++)
14241 if test "$with_gnu_ld" = yes; then
14242 # If archive_cmds runs LD, not CC, wlarc should be empty
14245 # Set some defaults for GNU ld with shared library support. These
14246 # are reset later if shared libraries are not supported. Putting them
14247 # here allows them to be overridden if necessary.
14248 runpath_var=LD_RUN_PATH
14249 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14250 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14251 # ancient GNU ld didn't support --whole-archive et. al.
14252 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14253 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14255 whole_archive_flag_spec_F77=
14257 supports_anon_versioning=no
14258 case `$LD -v 2>/dev/null` in
14259 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14260 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14261 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14262 *\ 2.11.*) ;; # other 2.11 versions
14263 *) supports_anon_versioning=yes ;;
14266 # See if GNU ld supports shared libraries.
14268 aix3* | aix4* | aix5*)
14269 # On AIX/PPC, the GNU linker is very broken
14270 if test "$host_cpu" != ia64; then
14274 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14275 *** to be unable to reliably create shared libraries on AIX.
14276 *** Therefore, libtool is disabling shared libraries support. If you
14277 *** really care for shared libraries, you may want to modify your PATH
14278 *** so that a non-GNU linker is found, and then restart.
14285 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)'
14286 hardcode_libdir_flag_spec_F77='-L$libdir'
14287 hardcode_minus_L_F77=yes
14289 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14290 # that the semantics of dynamic libraries on AmigaOS, at least up
14291 # to version 4, is to share data among multiple programs linked
14292 # with the same dynamic library. Since this doesn't match the
14293 # behavior of shared libraries on other platforms, we can't use
14299 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14300 allow_undefined_flag_F77=unsupported
14301 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14302 # support --undefined. This deserves some investigation. FIXME
14303 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14309 cygwin* | mingw* | pw32*)
14310 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14311 # as there is no search path for DLLs.
14312 hardcode_libdir_flag_spec_F77='-L$libdir'
14313 allow_undefined_flag_F77=unsupported
14314 always_export_symbols_F77=no
14315 enable_shared_with_static_runtimes_F77=yes
14316 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14318 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14319 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14320 # If the export-symbols file already is a .def file (1st line
14321 # is EXPORTS), use it as is; otherwise, prepend...
14322 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14323 cp $export_symbols $output_objdir/$soname.def;
14325 echo EXPORTS > $output_objdir/$soname.def;
14326 cat $export_symbols >> $output_objdir/$soname.def;
14328 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14335 hardcode_direct_F77=no
14336 hardcode_shlibpath_var_F77=no
14337 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14338 export_dynamic_flag_spec_F77='${wl}-E'
14339 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14340 # Instead, shared libraries are loaded at an image base (0x10000000 by
14341 # default) and relocated if they conflict, which is a slow very memory
14342 # consuming and fragmenting process. To avoid this, we pick a random,
14343 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14344 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14345 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'
14346 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'
14349 gnu* | linux* | k*bsd*-gnu)
14350 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14352 case $cc_basename,$host_cpu in
14353 pgcc*) # Portland Group C compiler
14354 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'
14355 tmp_addflag=' $pic_flag'
14357 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14358 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'
14359 tmp_addflag=' $pic_flag -Mnomain' ;;
14360 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14361 tmp_addflag=' -i_dynamic' ;;
14362 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14363 tmp_addflag=' -i_dynamic -nofor_main' ;;
14364 ifc* | ifort*) # Intel Fortran compiler
14365 tmp_addflag=' -nofor_main' ;;
14367 case `$CC -V 2>&1 | sed 5q` in
14368 *Sun\ C*) # Sun C 5.9
14369 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'
14370 tmp_sharedflag='-G' ;;
14371 *Sun\ F*) # Sun Fortran 8.3
14372 tmp_sharedflag='-G' ;;
14374 tmp_sharedflag='-shared' ;;
14376 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14378 if test $supports_anon_versioning = yes; then
14379 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14380 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14381 $echo "local: *; };" >> $output_objdir/$libname.ver~
14382 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14390 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14391 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14394 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14395 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14400 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14404 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14405 *** create shared libraries on Solaris systems. Therefore, libtool
14406 *** is disabling shared libraries support. We urge you to upgrade GNU
14407 *** binutils to release 2.9.1 or newer. Another option is to modify
14408 *** your PATH or compiler configuration so that the native linker is
14409 *** used, and then restart.
14412 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14413 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14414 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14420 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14421 case `$LD -v 2>&1` in
14422 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14426 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14427 *** reliably create shared libraries on SCO systems. Therefore, libtool
14428 *** is disabling shared libraries support. We urge you to upgrade GNU
14429 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14430 *** your PATH or compiler configuration so that the native linker is
14431 *** used, and then restart.
14436 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14437 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14438 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14439 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14448 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14450 hardcode_direct_F77=yes
14451 hardcode_shlibpath_var_F77=no
14455 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14456 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14457 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14464 if test "$ld_shlibs_F77" = no; then
14466 hardcode_libdir_flag_spec_F77=
14467 export_dynamic_flag_spec_F77=
14468 whole_archive_flag_spec_F77=
14471 # PORTME fill in a description of your system's linker (not GNU ld)
14474 allow_undefined_flag_F77=unsupported
14475 always_export_symbols_F77=yes
14476 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'
14477 # Note: this linker hardcodes the directories in LIBPATH if there
14478 # are no directories specified by -L.
14479 hardcode_minus_L_F77=yes
14480 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14481 # Neither direct hardcoding nor static linking is supported with a
14483 hardcode_direct_F77=unsupported
14488 if test "$host_cpu" = ia64; then
14489 # On IA64, the linker does run time linking by default, so we don't
14490 # have to do anything special.
14491 aix_use_runtimelinking=no
14492 exp_sym_flag='-Bexport'
14495 # If we're using GNU nm, then we don't want the "-C" option.
14496 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14497 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14498 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'
14500 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'
14502 aix_use_runtimelinking=no
14504 # Test if we are trying to use run time linking or normal
14505 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14506 # need to do runtime linking.
14507 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14508 for ld_flag in $LDFLAGS; do
14509 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14510 aix_use_runtimelinking=yes
14517 exp_sym_flag='-bexport'
14518 no_entry_flag='-bnoentry'
14521 # When large executables or shared objects are built, AIX ld can
14522 # have problems creating the table of contents. If linking a library
14523 # or program results in "error TOC overflow" add -mminimal-toc to
14524 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14525 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14527 archive_cmds_F77=''
14528 hardcode_direct_F77=yes
14529 hardcode_libdir_separator_F77=':'
14530 link_all_deplibs_F77=yes
14532 if test "$GCC" = yes; then
14533 case $host_os in aix4.[012]|aix4.[012].*)
14534 # We only want to do this on AIX 4.2 and lower, the check
14535 # below for broken collect2 doesn't work under 4.3+
14536 collect2name=`${CC} -print-prog-name=collect2`
14537 if test -f "$collect2name" && \
14538 strings "$collect2name" | grep resolve_lib_name >/dev/null
14540 # We have reworked collect2
14543 # We have old collect2
14544 hardcode_direct_F77=unsupported
14545 # It fails to find uninstalled libraries when the uninstalled
14546 # path is not listed in the libpath. Setting hardcode_minus_L
14547 # to unsupported forces relinking
14548 hardcode_minus_L_F77=yes
14549 hardcode_libdir_flag_spec_F77='-L$libdir'
14550 hardcode_libdir_separator_F77=
14554 shared_flag='-shared'
14555 if test "$aix_use_runtimelinking" = yes; then
14556 shared_flag="$shared_flag "'${wl}-G'
14560 if test "$host_cpu" = ia64; then
14561 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14562 # chokes on -Wl,-G. The following line is correct:
14565 if test "$aix_use_runtimelinking" = yes; then
14566 shared_flag='${wl}-G'
14568 shared_flag='${wl}-bM:SRE'
14573 # It seems that -bexpall does not export symbols beginning with
14574 # underscore (_), so it is better to generate a list of symbols to export.
14575 always_export_symbols_F77=yes
14576 if test "$aix_use_runtimelinking" = yes; then
14577 # Warning - without using the other runtime loading flags (-brtl),
14578 # -berok will link without error, but may produce a broken library.
14579 allow_undefined_flag_F77='-berok'
14580 # Determine the default libpath from the value encoded in an empty executable.
14581 cat >conftest.$ac_ext <<_ACEOF
14586 rm -f conftest.$ac_objext conftest$ac_exeext
14587 if { (ac_try="$ac_link"
14588 case "(($ac_try" in
14589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14590 *) ac_try_echo=$ac_try;;
14592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14593 (eval "$ac_link") 2>conftest.er1
14595 grep -v '^ *+' conftest.er1 >conftest.err
14597 cat conftest.err >&5
14598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599 (exit $ac_status); } && {
14600 test -z "$ac_f77_werror_flag" ||
14601 test ! -s conftest.err
14602 } && test -s conftest$ac_exeext &&
14603 $as_test_x conftest$ac_exeext; then
14605 lt_aix_libpath_sed='
14606 /Import File Strings/,/^$/ {
14612 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14613 # Check for a 64-bit object if we didn't find anything.
14614 if test -z "$aix_libpath"; then
14615 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14618 echo "$as_me: failed program was:" >&5
14619 sed 's/^/| /' conftest.$ac_ext >&5
14624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14625 conftest$ac_exeext conftest.$ac_ext
14626 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14628 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14629 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"
14631 if test "$host_cpu" = ia64; then
14632 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14633 allow_undefined_flag_F77="-z nodefs"
14634 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"
14636 # Determine the default libpath from the value encoded in an empty executable.
14637 cat >conftest.$ac_ext <<_ACEOF
14642 rm -f conftest.$ac_objext conftest$ac_exeext
14643 if { (ac_try="$ac_link"
14644 case "(($ac_try" in
14645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14646 *) ac_try_echo=$ac_try;;
14648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14649 (eval "$ac_link") 2>conftest.er1
14651 grep -v '^ *+' conftest.er1 >conftest.err
14653 cat conftest.err >&5
14654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655 (exit $ac_status); } && {
14656 test -z "$ac_f77_werror_flag" ||
14657 test ! -s conftest.err
14658 } && test -s conftest$ac_exeext &&
14659 $as_test_x conftest$ac_exeext; then
14661 lt_aix_libpath_sed='
14662 /Import File Strings/,/^$/ {
14668 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14669 # Check for a 64-bit object if we didn't find anything.
14670 if test -z "$aix_libpath"; then
14671 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14674 echo "$as_me: failed program was:" >&5
14675 sed 's/^/| /' conftest.$ac_ext >&5
14680 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14681 conftest$ac_exeext conftest.$ac_ext
14682 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14684 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14685 # Warning - without using the other run time loading flags,
14686 # -berok will link without error, but may produce a broken library.
14687 no_undefined_flag_F77=' ${wl}-bernotok'
14688 allow_undefined_flag_F77=' ${wl}-berok'
14689 # Exported symbols can be pulled into shared objects from archives
14690 whole_archive_flag_spec_F77='$convenience'
14691 archive_cmds_need_lc_F77=yes
14692 # This is similar to how AIX traditionally builds its shared libraries.
14693 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'
14699 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)'
14700 hardcode_libdir_flag_spec_F77='-L$libdir'
14701 hardcode_minus_L_F77=yes
14702 # see comment about different semantics on the GNU ld section
14707 export_dynamic_flag_spec_F77=-rdynamic
14710 cygwin* | mingw* | pw32*)
14711 # When not using gcc, we currently assume that we are using
14712 # Microsoft Visual C++.
14713 # hardcode_libdir_flag_spec is actually meaningless, as there is
14714 # no search path for DLLs.
14715 hardcode_libdir_flag_spec_F77=' '
14716 allow_undefined_flag_F77=unsupported
14717 # Tell ltmain to make .lib files, not .a files.
14719 # Tell ltmain to make .dll files, not .so files.
14721 # FIXME: Setting linknames here is a bad hack.
14722 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14723 # The linker will automatically build a .lib file if we build a DLL.
14724 old_archive_From_new_cmds_F77='true'
14725 # FIXME: Should let the user specify the lib program.
14726 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14727 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14728 enable_shared_with_static_runtimes_F77=yes
14731 darwin* | rhapsody*)
14733 rhapsody* | darwin1.[012])
14734 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14737 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14738 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14740 case ${MACOSX_DEPLOYMENT_TARGET} in
14742 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14745 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14751 archive_cmds_need_lc_F77=no
14752 hardcode_direct_F77=no
14753 hardcode_automatic_F77=yes
14754 hardcode_shlibpath_var_F77=unsupported
14755 whole_archive_flag_spec_F77=''
14756 link_all_deplibs_F77=yes
14757 if test "$GCC" = yes ; then
14758 output_verbose_link_cmd='echo'
14759 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14760 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14761 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14762 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}'
14763 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}'
14765 case $cc_basename in
14767 output_verbose_link_cmd='echo'
14768 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14769 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14770 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14771 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}'
14772 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}'
14782 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14783 hardcode_libdir_flag_spec_F77='-L$libdir'
14784 hardcode_shlibpath_var_F77=no
14791 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14792 # support. Future versions do this automatically, but an explicit c++rt0.o
14793 # does not break anything, and helps significantly (at the cost of a little
14796 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14797 hardcode_libdir_flag_spec_F77='-R$libdir'
14798 hardcode_direct_F77=yes
14799 hardcode_shlibpath_var_F77=no
14802 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14804 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14805 hardcode_direct_F77=yes
14806 hardcode_minus_L_F77=yes
14807 hardcode_shlibpath_var_F77=no
14810 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14811 freebsd* | dragonfly*)
14812 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14813 hardcode_libdir_flag_spec_F77='-R$libdir'
14814 hardcode_direct_F77=yes
14815 hardcode_shlibpath_var_F77=no
14819 if test "$GCC" = yes; then
14820 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'
14822 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'
14824 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14825 hardcode_libdir_separator_F77=:
14826 hardcode_direct_F77=yes
14828 # hardcode_minus_L: Not really in the search PATH,
14829 # but as the default location of the library.
14830 hardcode_minus_L_F77=yes
14831 export_dynamic_flag_spec_F77='${wl}-E'
14835 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14836 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14838 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14840 if test "$with_gnu_ld" = no; then
14841 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14842 hardcode_libdir_separator_F77=:
14844 hardcode_direct_F77=yes
14845 export_dynamic_flag_spec_F77='${wl}-E'
14847 # hardcode_minus_L: Not really in the search PATH,
14848 # but as the default location of the library.
14849 hardcode_minus_L_F77=yes
14854 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14857 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14860 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14863 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14869 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14872 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14875 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14879 if test "$with_gnu_ld" = no; then
14880 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14881 hardcode_libdir_separator_F77=:
14885 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14886 hardcode_direct_F77=no
14887 hardcode_shlibpath_var_F77=no
14890 hardcode_direct_F77=yes
14891 export_dynamic_flag_spec_F77='${wl}-E'
14893 # hardcode_minus_L: Not really in the search PATH,
14894 # but as the default location of the library.
14895 hardcode_minus_L_F77=yes
14901 irix5* | irix6* | nonstopux*)
14902 if test "$GCC" = yes; then
14903 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'
14905 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'
14906 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14908 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14909 hardcode_libdir_separator_F77=:
14910 link_all_deplibs_F77=yes
14914 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14915 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14917 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14919 hardcode_libdir_flag_spec_F77='-R$libdir'
14920 hardcode_direct_F77=yes
14921 hardcode_shlibpath_var_F77=no
14925 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14926 hardcode_direct_F77=yes
14927 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14928 hardcode_libdir_separator_F77=:
14929 hardcode_shlibpath_var_F77=no
14933 if test -f /usr/libexec/ld.so; then
14934 hardcode_direct_F77=yes
14935 hardcode_shlibpath_var_F77=no
14936 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14937 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14938 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14939 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14940 export_dynamic_flag_spec_F77='${wl}-E'
14943 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14944 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14945 hardcode_libdir_flag_spec_F77='-R$libdir'
14948 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14949 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14959 hardcode_libdir_flag_spec_F77='-L$libdir'
14960 hardcode_minus_L_F77=yes
14961 allow_undefined_flag_F77=unsupported
14962 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'
14963 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14967 if test "$GCC" = yes; then
14968 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14969 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'
14971 allow_undefined_flag_F77=' -expect_unresolved \*'
14972 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'
14974 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14975 hardcode_libdir_separator_F77=:
14978 osf4* | osf5*) # as osf3* with the addition of -msym flag
14979 if test "$GCC" = yes; then
14980 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14981 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'
14982 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14984 allow_undefined_flag_F77=' -expect_unresolved \*'
14985 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'
14986 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~
14987 $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'
14989 # Both c and cxx compiler support -rpath directly
14990 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14992 hardcode_libdir_separator_F77=:
14996 no_undefined_flag_F77=' -z text'
14997 if test "$GCC" = yes; then
14999 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15000 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15001 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15004 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15005 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15006 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15008 hardcode_libdir_flag_spec_F77='-R$libdir'
15009 hardcode_shlibpath_var_F77=no
15011 solaris2.[0-5] | solaris2.[0-5].*) ;;
15013 # The compiler driver will combine and reorder linker options,
15014 # but understands `-z linker_flag'. GCC discards it without `$wl',
15015 # but is careful enough not to reorder.
15016 # Supported since Solaris 2.6 (maybe 2.5.1?)
15017 if test "$GCC" = yes; then
15018 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15020 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15024 link_all_deplibs_F77=yes
15028 if test "x$host_vendor" = xsequent; then
15029 # Use $CC to link under sequent, because it throws in some extra .o
15030 # files that make .init and .fini sections work.
15031 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15033 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15035 hardcode_libdir_flag_spec_F77='-L$libdir'
15036 hardcode_direct_F77=yes
15037 hardcode_minus_L_F77=yes
15038 hardcode_shlibpath_var_F77=no
15042 case $host_vendor in
15044 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15045 hardcode_direct_F77=yes # is this really true???
15048 ## LD is ld it makes a PLAMLIB
15049 ## CC just makes a GrossModule.
15050 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15051 reload_cmds_F77='$CC -r -o $output$reload_objs'
15052 hardcode_direct_F77=no
15055 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15056 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15059 runpath_var='LD_RUN_PATH'
15060 hardcode_shlibpath_var_F77=no
15064 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15065 hardcode_shlibpath_var_F77=no
15066 export_dynamic_flag_spec_F77='-Bexport'
15070 if test -d /usr/nec; then
15071 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15072 hardcode_shlibpath_var_F77=no
15073 runpath_var=LD_RUN_PATH
15074 hardcode_runpath_var=yes
15079 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15080 no_undefined_flag_F77='${wl}-z,text'
15081 archive_cmds_need_lc_F77=no
15082 hardcode_shlibpath_var_F77=no
15083 runpath_var='LD_RUN_PATH'
15085 if test "$GCC" = yes; then
15086 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15087 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15089 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15090 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15094 sysv5* | sco3.2v5* | sco5v6*)
15095 # Note: We can NOT use -z defs as we might desire, because we do not
15096 # link with -lc, and that would cause any symbols used from libc to
15097 # always be unresolved, which means just about no library would
15098 # ever link correctly. If we're not using GNU ld we use -z text
15099 # though, which does catch some bad symbols but isn't as heavy-handed
15101 no_undefined_flag_F77='${wl}-z,text'
15102 allow_undefined_flag_F77='${wl}-z,nodefs'
15103 archive_cmds_need_lc_F77=no
15104 hardcode_shlibpath_var_F77=no
15105 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15106 hardcode_libdir_separator_F77=':'
15107 link_all_deplibs_F77=yes
15108 export_dynamic_flag_spec_F77='${wl}-Bexport'
15109 runpath_var='LD_RUN_PATH'
15111 if test "$GCC" = yes; then
15112 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15113 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15115 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15116 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15121 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15122 hardcode_libdir_flag_spec_F77='-L$libdir'
15123 hardcode_shlibpath_var_F77=no
15132 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15133 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15134 test "$ld_shlibs_F77" = no && can_build_shared=no
15137 # Do we need to explicitly link libc?
15139 case "x$archive_cmds_need_lc_F77" in
15141 # Assume -lc should be added
15142 archive_cmds_need_lc_F77=yes
15144 if test "$enable_shared" = yes && test "$GCC" = yes; then
15145 case $archive_cmds_F77 in
15147 # FIXME: we may have to deal with multi-command sequences.
15150 # Test whether the compiler implicitly links with -lc since on some
15151 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15152 # to ld, don't add -lc before -lgcc.
15153 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15154 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15156 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15159 (eval $ac_compile) 2>&5
15161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15162 (exit $ac_status); } 2>conftest.err; then
15165 libobjs=conftest.$ac_objext
15167 wl=$lt_prog_compiler_wl_F77
15168 pic_flag=$lt_prog_compiler_pic_F77
15174 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15175 allow_undefined_flag_F77=
15176 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15177 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180 (exit $ac_status); }
15182 archive_cmds_need_lc_F77=no
15184 archive_cmds_need_lc_F77=yes
15186 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15188 cat conftest.err 1>&5
15191 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15192 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15199 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15200 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15201 library_names_spec=
15202 libname_spec='lib$name'
15206 postuninstall_cmds=
15210 shlibpath_overrides_runpath=unknown
15212 dynamic_linker="$host_os ld.so"
15213 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15215 need_lib_prefix=unknown
15216 hardcode_into_libs=no
15218 # when you set need_version to no, make sure it does not cause -set_version
15219 # flags to be left without arguments
15220 need_version=unknown
15225 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15226 shlibpath_var=LIBPATH
15228 # AIX 3 has no versioning support, so we append a major version to the name.
15229 soname_spec='${libname}${release}${shared_ext}$major'
15236 hardcode_into_libs=yes
15237 if test "$host_cpu" = ia64; then
15238 # AIX 5 supports IA64
15239 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15240 shlibpath_var=LD_LIBRARY_PATH
15242 # With GCC up to 2.95.x, collect2 would create an import file
15243 # for dependence libraries. The import file would start with
15244 # the line `#! .'. This would cause the generated library to
15245 # depend on `.', always an invalid library. This was fixed in
15246 # development snapshots of GCC prior to 3.0.
15248 aix4 | aix4.[01] | aix4.[01].*)
15249 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15251 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15254 can_build_shared=no
15258 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15259 # soname into executable. Probably we can add versioning support to
15260 # collect2, so additional links can be useful in future.
15261 if test "$aix_use_runtimelinking" = yes; then
15262 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15263 # instead of lib<name>.a to let people know that these are not
15264 # typical AIX shared libraries.
15265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15267 # We preserve .a as extension for shared libraries through AIX4.2
15268 # and later when we are not doing run time linking.
15269 library_names_spec='${libname}${release}.a $libname.a'
15270 soname_spec='${libname}${release}${shared_ext}$major'
15272 shlibpath_var=LIBPATH
15277 library_names_spec='$libname.ixlibrary $libname.a'
15278 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15279 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'
15283 library_names_spec='${libname}${shared_ext}'
15284 dynamic_linker="$host_os ld.so"
15285 shlibpath_var=LIBRARY_PATH
15291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15292 soname_spec='${libname}${release}${shared_ext}$major'
15293 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15294 shlibpath_var=LD_LIBRARY_PATH
15295 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15296 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15297 # the default ld.so.conf also contains /usr/contrib/lib and
15298 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15299 # libtool to hard-code these into programs
15302 cygwin* | mingw* | pw32*)
15303 version_type=windows
15308 case $GCC,$host_os in
15309 yes,cygwin* | yes,mingw* | yes,pw32*)
15310 library_names_spec='$libname.dll.a'
15311 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15312 postinstall_cmds='base_file=`basename \${file}`~
15313 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15314 dldir=$destdir/`dirname \$dlpath`~
15315 test -d \$dldir || mkdir -p \$dldir~
15316 $install_prog $dir/$dlname \$dldir/$dlname~
15317 chmod a+x \$dldir/$dlname'
15318 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15319 dlpath=$dir/\$dldll~
15321 shlibpath_overrides_runpath=yes
15325 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15326 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15327 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15330 # MinGW DLLs use traditional 'lib' prefix
15331 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15332 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15333 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15334 # It is most probably a Windows format PATH printed by
15335 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15336 # path with ; separators, and with drive letters. We can handle the
15337 # drive letters (cygwin fileutils understands them), so leave them,
15338 # especially as we might pass files found there to a mingw objdump,
15339 # which wouldn't understand a cygwinified path. Ahh.
15340 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15342 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15346 # pw32 DLLs use 'pw' prefix rather than 'lib'
15347 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15353 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15356 dynamic_linker='Win32 ld.exe'
15357 # FIXME: first we should search . and the directory the executable is in
15361 darwin* | rhapsody*)
15362 dynamic_linker="$host_os dyld"
15363 version_type=darwin
15366 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15367 soname_spec='${libname}${release}${major}$shared_ext'
15368 shlibpath_overrides_runpath=yes
15369 shlibpath_var=DYLD_LIBRARY_PATH
15370 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15372 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15380 soname_spec='${libname}${release}${shared_ext}$major'
15381 shlibpath_var=LD_LIBRARY_PATH
15388 freebsd* | dragonfly*)
15389 # DragonFly does not have aout. When/if they implement a new
15390 # versioning mechanism, adjust this.
15391 if test -x /usr/bin/objformat; then
15392 objformat=`/usr/bin/objformat`
15395 freebsd[123]*) objformat=aout ;;
15396 *) objformat=elf ;;
15399 version_type=freebsd-$objformat
15400 case $version_type in
15402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15407 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15411 shlibpath_var=LD_LIBRARY_PATH
15414 shlibpath_overrides_runpath=yes
15416 freebsd3.[01]* | freebsdelf3.[01]*)
15417 shlibpath_overrides_runpath=yes
15418 hardcode_into_libs=yes
15420 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15421 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15422 shlibpath_overrides_runpath=no
15423 hardcode_into_libs=yes
15425 *) # from 4.6 on, and DragonFly
15426 shlibpath_overrides_runpath=yes
15427 hardcode_into_libs=yes
15436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15437 soname_spec='${libname}${release}${shared_ext}$major'
15438 shlibpath_var=LD_LIBRARY_PATH
15439 hardcode_into_libs=yes
15442 hpux9* | hpux10* | hpux11*)
15443 # Give a soname corresponding to the major version so that dld.sl refuses to
15444 # link against other versions.
15451 hardcode_into_libs=yes
15452 dynamic_linker="$host_os dld.so"
15453 shlibpath_var=LD_LIBRARY_PATH
15454 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15456 soname_spec='${libname}${release}${shared_ext}$major'
15457 if test "X$HPUX_IA64_MODE" = X32; then
15458 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15460 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15462 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15466 hardcode_into_libs=yes
15467 dynamic_linker="$host_os dld.sl"
15468 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15469 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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'
15472 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15473 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15477 dynamic_linker="$host_os dld.sl"
15478 shlibpath_var=SHLIB_PATH
15479 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15481 soname_spec='${libname}${release}${shared_ext}$major'
15484 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15485 postinstall_cmds='chmod 555 $lib'
15492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15493 soname_spec='${libname}${release}${shared_ext}$major'
15494 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15495 shlibpath_var=LD_LIBRARY_PATH
15496 shlibpath_overrides_runpath=no
15497 hardcode_into_libs=yes
15500 irix5* | irix6* | nonstopux*)
15502 nonstopux*) version_type=nonstopux ;;
15504 if test "$lt_cv_prog_gnu_ld" = yes; then
15512 soname_spec='${libname}${release}${shared_ext}$major'
15513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15515 irix5* | nonstopux*)
15516 libsuff= shlibsuff=
15519 case $LD in # libtool.m4 will add one of these switches to LD
15520 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15521 libsuff= shlibsuff= libmagic=32-bit;;
15522 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15523 libsuff=32 shlibsuff=N32 libmagic=N32;;
15524 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15525 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15526 *) libsuff= shlibsuff= libmagic=never-match;;
15530 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15531 shlibpath_overrides_runpath=no
15532 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15533 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15534 hardcode_into_libs=yes
15537 # No shared lib support for Linux oldld, aout, or coff.
15538 linux*oldld* | linux*aout* | linux*coff*)
15542 # This must be Linux ELF.
15543 linux* | k*bsd*-gnu)
15547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15548 soname_spec='${libname}${release}${shared_ext}$major'
15549 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15550 shlibpath_var=LD_LIBRARY_PATH
15551 shlibpath_overrides_runpath=no
15552 # This implies no fast_install, which is unacceptable.
15553 # Some rework will be needed to allow for fast_install
15554 # before this can be enabled.
15555 hardcode_into_libs=yes
15557 # find out which ABI we are using
15559 case "$host_cpu" in
15560 x86_64*|s390x*|powerpc64*)
15561 echo '#line 15561 "configure"' > conftest.$ac_ext
15562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15563 (eval $ac_compile) 2>&5
15565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15566 (exit $ac_status); }; then
15567 case `/usr/bin/file conftest.$ac_objext` in
15570 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15578 # Append ld.so.conf contents to the search path
15579 if test -f /etc/ld.so.conf; then
15580 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' ' '`
15581 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15584 # We used to test for /lib/ld.so.1 and disable shared libraries on
15585 # powerpc, because MkLinux only supported shared libraries with the
15586 # GNU dynamic linker. Since this was broken with cross compilers,
15587 # most powerpc-linux boxes support dynamic linking these days and
15588 # people can always --disable-shared, the test was removed, and we
15589 # assume the GNU/Linux dynamic linker is in use.
15590 dynamic_linker='GNU/Linux ld.so'
15597 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15599 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15600 dynamic_linker='NetBSD (a.out) ld.so'
15602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15603 soname_spec='${libname}${release}${shared_ext}$major'
15604 dynamic_linker='NetBSD ld.elf_so'
15606 shlibpath_var=LD_LIBRARY_PATH
15607 shlibpath_overrides_runpath=yes
15608 hardcode_into_libs=yes
15613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15614 shlibpath_var=LD_LIBRARY_PATH
15615 shlibpath_overrides_runpath=yes
15622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15623 soname_spec='${libname}${release}${shared_ext}$major'
15624 shlibpath_var=LD_LIBRARY_PATH
15625 shlibpath_overrides_runpath=yes
15630 sys_lib_dlsearch_path_spec="/usr/lib"
15632 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15634 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15635 *) need_version=no ;;
15637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15638 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15639 shlibpath_var=LD_LIBRARY_PATH
15640 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15642 openbsd2.[89] | openbsd2.[89].*)
15643 shlibpath_overrides_runpath=no
15646 shlibpath_overrides_runpath=yes
15650 shlibpath_overrides_runpath=yes
15655 libname_spec='$name'
15658 library_names_spec='$libname${shared_ext} $libname.a'
15659 dynamic_linker='OS/2 ld.exe'
15660 shlibpath_var=LIBPATH
15663 osf3* | osf4* | osf5*)
15667 soname_spec='${libname}${release}${shared_ext}$major'
15668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15669 shlibpath_var=LD_LIBRARY_PATH
15670 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15671 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15683 soname_spec='${libname}${release}${shared_ext}$major'
15684 shlibpath_var=LD_LIBRARY_PATH
15685 shlibpath_overrides_runpath=yes
15686 hardcode_into_libs=yes
15687 # ldd complains unless libraries are executable
15688 postinstall_cmds='chmod +x $lib'
15693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15694 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15695 shlibpath_var=LD_LIBRARY_PATH
15696 shlibpath_overrides_runpath=yes
15697 if test "$with_gnu_ld" = yes; then
15705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15706 soname_spec='${libname}${release}${shared_ext}$major'
15707 shlibpath_var=LD_LIBRARY_PATH
15708 case $host_vendor in
15710 shlibpath_overrides_runpath=no
15712 export_dynamic_flag_spec='${wl}-Blargedynsym'
15713 runpath_var=LD_RUN_PATH
15721 shlibpath_overrides_runpath=no
15722 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15728 if test -d /usr/nec ;then
15730 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15731 soname_spec='$libname${shared_ext}.$major'
15732 shlibpath_var=LD_LIBRARY_PATH
15736 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15737 version_type=freebsd-elf
15740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15741 soname_spec='${libname}${release}${shared_ext}$major'
15742 shlibpath_var=LD_LIBRARY_PATH
15743 hardcode_into_libs=yes
15744 if test "$with_gnu_ld" = yes; then
15745 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15746 shlibpath_overrides_runpath=no
15748 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15749 shlibpath_overrides_runpath=yes
15752 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15756 sys_lib_dlsearch_path_spec='/usr/lib'
15761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15762 soname_spec='${libname}${release}${shared_ext}$major'
15763 shlibpath_var=LD_LIBRARY_PATH
15770 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15771 echo "${ECHO_T}$dynamic_linker" >&6; }
15772 test "$dynamic_linker" = no && can_build_shared=no
15774 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15775 if test "$GCC" = yes; then
15776 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15779 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15780 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15781 hardcode_action_F77=
15782 if test -n "$hardcode_libdir_flag_spec_F77" || \
15783 test -n "$runpath_var_F77" || \
15784 test "X$hardcode_automatic_F77" = "Xyes" ; then
15786 # We can hardcode non-existant directories.
15787 if test "$hardcode_direct_F77" != no &&
15788 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15789 # have to relink, otherwise we might link with an installed library
15790 # when we should be linking with a yet-to-be-installed one
15791 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15792 test "$hardcode_minus_L_F77" != no; then
15793 # Linking always hardcodes the temporary library directory.
15794 hardcode_action_F77=relink
15796 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15797 hardcode_action_F77=immediate
15800 # We cannot hardcode anything, or else we can only hardcode existing
15802 hardcode_action_F77=unsupported
15804 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15805 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15807 if test "$hardcode_action_F77" = relink; then
15808 # Fast installation is not supported
15809 enable_fast_install=no
15810 elif test "$shlibpath_overrides_runpath" = yes ||
15811 test "$enable_shared" = no; then
15812 # Fast installation is not necessary
15813 enable_fast_install=needless
15817 # The else clause should only fire when bootstrapping the
15818 # libtool distribution, otherwise you forgot to ship ltmain.sh
15819 # with your package, and you will get complaints that there are
15820 # no rules to generate ltmain.sh.
15821 if test -f "$ltmain"; then
15822 # See if we are running on zsh, and set the options which allow our commands through
15823 # without removal of \ escapes.
15824 if test -n "${ZSH_VERSION+set}" ; then
15825 setopt NO_GLOB_SUBST
15827 # Now quote all the things that may contain metacharacters while being
15828 # careful not to overquote the AC_SUBSTed values. We take copies of the
15829 # variables and quote the copies for generation of the libtool script.
15830 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15832 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15833 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15834 deplibs_check_method reload_flag reload_cmds need_locks \
15835 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15836 lt_cv_sys_global_symbol_to_c_name_address \
15837 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15838 old_postinstall_cmds old_postuninstall_cmds \
15842 lt_prog_compiler_wl_F77 \
15843 lt_prog_compiler_pic_F77 \
15844 lt_prog_compiler_static_F77 \
15845 lt_prog_compiler_no_builtin_flag_F77 \
15846 export_dynamic_flag_spec_F77 \
15847 thread_safe_flag_spec_F77 \
15848 whole_archive_flag_spec_F77 \
15849 enable_shared_with_static_runtimes_F77 \
15850 old_archive_cmds_F77 \
15851 old_archive_from_new_cmds_F77 \
15852 predep_objects_F77 \
15853 postdep_objects_F77 \
15856 compiler_lib_search_path_F77 \
15858 archive_expsym_cmds_F77 \
15859 postinstall_cmds_F77 \
15860 postuninstall_cmds_F77 \
15861 old_archive_from_expsyms_cmds_F77 \
15862 allow_undefined_flag_F77 \
15863 no_undefined_flag_F77 \
15864 export_symbols_cmds_F77 \
15865 hardcode_libdir_flag_spec_F77 \
15866 hardcode_libdir_flag_spec_ld_F77 \
15867 hardcode_libdir_separator_F77 \
15868 hardcode_automatic_F77 \
15870 module_expsym_cmds_F77 \
15871 lt_cv_prog_compiler_c_o_F77 \
15872 fix_srcfile_path_F77 \
15873 exclude_expsyms_F77 \
15874 include_expsyms_F77; do
15877 old_archive_cmds_F77 | \
15878 old_archive_from_new_cmds_F77 | \
15879 archive_cmds_F77 | \
15880 archive_expsym_cmds_F77 | \
15881 module_cmds_F77 | \
15882 module_expsym_cmds_F77 | \
15883 old_archive_from_expsyms_cmds_F77 | \
15884 export_symbols_cmds_F77 | \
15885 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15886 postinstall_cmds | postuninstall_cmds | \
15887 old_postinstall_cmds | old_postuninstall_cmds | \
15888 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15889 # Double-quote double-evaled strings.
15890 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15893 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15899 *'\$0 --fallback-echo"')
15900 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15906 cat <<__EOF__ >> "$cfgfile"
15907 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15909 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15911 # Shell to use when invoking shell scripts.
15914 # Whether or not to build shared libraries.
15915 build_libtool_libs=$enable_shared
15917 # Whether or not to build static libraries.
15918 build_old_libs=$enable_static
15920 # Whether or not to add -lc for building shared libraries.
15921 build_libtool_need_lc=$archive_cmds_need_lc_F77
15923 # Whether or not to disallow shared libs when runtime libs are static
15924 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15926 # Whether or not to optimize for fast installation.
15927 fast_install=$enable_fast_install
15930 host_alias=$host_alias
15934 # The build system.
15935 build_alias=$build_alias
15939 # An echo program that does not interpret backslashes.
15944 AR_FLAGS=$lt_AR_FLAGS
15949 # LTCC compiler flags.
15950 LTCFLAGS=$lt_LTCFLAGS
15952 # A language-specific compiler.
15953 CC=$lt_compiler_F77
15955 # Is the compiler the GNU C compiler?
15958 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
15959 gcc_ver=\`gcc -dumpversion\`
15964 # The linker used to build libraries.
15967 # Whether we need hard or soft links.
15970 # A BSD-compatible nm program.
15973 # A symbol stripping program
15976 # Used to examine libraries when file_magic_cmd begins "file"
15977 MAGIC_CMD=$MAGIC_CMD
15979 # Used on cygwin: DLL creation program.
15982 # Used on cygwin: object dumper.
15985 # Used on cygwin: assembler.
15988 # The name of the directory that contains temporary libtool files.
15991 # How to create reloadable object files.
15992 reload_flag=$lt_reload_flag
15993 reload_cmds=$lt_reload_cmds
15995 # How to pass a linker flag through the compiler.
15996 wl=$lt_lt_prog_compiler_wl_F77
15998 # Object file suffix (normally "o").
15999 objext="$ac_objext"
16001 # Old archive suffix (normally "a").
16004 # Shared library suffix (normally ".so").
16005 shrext_cmds='$shrext_cmds'
16007 # Executable file suffix (normally "").
16010 # Additional compiler flags for building library objects.
16011 pic_flag=$lt_lt_prog_compiler_pic_F77
16014 # What is the maximum length of a command?
16015 max_cmd_len=$lt_cv_sys_max_cmd_len
16017 # Does compiler simultaneously support -c and -o options?
16018 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16020 # Must we lock files when doing compilation?
16021 need_locks=$lt_need_locks
16023 # Do we need the lib prefix for modules?
16024 need_lib_prefix=$need_lib_prefix
16026 # Do we need a version for libraries?
16027 need_version=$need_version
16029 # Whether dlopen is supported.
16030 dlopen_support=$enable_dlopen
16032 # Whether dlopen of programs is supported.
16033 dlopen_self=$enable_dlopen_self
16035 # Whether dlopen of statically linked programs is supported.
16036 dlopen_self_static=$enable_dlopen_self_static
16038 # Compiler flag to prevent dynamic linking.
16039 link_static_flag=$lt_lt_prog_compiler_static_F77
16041 # Compiler flag to turn off builtin functions.
16042 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16044 # Compiler flag to allow reflexive dlopens.
16045 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16047 # Compiler flag to generate shared objects directly from archives.
16048 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16050 # Compiler flag to generate thread-safe objects.
16051 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16053 # Library versioning type.
16054 version_type=$version_type
16056 # Format of library name prefix.
16057 libname_spec=$lt_libname_spec
16059 # List of archive names. First name is the real one, the rest are links.
16060 # The last name is the one that the linker finds with -lNAME.
16061 library_names_spec=$lt_library_names_spec
16063 # The coded name of the library, if different from the real name.
16064 soname_spec=$lt_soname_spec
16066 # Commands used to build and install an old-style archive.
16068 old_archive_cmds=$lt_old_archive_cmds_F77
16069 old_postinstall_cmds=$lt_old_postinstall_cmds
16070 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16072 # Create an old-style archive from a shared archive.
16073 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16075 # Create a temporary old-style archive to link instead of a shared archive.
16076 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16078 # Commands used to build and install a shared archive.
16079 archive_cmds=$lt_archive_cmds_F77
16080 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16081 postinstall_cmds=$lt_postinstall_cmds
16082 postuninstall_cmds=$lt_postuninstall_cmds
16084 # Commands used to build a loadable module (assumed same as above if empty)
16085 module_cmds=$lt_module_cmds_F77
16086 module_expsym_cmds=$lt_module_expsym_cmds_F77
16088 # Commands to strip libraries.
16089 old_striplib=$lt_old_striplib
16090 striplib=$lt_striplib
16092 # Dependencies to place before the objects being linked to create a
16094 predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16096 # Dependencies to place after the objects being linked to create a
16098 postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16100 # Dependencies to place before the objects being linked to create a
16102 predeps=$lt_predeps_F77
16104 # Dependencies to place after the objects being linked to create a
16106 postdeps=$lt_postdeps_F77
16108 # The library search path used internally by the compiler when linking
16109 # a shared library.
16110 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16112 # Method to check whether dependent libraries are shared objects.
16113 deplibs_check_method=$lt_deplibs_check_method
16115 # Command to use when deplibs_check_method == file_magic.
16116 file_magic_cmd=$lt_file_magic_cmd
16118 # Flag that allows shared libraries with undefined symbols to be built.
16119 allow_undefined_flag=$lt_allow_undefined_flag_F77
16121 # Flag that forces no undefined symbols.
16122 no_undefined_flag=$lt_no_undefined_flag_F77
16124 # Commands used to finish a libtool library installation in a directory.
16125 finish_cmds=$lt_finish_cmds
16127 # Same as above, but a single script fragment to be evaled but not shown.
16128 finish_eval=$lt_finish_eval
16130 # Take the output of nm and produce a listing of raw symbols and C names.
16131 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16133 # Transform the output of nm in a proper C declaration
16134 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16136 # Transform the output of nm in a C name address pair
16137 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16139 # This is the shared library runtime path variable.
16140 runpath_var=$runpath_var
16142 # This is the shared library path variable.
16143 shlibpath_var=$shlibpath_var
16145 # Is shlibpath searched before the hard-coded library search path?
16146 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16148 # How to hardcode a shared library path into an executable.
16149 hardcode_action=$hardcode_action_F77
16151 # Whether we should hardcode library paths into libraries.
16152 hardcode_into_libs=$hardcode_into_libs
16154 # Flag to hardcode \$libdir into a binary during linking.
16155 # This must work even if \$libdir does not exist.
16156 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16158 # If ld is used when linking, flag to hardcode \$libdir into
16159 # a binary during linking. This must work even if \$libdir does
16161 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16163 # Whether we need a single -rpath flag with a separated argument.
16164 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16166 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16167 # resulting binary.
16168 hardcode_direct=$hardcode_direct_F77
16170 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16171 # resulting binary.
16172 hardcode_minus_L=$hardcode_minus_L_F77
16174 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16175 # the resulting binary.
16176 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16178 # Set to yes if building a shared library automatically hardcodes DIR into the library
16179 # and all subsequent libraries and executables linked against it.
16180 hardcode_automatic=$hardcode_automatic_F77
16182 # Variables whose values should be saved in libtool wrapper scripts and
16183 # restored at relink time.
16184 variables_saved_for_relink="$variables_saved_for_relink"
16186 # Whether libtool must link a program against all its dependency libraries.
16187 link_all_deplibs=$link_all_deplibs_F77
16189 # Compile-time system search path for libraries
16190 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16192 # Run-time system search path for libraries
16193 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16195 # Fix the shell variable \$srcfile for the compiler.
16196 fix_srcfile_path=$lt_fix_srcfile_path
16198 # Set to yes if exported symbols are required.
16199 always_export_symbols=$always_export_symbols_F77
16201 # The commands to list exported symbols.
16202 export_symbols_cmds=$lt_export_symbols_cmds_F77
16204 # The commands to extract the exported symbol list from a shared archive.
16205 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16207 # Symbols that should not be listed in the preloaded symbols.
16208 exclude_expsyms=$lt_exclude_expsyms_F77
16210 # Symbols that must always be exported.
16211 include_expsyms=$lt_include_expsyms_F77
16213 # ### END LIBTOOL TAG CONFIG: $tagname
16219 # If there is no Makefile yet, we rely on a make rule to execute
16220 # `config.status --recheck' to rerun these tests and create the
16221 # libtool script then.
16222 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16223 if test -f "$ltmain_in"; then
16224 test -f Makefile && make "$ltmain"
16230 ac_cpp='$CPP $CPPFLAGS'
16231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16243 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16246 # Source file extension for Java test sources.
16249 # Object file extension for compiled Java test sources.
16253 # Code to be used in simple compile tests
16254 lt_simple_compile_test_code="class foo {}"
16256 # Code to be used in simple link tests
16257 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16259 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16261 # If no C compiler was specified, use CC.
16264 # If no C compiler flags were specified, use CFLAGS.
16265 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16267 # Allow CC to be a program name with arguments.
16271 # save warnings/boilerplate of simple test code
16272 ac_outfile=conftest.$ac_objext
16273 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16274 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16275 _lt_compiler_boilerplate=`cat conftest.err`
16278 ac_outfile=conftest.$ac_objext
16279 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16280 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16281 _lt_linker_boilerplate=`cat conftest.err`
16285 # Allow CC to be a program name with arguments.
16290 for cc_temp in $compiler""; do
16292 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16293 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16298 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16302 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16303 archive_cmds_need_lc_GCJ=no
16305 old_archive_cmds_GCJ=$old_archive_cmds
16308 lt_prog_compiler_no_builtin_flag_GCJ=
16310 if test "$GCC" = yes; then
16311 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16314 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16315 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16316 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16317 echo $ECHO_N "(cached) $ECHO_C" >&6
16319 lt_cv_prog_compiler_rtti_exceptions=no
16320 ac_outfile=conftest.$ac_objext
16321 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16322 lt_compiler_flag="-fno-rtti -fno-exceptions"
16323 # Insert the option either (1) after the last *FLAGS variable, or
16324 # (2) before a word containing "conftest.", or (3) at the end.
16325 # Note that $ac_compile itself does not contain backslashes and begins
16326 # with a dollar sign (not a hyphen), so the echo should work correctly.
16327 # The option is referenced via a variable to avoid confusing sed.
16328 lt_compile=`echo "$ac_compile" | $SED \
16329 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16330 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16331 -e 's:$: $lt_compiler_flag:'`
16332 (eval echo "\"\$as_me:16332: $lt_compile\"" >&5)
16333 (eval "$lt_compile" 2>conftest.err)
16335 cat conftest.err >&5
16336 echo "$as_me:16336: \$? = $ac_status" >&5
16337 if (exit $ac_status) && test -s "$ac_outfile"; then
16338 # The compiler can only warn and ignore the option if not recognized
16339 # So say no if there are warnings other than the usual output.
16340 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16341 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16342 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16343 lt_cv_prog_compiler_rtti_exceptions=yes
16349 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16350 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16352 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16353 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16360 lt_prog_compiler_wl_GCJ=
16361 lt_prog_compiler_pic_GCJ=
16362 lt_prog_compiler_static_GCJ=
16364 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16365 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16367 if test "$GCC" = yes; then
16368 lt_prog_compiler_wl_GCJ='-Wl,'
16369 lt_prog_compiler_static_GCJ='-static'
16373 # All AIX code is PIC.
16374 if test "$host_cpu" = ia64; then
16375 # AIX 5 now supports IA64 processor
16376 lt_prog_compiler_static_GCJ='-Bstatic'
16381 # FIXME: we need at least 68020 code to build shared libraries, but
16382 # adding the `-m68020' flag to GCC prevents building anything better,
16384 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16387 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16388 # PIC is the default for these OSes.
16391 mingw* | cygwin* | pw32* | os2*)
16392 # This hack is so that the source file can tell whether it is being
16393 # built for inclusion in a dll (and should export symbols for example).
16394 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16395 # (--disable-auto-import) libraries
16396 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16399 darwin* | rhapsody*)
16400 # PIC is the default on this platform
16401 # Common symbols not allowed in MH_DYLIB files
16402 lt_prog_compiler_pic_GCJ='-fno-common'
16406 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16407 # Instead, we relocate shared libraries at runtime.
16411 # Just because we use GCC doesn't mean we suddenly get shared libraries
16412 # on systems that don't support them.
16413 lt_prog_compiler_can_build_shared_GCJ=no
16418 if test -d /usr/nec; then
16419 lt_prog_compiler_pic_GCJ=-Kconform_pic
16424 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16425 # not for PA HP-UX.
16431 lt_prog_compiler_pic_GCJ='-fPIC'
16437 lt_prog_compiler_pic_GCJ='-fPIC'
16441 # PORTME Check for flag to pass linker flags through the system compiler.
16444 lt_prog_compiler_wl_GCJ='-Wl,'
16445 if test "$host_cpu" = ia64; then
16446 # AIX 5 now supports IA64 processor
16447 lt_prog_compiler_static_GCJ='-Bstatic'
16449 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16453 # PIC is the default on this platform
16454 # Common symbols not allowed in MH_DYLIB files
16455 case $cc_basename in
16457 lt_prog_compiler_pic_GCJ='-qnocommon'
16458 lt_prog_compiler_wl_GCJ='-Wl,'
16463 mingw* | cygwin* | pw32* | os2*)
16464 # This hack is so that the source file can tell whether it is being
16465 # built for inclusion in a dll (and should export symbols for example).
16466 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16469 hpux9* | hpux10* | hpux11*)
16470 lt_prog_compiler_wl_GCJ='-Wl,'
16471 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16472 # not for PA HP-UX.
16478 lt_prog_compiler_pic_GCJ='+Z'
16481 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16482 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16485 irix5* | irix6* | nonstopux*)
16486 lt_prog_compiler_wl_GCJ='-Wl,'
16487 # PIC (with -KPIC) is the default.
16488 lt_prog_compiler_static_GCJ='-non_shared'
16492 lt_prog_compiler_pic_GCJ='-KPIC'
16493 lt_prog_compiler_static_GCJ='-Bstatic'
16496 linux* | k*bsd*-gnu)
16497 case $cc_basename in
16499 lt_prog_compiler_wl_GCJ='-Wl,'
16500 lt_prog_compiler_pic_GCJ='-KPIC'
16501 lt_prog_compiler_static_GCJ='-static'
16503 pgcc* | pgf77* | pgf90* | pgf95*)
16504 # Portland Group compilers (*not* the Pentium gcc compiler,
16505 # which looks to be a dead project)
16506 lt_prog_compiler_wl_GCJ='-Wl,'
16507 lt_prog_compiler_pic_GCJ='-fpic'
16508 lt_prog_compiler_static_GCJ='-Bstatic'
16511 lt_prog_compiler_wl_GCJ='-Wl,'
16512 # All Alpha code is PIC.
16513 lt_prog_compiler_static_GCJ='-non_shared'
16516 case `$CC -V 2>&1 | sed 5q` in
16519 lt_prog_compiler_pic_GCJ='-KPIC'
16520 lt_prog_compiler_static_GCJ='-Bstatic'
16521 lt_prog_compiler_wl_GCJ='-Wl,'
16524 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16525 lt_prog_compiler_pic_GCJ='-KPIC'
16526 lt_prog_compiler_static_GCJ='-Bstatic'
16527 lt_prog_compiler_wl_GCJ=''
16534 osf3* | osf4* | osf5*)
16535 lt_prog_compiler_wl_GCJ='-Wl,'
16536 # All OSF/1 code is PIC.
16537 lt_prog_compiler_static_GCJ='-non_shared'
16541 lt_prog_compiler_static_GCJ='-non_shared'
16545 lt_prog_compiler_pic_GCJ='-KPIC'
16546 lt_prog_compiler_static_GCJ='-Bstatic'
16547 case $cc_basename in
16548 f77* | f90* | f95*)
16549 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16551 lt_prog_compiler_wl_GCJ='-Wl,';;
16556 lt_prog_compiler_wl_GCJ='-Qoption ld '
16557 lt_prog_compiler_pic_GCJ='-PIC'
16558 lt_prog_compiler_static_GCJ='-Bstatic'
16561 sysv4 | sysv4.2uw2* | sysv4.3*)
16562 lt_prog_compiler_wl_GCJ='-Wl,'
16563 lt_prog_compiler_pic_GCJ='-KPIC'
16564 lt_prog_compiler_static_GCJ='-Bstatic'
16568 if test -d /usr/nec ;then
16569 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16570 lt_prog_compiler_static_GCJ='-Bstatic'
16574 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16575 lt_prog_compiler_wl_GCJ='-Wl,'
16576 lt_prog_compiler_pic_GCJ='-KPIC'
16577 lt_prog_compiler_static_GCJ='-Bstatic'
16581 lt_prog_compiler_wl_GCJ='-Wl,'
16582 lt_prog_compiler_can_build_shared_GCJ=no
16586 lt_prog_compiler_pic_GCJ='-pic'
16587 lt_prog_compiler_static_GCJ='-Bstatic'
16591 lt_prog_compiler_can_build_shared_GCJ=no
16596 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16597 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16600 # Check to make sure the PIC flag actually works.
16602 if test -n "$lt_prog_compiler_pic_GCJ"; then
16604 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16605 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16606 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16607 echo $ECHO_N "(cached) $ECHO_C" >&6
16609 lt_prog_compiler_pic_works_GCJ=no
16610 ac_outfile=conftest.$ac_objext
16611 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16612 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16613 # Insert the option either (1) after the last *FLAGS variable, or
16614 # (2) before a word containing "conftest.", or (3) at the end.
16615 # Note that $ac_compile itself does not contain backslashes and begins
16616 # with a dollar sign (not a hyphen), so the echo should work correctly.
16617 # The option is referenced via a variable to avoid confusing sed.
16618 lt_compile=`echo "$ac_compile" | $SED \
16619 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16620 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16621 -e 's:$: $lt_compiler_flag:'`
16622 (eval echo "\"\$as_me:16622: $lt_compile\"" >&5)
16623 (eval "$lt_compile" 2>conftest.err)
16625 cat conftest.err >&5
16626 echo "$as_me:16626: \$? = $ac_status" >&5
16627 if (exit $ac_status) && test -s "$ac_outfile"; then
16628 # The compiler can only warn and ignore the option if not recognized
16629 # So say no if there are warnings other than the usual output.
16630 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16631 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16632 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16633 lt_prog_compiler_pic_works_GCJ=yes
16639 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16640 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16642 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16643 case $lt_prog_compiler_pic_GCJ in
16645 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16648 lt_prog_compiler_pic_GCJ=
16649 lt_prog_compiler_can_build_shared_GCJ=no
16654 # For platforms which do not support PIC, -DPIC is meaningless:
16656 lt_prog_compiler_pic_GCJ=
16659 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16664 # Check to make sure the static flag actually works.
16666 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16667 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16668 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16669 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16670 echo $ECHO_N "(cached) $ECHO_C" >&6
16672 lt_prog_compiler_static_works_GCJ=no
16673 save_LDFLAGS="$LDFLAGS"
16674 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16675 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16676 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16677 # The linker can only warn and ignore the option if not recognized
16678 # So say no if there are warnings
16679 if test -s conftest.err; then
16680 # Append any errors to the config.log.
16681 cat conftest.err 1>&5
16682 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16683 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16684 if diff conftest.exp conftest.er2 >/dev/null; then
16685 lt_prog_compiler_static_works_GCJ=yes
16688 lt_prog_compiler_static_works_GCJ=yes
16692 LDFLAGS="$save_LDFLAGS"
16695 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16696 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16698 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16701 lt_prog_compiler_static_GCJ=
16705 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16706 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16707 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16708 echo $ECHO_N "(cached) $ECHO_C" >&6
16710 lt_cv_prog_compiler_c_o_GCJ=no
16711 $rm -r conftest 2>/dev/null
16715 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16717 lt_compiler_flag="-o out/conftest2.$ac_objext"
16718 # Insert the option either (1) after the last *FLAGS variable, or
16719 # (2) before a word containing "conftest.", or (3) at the end.
16720 # Note that $ac_compile itself does not contain backslashes and begins
16721 # with a dollar sign (not a hyphen), so the echo should work correctly.
16722 lt_compile=`echo "$ac_compile" | $SED \
16723 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16724 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16725 -e 's:$: $lt_compiler_flag:'`
16726 (eval echo "\"\$as_me:16726: $lt_compile\"" >&5)
16727 (eval "$lt_compile" 2>out/conftest.err)
16729 cat out/conftest.err >&5
16730 echo "$as_me:16730: \$? = $ac_status" >&5
16731 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16733 # The compiler can only warn and ignore the option if not recognized
16734 # So say no if there are warnings
16735 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16736 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16737 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16738 lt_cv_prog_compiler_c_o_GCJ=yes
16743 # SGI C++ compiler will create directory out/ii_files/ for
16744 # template instantiation
16745 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16746 $rm out/* && rmdir out
16752 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16753 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16756 hard_links="nottested"
16757 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16758 # do not overwrite the value of need_locks provided by the user
16759 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16760 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16763 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16765 ln conftest.a conftest.b 2>&5 || hard_links=no
16766 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16767 { echo "$as_me:$LINENO: result: $hard_links" >&5
16768 echo "${ECHO_T}$hard_links" >&6; }
16769 if test "$hard_links" = no; then
16770 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16771 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16778 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16779 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16782 allow_undefined_flag_GCJ=
16783 enable_shared_with_static_runtimes_GCJ=no
16785 archive_expsym_cmds_GCJ=
16786 old_archive_From_new_cmds_GCJ=
16787 old_archive_from_expsyms_cmds_GCJ=
16788 export_dynamic_flag_spec_GCJ=
16789 whole_archive_flag_spec_GCJ=
16790 thread_safe_flag_spec_GCJ=
16791 hardcode_libdir_flag_spec_GCJ=
16792 hardcode_libdir_flag_spec_ld_GCJ=
16793 hardcode_libdir_separator_GCJ=
16794 hardcode_direct_GCJ=no
16795 hardcode_minus_L_GCJ=no
16796 hardcode_shlibpath_var_GCJ=unsupported
16797 link_all_deplibs_GCJ=unknown
16798 hardcode_automatic_GCJ=no
16800 module_expsym_cmds_GCJ=
16801 always_export_symbols_GCJ=no
16802 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16803 # include_expsyms should be a list of space-separated symbols to be *always*
16804 # included in the symbol list
16805 include_expsyms_GCJ=
16806 # exclude_expsyms can be an extended regexp of symbols to exclude
16807 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16808 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16809 # as well as any symbol that contains `d'.
16810 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16811 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16812 # platforms (ab)use it in PIC code, but their linkers get confused if
16813 # the symbol is explicitly referenced. Since portable code cannot
16814 # rely on this symbol name, it's probably fine to never include it in
16815 # preloaded symbol tables.
16816 extract_expsyms_cmds=
16817 # Just being paranoid about ensuring that cc_basename is set.
16818 for cc_temp in $compiler""; do
16820 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16821 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16826 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16829 cygwin* | mingw* | pw32*)
16830 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16831 # When not using gcc, we currently assume that we are using
16832 # Microsoft Visual C++.
16833 if test "$GCC" != yes; then
16838 # we just hope/assume this is gcc and not c89 (= MSVC++)
16847 if test "$with_gnu_ld" = yes; then
16848 # If archive_cmds runs LD, not CC, wlarc should be empty
16851 # Set some defaults for GNU ld with shared library support. These
16852 # are reset later if shared libraries are not supported. Putting them
16853 # here allows them to be overridden if necessary.
16854 runpath_var=LD_RUN_PATH
16855 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16856 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16857 # ancient GNU ld didn't support --whole-archive et. al.
16858 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16859 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16861 whole_archive_flag_spec_GCJ=
16863 supports_anon_versioning=no
16864 case `$LD -v 2>/dev/null` in
16865 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16866 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16867 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16868 *\ 2.11.*) ;; # other 2.11 versions
16869 *) supports_anon_versioning=yes ;;
16872 # See if GNU ld supports shared libraries.
16874 aix3* | aix4* | aix5*)
16875 # On AIX/PPC, the GNU linker is very broken
16876 if test "$host_cpu" != ia64; then
16880 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16881 *** to be unable to reliably create shared libraries on AIX.
16882 *** Therefore, libtool is disabling shared libraries support. If you
16883 *** really care for shared libraries, you may want to modify your PATH
16884 *** so that a non-GNU linker is found, and then restart.
16891 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)'
16892 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16893 hardcode_minus_L_GCJ=yes
16895 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16896 # that the semantics of dynamic libraries on AmigaOS, at least up
16897 # to version 4, is to share data among multiple programs linked
16898 # with the same dynamic library. Since this doesn't match the
16899 # behavior of shared libraries on other platforms, we can't use
16905 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16906 allow_undefined_flag_GCJ=unsupported
16907 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16908 # support --undefined. This deserves some investigation. FIXME
16909 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16915 cygwin* | mingw* | pw32*)
16916 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16917 # as there is no search path for DLLs.
16918 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16919 allow_undefined_flag_GCJ=unsupported
16920 always_export_symbols_GCJ=no
16921 enable_shared_with_static_runtimes_GCJ=yes
16922 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16924 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16925 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16926 # If the export-symbols file already is a .def file (1st line
16927 # is EXPORTS), use it as is; otherwise, prepend...
16928 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16929 cp $export_symbols $output_objdir/$soname.def;
16931 echo EXPORTS > $output_objdir/$soname.def;
16932 cat $export_symbols >> $output_objdir/$soname.def;
16934 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16941 hardcode_direct_GCJ=no
16942 hardcode_shlibpath_var_GCJ=no
16943 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16944 export_dynamic_flag_spec_GCJ='${wl}-E'
16945 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16946 # Instead, shared libraries are loaded at an image base (0x10000000 by
16947 # default) and relocated if they conflict, which is a slow very memory
16948 # consuming and fragmenting process. To avoid this, we pick a random,
16949 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16950 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16951 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'
16952 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'
16955 gnu* | linux* | k*bsd*-gnu)
16956 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16958 case $cc_basename,$host_cpu in
16959 pgcc*) # Portland Group C compiler
16960 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'
16961 tmp_addflag=' $pic_flag'
16963 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16964 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'
16965 tmp_addflag=' $pic_flag -Mnomain' ;;
16966 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16967 tmp_addflag=' -i_dynamic' ;;
16968 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16969 tmp_addflag=' -i_dynamic -nofor_main' ;;
16970 ifc* | ifort*) # Intel Fortran compiler
16971 tmp_addflag=' -nofor_main' ;;
16973 case `$CC -V 2>&1 | sed 5q` in
16974 *Sun\ C*) # Sun C 5.9
16975 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'
16976 tmp_sharedflag='-G' ;;
16977 *Sun\ F*) # Sun Fortran 8.3
16978 tmp_sharedflag='-G' ;;
16980 tmp_sharedflag='-shared' ;;
16982 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16984 if test $supports_anon_versioning = yes; then
16985 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16986 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16987 $echo "local: *; };" >> $output_objdir/$libname.ver~
16988 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16996 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16997 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17000 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17001 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17006 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17010 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17011 *** create shared libraries on Solaris systems. Therefore, libtool
17012 *** is disabling shared libraries support. We urge you to upgrade GNU
17013 *** binutils to release 2.9.1 or newer. Another option is to modify
17014 *** your PATH or compiler configuration so that the native linker is
17015 *** used, and then restart.
17018 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17019 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17020 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17026 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17027 case `$LD -v 2>&1` in
17028 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17032 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17033 *** reliably create shared libraries on SCO systems. Therefore, libtool
17034 *** is disabling shared libraries support. We urge you to upgrade GNU
17035 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17036 *** your PATH or compiler configuration so that the native linker is
17037 *** used, and then restart.
17042 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17043 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17044 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17045 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17054 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17056 hardcode_direct_GCJ=yes
17057 hardcode_shlibpath_var_GCJ=no
17061 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17062 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17063 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17070 if test "$ld_shlibs_GCJ" = no; then
17072 hardcode_libdir_flag_spec_GCJ=
17073 export_dynamic_flag_spec_GCJ=
17074 whole_archive_flag_spec_GCJ=
17077 # PORTME fill in a description of your system's linker (not GNU ld)
17080 allow_undefined_flag_GCJ=unsupported
17081 always_export_symbols_GCJ=yes
17082 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'
17083 # Note: this linker hardcodes the directories in LIBPATH if there
17084 # are no directories specified by -L.
17085 hardcode_minus_L_GCJ=yes
17086 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17087 # Neither direct hardcoding nor static linking is supported with a
17089 hardcode_direct_GCJ=unsupported
17094 if test "$host_cpu" = ia64; then
17095 # On IA64, the linker does run time linking by default, so we don't
17096 # have to do anything special.
17097 aix_use_runtimelinking=no
17098 exp_sym_flag='-Bexport'
17101 # If we're using GNU nm, then we don't want the "-C" option.
17102 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17103 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17104 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'
17106 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'
17108 aix_use_runtimelinking=no
17110 # Test if we are trying to use run time linking or normal
17111 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17112 # need to do runtime linking.
17113 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17114 for ld_flag in $LDFLAGS; do
17115 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17116 aix_use_runtimelinking=yes
17123 exp_sym_flag='-bexport'
17124 no_entry_flag='-bnoentry'
17127 # When large executables or shared objects are built, AIX ld can
17128 # have problems creating the table of contents. If linking a library
17129 # or program results in "error TOC overflow" add -mminimal-toc to
17130 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17131 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17133 archive_cmds_GCJ=''
17134 hardcode_direct_GCJ=yes
17135 hardcode_libdir_separator_GCJ=':'
17136 link_all_deplibs_GCJ=yes
17138 if test "$GCC" = yes; then
17139 case $host_os in aix4.[012]|aix4.[012].*)
17140 # We only want to do this on AIX 4.2 and lower, the check
17141 # below for broken collect2 doesn't work under 4.3+
17142 collect2name=`${CC} -print-prog-name=collect2`
17143 if test -f "$collect2name" && \
17144 strings "$collect2name" | grep resolve_lib_name >/dev/null
17146 # We have reworked collect2
17149 # We have old collect2
17150 hardcode_direct_GCJ=unsupported
17151 # It fails to find uninstalled libraries when the uninstalled
17152 # path is not listed in the libpath. Setting hardcode_minus_L
17153 # to unsupported forces relinking
17154 hardcode_minus_L_GCJ=yes
17155 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17156 hardcode_libdir_separator_GCJ=
17160 shared_flag='-shared'
17161 if test "$aix_use_runtimelinking" = yes; then
17162 shared_flag="$shared_flag "'${wl}-G'
17166 if test "$host_cpu" = ia64; then
17167 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17168 # chokes on -Wl,-G. The following line is correct:
17171 if test "$aix_use_runtimelinking" = yes; then
17172 shared_flag='${wl}-G'
17174 shared_flag='${wl}-bM:SRE'
17179 # It seems that -bexpall does not export symbols beginning with
17180 # underscore (_), so it is better to generate a list of symbols to export.
17181 always_export_symbols_GCJ=yes
17182 if test "$aix_use_runtimelinking" = yes; then
17183 # Warning - without using the other runtime loading flags (-brtl),
17184 # -berok will link without error, but may produce a broken library.
17185 allow_undefined_flag_GCJ='-berok'
17186 # Determine the default libpath from the value encoded in an empty executable.
17187 cat >conftest.$ac_ext <<_ACEOF
17190 cat confdefs.h >>conftest.$ac_ext
17191 cat >>conftest.$ac_ext <<_ACEOF
17192 /* end confdefs.h. */
17202 rm -f conftest.$ac_objext conftest$ac_exeext
17203 if { (ac_try="$ac_link"
17204 case "(($ac_try" in
17205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17206 *) ac_try_echo=$ac_try;;
17208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17209 (eval "$ac_link") 2>conftest.er1
17211 grep -v '^ *+' conftest.er1 >conftest.err
17213 cat conftest.err >&5
17214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17215 (exit $ac_status); } && {
17216 test -z "$ac_c_werror_flag" ||
17217 test ! -s conftest.err
17218 } && test -s conftest$ac_exeext &&
17219 $as_test_x conftest$ac_exeext; then
17221 lt_aix_libpath_sed='
17222 /Import File Strings/,/^$/ {
17228 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17229 # Check for a 64-bit object if we didn't find anything.
17230 if test -z "$aix_libpath"; then
17231 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17234 echo "$as_me: failed program was:" >&5
17235 sed 's/^/| /' conftest.$ac_ext >&5
17240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17241 conftest$ac_exeext conftest.$ac_ext
17242 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17244 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17245 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"
17247 if test "$host_cpu" = ia64; then
17248 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17249 allow_undefined_flag_GCJ="-z nodefs"
17250 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"
17252 # Determine the default libpath from the value encoded in an empty executable.
17253 cat >conftest.$ac_ext <<_ACEOF
17256 cat confdefs.h >>conftest.$ac_ext
17257 cat >>conftest.$ac_ext <<_ACEOF
17258 /* end confdefs.h. */
17268 rm -f conftest.$ac_objext conftest$ac_exeext
17269 if { (ac_try="$ac_link"
17270 case "(($ac_try" in
17271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17272 *) ac_try_echo=$ac_try;;
17274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17275 (eval "$ac_link") 2>conftest.er1
17277 grep -v '^ *+' conftest.er1 >conftest.err
17279 cat conftest.err >&5
17280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281 (exit $ac_status); } && {
17282 test -z "$ac_c_werror_flag" ||
17283 test ! -s conftest.err
17284 } && test -s conftest$ac_exeext &&
17285 $as_test_x conftest$ac_exeext; then
17287 lt_aix_libpath_sed='
17288 /Import File Strings/,/^$/ {
17294 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17295 # Check for a 64-bit object if we didn't find anything.
17296 if test -z "$aix_libpath"; then
17297 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17300 echo "$as_me: failed program was:" >&5
17301 sed 's/^/| /' conftest.$ac_ext >&5
17306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17307 conftest$ac_exeext conftest.$ac_ext
17308 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17310 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17311 # Warning - without using the other run time loading flags,
17312 # -berok will link without error, but may produce a broken library.
17313 no_undefined_flag_GCJ=' ${wl}-bernotok'
17314 allow_undefined_flag_GCJ=' ${wl}-berok'
17315 # Exported symbols can be pulled into shared objects from archives
17316 whole_archive_flag_spec_GCJ='$convenience'
17317 archive_cmds_need_lc_GCJ=yes
17318 # This is similar to how AIX traditionally builds its shared libraries.
17319 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'
17325 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)'
17326 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17327 hardcode_minus_L_GCJ=yes
17328 # see comment about different semantics on the GNU ld section
17333 export_dynamic_flag_spec_GCJ=-rdynamic
17336 cygwin* | mingw* | pw32*)
17337 # When not using gcc, we currently assume that we are using
17338 # Microsoft Visual C++.
17339 # hardcode_libdir_flag_spec is actually meaningless, as there is
17340 # no search path for DLLs.
17341 hardcode_libdir_flag_spec_GCJ=' '
17342 allow_undefined_flag_GCJ=unsupported
17343 # Tell ltmain to make .lib files, not .a files.
17345 # Tell ltmain to make .dll files, not .so files.
17347 # FIXME: Setting linknames here is a bad hack.
17348 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17349 # The linker will automatically build a .lib file if we build a DLL.
17350 old_archive_From_new_cmds_GCJ='true'
17351 # FIXME: Should let the user specify the lib program.
17352 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17353 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17354 enable_shared_with_static_runtimes_GCJ=yes
17357 darwin* | rhapsody*)
17359 rhapsody* | darwin1.[012])
17360 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17363 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17364 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17366 case ${MACOSX_DEPLOYMENT_TARGET} in
17368 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17371 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17377 archive_cmds_need_lc_GCJ=no
17378 hardcode_direct_GCJ=no
17379 hardcode_automatic_GCJ=yes
17380 hardcode_shlibpath_var_GCJ=unsupported
17381 whole_archive_flag_spec_GCJ=''
17382 link_all_deplibs_GCJ=yes
17383 if test "$GCC" = yes ; then
17384 output_verbose_link_cmd='echo'
17385 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17386 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17387 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17388 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}'
17389 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}'
17391 case $cc_basename in
17393 output_verbose_link_cmd='echo'
17394 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17395 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17396 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17397 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}'
17398 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}'
17408 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17409 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17410 hardcode_shlibpath_var_GCJ=no
17417 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17418 # support. Future versions do this automatically, but an explicit c++rt0.o
17419 # does not break anything, and helps significantly (at the cost of a little
17422 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17423 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17424 hardcode_direct_GCJ=yes
17425 hardcode_shlibpath_var_GCJ=no
17428 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17430 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17431 hardcode_direct_GCJ=yes
17432 hardcode_minus_L_GCJ=yes
17433 hardcode_shlibpath_var_GCJ=no
17436 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17437 freebsd* | dragonfly*)
17438 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17439 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17440 hardcode_direct_GCJ=yes
17441 hardcode_shlibpath_var_GCJ=no
17445 if test "$GCC" = yes; then
17446 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'
17448 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'
17450 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17451 hardcode_libdir_separator_GCJ=:
17452 hardcode_direct_GCJ=yes
17454 # hardcode_minus_L: Not really in the search PATH,
17455 # but as the default location of the library.
17456 hardcode_minus_L_GCJ=yes
17457 export_dynamic_flag_spec_GCJ='${wl}-E'
17461 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17462 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17464 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17466 if test "$with_gnu_ld" = no; then
17467 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17468 hardcode_libdir_separator_GCJ=:
17470 hardcode_direct_GCJ=yes
17471 export_dynamic_flag_spec_GCJ='${wl}-E'
17473 # hardcode_minus_L: Not really in the search PATH,
17474 # but as the default location of the library.
17475 hardcode_minus_L_GCJ=yes
17480 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17483 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17486 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17489 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17495 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17498 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17501 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17505 if test "$with_gnu_ld" = no; then
17506 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17507 hardcode_libdir_separator_GCJ=:
17511 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17512 hardcode_direct_GCJ=no
17513 hardcode_shlibpath_var_GCJ=no
17516 hardcode_direct_GCJ=yes
17517 export_dynamic_flag_spec_GCJ='${wl}-E'
17519 # hardcode_minus_L: Not really in the search PATH,
17520 # but as the default location of the library.
17521 hardcode_minus_L_GCJ=yes
17527 irix5* | irix6* | nonstopux*)
17528 if test "$GCC" = yes; then
17529 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'
17531 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'
17532 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17534 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17535 hardcode_libdir_separator_GCJ=:
17536 link_all_deplibs_GCJ=yes
17540 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17541 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17543 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17545 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17546 hardcode_direct_GCJ=yes
17547 hardcode_shlibpath_var_GCJ=no
17551 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17552 hardcode_direct_GCJ=yes
17553 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17554 hardcode_libdir_separator_GCJ=:
17555 hardcode_shlibpath_var_GCJ=no
17559 if test -f /usr/libexec/ld.so; then
17560 hardcode_direct_GCJ=yes
17561 hardcode_shlibpath_var_GCJ=no
17562 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17563 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17564 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17565 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17566 export_dynamic_flag_spec_GCJ='${wl}-E'
17569 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17570 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17571 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17574 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17575 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17585 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17586 hardcode_minus_L_GCJ=yes
17587 allow_undefined_flag_GCJ=unsupported
17588 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'
17589 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17593 if test "$GCC" = yes; then
17594 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17595 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'
17597 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17598 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'
17600 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17601 hardcode_libdir_separator_GCJ=:
17604 osf4* | osf5*) # as osf3* with the addition of -msym flag
17605 if test "$GCC" = yes; then
17606 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17607 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'
17608 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17610 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17611 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'
17612 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~
17613 $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'
17615 # Both c and cxx compiler support -rpath directly
17616 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17618 hardcode_libdir_separator_GCJ=:
17622 no_undefined_flag_GCJ=' -z text'
17623 if test "$GCC" = yes; then
17625 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17626 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17627 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17630 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17631 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17632 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17634 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17635 hardcode_shlibpath_var_GCJ=no
17637 solaris2.[0-5] | solaris2.[0-5].*) ;;
17639 # The compiler driver will combine and reorder linker options,
17640 # but understands `-z linker_flag'. GCC discards it without `$wl',
17641 # but is careful enough not to reorder.
17642 # Supported since Solaris 2.6 (maybe 2.5.1?)
17643 if test "$GCC" = yes; then
17644 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17646 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17650 link_all_deplibs_GCJ=yes
17654 if test "x$host_vendor" = xsequent; then
17655 # Use $CC to link under sequent, because it throws in some extra .o
17656 # files that make .init and .fini sections work.
17657 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17659 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17661 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17662 hardcode_direct_GCJ=yes
17663 hardcode_minus_L_GCJ=yes
17664 hardcode_shlibpath_var_GCJ=no
17668 case $host_vendor in
17670 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17671 hardcode_direct_GCJ=yes # is this really true???
17674 ## LD is ld it makes a PLAMLIB
17675 ## CC just makes a GrossModule.
17676 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17677 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17678 hardcode_direct_GCJ=no
17681 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17682 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17685 runpath_var='LD_RUN_PATH'
17686 hardcode_shlibpath_var_GCJ=no
17690 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17691 hardcode_shlibpath_var_GCJ=no
17692 export_dynamic_flag_spec_GCJ='-Bexport'
17696 if test -d /usr/nec; then
17697 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17698 hardcode_shlibpath_var_GCJ=no
17699 runpath_var=LD_RUN_PATH
17700 hardcode_runpath_var=yes
17705 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17706 no_undefined_flag_GCJ='${wl}-z,text'
17707 archive_cmds_need_lc_GCJ=no
17708 hardcode_shlibpath_var_GCJ=no
17709 runpath_var='LD_RUN_PATH'
17711 if test "$GCC" = yes; then
17712 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17713 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17715 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17716 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17720 sysv5* | sco3.2v5* | sco5v6*)
17721 # Note: We can NOT use -z defs as we might desire, because we do not
17722 # link with -lc, and that would cause any symbols used from libc to
17723 # always be unresolved, which means just about no library would
17724 # ever link correctly. If we're not using GNU ld we use -z text
17725 # though, which does catch some bad symbols but isn't as heavy-handed
17727 no_undefined_flag_GCJ='${wl}-z,text'
17728 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17729 archive_cmds_need_lc_GCJ=no
17730 hardcode_shlibpath_var_GCJ=no
17731 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17732 hardcode_libdir_separator_GCJ=':'
17733 link_all_deplibs_GCJ=yes
17734 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17735 runpath_var='LD_RUN_PATH'
17737 if test "$GCC" = yes; then
17738 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17739 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17741 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17742 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17747 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17748 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17749 hardcode_shlibpath_var_GCJ=no
17758 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17759 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17760 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17763 # Do we need to explicitly link libc?
17765 case "x$archive_cmds_need_lc_GCJ" in
17767 # Assume -lc should be added
17768 archive_cmds_need_lc_GCJ=yes
17770 if test "$enable_shared" = yes && test "$GCC" = yes; then
17771 case $archive_cmds_GCJ in
17773 # FIXME: we may have to deal with multi-command sequences.
17776 # Test whether the compiler implicitly links with -lc since on some
17777 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17778 # to ld, don't add -lc before -lgcc.
17779 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17780 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17782 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17785 (eval $ac_compile) 2>&5
17787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788 (exit $ac_status); } 2>conftest.err; then
17791 libobjs=conftest.$ac_objext
17793 wl=$lt_prog_compiler_wl_GCJ
17794 pic_flag=$lt_prog_compiler_pic_GCJ
17800 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17801 allow_undefined_flag_GCJ=
17802 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17803 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17806 (exit $ac_status); }
17808 archive_cmds_need_lc_GCJ=no
17810 archive_cmds_need_lc_GCJ=yes
17812 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17814 cat conftest.err 1>&5
17817 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17818 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17825 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17826 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17827 library_names_spec=
17828 libname_spec='lib$name'
17832 postuninstall_cmds=
17836 shlibpath_overrides_runpath=unknown
17838 dynamic_linker="$host_os ld.so"
17839 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17841 need_lib_prefix=unknown
17842 hardcode_into_libs=no
17844 # when you set need_version to no, make sure it does not cause -set_version
17845 # flags to be left without arguments
17846 need_version=unknown
17851 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17852 shlibpath_var=LIBPATH
17854 # AIX 3 has no versioning support, so we append a major version to the name.
17855 soname_spec='${libname}${release}${shared_ext}$major'
17862 hardcode_into_libs=yes
17863 if test "$host_cpu" = ia64; then
17864 # AIX 5 supports IA64
17865 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17866 shlibpath_var=LD_LIBRARY_PATH
17868 # With GCC up to 2.95.x, collect2 would create an import file
17869 # for dependence libraries. The import file would start with
17870 # the line `#! .'. This would cause the generated library to
17871 # depend on `.', always an invalid library. This was fixed in
17872 # development snapshots of GCC prior to 3.0.
17874 aix4 | aix4.[01] | aix4.[01].*)
17875 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17877 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17880 can_build_shared=no
17884 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17885 # soname into executable. Probably we can add versioning support to
17886 # collect2, so additional links can be useful in future.
17887 if test "$aix_use_runtimelinking" = yes; then
17888 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17889 # instead of lib<name>.a to let people know that these are not
17890 # typical AIX shared libraries.
17891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17893 # We preserve .a as extension for shared libraries through AIX4.2
17894 # and later when we are not doing run time linking.
17895 library_names_spec='${libname}${release}.a $libname.a'
17896 soname_spec='${libname}${release}${shared_ext}$major'
17898 shlibpath_var=LIBPATH
17903 library_names_spec='$libname.ixlibrary $libname.a'
17904 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17905 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'
17909 library_names_spec='${libname}${shared_ext}'
17910 dynamic_linker="$host_os ld.so"
17911 shlibpath_var=LIBRARY_PATH
17917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17918 soname_spec='${libname}${release}${shared_ext}$major'
17919 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17920 shlibpath_var=LD_LIBRARY_PATH
17921 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17922 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17923 # the default ld.so.conf also contains /usr/contrib/lib and
17924 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17925 # libtool to hard-code these into programs
17928 cygwin* | mingw* | pw32*)
17929 version_type=windows
17934 case $GCC,$host_os in
17935 yes,cygwin* | yes,mingw* | yes,pw32*)
17936 library_names_spec='$libname.dll.a'
17937 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17938 postinstall_cmds='base_file=`basename \${file}`~
17939 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17940 dldir=$destdir/`dirname \$dlpath`~
17941 test -d \$dldir || mkdir -p \$dldir~
17942 $install_prog $dir/$dlname \$dldir/$dlname~
17943 chmod a+x \$dldir/$dlname'
17944 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17945 dlpath=$dir/\$dldll~
17947 shlibpath_overrides_runpath=yes
17951 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17952 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17953 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17956 # MinGW DLLs use traditional 'lib' prefix
17957 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17958 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17959 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17960 # It is most probably a Windows format PATH printed by
17961 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17962 # path with ; separators, and with drive letters. We can handle the
17963 # drive letters (cygwin fileutils understands them), so leave them,
17964 # especially as we might pass files found there to a mingw objdump,
17965 # which wouldn't understand a cygwinified path. Ahh.
17966 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17968 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17972 # pw32 DLLs use 'pw' prefix rather than 'lib'
17973 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17979 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17982 dynamic_linker='Win32 ld.exe'
17983 # FIXME: first we should search . and the directory the executable is in
17987 darwin* | rhapsody*)
17988 dynamic_linker="$host_os dyld"
17989 version_type=darwin
17992 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17993 soname_spec='${libname}${release}${major}$shared_ext'
17994 shlibpath_overrides_runpath=yes
17995 shlibpath_var=DYLD_LIBRARY_PATH
17996 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17998 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18006 soname_spec='${libname}${release}${shared_ext}$major'
18007 shlibpath_var=LD_LIBRARY_PATH
18014 freebsd* | dragonfly*)
18015 # DragonFly does not have aout. When/if they implement a new
18016 # versioning mechanism, adjust this.
18017 if test -x /usr/bin/objformat; then
18018 objformat=`/usr/bin/objformat`
18021 freebsd[123]*) objformat=aout ;;
18022 *) objformat=elf ;;
18025 version_type=freebsd-$objformat
18026 case $version_type in
18028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18033 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18037 shlibpath_var=LD_LIBRARY_PATH
18040 shlibpath_overrides_runpath=yes
18042 freebsd3.[01]* | freebsdelf3.[01]*)
18043 shlibpath_overrides_runpath=yes
18044 hardcode_into_libs=yes
18046 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18047 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18048 shlibpath_overrides_runpath=no
18049 hardcode_into_libs=yes
18051 *) # from 4.6 on, and DragonFly
18052 shlibpath_overrides_runpath=yes
18053 hardcode_into_libs=yes
18062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18063 soname_spec='${libname}${release}${shared_ext}$major'
18064 shlibpath_var=LD_LIBRARY_PATH
18065 hardcode_into_libs=yes
18068 hpux9* | hpux10* | hpux11*)
18069 # Give a soname corresponding to the major version so that dld.sl refuses to
18070 # link against other versions.
18077 hardcode_into_libs=yes
18078 dynamic_linker="$host_os dld.so"
18079 shlibpath_var=LD_LIBRARY_PATH
18080 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18082 soname_spec='${libname}${release}${shared_ext}$major'
18083 if test "X$HPUX_IA64_MODE" = X32; then
18084 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18086 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18088 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18092 hardcode_into_libs=yes
18093 dynamic_linker="$host_os dld.sl"
18094 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18095 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18099 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18103 dynamic_linker="$host_os dld.sl"
18104 shlibpath_var=SHLIB_PATH
18105 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18107 soname_spec='${libname}${release}${shared_ext}$major'
18110 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18111 postinstall_cmds='chmod 555 $lib'
18118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18119 soname_spec='${libname}${release}${shared_ext}$major'
18120 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18121 shlibpath_var=LD_LIBRARY_PATH
18122 shlibpath_overrides_runpath=no
18123 hardcode_into_libs=yes
18126 irix5* | irix6* | nonstopux*)
18128 nonstopux*) version_type=nonstopux ;;
18130 if test "$lt_cv_prog_gnu_ld" = yes; then
18138 soname_spec='${libname}${release}${shared_ext}$major'
18139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18141 irix5* | nonstopux*)
18142 libsuff= shlibsuff=
18145 case $LD in # libtool.m4 will add one of these switches to LD
18146 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18147 libsuff= shlibsuff= libmagic=32-bit;;
18148 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18149 libsuff=32 shlibsuff=N32 libmagic=N32;;
18150 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18151 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18152 *) libsuff= shlibsuff= libmagic=never-match;;
18156 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18157 shlibpath_overrides_runpath=no
18158 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18159 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18160 hardcode_into_libs=yes
18163 # No shared lib support for Linux oldld, aout, or coff.
18164 linux*oldld* | linux*aout* | linux*coff*)
18168 # This must be Linux ELF.
18169 linux* | k*bsd*-gnu)
18173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18174 soname_spec='${libname}${release}${shared_ext}$major'
18175 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18176 shlibpath_var=LD_LIBRARY_PATH
18177 shlibpath_overrides_runpath=no
18178 # This implies no fast_install, which is unacceptable.
18179 # Some rework will be needed to allow for fast_install
18180 # before this can be enabled.
18181 hardcode_into_libs=yes
18183 # find out which ABI we are using
18185 case "$host_cpu" in
18186 x86_64*|s390x*|powerpc64*)
18187 echo '#line 18187 "configure"' > conftest.$ac_ext
18188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18189 (eval $ac_compile) 2>&5
18191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18192 (exit $ac_status); }; then
18193 case `/usr/bin/file conftest.$ac_objext` in
18196 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18204 # Append ld.so.conf contents to the search path
18205 if test -f /etc/ld.so.conf; then
18206 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' ' '`
18207 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
18210 # We used to test for /lib/ld.so.1 and disable shared libraries on
18211 # powerpc, because MkLinux only supported shared libraries with the
18212 # GNU dynamic linker. Since this was broken with cross compilers,
18213 # most powerpc-linux boxes support dynamic linking these days and
18214 # people can always --disable-shared, the test was removed, and we
18215 # assume the GNU/Linux dynamic linker is in use.
18216 dynamic_linker='GNU/Linux ld.so'
18223 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18225 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18226 dynamic_linker='NetBSD (a.out) ld.so'
18228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18229 soname_spec='${libname}${release}${shared_ext}$major'
18230 dynamic_linker='NetBSD ld.elf_so'
18232 shlibpath_var=LD_LIBRARY_PATH
18233 shlibpath_overrides_runpath=yes
18234 hardcode_into_libs=yes
18239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18240 shlibpath_var=LD_LIBRARY_PATH
18241 shlibpath_overrides_runpath=yes
18248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18249 soname_spec='${libname}${release}${shared_ext}$major'
18250 shlibpath_var=LD_LIBRARY_PATH
18251 shlibpath_overrides_runpath=yes
18256 sys_lib_dlsearch_path_spec="/usr/lib"
18258 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18260 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18261 *) need_version=no ;;
18263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18264 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18265 shlibpath_var=LD_LIBRARY_PATH
18266 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18268 openbsd2.[89] | openbsd2.[89].*)
18269 shlibpath_overrides_runpath=no
18272 shlibpath_overrides_runpath=yes
18276 shlibpath_overrides_runpath=yes
18281 libname_spec='$name'
18284 library_names_spec='$libname${shared_ext} $libname.a'
18285 dynamic_linker='OS/2 ld.exe'
18286 shlibpath_var=LIBPATH
18289 osf3* | osf4* | osf5*)
18293 soname_spec='${libname}${release}${shared_ext}$major'
18294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18295 shlibpath_var=LD_LIBRARY_PATH
18296 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18297 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18309 soname_spec='${libname}${release}${shared_ext}$major'
18310 shlibpath_var=LD_LIBRARY_PATH
18311 shlibpath_overrides_runpath=yes
18312 hardcode_into_libs=yes
18313 # ldd complains unless libraries are executable
18314 postinstall_cmds='chmod +x $lib'
18319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18320 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18321 shlibpath_var=LD_LIBRARY_PATH
18322 shlibpath_overrides_runpath=yes
18323 if test "$with_gnu_ld" = yes; then
18331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18332 soname_spec='${libname}${release}${shared_ext}$major'
18333 shlibpath_var=LD_LIBRARY_PATH
18334 case $host_vendor in
18336 shlibpath_overrides_runpath=no
18338 export_dynamic_flag_spec='${wl}-Blargedynsym'
18339 runpath_var=LD_RUN_PATH
18347 shlibpath_overrides_runpath=no
18348 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18354 if test -d /usr/nec ;then
18356 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18357 soname_spec='$libname${shared_ext}.$major'
18358 shlibpath_var=LD_LIBRARY_PATH
18362 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18363 version_type=freebsd-elf
18366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18367 soname_spec='${libname}${release}${shared_ext}$major'
18368 shlibpath_var=LD_LIBRARY_PATH
18369 hardcode_into_libs=yes
18370 if test "$with_gnu_ld" = yes; then
18371 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18372 shlibpath_overrides_runpath=no
18374 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18375 shlibpath_overrides_runpath=yes
18378 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18382 sys_lib_dlsearch_path_spec='/usr/lib'
18387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18388 soname_spec='${libname}${release}${shared_ext}$major'
18389 shlibpath_var=LD_LIBRARY_PATH
18396 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18397 echo "${ECHO_T}$dynamic_linker" >&6; }
18398 test "$dynamic_linker" = no && can_build_shared=no
18400 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18401 if test "$GCC" = yes; then
18402 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18405 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18406 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18407 hardcode_action_GCJ=
18408 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18409 test -n "$runpath_var_GCJ" || \
18410 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18412 # We can hardcode non-existant directories.
18413 if test "$hardcode_direct_GCJ" != no &&
18414 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18415 # have to relink, otherwise we might link with an installed library
18416 # when we should be linking with a yet-to-be-installed one
18417 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18418 test "$hardcode_minus_L_GCJ" != no; then
18419 # Linking always hardcodes the temporary library directory.
18420 hardcode_action_GCJ=relink
18422 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18423 hardcode_action_GCJ=immediate
18426 # We cannot hardcode anything, or else we can only hardcode existing
18428 hardcode_action_GCJ=unsupported
18430 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18431 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18433 if test "$hardcode_action_GCJ" = relink; then
18434 # Fast installation is not supported
18435 enable_fast_install=no
18436 elif test "$shlibpath_overrides_runpath" = yes ||
18437 test "$enable_shared" = no; then
18438 # Fast installation is not necessary
18439 enable_fast_install=needless
18443 # The else clause should only fire when bootstrapping the
18444 # libtool distribution, otherwise you forgot to ship ltmain.sh
18445 # with your package, and you will get complaints that there are
18446 # no rules to generate ltmain.sh.
18447 if test -f "$ltmain"; then
18448 # See if we are running on zsh, and set the options which allow our commands through
18449 # without removal of \ escapes.
18450 if test -n "${ZSH_VERSION+set}" ; then
18451 setopt NO_GLOB_SUBST
18453 # Now quote all the things that may contain metacharacters while being
18454 # careful not to overquote the AC_SUBSTed values. We take copies of the
18455 # variables and quote the copies for generation of the libtool script.
18456 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18458 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18459 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18460 deplibs_check_method reload_flag reload_cmds need_locks \
18461 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18462 lt_cv_sys_global_symbol_to_c_name_address \
18463 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18464 old_postinstall_cmds old_postuninstall_cmds \
18468 lt_prog_compiler_wl_GCJ \
18469 lt_prog_compiler_pic_GCJ \
18470 lt_prog_compiler_static_GCJ \
18471 lt_prog_compiler_no_builtin_flag_GCJ \
18472 export_dynamic_flag_spec_GCJ \
18473 thread_safe_flag_spec_GCJ \
18474 whole_archive_flag_spec_GCJ \
18475 enable_shared_with_static_runtimes_GCJ \
18476 old_archive_cmds_GCJ \
18477 old_archive_from_new_cmds_GCJ \
18478 predep_objects_GCJ \
18479 postdep_objects_GCJ \
18482 compiler_lib_search_path_GCJ \
18484 archive_expsym_cmds_GCJ \
18485 postinstall_cmds_GCJ \
18486 postuninstall_cmds_GCJ \
18487 old_archive_from_expsyms_cmds_GCJ \
18488 allow_undefined_flag_GCJ \
18489 no_undefined_flag_GCJ \
18490 export_symbols_cmds_GCJ \
18491 hardcode_libdir_flag_spec_GCJ \
18492 hardcode_libdir_flag_spec_ld_GCJ \
18493 hardcode_libdir_separator_GCJ \
18494 hardcode_automatic_GCJ \
18496 module_expsym_cmds_GCJ \
18497 lt_cv_prog_compiler_c_o_GCJ \
18498 fix_srcfile_path_GCJ \
18499 exclude_expsyms_GCJ \
18500 include_expsyms_GCJ; do
18503 old_archive_cmds_GCJ | \
18504 old_archive_from_new_cmds_GCJ | \
18505 archive_cmds_GCJ | \
18506 archive_expsym_cmds_GCJ | \
18507 module_cmds_GCJ | \
18508 module_expsym_cmds_GCJ | \
18509 old_archive_from_expsyms_cmds_GCJ | \
18510 export_symbols_cmds_GCJ | \
18511 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18512 postinstall_cmds | postuninstall_cmds | \
18513 old_postinstall_cmds | old_postuninstall_cmds | \
18514 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18515 # Double-quote double-evaled strings.
18516 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18519 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18525 *'\$0 --fallback-echo"')
18526 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18532 cat <<__EOF__ >> "$cfgfile"
18533 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18535 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18537 # Shell to use when invoking shell scripts.
18540 # Whether or not to build shared libraries.
18541 build_libtool_libs=$enable_shared
18543 # Whether or not to build static libraries.
18544 build_old_libs=$enable_static
18546 # Whether or not to add -lc for building shared libraries.
18547 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18549 # Whether or not to disallow shared libs when runtime libs are static
18550 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18552 # Whether or not to optimize for fast installation.
18553 fast_install=$enable_fast_install
18556 host_alias=$host_alias
18560 # The build system.
18561 build_alias=$build_alias
18565 # An echo program that does not interpret backslashes.
18570 AR_FLAGS=$lt_AR_FLAGS
18575 # LTCC compiler flags.
18576 LTCFLAGS=$lt_LTCFLAGS
18578 # A language-specific compiler.
18579 CC=$lt_compiler_GCJ
18581 # Is the compiler the GNU C compiler?
18584 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18585 gcc_ver=\`gcc -dumpversion\`
18590 # The linker used to build libraries.
18593 # Whether we need hard or soft links.
18596 # A BSD-compatible nm program.
18599 # A symbol stripping program
18602 # Used to examine libraries when file_magic_cmd begins "file"
18603 MAGIC_CMD=$MAGIC_CMD
18605 # Used on cygwin: DLL creation program.
18608 # Used on cygwin: object dumper.
18611 # Used on cygwin: assembler.
18614 # The name of the directory that contains temporary libtool files.
18617 # How to create reloadable object files.
18618 reload_flag=$lt_reload_flag
18619 reload_cmds=$lt_reload_cmds
18621 # How to pass a linker flag through the compiler.
18622 wl=$lt_lt_prog_compiler_wl_GCJ
18624 # Object file suffix (normally "o").
18625 objext="$ac_objext"
18627 # Old archive suffix (normally "a").
18630 # Shared library suffix (normally ".so").
18631 shrext_cmds='$shrext_cmds'
18633 # Executable file suffix (normally "").
18636 # Additional compiler flags for building library objects.
18637 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18640 # What is the maximum length of a command?
18641 max_cmd_len=$lt_cv_sys_max_cmd_len
18643 # Does compiler simultaneously support -c and -o options?
18644 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18646 # Must we lock files when doing compilation?
18647 need_locks=$lt_need_locks
18649 # Do we need the lib prefix for modules?
18650 need_lib_prefix=$need_lib_prefix
18652 # Do we need a version for libraries?
18653 need_version=$need_version
18655 # Whether dlopen is supported.
18656 dlopen_support=$enable_dlopen
18658 # Whether dlopen of programs is supported.
18659 dlopen_self=$enable_dlopen_self
18661 # Whether dlopen of statically linked programs is supported.
18662 dlopen_self_static=$enable_dlopen_self_static
18664 # Compiler flag to prevent dynamic linking.
18665 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18667 # Compiler flag to turn off builtin functions.
18668 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18670 # Compiler flag to allow reflexive dlopens.
18671 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18673 # Compiler flag to generate shared objects directly from archives.
18674 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18676 # Compiler flag to generate thread-safe objects.
18677 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18679 # Library versioning type.
18680 version_type=$version_type
18682 # Format of library name prefix.
18683 libname_spec=$lt_libname_spec
18685 # List of archive names. First name is the real one, the rest are links.
18686 # The last name is the one that the linker finds with -lNAME.
18687 library_names_spec=$lt_library_names_spec
18689 # The coded name of the library, if different from the real name.
18690 soname_spec=$lt_soname_spec
18692 # Commands used to build and install an old-style archive.
18694 old_archive_cmds=$lt_old_archive_cmds_GCJ
18695 old_postinstall_cmds=$lt_old_postinstall_cmds
18696 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18698 # Create an old-style archive from a shared archive.
18699 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18701 # Create a temporary old-style archive to link instead of a shared archive.
18702 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18704 # Commands used to build and install a shared archive.
18705 archive_cmds=$lt_archive_cmds_GCJ
18706 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18707 postinstall_cmds=$lt_postinstall_cmds
18708 postuninstall_cmds=$lt_postuninstall_cmds
18710 # Commands used to build a loadable module (assumed same as above if empty)
18711 module_cmds=$lt_module_cmds_GCJ
18712 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18714 # Commands to strip libraries.
18715 old_striplib=$lt_old_striplib
18716 striplib=$lt_striplib
18718 # Dependencies to place before the objects being linked to create a
18720 predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18722 # Dependencies to place after the objects being linked to create a
18724 postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18726 # Dependencies to place before the objects being linked to create a
18728 predeps=$lt_predeps_GCJ
18730 # Dependencies to place after the objects being linked to create a
18732 postdeps=$lt_postdeps_GCJ
18734 # The library search path used internally by the compiler when linking
18735 # a shared library.
18736 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18738 # Method to check whether dependent libraries are shared objects.
18739 deplibs_check_method=$lt_deplibs_check_method
18741 # Command to use when deplibs_check_method == file_magic.
18742 file_magic_cmd=$lt_file_magic_cmd
18744 # Flag that allows shared libraries with undefined symbols to be built.
18745 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18747 # Flag that forces no undefined symbols.
18748 no_undefined_flag=$lt_no_undefined_flag_GCJ
18750 # Commands used to finish a libtool library installation in a directory.
18751 finish_cmds=$lt_finish_cmds
18753 # Same as above, but a single script fragment to be evaled but not shown.
18754 finish_eval=$lt_finish_eval
18756 # Take the output of nm and produce a listing of raw symbols and C names.
18757 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18759 # Transform the output of nm in a proper C declaration
18760 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18762 # Transform the output of nm in a C name address pair
18763 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18765 # This is the shared library runtime path variable.
18766 runpath_var=$runpath_var
18768 # This is the shared library path variable.
18769 shlibpath_var=$shlibpath_var
18771 # Is shlibpath searched before the hard-coded library search path?
18772 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18774 # How to hardcode a shared library path into an executable.
18775 hardcode_action=$hardcode_action_GCJ
18777 # Whether we should hardcode library paths into libraries.
18778 hardcode_into_libs=$hardcode_into_libs
18780 # Flag to hardcode \$libdir into a binary during linking.
18781 # This must work even if \$libdir does not exist.
18782 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18784 # If ld is used when linking, flag to hardcode \$libdir into
18785 # a binary during linking. This must work even if \$libdir does
18787 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18789 # Whether we need a single -rpath flag with a separated argument.
18790 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18792 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18793 # resulting binary.
18794 hardcode_direct=$hardcode_direct_GCJ
18796 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18797 # resulting binary.
18798 hardcode_minus_L=$hardcode_minus_L_GCJ
18800 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18801 # the resulting binary.
18802 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18804 # Set to yes if building a shared library automatically hardcodes DIR into the library
18805 # and all subsequent libraries and executables linked against it.
18806 hardcode_automatic=$hardcode_automatic_GCJ
18808 # Variables whose values should be saved in libtool wrapper scripts and
18809 # restored at relink time.
18810 variables_saved_for_relink="$variables_saved_for_relink"
18812 # Whether libtool must link a program against all its dependency libraries.
18813 link_all_deplibs=$link_all_deplibs_GCJ
18815 # Compile-time system search path for libraries
18816 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18818 # Run-time system search path for libraries
18819 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18821 # Fix the shell variable \$srcfile for the compiler.
18822 fix_srcfile_path=$lt_fix_srcfile_path
18824 # Set to yes if exported symbols are required.
18825 always_export_symbols=$always_export_symbols_GCJ
18827 # The commands to list exported symbols.
18828 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18830 # The commands to extract the exported symbol list from a shared archive.
18831 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18833 # Symbols that should not be listed in the preloaded symbols.
18834 exclude_expsyms=$lt_exclude_expsyms_GCJ
18836 # Symbols that must always be exported.
18837 include_expsyms=$lt_include_expsyms_GCJ
18839 # ### END LIBTOOL TAG CONFIG: $tagname
18845 # If there is no Makefile yet, we rely on a make rule to execute
18846 # `config.status --recheck' to rerun these tests and create the
18847 # libtool script then.
18848 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18849 if test -f "$ltmain_in"; then
18850 test -f Makefile && make "$ltmain"
18856 ac_cpp='$CPP $CPPFLAGS'
18857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18871 # Source file extension for RC test sources.
18874 # Object file extension for compiled RC test sources.
18878 # Code to be used in simple compile tests
18879 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18881 # Code to be used in simple link tests
18882 lt_simple_link_test_code="$lt_simple_compile_test_code"
18884 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18886 # If no C compiler was specified, use CC.
18889 # If no C compiler flags were specified, use CFLAGS.
18890 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18892 # Allow CC to be a program name with arguments.
18896 # save warnings/boilerplate of simple test code
18897 ac_outfile=conftest.$ac_objext
18898 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18899 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18900 _lt_compiler_boilerplate=`cat conftest.err`
18903 ac_outfile=conftest.$ac_objext
18904 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18905 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18906 _lt_linker_boilerplate=`cat conftest.err`
18910 # Allow CC to be a program name with arguments.
18915 for cc_temp in $compiler""; do
18917 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18918 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18923 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18925 lt_cv_prog_compiler_c_o_RC=yes
18927 # The else clause should only fire when bootstrapping the
18928 # libtool distribution, otherwise you forgot to ship ltmain.sh
18929 # with your package, and you will get complaints that there are
18930 # no rules to generate ltmain.sh.
18931 if test -f "$ltmain"; then
18932 # See if we are running on zsh, and set the options which allow our commands through
18933 # without removal of \ escapes.
18934 if test -n "${ZSH_VERSION+set}" ; then
18935 setopt NO_GLOB_SUBST
18937 # Now quote all the things that may contain metacharacters while being
18938 # careful not to overquote the AC_SUBSTed values. We take copies of the
18939 # variables and quote the copies for generation of the libtool script.
18940 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18942 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18943 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18944 deplibs_check_method reload_flag reload_cmds need_locks \
18945 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18946 lt_cv_sys_global_symbol_to_c_name_address \
18947 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18948 old_postinstall_cmds old_postuninstall_cmds \
18952 lt_prog_compiler_wl_RC \
18953 lt_prog_compiler_pic_RC \
18954 lt_prog_compiler_static_RC \
18955 lt_prog_compiler_no_builtin_flag_RC \
18956 export_dynamic_flag_spec_RC \
18957 thread_safe_flag_spec_RC \
18958 whole_archive_flag_spec_RC \
18959 enable_shared_with_static_runtimes_RC \
18960 old_archive_cmds_RC \
18961 old_archive_from_new_cmds_RC \
18962 predep_objects_RC \
18963 postdep_objects_RC \
18966 compiler_lib_search_path_RC \
18968 archive_expsym_cmds_RC \
18969 postinstall_cmds_RC \
18970 postuninstall_cmds_RC \
18971 old_archive_from_expsyms_cmds_RC \
18972 allow_undefined_flag_RC \
18973 no_undefined_flag_RC \
18974 export_symbols_cmds_RC \
18975 hardcode_libdir_flag_spec_RC \
18976 hardcode_libdir_flag_spec_ld_RC \
18977 hardcode_libdir_separator_RC \
18978 hardcode_automatic_RC \
18980 module_expsym_cmds_RC \
18981 lt_cv_prog_compiler_c_o_RC \
18982 fix_srcfile_path_RC \
18983 exclude_expsyms_RC \
18984 include_expsyms_RC; do
18987 old_archive_cmds_RC | \
18988 old_archive_from_new_cmds_RC | \
18989 archive_cmds_RC | \
18990 archive_expsym_cmds_RC | \
18992 module_expsym_cmds_RC | \
18993 old_archive_from_expsyms_cmds_RC | \
18994 export_symbols_cmds_RC | \
18995 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18996 postinstall_cmds | postuninstall_cmds | \
18997 old_postinstall_cmds | old_postuninstall_cmds | \
18998 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18999 # Double-quote double-evaled strings.
19000 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19003 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19009 *'\$0 --fallback-echo"')
19010 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19016 cat <<__EOF__ >> "$cfgfile"
19017 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19019 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19021 # Shell to use when invoking shell scripts.
19024 # Whether or not to build shared libraries.
19025 build_libtool_libs=$enable_shared
19027 # Whether or not to build static libraries.
19028 build_old_libs=$enable_static
19030 # Whether or not to add -lc for building shared libraries.
19031 build_libtool_need_lc=$archive_cmds_need_lc_RC
19033 # Whether or not to disallow shared libs when runtime libs are static
19034 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19036 # Whether or not to optimize for fast installation.
19037 fast_install=$enable_fast_install
19040 host_alias=$host_alias
19044 # The build system.
19045 build_alias=$build_alias
19049 # An echo program that does not interpret backslashes.
19054 AR_FLAGS=$lt_AR_FLAGS
19059 # LTCC compiler flags.
19060 LTCFLAGS=$lt_LTCFLAGS
19062 # A language-specific compiler.
19065 # Is the compiler the GNU C compiler?
19068 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
19069 gcc_ver=\`gcc -dumpversion\`
19074 # The linker used to build libraries.
19077 # Whether we need hard or soft links.
19080 # A BSD-compatible nm program.
19083 # A symbol stripping program
19086 # Used to examine libraries when file_magic_cmd begins "file"
19087 MAGIC_CMD=$MAGIC_CMD
19089 # Used on cygwin: DLL creation program.
19092 # Used on cygwin: object dumper.
19095 # Used on cygwin: assembler.
19098 # The name of the directory that contains temporary libtool files.
19101 # How to create reloadable object files.
19102 reload_flag=$lt_reload_flag
19103 reload_cmds=$lt_reload_cmds
19105 # How to pass a linker flag through the compiler.
19106 wl=$lt_lt_prog_compiler_wl_RC
19108 # Object file suffix (normally "o").
19109 objext="$ac_objext"
19111 # Old archive suffix (normally "a").
19114 # Shared library suffix (normally ".so").
19115 shrext_cmds='$shrext_cmds'
19117 # Executable file suffix (normally "").
19120 # Additional compiler flags for building library objects.
19121 pic_flag=$lt_lt_prog_compiler_pic_RC
19124 # What is the maximum length of a command?
19125 max_cmd_len=$lt_cv_sys_max_cmd_len
19127 # Does compiler simultaneously support -c and -o options?
19128 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19130 # Must we lock files when doing compilation?
19131 need_locks=$lt_need_locks
19133 # Do we need the lib prefix for modules?
19134 need_lib_prefix=$need_lib_prefix
19136 # Do we need a version for libraries?
19137 need_version=$need_version
19139 # Whether dlopen is supported.
19140 dlopen_support=$enable_dlopen
19142 # Whether dlopen of programs is supported.
19143 dlopen_self=$enable_dlopen_self
19145 # Whether dlopen of statically linked programs is supported.
19146 dlopen_self_static=$enable_dlopen_self_static
19148 # Compiler flag to prevent dynamic linking.
19149 link_static_flag=$lt_lt_prog_compiler_static_RC
19151 # Compiler flag to turn off builtin functions.
19152 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19154 # Compiler flag to allow reflexive dlopens.
19155 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19157 # Compiler flag to generate shared objects directly from archives.
19158 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19160 # Compiler flag to generate thread-safe objects.
19161 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19163 # Library versioning type.
19164 version_type=$version_type
19166 # Format of library name prefix.
19167 libname_spec=$lt_libname_spec
19169 # List of archive names. First name is the real one, the rest are links.
19170 # The last name is the one that the linker finds with -lNAME.
19171 library_names_spec=$lt_library_names_spec
19173 # The coded name of the library, if different from the real name.
19174 soname_spec=$lt_soname_spec
19176 # Commands used to build and install an old-style archive.
19178 old_archive_cmds=$lt_old_archive_cmds_RC
19179 old_postinstall_cmds=$lt_old_postinstall_cmds
19180 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19182 # Create an old-style archive from a shared archive.
19183 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19185 # Create a temporary old-style archive to link instead of a shared archive.
19186 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19188 # Commands used to build and install a shared archive.
19189 archive_cmds=$lt_archive_cmds_RC
19190 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19191 postinstall_cmds=$lt_postinstall_cmds
19192 postuninstall_cmds=$lt_postuninstall_cmds
19194 # Commands used to build a loadable module (assumed same as above if empty)
19195 module_cmds=$lt_module_cmds_RC
19196 module_expsym_cmds=$lt_module_expsym_cmds_RC
19198 # Commands to strip libraries.
19199 old_striplib=$lt_old_striplib
19200 striplib=$lt_striplib
19202 # Dependencies to place before the objects being linked to create a
19204 predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19206 # Dependencies to place after the objects being linked to create a
19208 postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19210 # Dependencies to place before the objects being linked to create a
19212 predeps=$lt_predeps_RC
19214 # Dependencies to place after the objects being linked to create a
19216 postdeps=$lt_postdeps_RC
19218 # The library search path used internally by the compiler when linking
19219 # a shared library.
19220 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19222 # Method to check whether dependent libraries are shared objects.
19223 deplibs_check_method=$lt_deplibs_check_method
19225 # Command to use when deplibs_check_method == file_magic.
19226 file_magic_cmd=$lt_file_magic_cmd
19228 # Flag that allows shared libraries with undefined symbols to be built.
19229 allow_undefined_flag=$lt_allow_undefined_flag_RC
19231 # Flag that forces no undefined symbols.
19232 no_undefined_flag=$lt_no_undefined_flag_RC
19234 # Commands used to finish a libtool library installation in a directory.
19235 finish_cmds=$lt_finish_cmds
19237 # Same as above, but a single script fragment to be evaled but not shown.
19238 finish_eval=$lt_finish_eval
19240 # Take the output of nm and produce a listing of raw symbols and C names.
19241 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19243 # Transform the output of nm in a proper C declaration
19244 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19246 # Transform the output of nm in a C name address pair
19247 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19249 # This is the shared library runtime path variable.
19250 runpath_var=$runpath_var
19252 # This is the shared library path variable.
19253 shlibpath_var=$shlibpath_var
19255 # Is shlibpath searched before the hard-coded library search path?
19256 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19258 # How to hardcode a shared library path into an executable.
19259 hardcode_action=$hardcode_action_RC
19261 # Whether we should hardcode library paths into libraries.
19262 hardcode_into_libs=$hardcode_into_libs
19264 # Flag to hardcode \$libdir into a binary during linking.
19265 # This must work even if \$libdir does not exist.
19266 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19268 # If ld is used when linking, flag to hardcode \$libdir into
19269 # a binary during linking. This must work even if \$libdir does
19271 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19273 # Whether we need a single -rpath flag with a separated argument.
19274 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19276 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19277 # resulting binary.
19278 hardcode_direct=$hardcode_direct_RC
19280 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19281 # resulting binary.
19282 hardcode_minus_L=$hardcode_minus_L_RC
19284 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19285 # the resulting binary.
19286 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19288 # Set to yes if building a shared library automatically hardcodes DIR into the library
19289 # and all subsequent libraries and executables linked against it.
19290 hardcode_automatic=$hardcode_automatic_RC
19292 # Variables whose values should be saved in libtool wrapper scripts and
19293 # restored at relink time.
19294 variables_saved_for_relink="$variables_saved_for_relink"
19296 # Whether libtool must link a program against all its dependency libraries.
19297 link_all_deplibs=$link_all_deplibs_RC
19299 # Compile-time system search path for libraries
19300 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19302 # Run-time system search path for libraries
19303 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19305 # Fix the shell variable \$srcfile for the compiler.
19306 fix_srcfile_path=$lt_fix_srcfile_path
19308 # Set to yes if exported symbols are required.
19309 always_export_symbols=$always_export_symbols_RC
19311 # The commands to list exported symbols.
19312 export_symbols_cmds=$lt_export_symbols_cmds_RC
19314 # The commands to extract the exported symbol list from a shared archive.
19315 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19317 # Symbols that should not be listed in the preloaded symbols.
19318 exclude_expsyms=$lt_exclude_expsyms_RC
19320 # Symbols that must always be exported.
19321 include_expsyms=$lt_include_expsyms_RC
19323 # ### END LIBTOOL TAG CONFIG: $tagname
19329 # If there is no Makefile yet, we rely on a make rule to execute
19330 # `config.status --recheck' to rerun these tests and create the
19331 # libtool script then.
19332 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19333 if test -f "$ltmain_in"; then
19334 test -f Makefile && make "$ltmain"
19340 ac_cpp='$CPP $CPPFLAGS'
19341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19350 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19351 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19352 { (exit 1); exit 1; }; }
19356 # Append the new tag name to the list of available tags.
19357 if test -n "$tagname" ; then
19358 available_tags="$available_tags $tagname"
19364 # Now substitute the updated list of available tags.
19365 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19366 mv "${ofile}T" "$ofile"
19370 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19371 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19372 { (exit 1); exit 1; }; }
19378 # This can be used to rebuild libtool when needed
19379 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19381 # Always use our own libtool.
19382 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19384 # Prevent multiple expansion
19407 ac_cpp='$CPP $CPPFLAGS'
19408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19414 ac_cpp='$CPP $CPPFLAGS'
19415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19418 if test -n "$ac_tool_prefix"; then
19419 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19420 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19421 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19423 if test "${ac_cv_prog_CC+set}" = set; then
19424 echo $ECHO_N "(cached) $ECHO_C" >&6
19426 if test -n "$CC"; then
19427 ac_cv_prog_CC="$CC" # Let the user override the test.
19429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19430 for as_dir in $PATH
19433 test -z "$as_dir" && as_dir=.
19434 for ac_exec_ext in '' $ac_executable_extensions; do
19435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19436 ac_cv_prog_CC="${ac_tool_prefix}gcc"
19437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19447 if test -n "$CC"; then
19448 { echo "$as_me:$LINENO: result: $CC" >&5
19449 echo "${ECHO_T}$CC" >&6; }
19451 { echo "$as_me:$LINENO: result: no" >&5
19452 echo "${ECHO_T}no" >&6; }
19457 if test -z "$ac_cv_prog_CC"; then
19459 # Extract the first word of "gcc", so it can be a program name with args.
19460 set dummy gcc; ac_word=$2
19461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19463 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19464 echo $ECHO_N "(cached) $ECHO_C" >&6
19466 if test -n "$ac_ct_CC"; then
19467 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19470 for as_dir in $PATH
19473 test -z "$as_dir" && as_dir=.
19474 for ac_exec_ext in '' $ac_executable_extensions; do
19475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19476 ac_cv_prog_ac_ct_CC="gcc"
19477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19486 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19487 if test -n "$ac_ct_CC"; then
19488 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19489 echo "${ECHO_T}$ac_ct_CC" >&6; }
19491 { echo "$as_me:$LINENO: result: no" >&5
19492 echo "${ECHO_T}no" >&6; }
19495 if test "x$ac_ct_CC" = x; then
19498 case $cross_compiling:$ac_tool_warned in
19500 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19501 whose name does not start with the host triplet. If you think this
19502 configuration is useful to you, please write to autoconf@gnu.org." >&5
19503 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19504 whose name does not start with the host triplet. If you think this
19505 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19506 ac_tool_warned=yes ;;
19511 CC="$ac_cv_prog_CC"
19514 if test -z "$CC"; then
19515 if test -n "$ac_tool_prefix"; then
19516 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19517 set dummy ${ac_tool_prefix}cc; ac_word=$2
19518 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19520 if test "${ac_cv_prog_CC+set}" = set; then
19521 echo $ECHO_N "(cached) $ECHO_C" >&6
19523 if test -n "$CC"; then
19524 ac_cv_prog_CC="$CC" # Let the user override the test.
19526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19527 for as_dir in $PATH
19530 test -z "$as_dir" && as_dir=.
19531 for ac_exec_ext in '' $ac_executable_extensions; do
19532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19533 ac_cv_prog_CC="${ac_tool_prefix}cc"
19534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19544 if test -n "$CC"; then
19545 { echo "$as_me:$LINENO: result: $CC" >&5
19546 echo "${ECHO_T}$CC" >&6; }
19548 { echo "$as_me:$LINENO: result: no" >&5
19549 echo "${ECHO_T}no" >&6; }
19555 if test -z "$CC"; then
19556 # Extract the first word of "cc", so it can be a program name with args.
19557 set dummy cc; ac_word=$2
19558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19560 if test "${ac_cv_prog_CC+set}" = set; then
19561 echo $ECHO_N "(cached) $ECHO_C" >&6
19563 if test -n "$CC"; then
19564 ac_cv_prog_CC="$CC" # Let the user override the test.
19566 ac_prog_rejected=no
19567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19568 for as_dir in $PATH
19571 test -z "$as_dir" && as_dir=.
19572 for ac_exec_ext in '' $ac_executable_extensions; do
19573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19574 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19575 ac_prog_rejected=yes
19579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19586 if test $ac_prog_rejected = yes; then
19587 # We found a bogon in the path, so make sure we never use it.
19588 set dummy $ac_cv_prog_CC
19590 if test $# != 0; then
19591 # We chose a different compiler from the bogus one.
19592 # However, it has the same basename, so the bogon will be chosen
19593 # first if we set CC to just the basename; use the full file name.
19595 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19601 if test -n "$CC"; then
19602 { echo "$as_me:$LINENO: result: $CC" >&5
19603 echo "${ECHO_T}$CC" >&6; }
19605 { echo "$as_me:$LINENO: result: no" >&5
19606 echo "${ECHO_T}no" >&6; }
19611 if test -z "$CC"; then
19612 if test -n "$ac_tool_prefix"; then
19613 for ac_prog in cl.exe
19615 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19616 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19617 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19619 if test "${ac_cv_prog_CC+set}" = set; then
19620 echo $ECHO_N "(cached) $ECHO_C" >&6
19622 if test -n "$CC"; then
19623 ac_cv_prog_CC="$CC" # Let the user override the test.
19625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19626 for as_dir in $PATH
19629 test -z "$as_dir" && as_dir=.
19630 for ac_exec_ext in '' $ac_executable_extensions; do
19631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19632 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19643 if test -n "$CC"; then
19644 { echo "$as_me:$LINENO: result: $CC" >&5
19645 echo "${ECHO_T}$CC" >&6; }
19647 { echo "$as_me:$LINENO: result: no" >&5
19648 echo "${ECHO_T}no" >&6; }
19652 test -n "$CC" && break
19655 if test -z "$CC"; then
19657 for ac_prog in cl.exe
19659 # Extract the first word of "$ac_prog", so it can be a program name with args.
19660 set dummy $ac_prog; ac_word=$2
19661 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19663 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19664 echo $ECHO_N "(cached) $ECHO_C" >&6
19666 if test -n "$ac_ct_CC"; then
19667 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19670 for as_dir in $PATH
19673 test -z "$as_dir" && as_dir=.
19674 for ac_exec_ext in '' $ac_executable_extensions; do
19675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19676 ac_cv_prog_ac_ct_CC="$ac_prog"
19677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19686 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19687 if test -n "$ac_ct_CC"; then
19688 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19689 echo "${ECHO_T}$ac_ct_CC" >&6; }
19691 { echo "$as_me:$LINENO: result: no" >&5
19692 echo "${ECHO_T}no" >&6; }
19696 test -n "$ac_ct_CC" && break
19699 if test "x$ac_ct_CC" = x; then
19702 case $cross_compiling:$ac_tool_warned in
19704 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19705 whose name does not start with the host triplet. If you think this
19706 configuration is useful to you, please write to autoconf@gnu.org." >&5
19707 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19708 whose name does not start with the host triplet. If you think this
19709 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19710 ac_tool_warned=yes ;;
19719 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19720 See \`config.log' for more details." >&5
19721 echo "$as_me: error: no acceptable C compiler found in \$PATH
19722 See \`config.log' for more details." >&2;}
19723 { (exit 1); exit 1; }; }
19725 # Provide some information about the compiler.
19726 echo "$as_me:$LINENO: checking for C compiler version" >&5
19727 ac_compiler=`set X $ac_compile; echo $2`
19728 { (ac_try="$ac_compiler --version >&5"
19729 case "(($ac_try" in
19730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19731 *) ac_try_echo=$ac_try;;
19733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19734 (eval "$ac_compiler --version >&5") 2>&5
19736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737 (exit $ac_status); }
19738 { (ac_try="$ac_compiler -v >&5"
19739 case "(($ac_try" in
19740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19741 *) ac_try_echo=$ac_try;;
19743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19744 (eval "$ac_compiler -v >&5") 2>&5
19746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19747 (exit $ac_status); }
19748 { (ac_try="$ac_compiler -V >&5"
19749 case "(($ac_try" in
19750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19751 *) ac_try_echo=$ac_try;;
19753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19754 (eval "$ac_compiler -V >&5") 2>&5
19756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19757 (exit $ac_status); }
19759 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19760 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
19761 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19762 echo $ECHO_N "(cached) $ECHO_C" >&6
19764 cat >conftest.$ac_ext <<_ACEOF
19767 cat confdefs.h >>conftest.$ac_ext
19768 cat >>conftest.$ac_ext <<_ACEOF
19769 /* end confdefs.h. */
19782 rm -f conftest.$ac_objext
19783 if { (ac_try="$ac_compile"
19784 case "(($ac_try" in
19785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19786 *) ac_try_echo=$ac_try;;
19788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19789 (eval "$ac_compile") 2>conftest.er1
19791 grep -v '^ *+' conftest.er1 >conftest.err
19793 cat conftest.err >&5
19794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795 (exit $ac_status); } && {
19796 test -z "$ac_c_werror_flag" ||
19797 test ! -s conftest.err
19798 } && test -s conftest.$ac_objext; then
19799 ac_compiler_gnu=yes
19801 echo "$as_me: failed program was:" >&5
19802 sed 's/^/| /' conftest.$ac_ext >&5
19807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19808 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19811 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19812 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
19813 GCC=`test $ac_compiler_gnu = yes && echo yes`
19814 ac_test_CFLAGS=${CFLAGS+set}
19815 ac_save_CFLAGS=$CFLAGS
19816 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19817 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
19818 if test "${ac_cv_prog_cc_g+set}" = set; then
19819 echo $ECHO_N "(cached) $ECHO_C" >&6
19821 ac_save_c_werror_flag=$ac_c_werror_flag
19822 ac_c_werror_flag=yes
19825 cat >conftest.$ac_ext <<_ACEOF
19828 cat confdefs.h >>conftest.$ac_ext
19829 cat >>conftest.$ac_ext <<_ACEOF
19830 /* end confdefs.h. */
19840 rm -f conftest.$ac_objext
19841 if { (ac_try="$ac_compile"
19842 case "(($ac_try" in
19843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19844 *) ac_try_echo=$ac_try;;
19846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19847 (eval "$ac_compile") 2>conftest.er1
19849 grep -v '^ *+' conftest.er1 >conftest.err
19851 cat conftest.err >&5
19852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19853 (exit $ac_status); } && {
19854 test -z "$ac_c_werror_flag" ||
19855 test ! -s conftest.err
19856 } && test -s conftest.$ac_objext; then
19857 ac_cv_prog_cc_g=yes
19859 echo "$as_me: failed program was:" >&5
19860 sed 's/^/| /' conftest.$ac_ext >&5
19863 cat >conftest.$ac_ext <<_ACEOF
19866 cat confdefs.h >>conftest.$ac_ext
19867 cat >>conftest.$ac_ext <<_ACEOF
19868 /* end confdefs.h. */
19878 rm -f conftest.$ac_objext
19879 if { (ac_try="$ac_compile"
19880 case "(($ac_try" in
19881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19882 *) ac_try_echo=$ac_try;;
19884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19885 (eval "$ac_compile") 2>conftest.er1
19887 grep -v '^ *+' conftest.er1 >conftest.err
19889 cat conftest.err >&5
19890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19891 (exit $ac_status); } && {
19892 test -z "$ac_c_werror_flag" ||
19893 test ! -s conftest.err
19894 } && test -s conftest.$ac_objext; then
19897 echo "$as_me: failed program was:" >&5
19898 sed 's/^/| /' conftest.$ac_ext >&5
19900 ac_c_werror_flag=$ac_save_c_werror_flag
19902 cat >conftest.$ac_ext <<_ACEOF
19905 cat confdefs.h >>conftest.$ac_ext
19906 cat >>conftest.$ac_ext <<_ACEOF
19907 /* end confdefs.h. */
19917 rm -f conftest.$ac_objext
19918 if { (ac_try="$ac_compile"
19919 case "(($ac_try" in
19920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19921 *) ac_try_echo=$ac_try;;
19923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19924 (eval "$ac_compile") 2>conftest.er1
19926 grep -v '^ *+' conftest.er1 >conftest.err
19928 cat conftest.err >&5
19929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19930 (exit $ac_status); } && {
19931 test -z "$ac_c_werror_flag" ||
19932 test ! -s conftest.err
19933 } && test -s conftest.$ac_objext; then
19934 ac_cv_prog_cc_g=yes
19936 echo "$as_me: failed program was:" >&5
19937 sed 's/^/| /' conftest.$ac_ext >&5
19942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19949 ac_c_werror_flag=$ac_save_c_werror_flag
19951 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19952 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
19953 if test "$ac_test_CFLAGS" = set; then
19954 CFLAGS=$ac_save_CFLAGS
19955 elif test $ac_cv_prog_cc_g = yes; then
19956 if test "$GCC" = yes; then
19962 if test "$GCC" = yes; then
19968 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
19969 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
19970 if test "${ac_cv_prog_cc_c89+set}" = set; then
19971 echo $ECHO_N "(cached) $ECHO_C" >&6
19973 ac_cv_prog_cc_c89=no
19975 cat >conftest.$ac_ext <<_ACEOF
19978 cat confdefs.h >>conftest.$ac_ext
19979 cat >>conftest.$ac_ext <<_ACEOF
19980 /* end confdefs.h. */
19981 #include <stdarg.h>
19983 #include <sys/types.h>
19984 #include <sys/stat.h>
19985 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19986 struct buf { int x; };
19987 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19988 static char *e (p, i)
19994 static char *f (char * (*g) (char **, int), char **p, ...)
19999 s = g (p, va_arg (v,int));
20004 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
20005 function prototypes and stuff, but not '\xHH' hex character constants.
20006 These don't provoke an error unfortunately, instead are silently treated
20007 as 'x'. The following induces an error, until -std is added to get
20008 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
20009 array size at least. It's necessary to write '\x00'==0 to get something
20010 that's true only with -std. */
20011 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20013 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20014 inside strings and character constants. */
20016 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20018 int test (int i, double x);
20019 struct s1 {int (*f) (int a);};
20020 struct s2 {int (*f) (double a);};
20021 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20027 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
20032 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20033 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20035 CC="$ac_save_CC $ac_arg"
20036 rm -f conftest.$ac_objext
20037 if { (ac_try="$ac_compile"
20038 case "(($ac_try" in
20039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20040 *) ac_try_echo=$ac_try;;
20042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20043 (eval "$ac_compile") 2>conftest.er1
20045 grep -v '^ *+' conftest.er1 >conftest.err
20047 cat conftest.err >&5
20048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20049 (exit $ac_status); } && {
20050 test -z "$ac_c_werror_flag" ||
20051 test ! -s conftest.err
20052 } && test -s conftest.$ac_objext; then
20053 ac_cv_prog_cc_c89=$ac_arg
20055 echo "$as_me: failed program was:" >&5
20056 sed 's/^/| /' conftest.$ac_ext >&5
20061 rm -f core conftest.err conftest.$ac_objext
20062 test "x$ac_cv_prog_cc_c89" != "xno" && break
20064 rm -f conftest.$ac_ext
20069 case "x$ac_cv_prog_cc_c89" in
20071 { echo "$as_me:$LINENO: result: none needed" >&5
20072 echo "${ECHO_T}none needed" >&6; } ;;
20074 { echo "$as_me:$LINENO: result: unsupported" >&5
20075 echo "${ECHO_T}unsupported" >&6; } ;;
20077 CC="$CC $ac_cv_prog_cc_c89"
20078 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20079 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
20084 ac_cpp='$CPP $CPPFLAGS'
20085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20089 depcc="$CC" am_compiler_list=
20091 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20092 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
20093 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20094 echo $ECHO_N "(cached) $ECHO_C" >&6
20096 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20097 # We make a subdir and do the tests there. Otherwise we can end up
20098 # making bogus files that we don't know about and never remove. For
20099 # instance it was reported that on HP-UX the gcc test will end up
20100 # making a dummy file named `D' -- because `-MD' means `put the output
20103 # Copy depcomp to subdir because otherwise we won't find it if we're
20104 # using a relative directory.
20105 cp "$am_depcomp" conftest.dir
20107 # We will build objects and dependencies in a subdirectory because
20108 # it helps to detect inapplicable dependency modes. For instance
20109 # both Tru64's cc and ICC support -MD to output dependencies as a
20110 # side effect of compilation, but ICC will put the dependencies in
20111 # the current directory while Tru64 will put them in the object
20115 am_cv_CC_dependencies_compiler_type=none
20116 if test "$am_compiler_list" = ""; then
20117 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20119 for depmode in $am_compiler_list; do
20120 # Setup a source with many dependencies, because some compilers
20121 # like to wrap large dependency lists on column 80 (with \), and
20122 # we should not choose a depcomp mode which is confused by this.
20124 # We need to recreate these files for each test, as the compiler may
20125 # overwrite some of them when testing with obscure command lines.
20126 # This happens at least with the AIX C compiler.
20128 for i in 1 2 3 4 5 6; do
20129 echo '#include "conftst'$i'.h"' >> sub/conftest.c
20130 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20131 # Solaris 8's {/usr,}/bin/sh.
20132 touch sub/conftst$i.h
20134 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20138 # after this tag, mechanisms are not by side-effect, so they'll
20139 # only be used when explicitly requested
20140 if test "x$enable_dependency_tracking" = xyes; then
20148 # We check with `-c' and `-o' for the sake of the "dashmstdout"
20149 # mode. It turns out that the SunPro C++ compiler does not properly
20150 # handle `-M -o', and we need to detect this.
20151 if depmode=$depmode \
20152 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20153 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20154 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20155 >/dev/null 2>conftest.err &&
20156 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20157 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20158 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20159 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20160 # icc doesn't choke on unknown options, it will just issue warnings
20161 # or remarks (even with -Werror). So we grep stderr for any message
20162 # that says an option was ignored or not supported.
20163 # When given -MP, icc 7.0 and 7.1 complain thusly:
20164 # icc: Command line warning: ignoring option '-M'; no argument required
20165 # The diagnosis changed in icc 8.0:
20166 # icc: Command line remark: option '-MP' not supported
20167 if (grep 'ignoring option' conftest.err ||
20168 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20169 am_cv_CC_dependencies_compiler_type=$depmode
20176 rm -rf conftest.dir
20178 am_cv_CC_dependencies_compiler_type=none
20182 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20183 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
20184 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20187 test "x$enable_dependency_tracking" != xno \
20188 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20189 am__fastdepCC_TRUE=
20190 am__fastdepCC_FALSE='#'
20192 am__fastdepCC_TRUE='#'
20193 am__fastdepCC_FALSE=
20198 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20199 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
20200 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
20201 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
20202 echo $ECHO_N "(cached) $ECHO_C" >&6
20204 cat >conftest.make <<\_ACEOF
20207 @echo '@@@%%%=$(MAKE)=@@@%%%'
20209 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20210 case `${MAKE-make} -f conftest.make 2>/dev/null` in
20211 *@@@%%%=?*=@@@%%%*)
20212 eval ac_cv_prog_make_${ac_make}_set=yes;;
20214 eval ac_cv_prog_make_${ac_make}_set=no;;
20216 rm -f conftest.make
20218 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
20219 { echo "$as_me:$LINENO: result: yes" >&5
20220 echo "${ECHO_T}yes" >&6; }
20223 { echo "$as_me:$LINENO: result: no" >&5
20224 echo "${ECHO_T}no" >&6; }
20225 SET_MAKE="MAKE=${MAKE-make}"
20229 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20230 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20231 if test "${ac_cv_header_stdc+set}" = set; then
20232 echo $ECHO_N "(cached) $ECHO_C" >&6
20234 cat >conftest.$ac_ext <<_ACEOF
20237 cat confdefs.h >>conftest.$ac_ext
20238 cat >>conftest.$ac_ext <<_ACEOF
20239 /* end confdefs.h. */
20240 #include <stdlib.h>
20241 #include <stdarg.h>
20242 #include <string.h>
20253 rm -f conftest.$ac_objext
20254 if { (ac_try="$ac_compile"
20255 case "(($ac_try" in
20256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20257 *) ac_try_echo=$ac_try;;
20259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20260 (eval "$ac_compile") 2>conftest.er1
20262 grep -v '^ *+' conftest.er1 >conftest.err
20264 cat conftest.err >&5
20265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20266 (exit $ac_status); } && {
20267 test -z "$ac_c_werror_flag" ||
20268 test ! -s conftest.err
20269 } && test -s conftest.$ac_objext; then
20270 ac_cv_header_stdc=yes
20272 echo "$as_me: failed program was:" >&5
20273 sed 's/^/| /' conftest.$ac_ext >&5
20275 ac_cv_header_stdc=no
20278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20280 if test $ac_cv_header_stdc = yes; then
20281 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20282 cat >conftest.$ac_ext <<_ACEOF
20285 cat confdefs.h >>conftest.$ac_ext
20286 cat >>conftest.$ac_ext <<_ACEOF
20287 /* end confdefs.h. */
20288 #include <string.h>
20291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20292 $EGREP "memchr" >/dev/null 2>&1; then
20295 ac_cv_header_stdc=no
20301 if test $ac_cv_header_stdc = yes; then
20302 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20303 cat >conftest.$ac_ext <<_ACEOF
20306 cat confdefs.h >>conftest.$ac_ext
20307 cat >>conftest.$ac_ext <<_ACEOF
20308 /* end confdefs.h. */
20309 #include <stdlib.h>
20312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20313 $EGREP "free" >/dev/null 2>&1; then
20316 ac_cv_header_stdc=no
20322 if test $ac_cv_header_stdc = yes; then
20323 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20324 if test "$cross_compiling" = yes; then
20327 cat >conftest.$ac_ext <<_ACEOF
20330 cat confdefs.h >>conftest.$ac_ext
20331 cat >>conftest.$ac_ext <<_ACEOF
20332 /* end confdefs.h. */
20334 #include <stdlib.h>
20335 #if ((' ' & 0x0FF) == 0x020)
20336 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20337 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20339 # define ISLOWER(c) \
20340 (('a' <= (c) && (c) <= 'i') \
20341 || ('j' <= (c) && (c) <= 'r') \
20342 || ('s' <= (c) && (c) <= 'z'))
20343 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20346 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20351 for (i = 0; i < 256; i++)
20352 if (XOR (islower (i), ISLOWER (i))
20353 || toupper (i) != TOUPPER (i))
20358 rm -f conftest$ac_exeext
20359 if { (ac_try="$ac_link"
20360 case "(($ac_try" in
20361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20362 *) ac_try_echo=$ac_try;;
20364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20365 (eval "$ac_link") 2>&5
20367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20369 { (case "(($ac_try" in
20370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20371 *) ac_try_echo=$ac_try;;
20373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20374 (eval "$ac_try") 2>&5
20376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377 (exit $ac_status); }; }; then
20380 echo "$as_me: program exited with status $ac_status" >&5
20381 echo "$as_me: failed program was:" >&5
20382 sed 's/^/| /' conftest.$ac_ext >&5
20384 ( exit $ac_status )
20385 ac_cv_header_stdc=no
20387 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20393 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20394 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20395 if test $ac_cv_header_stdc = yes; then
20397 cat >>confdefs.h <<\_ACEOF
20398 #define STDC_HEADERS 1
20409 ac_header_dirent=no
20410 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20411 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20412 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20413 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
20414 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20415 echo $ECHO_N "(cached) $ECHO_C" >&6
20417 cat >conftest.$ac_ext <<_ACEOF
20420 cat confdefs.h >>conftest.$ac_ext
20421 cat >>conftest.$ac_ext <<_ACEOF
20422 /* end confdefs.h. */
20423 #include <sys/types.h>
20435 rm -f conftest.$ac_objext
20436 if { (ac_try="$ac_compile"
20437 case "(($ac_try" in
20438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20439 *) ac_try_echo=$ac_try;;
20441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20442 (eval "$ac_compile") 2>conftest.er1
20444 grep -v '^ *+' conftest.er1 >conftest.err
20446 cat conftest.err >&5
20447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20448 (exit $ac_status); } && {
20449 test -z "$ac_c_werror_flag" ||
20450 test ! -s conftest.err
20451 } && test -s conftest.$ac_objext; then
20452 eval "$as_ac_Header=yes"
20454 echo "$as_me: failed program was:" >&5
20455 sed 's/^/| /' conftest.$ac_ext >&5
20457 eval "$as_ac_Header=no"
20460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20462 ac_res=`eval echo '${'$as_ac_Header'}'`
20463 { echo "$as_me:$LINENO: result: $ac_res" >&5
20464 echo "${ECHO_T}$ac_res" >&6; }
20465 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20466 cat >>confdefs.h <<_ACEOF
20467 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20470 ac_header_dirent=$ac_hdr; break
20474 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20475 if test $ac_header_dirent = dirent.h; then
20476 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20477 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20478 if test "${ac_cv_search_opendir+set}" = set; then
20479 echo $ECHO_N "(cached) $ECHO_C" >&6
20481 ac_func_search_save_LIBS=$LIBS
20482 cat >conftest.$ac_ext <<_ACEOF
20485 cat confdefs.h >>conftest.$ac_ext
20486 cat >>conftest.$ac_ext <<_ACEOF
20487 /* end confdefs.h. */
20489 /* Override any GCC internal prototype to avoid an error.
20490 Use char because int might match the return type of a GCC
20491 builtin and then its argument prototype would still apply. */
20504 for ac_lib in '' dir; do
20505 if test -z "$ac_lib"; then
20506 ac_res="none required"
20509 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20511 rm -f conftest.$ac_objext conftest$ac_exeext
20512 if { (ac_try="$ac_link"
20513 case "(($ac_try" in
20514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20515 *) ac_try_echo=$ac_try;;
20517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20518 (eval "$ac_link") 2>conftest.er1
20520 grep -v '^ *+' conftest.er1 >conftest.err
20522 cat conftest.err >&5
20523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20524 (exit $ac_status); } && {
20525 test -z "$ac_c_werror_flag" ||
20526 test ! -s conftest.err
20527 } && test -s conftest$ac_exeext &&
20528 $as_test_x conftest$ac_exeext; then
20529 ac_cv_search_opendir=$ac_res
20531 echo "$as_me: failed program was:" >&5
20532 sed 's/^/| /' conftest.$ac_ext >&5
20537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20539 if test "${ac_cv_search_opendir+set}" = set; then
20543 if test "${ac_cv_search_opendir+set}" = set; then
20546 ac_cv_search_opendir=no
20548 rm conftest.$ac_ext
20549 LIBS=$ac_func_search_save_LIBS
20551 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20552 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20553 ac_res=$ac_cv_search_opendir
20554 if test "$ac_res" != no; then
20555 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20560 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20561 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20562 if test "${ac_cv_search_opendir+set}" = set; then
20563 echo $ECHO_N "(cached) $ECHO_C" >&6
20565 ac_func_search_save_LIBS=$LIBS
20566 cat >conftest.$ac_ext <<_ACEOF
20569 cat confdefs.h >>conftest.$ac_ext
20570 cat >>conftest.$ac_ext <<_ACEOF
20571 /* end confdefs.h. */
20573 /* Override any GCC internal prototype to avoid an error.
20574 Use char because int might match the return type of a GCC
20575 builtin and then its argument prototype would still apply. */
20588 for ac_lib in '' x; do
20589 if test -z "$ac_lib"; then
20590 ac_res="none required"
20593 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20595 rm -f conftest.$ac_objext conftest$ac_exeext
20596 if { (ac_try="$ac_link"
20597 case "(($ac_try" in
20598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20599 *) ac_try_echo=$ac_try;;
20601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20602 (eval "$ac_link") 2>conftest.er1
20604 grep -v '^ *+' conftest.er1 >conftest.err
20606 cat conftest.err >&5
20607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20608 (exit $ac_status); } && {
20609 test -z "$ac_c_werror_flag" ||
20610 test ! -s conftest.err
20611 } && test -s conftest$ac_exeext &&
20612 $as_test_x conftest$ac_exeext; then
20613 ac_cv_search_opendir=$ac_res
20615 echo "$as_me: failed program was:" >&5
20616 sed 's/^/| /' conftest.$ac_ext >&5
20621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20623 if test "${ac_cv_search_opendir+set}" = set; then
20627 if test "${ac_cv_search_opendir+set}" = set; then
20630 ac_cv_search_opendir=no
20632 rm conftest.$ac_ext
20633 LIBS=$ac_func_search_save_LIBS
20635 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20636 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20637 ac_res=$ac_cv_search_opendir
20638 if test "$ac_res" != no; then
20639 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20647 for ac_header in unistd.h
20649 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20651 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20653 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20654 echo $ECHO_N "(cached) $ECHO_C" >&6
20656 ac_res=`eval echo '${'$as_ac_Header'}'`
20657 { echo "$as_me:$LINENO: result: $ac_res" >&5
20658 echo "${ECHO_T}$ac_res" >&6; }
20660 # Is the header compilable?
20661 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20662 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20663 cat >conftest.$ac_ext <<_ACEOF
20666 cat confdefs.h >>conftest.$ac_ext
20667 cat >>conftest.$ac_ext <<_ACEOF
20668 /* end confdefs.h. */
20669 $ac_includes_default
20670 #include <$ac_header>
20672 rm -f conftest.$ac_objext
20673 if { (ac_try="$ac_compile"
20674 case "(($ac_try" in
20675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20676 *) ac_try_echo=$ac_try;;
20678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20679 (eval "$ac_compile") 2>conftest.er1
20681 grep -v '^ *+' conftest.er1 >conftest.err
20683 cat conftest.err >&5
20684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20685 (exit $ac_status); } && {
20686 test -z "$ac_c_werror_flag" ||
20687 test ! -s conftest.err
20688 } && test -s conftest.$ac_objext; then
20689 ac_header_compiler=yes
20691 echo "$as_me: failed program was:" >&5
20692 sed 's/^/| /' conftest.$ac_ext >&5
20694 ac_header_compiler=no
20697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20698 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20699 echo "${ECHO_T}$ac_header_compiler" >&6; }
20701 # Is the header present?
20702 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20703 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20704 cat >conftest.$ac_ext <<_ACEOF
20707 cat confdefs.h >>conftest.$ac_ext
20708 cat >>conftest.$ac_ext <<_ACEOF
20709 /* end confdefs.h. */
20710 #include <$ac_header>
20712 if { (ac_try="$ac_cpp conftest.$ac_ext"
20713 case "(($ac_try" in
20714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20715 *) ac_try_echo=$ac_try;;
20717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20718 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20720 grep -v '^ *+' conftest.er1 >conftest.err
20722 cat conftest.err >&5
20723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20724 (exit $ac_status); } >/dev/null && {
20725 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20726 test ! -s conftest.err
20728 ac_header_preproc=yes
20730 echo "$as_me: failed program was:" >&5
20731 sed 's/^/| /' conftest.$ac_ext >&5
20733 ac_header_preproc=no
20736 rm -f conftest.err conftest.$ac_ext
20737 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20738 echo "${ECHO_T}$ac_header_preproc" >&6; }
20740 # So? What about this header?
20741 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20743 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20744 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20746 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20747 ac_header_preproc=yes
20750 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20751 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20752 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20753 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20754 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20755 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20756 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20757 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20758 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20759 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20760 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20761 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20765 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20768 echo $ECHO_N "(cached) $ECHO_C" >&6
20770 eval "$as_ac_Header=\$ac_header_preproc"
20772 ac_res=`eval echo '${'$as_ac_Header'}'`
20773 { echo "$as_me:$LINENO: result: $ac_res" >&5
20774 echo "${ECHO_T}$ac_res" >&6; }
20777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20778 cat >>confdefs.h <<_ACEOF
20779 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20783 { { echo "$as_me:$LINENO: error: required header file missing" >&5
20784 echo "$as_me: error: required header file missing" >&2;}
20785 { (exit 1); exit 1; }; }
20793 for ac_header in sys/stat.h sys/wait.h
20795 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20797 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20800 echo $ECHO_N "(cached) $ECHO_C" >&6
20802 ac_res=`eval echo '${'$as_ac_Header'}'`
20803 { echo "$as_me:$LINENO: result: $ac_res" >&5
20804 echo "${ECHO_T}$ac_res" >&6; }
20806 # Is the header compilable?
20807 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20808 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20809 cat >conftest.$ac_ext <<_ACEOF
20812 cat confdefs.h >>conftest.$ac_ext
20813 cat >>conftest.$ac_ext <<_ACEOF
20814 /* end confdefs.h. */
20815 $ac_includes_default
20816 #include <$ac_header>
20818 rm -f conftest.$ac_objext
20819 if { (ac_try="$ac_compile"
20820 case "(($ac_try" in
20821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20822 *) ac_try_echo=$ac_try;;
20824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20825 (eval "$ac_compile") 2>conftest.er1
20827 grep -v '^ *+' conftest.er1 >conftest.err
20829 cat conftest.err >&5
20830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20831 (exit $ac_status); } && {
20832 test -z "$ac_c_werror_flag" ||
20833 test ! -s conftest.err
20834 } && test -s conftest.$ac_objext; then
20835 ac_header_compiler=yes
20837 echo "$as_me: failed program was:" >&5
20838 sed 's/^/| /' conftest.$ac_ext >&5
20840 ac_header_compiler=no
20843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20844 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20845 echo "${ECHO_T}$ac_header_compiler" >&6; }
20847 # Is the header present?
20848 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20849 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20850 cat >conftest.$ac_ext <<_ACEOF
20853 cat confdefs.h >>conftest.$ac_ext
20854 cat >>conftest.$ac_ext <<_ACEOF
20855 /* end confdefs.h. */
20856 #include <$ac_header>
20858 if { (ac_try="$ac_cpp conftest.$ac_ext"
20859 case "(($ac_try" in
20860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20861 *) ac_try_echo=$ac_try;;
20863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20864 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20866 grep -v '^ *+' conftest.er1 >conftest.err
20868 cat conftest.err >&5
20869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20870 (exit $ac_status); } >/dev/null && {
20871 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20872 test ! -s conftest.err
20874 ac_header_preproc=yes
20876 echo "$as_me: failed program was:" >&5
20877 sed 's/^/| /' conftest.$ac_ext >&5
20879 ac_header_preproc=no
20882 rm -f conftest.err conftest.$ac_ext
20883 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20884 echo "${ECHO_T}$ac_header_preproc" >&6; }
20886 # So? What about this header?
20887 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20889 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20890 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20892 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20893 ac_header_preproc=yes
20896 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20897 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20898 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20899 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20900 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20901 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20902 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20903 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20904 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20905 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20906 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20907 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20911 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20914 echo $ECHO_N "(cached) $ECHO_C" >&6
20916 eval "$as_ac_Header=\$ac_header_preproc"
20918 ac_res=`eval echo '${'$as_ac_Header'}'`
20919 { echo "$as_me:$LINENO: result: $ac_res" >&5
20920 echo "${ECHO_T}$ac_res" >&6; }
20923 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20924 cat >>confdefs.h <<_ACEOF
20925 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20935 for ac_func in access atoi
20937 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20938 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20939 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20940 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20941 echo $ECHO_N "(cached) $ECHO_C" >&6
20943 cat >conftest.$ac_ext <<_ACEOF
20946 cat confdefs.h >>conftest.$ac_ext
20947 cat >>conftest.$ac_ext <<_ACEOF
20948 /* end confdefs.h. */
20949 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20950 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20951 #define $ac_func innocuous_$ac_func
20953 /* System header to define __stub macros and hopefully few prototypes,
20954 which can conflict with char $ac_func (); below.
20955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20956 <limits.h> exists even on freestanding compilers. */
20959 # include <limits.h>
20961 # include <assert.h>
20966 /* Override any GCC internal prototype to avoid an error.
20967 Use char because int might match the return type of a GCC
20968 builtin and then its argument prototype would still apply. */
20973 /* The GNU C library defines this for functions which it implements
20974 to always fail with ENOSYS. Some functions are actually named
20975 something starting with __ and the normal name is an alias. */
20976 #if defined __stub_$ac_func || defined __stub___$ac_func
20983 return $ac_func ();
20988 rm -f conftest.$ac_objext conftest$ac_exeext
20989 if { (ac_try="$ac_link"
20990 case "(($ac_try" in
20991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20992 *) ac_try_echo=$ac_try;;
20994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20995 (eval "$ac_link") 2>conftest.er1
20997 grep -v '^ *+' conftest.er1 >conftest.err
20999 cat conftest.err >&5
21000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001 (exit $ac_status); } && {
21002 test -z "$ac_c_werror_flag" ||
21003 test ! -s conftest.err
21004 } && test -s conftest$ac_exeext &&
21005 $as_test_x conftest$ac_exeext; then
21006 eval "$as_ac_var=yes"
21008 echo "$as_me: failed program was:" >&5
21009 sed 's/^/| /' conftest.$ac_ext >&5
21011 eval "$as_ac_var=no"
21014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21015 conftest$ac_exeext conftest.$ac_ext
21017 ac_res=`eval echo '${'$as_ac_var'}'`
21018 { echo "$as_me:$LINENO: result: $ac_res" >&5
21019 echo "${ECHO_T}$ac_res" >&6; }
21020 if test `eval echo '${'$as_ac_var'}'` = yes; then
21021 cat >>confdefs.h <<_ACEOF
21022 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21026 { { echo "$as_me:$LINENO: error: required standard library function missing" >&5
21027 echo "$as_me: error: required standard library function missing" >&2;}
21028 { (exit 1); exit 1; }; }
21038 for ac_func in snprintf gettimeofday ftime mkstemp mktemp
21040 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21041 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21042 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21043 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21044 echo $ECHO_N "(cached) $ECHO_C" >&6
21046 cat >conftest.$ac_ext <<_ACEOF
21049 cat confdefs.h >>conftest.$ac_ext
21050 cat >>conftest.$ac_ext <<_ACEOF
21051 /* end confdefs.h. */
21052 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21054 #define $ac_func innocuous_$ac_func
21056 /* System header to define __stub macros and hopefully few prototypes,
21057 which can conflict with char $ac_func (); below.
21058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21059 <limits.h> exists even on freestanding compilers. */
21062 # include <limits.h>
21064 # include <assert.h>
21069 /* Override any GCC internal prototype to avoid an error.
21070 Use char because int might match the return type of a GCC
21071 builtin and then its argument prototype would still apply. */
21076 /* The GNU C library defines this for functions which it implements
21077 to always fail with ENOSYS. Some functions are actually named
21078 something starting with __ and the normal name is an alias. */
21079 #if defined __stub_$ac_func || defined __stub___$ac_func
21086 return $ac_func ();
21091 rm -f conftest.$ac_objext conftest$ac_exeext
21092 if { (ac_try="$ac_link"
21093 case "(($ac_try" in
21094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21095 *) ac_try_echo=$ac_try;;
21097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21098 (eval "$ac_link") 2>conftest.er1
21100 grep -v '^ *+' conftest.er1 >conftest.err
21102 cat conftest.err >&5
21103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21104 (exit $ac_status); } && {
21105 test -z "$ac_c_werror_flag" ||
21106 test ! -s conftest.err
21107 } && test -s conftest$ac_exeext &&
21108 $as_test_x conftest$ac_exeext; then
21109 eval "$as_ac_var=yes"
21111 echo "$as_me: failed program was:" >&5
21112 sed 's/^/| /' conftest.$ac_ext >&5
21114 eval "$as_ac_var=no"
21117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21118 conftest$ac_exeext conftest.$ac_ext
21120 ac_res=`eval echo '${'$as_ac_var'}'`
21121 { echo "$as_me:$LINENO: result: $ac_res" >&5
21122 echo "${ECHO_T}$ac_res" >&6; }
21123 if test `eval echo '${'$as_ac_var'}'` = yes; then
21124 cat >>confdefs.h <<_ACEOF
21125 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21134 { echo "$as_me:$LINENO: checking for st_mtim in struct stat" >&5
21135 echo $ECHO_N "checking for st_mtim in struct stat... $ECHO_C" >&6; }
21136 if test "${ac_cv_struct_st_mtim+set}" = set; then
21137 echo $ECHO_N "(cached) $ECHO_C" >&6
21139 cat >conftest.$ac_ext <<_ACEOF
21142 cat confdefs.h >>conftest.$ac_ext
21143 cat >>conftest.$ac_ext <<_ACEOF
21144 /* end confdefs.h. */
21145 #include <sys/types.h>
21146 #include <sys/stat.h>
21150 struct stat s; s.st_mtim;
21155 rm -f conftest.$ac_objext
21156 if { (ac_try="$ac_compile"
21157 case "(($ac_try" in
21158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21159 *) ac_try_echo=$ac_try;;
21161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21162 (eval "$ac_compile") 2>conftest.er1
21164 grep -v '^ *+' conftest.er1 >conftest.err
21166 cat conftest.err >&5
21167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21168 (exit $ac_status); } && {
21169 test -z "$ac_c_werror_flag" ||
21170 test ! -s conftest.err
21171 } && test -s conftest.$ac_objext; then
21172 ac_cv_struct_st_mtim=yes
21174 echo "$as_me: failed program was:" >&5
21175 sed 's/^/| /' conftest.$ac_ext >&5
21177 ac_cv_struct_st_mtim=no
21180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21182 { echo "$as_me:$LINENO: result: $ac_cv_struct_st_mtim" >&5
21183 echo "${ECHO_T}$ac_cv_struct_st_mtim" >&6; }
21184 if test $ac_cv_struct_st_mtim = yes; then
21186 cat >>confdefs.h <<\_ACEOF
21187 #define HAVE_ST_MTIM 1
21194 ac_config_files="$ac_config_files Makefile"
21196 cat >confcache <<\_ACEOF
21197 # This file is a shell script that caches the results of configure
21198 # tests run on this system so they can be shared between configure
21199 # scripts and configure runs, see configure's option --config-cache.
21200 # It is not useful on other systems. If it contains results you don't
21201 # want to keep, you may remove or edit it.
21203 # config.status only pays attention to the cache file if you give it
21204 # the --recheck option to rerun configure.
21206 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21207 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21208 # following values.
21212 # The following way of writing the cache mishandles newlines in values,
21213 # but we know of no workaround that is simple, portable, and efficient.
21214 # So, we kill variables containing newlines.
21215 # Ultrix sh set writes to stderr and can't be redirected directly,
21216 # and sets the high bit in the cache file unless we assign to the vars.
21218 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21219 eval ac_val=\$$ac_var
21223 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21224 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21227 _ | IFS | as_nl) ;; #(
21228 *) $as_unset $ac_var ;;
21234 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21235 *${as_nl}ac_space=\ *)
21236 # `set' does not quote correctly, so add quotes (double-quote
21237 # substitution turns \\\\ into \\, and sed turns \\ into \).
21240 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21243 # `set' quotes correctly as required by POSIX, so do not add quotes.
21244 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21253 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21255 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21257 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21258 if test -w "$cache_file"; then
21259 test "x$cache_file" != "x/dev/null" &&
21260 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21261 echo "$as_me: updating cache $cache_file" >&6;}
21262 cat confcache >$cache_file
21264 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21265 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21270 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21271 # Let make expand exec_prefix.
21272 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21274 DEFS=-DHAVE_CONFIG_H
21278 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21279 # 1. Remove the extension, and $U if already installed.
21280 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21281 ac_i=`echo "$ac_i" | sed "$ac_script"`
21282 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21283 # will be set to the directory where LIBOBJS objects are built.
21284 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21285 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21287 LIBOBJS=$ac_libobjs
21289 LTLIBOBJS=$ac_ltlibobjs
21292 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21293 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21294 Usually this means the macro was only invoked conditionally." >&5
21295 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21296 Usually this means the macro was only invoked conditionally." >&2;}
21297 { (exit 1); exit 1; }; }
21299 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21300 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21301 Usually this means the macro was only invoked conditionally." >&5
21302 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21303 Usually this means the macro was only invoked conditionally." >&2;}
21304 { (exit 1); exit 1; }; }
21306 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21307 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21308 Usually this means the macro was only invoked conditionally." >&5
21309 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21310 Usually this means the macro was only invoked conditionally." >&2;}
21311 { (exit 1); exit 1; }; }
21313 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21314 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21315 Usually this means the macro was only invoked conditionally." >&5
21316 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21317 Usually this means the macro was only invoked conditionally." >&2;}
21318 { (exit 1); exit 1; }; }
21321 : ${CONFIG_STATUS=./config.status}
21322 ac_clean_files_save=$ac_clean_files
21323 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21324 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21325 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21326 cat >$CONFIG_STATUS <<_ACEOF
21328 # Generated by $as_me.
21329 # Run this file to recreate the current configuration.
21330 # Compiler output produced by configure, useful for debugging
21331 # configure, is in config.log if it exists.
21334 ac_cs_recheck=false
21336 SHELL=\${CONFIG_SHELL-$SHELL}
21339 cat >>$CONFIG_STATUS <<\_ACEOF
21340 ## --------------------- ##
21341 ## M4sh Initialization. ##
21342 ## --------------------- ##
21344 # Be more Bourne compatible
21345 DUALCASE=1; export DUALCASE # for MKS sh
21346 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21349 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21350 # is contrary to our usage. Disable this feature.
21351 alias -g '${1+"$@"}'='"$@"'
21352 setopt NO_GLOB_SUBST
21354 case `(set -o) 2>/dev/null` in
21355 *posix*) set -o posix ;;
21364 # Avoid depending upon Character Ranges.
21365 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21366 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21367 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21368 as_cr_digits='0123456789'
21369 as_cr_alnum=$as_cr_Letters$as_cr_digits
21371 # The user is always right.
21372 if test "${PATH_SEPARATOR+set}" != set; then
21373 echo "#! /bin/sh" >conf$$.sh
21374 echo "exit 0" >>conf$$.sh
21376 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21384 # Support unset when possible.
21385 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21393 # We need space, tab and new line, in precisely that order. Quoting is
21394 # there to prevent editors from complaining about space-tab.
21395 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21396 # splitting by setting IFS to empty value.)
21401 # Find who we are. Look in the path if we contain no directory separator.
21403 *[\\/]* ) as_myself=$0 ;;
21404 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21405 for as_dir in $PATH
21408 test -z "$as_dir" && as_dir=.
21409 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21415 # We did not find ourselves, most probably we were run as `sh COMMAND'
21416 # in which case we are not to be found in the path.
21417 if test "x$as_myself" = x; then
21420 if test ! -f "$as_myself"; then
21421 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21422 { (exit 1); exit 1; }
21425 # Work around bugs in pre-3.0 UWIN ksh.
21426 for as_var in ENV MAIL MAILPATH
21427 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21435 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21436 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21437 LC_TELEPHONE LC_TIME
21439 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21440 eval $as_var=C; export $as_var
21442 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21446 # Required to use basename.
21447 if expr a : '\(a\)' >/dev/null 2>&1 &&
21448 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21454 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21455 as_basename=basename
21461 # Name of the executable.
21462 as_me=`$as_basename -- "$0" ||
21463 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21464 X"$0" : 'X\(//\)$' \| \
21465 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21467 sed '/^.*\/\([^/][^/]*\)\/*$/{
21486 as_lineno_1=$LINENO
21487 as_lineno_2=$LINENO
21488 test "x$as_lineno_1" != "x$as_lineno_2" &&
21489 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21491 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21492 # uniformly replaced by the line number. The first 'sed' inserts a
21493 # line-number line after each line using $LINENO; the second 'sed'
21494 # does the real work. The second script uses 'N' to pair each
21495 # line-number line with the line containing $LINENO, and appends
21496 # trailing '-' during substitution so that $LINENO is not a special
21497 # case at line end.
21498 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21499 # scripts with optimization help from Paolo Bonzini. Blame Lee
21500 # E. McMahon (1931-1989) for sed's syntax. :-)
21512 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21515 ' >$as_me.lineno &&
21516 chmod +x "$as_me.lineno" ||
21517 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21518 { (exit 1); exit 1; }; }
21520 # Don't try to exec as it changes $[0], causing all sort of problems
21521 # (the dirname of $[0] is not the place where we might find the
21522 # original and so on. Autoconf is especially sensitive to this).
21523 . "./$as_me.lineno"
21524 # Exit status is that of the last command.
21529 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21535 ECHO_C= ECHO_N= ECHO_T=
21536 case `echo -n x` in
21538 case `echo 'x\c'` in
21539 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21546 if expr a : '\(a\)' >/dev/null 2>&1 &&
21547 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21553 rm -f conf$$ conf$$.exe conf$$.file
21554 if test -d conf$$.dir; then
21555 rm -f conf$$.dir/conf$$.file
21561 if ln -s conf$$.file conf$$ 2>/dev/null; then
21563 # ... but there are two gotchas:
21564 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21565 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21566 # In both cases, we have to default to `cp -p'.
21567 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21569 elif ln conf$$.file conf$$ 2>/dev/null; then
21574 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21575 rmdir conf$$.dir 2>/dev/null
21577 if mkdir -p . 2>/dev/null; then
21580 test -d ./-p && rmdir ./-p
21584 if test -x / >/dev/null 2>&1; then
21585 as_test_x='test -x'
21587 if ls -dL / >/dev/null 2>&1; then
21594 if test -d "$1"; then
21600 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21601 ???[sx]*):;;*)false;;esac;fi
21605 as_executable_p=$as_test_x
21607 # Sed expression to map a string onto a valid CPP name.
21608 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21610 # Sed expression to map a string onto a valid variable name.
21611 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21616 # Save the log message, to keep $[0] and so on meaningful, and to
21617 # report actual input values of CONFIG_FILES etc. instead of their
21618 # values after options handling.
21620 This file was extended by $as_me, which was
21621 generated by GNU Autoconf 2.61. Invocation command line was
21623 CONFIG_FILES = $CONFIG_FILES
21624 CONFIG_HEADERS = $CONFIG_HEADERS
21625 CONFIG_LINKS = $CONFIG_LINKS
21626 CONFIG_COMMANDS = $CONFIG_COMMANDS
21629 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21634 cat >>$CONFIG_STATUS <<_ACEOF
21635 # Files that config.status was made for.
21636 config_files="$ac_config_files"
21637 config_headers="$ac_config_headers"
21638 config_commands="$ac_config_commands"
21642 cat >>$CONFIG_STATUS <<\_ACEOF
21644 \`$as_me' instantiates files from templates according to the
21645 current configuration.
21647 Usage: $0 [OPTIONS] [FILE]...
21649 -h, --help print this help, then exit
21650 -V, --version print version number and configuration settings, then exit
21651 -q, --quiet do not print progress messages
21652 -d, --debug don't remove temporary files
21653 --recheck update $as_me by reconfiguring in the same conditions
21654 --file=FILE[:TEMPLATE]
21655 instantiate the configuration file FILE
21656 --header=FILE[:TEMPLATE]
21657 instantiate the configuration header FILE
21659 Configuration files:
21662 Configuration headers:
21665 Configuration commands:
21668 Report bugs to <bug-autoconf@gnu.org>."
21671 cat >>$CONFIG_STATUS <<_ACEOF
21674 configured by $0, generated by GNU Autoconf 2.61,
21675 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21677 Copyright (C) 2006 Free Software Foundation, Inc.
21678 This config.status script is free software; the Free Software Foundation
21679 gives unlimited permission to copy, distribute and modify it."
21687 cat >>$CONFIG_STATUS <<\_ACEOF
21688 # If no file are specified by the user, then we need to provide default
21689 # value. By we need to know if files were specified by the user.
21695 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21696 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21707 # Handling of the options.
21708 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21710 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21711 echo "$ac_cs_version"; exit ;;
21712 --debug | --debu | --deb | --de | --d | -d )
21714 --file | --fil | --fi | --f )
21716 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21717 ac_need_defaults=false;;
21718 --header | --heade | --head | --hea )
21720 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21721 ac_need_defaults=false;;
21723 # Conflict between --help and --header
21724 { echo "$as_me: error: ambiguous option: $1
21725 Try \`$0 --help' for more information." >&2
21726 { (exit 1); exit 1; }; };;
21727 --help | --hel | -h )
21728 echo "$ac_cs_usage"; exit ;;
21729 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21730 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21733 # This is an error.
21734 -*) { echo "$as_me: error: unrecognized option: $1
21735 Try \`$0 --help' for more information." >&2
21736 { (exit 1); exit 1; }; } ;;
21738 *) ac_config_targets="$ac_config_targets $1"
21739 ac_need_defaults=false ;;
21745 ac_configure_extra_args=
21747 if $ac_cs_silent; then
21749 ac_configure_extra_args="$ac_configure_extra_args --silent"
21753 cat >>$CONFIG_STATUS <<_ACEOF
21754 if \$ac_cs_recheck; then
21755 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21756 CONFIG_SHELL=$SHELL
21757 export CONFIG_SHELL
21758 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21762 cat >>$CONFIG_STATUS <<\_ACEOF
21766 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21767 ## Running $as_me. ##
21773 cat >>$CONFIG_STATUS <<_ACEOF
21777 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21781 cat >>$CONFIG_STATUS <<\_ACEOF
21783 # Handling of arguments.
21784 for ac_config_target in $ac_config_targets
21786 case $ac_config_target in
21787 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21788 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21789 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21791 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21792 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21793 { (exit 1); exit 1; }; };;
21798 # If the user did not use the arguments to specify the items to instantiate,
21799 # then the envvar interface is used. Set only those that are not.
21800 # We use the long form for the default assignment because of an extremely
21801 # bizarre bug on SunOS 4.1.3.
21802 if $ac_need_defaults; then
21803 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21804 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21805 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21808 # Have a temporary directory for convenience. Make it in the build tree
21809 # simply because there is no reason against having it here, and in addition,
21810 # creating and moving files from /tmp can sometimes cause problems.
21811 # Hook for its removal unless debugging.
21812 # Note that there is a small window in which the directory will not be cleaned:
21813 # after its creation but before its name has been assigned to `$tmp'.
21817 trap 'exit_status=$?
21818 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21820 trap '{ (exit 1); exit 1; }' 1 2 13 15
21822 # Create a (secure) tmp directory for tmp files.
21825 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21826 test -n "$tmp" && test -d "$tmp"
21829 tmp=./conf$$-$RANDOM
21830 (umask 077 && mkdir "$tmp")
21833 echo "$me: cannot create a temporary directory in ." >&2
21834 { (exit 1); exit 1; }
21838 # Set up the sed scripts for CONFIG_FILES section.
21841 # No need to generate the scripts if there are no CONFIG_FILES.
21842 # This happens for instance when ./config.status config.h
21843 if test -n "$CONFIG_FILES"; then
21850 for ac_last_try in false false false false false :; do
21851 cat >conf$$subs.sed <<_ACEOF
21852 SHELL!$SHELL$ac_delim
21853 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21854 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21855 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21856 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21857 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21858 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21859 exec_prefix!$exec_prefix$ac_delim
21860 prefix!$prefix$ac_delim
21861 program_transform_name!$program_transform_name$ac_delim
21862 bindir!$bindir$ac_delim
21863 sbindir!$sbindir$ac_delim
21864 libexecdir!$libexecdir$ac_delim
21865 datarootdir!$datarootdir$ac_delim
21866 datadir!$datadir$ac_delim
21867 sysconfdir!$sysconfdir$ac_delim
21868 sharedstatedir!$sharedstatedir$ac_delim
21869 localstatedir!$localstatedir$ac_delim
21870 includedir!$includedir$ac_delim
21871 oldincludedir!$oldincludedir$ac_delim
21872 docdir!$docdir$ac_delim
21873 infodir!$infodir$ac_delim
21874 htmldir!$htmldir$ac_delim
21875 dvidir!$dvidir$ac_delim
21876 pdfdir!$pdfdir$ac_delim
21877 psdir!$psdir$ac_delim
21878 libdir!$libdir$ac_delim
21879 localedir!$localedir$ac_delim
21880 mandir!$mandir$ac_delim
21881 DEFS!$DEFS$ac_delim
21882 ECHO_C!$ECHO_C$ac_delim
21883 ECHO_N!$ECHO_N$ac_delim
21884 ECHO_T!$ECHO_T$ac_delim
21885 LIBS!$LIBS$ac_delim
21886 build_alias!$build_alias$ac_delim
21887 host_alias!$host_alias$ac_delim
21888 target_alias!$target_alias$ac_delim
21889 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21890 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21891 INSTALL_DATA!$INSTALL_DATA$ac_delim
21892 am__isrc!$am__isrc$ac_delim
21893 CYGPATH_W!$CYGPATH_W$ac_delim
21894 PACKAGE!$PACKAGE$ac_delim
21895 VERSION!$VERSION$ac_delim
21896 ACLOCAL!$ACLOCAL$ac_delim
21897 AUTOCONF!$AUTOCONF$ac_delim
21898 AUTOMAKE!$AUTOMAKE$ac_delim
21899 AUTOHEADER!$AUTOHEADER$ac_delim
21900 MAKEINFO!$MAKEINFO$ac_delim
21901 install_sh!$install_sh$ac_delim
21902 STRIP!$STRIP$ac_delim
21903 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21904 mkdir_p!$mkdir_p$ac_delim
21906 SET_MAKE!$SET_MAKE$ac_delim
21907 am__leading_dot!$am__leading_dot$ac_delim
21908 AMTAR!$AMTAR$ac_delim
21909 am__tar!$am__tar$ac_delim
21910 am__untar!$am__untar$ac_delim
21911 build!$build$ac_delim
21912 build_cpu!$build_cpu$ac_delim
21913 build_vendor!$build_vendor$ac_delim
21914 build_os!$build_os$ac_delim
21915 host!$host$ac_delim
21916 host_cpu!$host_cpu$ac_delim
21917 host_vendor!$host_vendor$ac_delim
21918 host_os!$host_os$ac_delim
21920 CFLAGS!$CFLAGS$ac_delim
21921 LDFLAGS!$LDFLAGS$ac_delim
21922 CPPFLAGS!$CPPFLAGS$ac_delim
21923 ac_ct_CC!$ac_ct_CC$ac_delim
21924 EXEEXT!$EXEEXT$ac_delim
21925 OBJEXT!$OBJEXT$ac_delim
21926 DEPDIR!$DEPDIR$ac_delim
21927 am__include!$am__include$ac_delim
21928 am__quote!$am__quote$ac_delim
21929 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21930 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21931 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21932 CCDEPMODE!$CCDEPMODE$ac_delim
21933 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21934 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21936 GREP!$GREP$ac_delim
21937 EGREP!$EGREP$ac_delim
21938 LN_S!$LN_S$ac_delim
21939 ECHO!$ECHO$ac_delim
21941 RANLIB!$RANLIB$ac_delim
21944 CXXFLAGS!$CXXFLAGS$ac_delim
21945 ac_ct_CXX!$ac_ct_CXX$ac_delim
21946 CXXDEPMODE!$CXXDEPMODE$ac_delim
21947 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21948 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21951 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21953 elif $ac_last_try; then
21954 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21955 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21956 { (exit 1); exit 1; }; }
21958 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21962 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21963 if test -n "$ac_eof"; then
21964 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21965 ac_eof=`expr $ac_eof + 1`
21968 cat >>$CONFIG_STATUS <<_ACEOF
21969 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21970 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21973 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21974 s/^/s,@/; s/!/@,|#_!!_#|/
21977 s/'"$ac_delim"'$/,g/; t
21979 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21980 ' >>$CONFIG_STATUS <conf$$subs.sed
21981 rm -f conf$$subs.sed
21982 cat >>$CONFIG_STATUS <<_ACEOF
21988 for ac_last_try in false false false false false :; do
21989 cat >conf$$subs.sed <<_ACEOF
21990 CXXCPP!$CXXCPP$ac_delim
21992 FFLAGS!$FFLAGS$ac_delim
21993 ac_ct_F77!$ac_ct_F77$ac_delim
21994 LIBTOOL!$LIBTOOL$ac_delim
21995 LIBOBJS!$LIBOBJS$ac_delim
21996 LTLIBOBJS!$LTLIBOBJS$ac_delim
21999 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 7; then
22001 elif $ac_last_try; then
22002 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22003 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22004 { (exit 1); exit 1; }; }
22006 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22010 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22011 if test -n "$ac_eof"; then
22012 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22013 ac_eof=`expr $ac_eof + 1`
22016 cat >>$CONFIG_STATUS <<_ACEOF
22017 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22018 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22021 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22022 s/^/s,@/; s/!/@,|#_!!_#|/
22025 s/'"$ac_delim"'$/,g/; t
22027 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22028 ' >>$CONFIG_STATUS <conf$$subs.sed
22029 rm -f conf$$subs.sed
22030 cat >>$CONFIG_STATUS <<_ACEOF
22037 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22038 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22039 # trailing colons and then remove the whole line if VPATH becomes empty
22040 # (actually we leave an empty line to preserve line numbers).
22041 if test "x$srcdir" = x.; then
22042 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22043 s/:*\$(srcdir):*/:/
22044 s/:*\${srcdir}:*/:/
22046 s/^\([^=]*=[ ]*\):*/\1/
22052 cat >>$CONFIG_STATUS <<\_ACEOF
22053 fi # test -n "$CONFIG_FILES"
22056 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22059 :[FHLC]) ac_mode=$ac_tag; continue;;
22061 case $ac_mode$ac_tag in
22063 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22064 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22065 { (exit 1); exit 1; }; };;
22066 :[FH]-) ac_tag=-:-;;
22067 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22084 -) ac_f="$tmp/stdin";;
22085 *) # Look for the file first in the build tree, then in the source tree
22086 # (if the path is not absolute). The absolute path cannot be DOS-style,
22087 # because $ac_f cannot contain `:'.
22091 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22093 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22094 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22095 { (exit 1); exit 1; }; };;
22097 ac_file_inputs="$ac_file_inputs $ac_f"
22100 # Let's still pretend it is `configure' which instantiates (i.e., don't
22101 # use $as_me), people would be surprised to read:
22102 # /* config.h. Generated by config.status. */
22103 configure_input="Generated from "`IFS=:
22104 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22105 if test x"$ac_file" != x-; then
22106 configure_input="$ac_file. $configure_input"
22107 { echo "$as_me:$LINENO: creating $ac_file" >&5
22108 echo "$as_me: creating $ac_file" >&6;}
22112 *:-:* | *:-) cat >"$tmp/stdin";;
22117 ac_dir=`$as_dirname -- "$ac_file" ||
22118 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22119 X"$ac_file" : 'X\(//\)[^/]' \| \
22120 X"$ac_file" : 'X\(//\)$' \| \
22121 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22123 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22127 /^X\(\/\/\)[^/].*/{
22142 -*) as_dir=./$as_dir;;
22144 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22148 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22149 *) as_qdir=$as_dir;;
22151 as_dirs="'$as_qdir' $as_dirs"
22152 as_dir=`$as_dirname -- "$as_dir" ||
22153 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22154 X"$as_dir" : 'X\(//\)[^/]' \| \
22155 X"$as_dir" : 'X\(//\)$' \| \
22156 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22158 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22162 /^X\(\/\/\)[^/].*/{
22175 test -d "$as_dir" && break
22177 test -z "$as_dirs" || eval "mkdir $as_dirs"
22178 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22179 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22180 { (exit 1); exit 1; }; }; }
22184 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22186 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22187 # A ".." for each directory in $ac_dir_suffix.
22188 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22189 case $ac_top_builddir_sub in
22190 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22191 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22194 ac_abs_top_builddir=$ac_pwd
22195 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22196 # for backward compatibility:
22197 ac_top_builddir=$ac_top_build_prefix
22200 .) # We are building in place.
22202 ac_top_srcdir=$ac_top_builddir_sub
22203 ac_abs_top_srcdir=$ac_pwd ;;
22204 [\\/]* | ?:[\\/]* ) # Absolute name.
22205 ac_srcdir=$srcdir$ac_dir_suffix;
22206 ac_top_srcdir=$srcdir
22207 ac_abs_top_srcdir=$srcdir ;;
22208 *) # Relative name.
22209 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22210 ac_top_srcdir=$ac_top_build_prefix$srcdir
22211 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22213 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22223 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22224 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22226 ac_MKDIR_P=$MKDIR_P
22228 [\\/$]* | ?:[\\/]* ) ;;
22229 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22233 cat >>$CONFIG_STATUS <<\_ACEOF
22234 # If the template does not know about datarootdir, expand it.
22235 # FIXME: This hack should be removed a few years after 2.60.
22236 ac_datarootdir_hack=; ac_datarootdir_seen=
22238 case `sed -n '/datarootdir/ {
22247 ' $ac_file_inputs` in
22248 *datarootdir*) ac_datarootdir_seen=yes;;
22249 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22250 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22251 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22253 cat >>$CONFIG_STATUS <<_ACEOF
22254 ac_datarootdir_hack='
22255 s&@datadir@&$datadir&g
22256 s&@docdir@&$docdir&g
22257 s&@infodir@&$infodir&g
22258 s&@localedir@&$localedir&g
22259 s&@mandir@&$mandir&g
22260 s&\\\${datarootdir}&$datarootdir&g' ;;
22264 # Neutralize VPATH when `$srcdir' = `.'.
22265 # Shell code in configure.ac might set extrasub.
22266 # FIXME: do we really want to maintain this feature?
22267 cat >>$CONFIG_STATUS <<_ACEOF
22271 cat >>$CONFIG_STATUS <<\_ACEOF
22273 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22274 s&@configure_input@&$configure_input&;t t
22275 s&@top_builddir@&$ac_top_builddir_sub&;t t
22276 s&@srcdir@&$ac_srcdir&;t t
22277 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22278 s&@top_srcdir@&$ac_top_srcdir&;t t
22279 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22280 s&@builddir@&$ac_builddir&;t t
22281 s&@abs_builddir@&$ac_abs_builddir&;t t
22282 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22283 s&@INSTALL@&$ac_INSTALL&;t t
22284 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22285 $ac_datarootdir_hack
22286 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22288 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22289 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22290 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22291 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22292 which seems to be undefined. Please make sure it is defined." >&5
22293 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22294 which seems to be undefined. Please make sure it is defined." >&2;}
22298 -) cat "$tmp/out"; rm -f "$tmp/out";;
22299 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22308 # Transform confdefs.h into a sed script `conftest.defines', that
22309 # substitutes the proper values into config.h.in to produce config.h.
22310 rm -f conftest.defines conftest.tail
22311 # First, append a space to every undef/define line, to ease matching.
22312 echo 's/$/ /' >conftest.defines
22313 # Then, protect against being on the right side of a sed subst, or in
22314 # an unquoted here document, in config.status. If some macros were
22315 # called several times there might be several #defines for the same
22316 # symbol, which is useless. But do not sort them, since the last
22317 # AC_DEFINE must be honored.
22318 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22319 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22320 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22321 # PARAMS is the parameter list in the macro definition--in most cases, it's
22322 # just an empty string.
22323 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22324 ac_dB='\\)[ (].*,\\1define\\2'
22332 s/^[ ]*#[ ]*define[ ][ ]*//
22337 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22338 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22339 ' >>conftest.defines
22341 # Remove the space that was appended to ease matching.
22342 # Then replace #undef with comments. This is necessary, for
22343 # example, in the case of _POSIX_SOURCE, which is predefined and required
22344 # on some systems where configure will not decide to define it.
22345 # (The regexp can be short, since the line contains either #define or #undef.)
22347 s,^[ #]*u.*,/* & */,' >>conftest.defines
22349 # Break up conftest.defines:
22350 ac_max_sed_lines=50
22352 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22353 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22354 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22356 ac_in='$ac_file_inputs'
22357 ac_out='"$tmp/out1"'
22358 ac_nxt='"$tmp/out2"'
22362 # Write a here document:
22363 cat >>$CONFIG_STATUS <<_ACEOF
22364 # First, check the format of the line:
22365 cat >"\$tmp/defines.sed" <<\\CEOF
22366 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22367 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22371 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22373 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22374 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22375 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22376 grep . conftest.tail >/dev/null || break
22377 rm -f conftest.defines
22378 mv conftest.tail conftest.defines
22380 rm -f conftest.defines conftest.tail
22382 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22383 cat >>$CONFIG_STATUS <<\_ACEOF
22384 if test x"$ac_file" != x-; then
22385 echo "/* $configure_input */" >"$tmp/config.h"
22386 cat "$ac_result" >>"$tmp/config.h"
22387 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22388 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22389 echo "$as_me: $ac_file is unchanged" >&6;}
22392 mv "$tmp/config.h" $ac_file
22395 echo "/* $configure_input */"
22399 # Compute $ac_file's index in $config_headers.
22402 for _am_header in $config_headers :; do
22403 case $_am_header in
22404 $_am_arg | $_am_arg:* )
22407 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22410 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22411 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22412 X"$_am_arg" : 'X\(//\)[^/]' \| \
22413 X"$_am_arg" : 'X\(//\)$' \| \
22414 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22416 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22420 /^X\(\/\/\)[^/].*/{
22432 s/.*/./; q'`/stamp-h$_am_stamp_count
22435 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22436 echo "$as_me: executing $ac_file commands" >&6;}
22441 case $ac_file$ac_mode in
22442 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22443 # Strip MF so we end up with the name of the file.
22444 mf=`echo "$mf" | sed -e 's/:.*$//'`
22445 # Check whether this is an Automake generated Makefile or not.
22446 # We used to match only the files named `Makefile.in', but
22447 # some people rename them; so instead we look at the file content.
22448 # Grep'ing the first line is not enough: some people post-process
22449 # each Makefile.in and add a new line on top of each file to say so.
22450 # Grep'ing the whole file is not good either: AIX grep has a line
22451 # limit of 2048, but all sed's we know have understand at least 4000.
22452 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22453 dirpart=`$as_dirname -- "$mf" ||
22454 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22455 X"$mf" : 'X\(//\)[^/]' \| \
22456 X"$mf" : 'X\(//\)$' \| \
22457 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22459 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22463 /^X\(\/\/\)[^/].*/{
22479 # Extract the definition of DEPDIR, am__include, and am__quote
22480 # from the Makefile without running `make'.
22481 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22482 test -z "$DEPDIR" && continue
22483 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22484 test -z "am__include" && continue
22485 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22486 # When using ansi2knr, U may be empty or an underscore; expand it
22487 U=`sed -n 's/^U = //p' < "$mf"`
22488 # Find all dependency output files, they are included files with
22489 # $(DEPDIR) in their names. We invoke sed twice because it is the
22490 # simplest approach to changing $(DEPDIR) to its actual value in the
22492 for file in `sed -n "
22493 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22494 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22495 # Make sure the directory exists.
22496 test -f "$dirpart/$file" && continue
22497 fdir=`$as_dirname -- "$file" ||
22498 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22499 X"$file" : 'X\(//\)[^/]' \| \
22500 X"$file" : 'X\(//\)$' \| \
22501 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22503 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22507 /^X\(\/\/\)[^/].*/{
22520 { as_dir=$dirpart/$fdir
22522 -*) as_dir=./$as_dir;;
22524 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22528 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22529 *) as_qdir=$as_dir;;
22531 as_dirs="'$as_qdir' $as_dirs"
22532 as_dir=`$as_dirname -- "$as_dir" ||
22533 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22534 X"$as_dir" : 'X\(//\)[^/]' \| \
22535 X"$as_dir" : 'X\(//\)$' \| \
22536 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22538 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22542 /^X\(\/\/\)[^/].*/{
22555 test -d "$as_dir" && break
22557 test -z "$as_dirs" || eval "mkdir $as_dirs"
22558 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22559 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22560 { (exit 1); exit 1; }; }; }
22561 # echo "creating $dirpart/$file"
22562 echo '# dummy' > "$dirpart/$file"
22571 { (exit 0); exit 0; }
22573 chmod +x $CONFIG_STATUS
22574 ac_clean_files=$ac_clean_files_save
22577 # configure is writing to config.log, and then calls config.status.
22578 # config.status does its own redirection, appending to config.log.
22579 # Unfortunately, on DOS this fails, as config.log is still kept open
22580 # by configure, so config.status won't be able to write to it; its
22581 # output is simply discarded. So we exec the FD to /dev/null,
22582 # effectively closing config.log, so it can be properly (re)opened and
22583 # appended to by config.status. When coming back to configure, we
22584 # need to make the FD available again.
22585 if test "$no_create" != yes; then
22587 ac_config_status_args=
22588 test "$silent" = yes &&
22589 ac_config_status_args="$ac_config_status_args --quiet"
22591 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22593 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22594 # would make configure fail if this is the last instruction.
22595 $ac_cs_success || { (exit 1); exit 1; }